Skip to content

Releases

MPlib2 v0.3.1

Choose a tag to compare

@dd114 dd114 released this 28 Nov 22:28

Maintenance release adding Python 3.13 and 3.14 wheels, fixing two core bugs, and making the README quickstart work out of the box.

pip install -U mplib2

Prebuilt wheels are published for Linux x86_64 (manylinux_2_28, Python 3.10–3.14). NumPy 2.x is supported across Python 3.10–3.14; NumPy 1.26 is supported on Python 3.10–3.12.

Bug fixes

  • Planner.plan_pose: Fixed a NumPy broadcast ValueError when passing a move-group-sized current_qpos with fix_joint_limits=True (now pads before clipping, matching plan_qpos).
  • FCL distance queries: Fixed a SIGSEGV in FCL 0.7.0 when computing distances involving Plane or Halfspace geometries under the default GST_LIBCCD solver. Both Python (fcl.distance) and C++ (FCLModel/PlanningWorld) paths now fall back to GST_INDEP only for Plane/Halfspace, preserving signed distance behavior for bounded shapes.

Packaging and documentation

  • Python 3.13 and 3.14: Added prebuilt Linux x86_64 wheels (cp313, cp314) and CI coverage.
  • Self-contained Quickstart: Updated the README quickstart so it runs immediately after pip install mplib2 without cloning the repository.
  • Dev versioning: Untagged development builds now use PEP 440 .post0.dev numbering so they sort above the latest release.

Full diff: v0.3.0...v0.3.1

MPlib2 v0.3.0

Choose a tag to compare

@dd114 dd114 released this 28 Nov 20:50

First release of MPlib2, a maintained fork of haosulab/MPlib branched from upstream main (5225ea5). The PyPI package is mplib2, while the Python import remains mplib.

pip uninstall -y mplib   # cannot coexist with upstream mplib
pip install mplib2

Prebuilt wheels are published for Linux x86_64 (manylinux_2_28, Python 3.10–3.12). Other platforms must build from source.

Breaking and notable changes

  • Package & runtime requirements: Renamed distribution to mplib2 (import mplib). Requires Python >= 3.10 and NumPy >= 1.26 (both NumPy 1.26 and 2.x are supported).
  • Read-only Pose.q: Pose.q and Pose.get_q() now return read-only NumPy arrays. In-place writes (pose.q[0] = ...), which previously failed silently, now raise ValueError; assign a new array instead.
  • Planner.TOPP sampling: Trajectory sample count is now max(2, ceil(duration / step) + 1) instead of int(duration / step), ensuring short or zero-duration paths are never empty and always include the endpoint.
  • AttachedBody transforms: Attached object poses now account for the articulation's base pose. Added ArticulatedModel.get_link_global_pose.
  • Stricter validation: Empty goal lists (plan_qpos, OMPLPlanner.plan), out-of-range fixed-joint indices, invalid/missing URDF files, and None passed to C++ collision/planning bindings now raise exceptions instead of crashing.

Bug fixes

  • Planner: Fixed pad_move_group_qpos indexing for non-prefix move groups, plan_qpos clip-before-pad ordering and 1D single-goal input, fixed-joint index mapping, and move-group-sized IK mask arguments.
  • plan_screw: Fixed division by zero on zero-displacement targets and premature failure on sub-millimeter moves.
  • OMPL: Fixed 32-bit integer overflow in goal-state enumeration (now enumerates ±2π variants only for multi-turn revolute joints, capped at 8) and deferred constrained ambient space initialization so robots with continuous joints can use unconstrained planning.
  • Kinematics: Fixed an upper joint-limit clamp typo in PinocchioModel.compute_IK_CLIK_JL.
  • SAPIEN conversion: SapienPlanningWorld now rescales vertices for non-unit-scale convex and triangle collision meshes instead of asserting unit scale.

Packaging and compatibility

  • Supports NumPy 2.x, Pinocchio 3.x (>=3,<4), Boost 1.88+, pybind11 >= 2.13, and urdfdom_headers 1.x/2.x.
  • libclang is no longer required when building from source.
  • Type stubs (mplib.pymp) are now included in wheels and source distributions.

Credits

MPlib was created by Minghua Liu, Jiayuan Gu, Kolin Guo, Xinsong Lin, and Hao Su (UC San Diego, Hao Su's Lab). MPlib2 builds on their work under the MIT License.

Full diff: 5225ea5...v0.3.0