Repository navigation
Releases
MPlib2 v0.3.1
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 mplib2Prebuilt 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 broadcastValueErrorwhen passing a move-group-sizedcurrent_qposwithfix_joint_limits=True(now pads before clipping, matchingplan_qpos).- FCL distance queries: Fixed a
SIGSEGVin FCL 0.7.0 when computing distances involvingPlaneorHalfspacegeometries under the defaultGST_LIBCCDsolver. Both Python (fcl.distance) and C++ (FCLModel/PlanningWorld) paths now fall back toGST_INDEPonly forPlane/Halfspace, preserving signed distance behavior for bounded shapes.
Packaging and documentation
- Python 3.13 and 3.14: Added prebuilt Linux
x86_64wheels (cp313,cp314) and CI coverage. - Self-contained Quickstart: Updated the README quickstart so it runs immediately after
pip install mplib2without cloning the repository. - Dev versioning: Untagged development builds now use PEP 440
.post0.devnumbering so they sort above the latest release.
Full diff: v0.3.0...v0.3.1
MPlib2 v0.3.0
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 mplib2Prebuilt 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(importmplib). Requires Python >= 3.10 and NumPy >= 1.26 (both NumPy 1.26 and 2.x are supported). - Read-only
Pose.q:Pose.qandPose.get_q()now return read-only NumPy arrays. In-place writes (pose.q[0] = ...), which previously failed silently, now raiseValueError; assign a new array instead. Planner.TOPPsampling: Trajectory sample count is nowmax(2, ceil(duration / step) + 1)instead ofint(duration / step), ensuring short or zero-duration paths are never empty and always include the endpoint.AttachedBodytransforms: Attached object poses now account for the articulation's base pose. AddedArticulatedModel.get_link_global_pose.- Stricter validation: Empty goal lists (
plan_qpos,OMPLPlanner.plan), out-of-range fixed-joint indices, invalid/missing URDF files, andNonepassed to C++ collision/planning bindings now raise exceptions instead of crashing.
Bug fixes
- Planner: Fixed
pad_move_group_qposindexing for non-prefix move groups,plan_qposclip-before-pad ordering and 1D single-goal input, fixed-joint index mapping, and move-group-sized IKmaskarguments. 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:
SapienPlanningWorldnow 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, andurdfdom_headers1.x/2.x. libclangis 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