Repository navigation
v0.1.6 - Schema v4 Hardware Dynamics Validation Suite
·
24 commits
to master
since this release
Schema v4 dynamics validation suite, xarm_ros2-aligned port-502 calibration, <= 40 °/s hardware dynamics speed ceiling, and bare-arm 20-pose hardware verification across all five arm families (xArm 5, xArm 6, xArm 7, Lite 6, and UF850). See CHANGELOG.md.
Install
pip install ufactory_mujoco-0.1.6-py3-none-any.whl # attached below; Python 3.12–3.14
ufactory-mujoco pick-place --robot xarm6 --headless
dynamics-sim-check --robot xarm6The wheel is a 111.8 MiB download (630.7 MiB of bundled models, meshes, task configs, and licenses once installed) and requires MuJoCo >=4,<5.
Added
ufactory_mujoco.dynamicssubpackage (preservingArmDynamicsandattach_payloadexports at bothufactory_mujocoandufactory_mujoco.dynamics), adding Schema v4 validation dataclasses, five-arm 20-pose expansion (configs/dynamics_validation_pose.yaml), closed-loop MuJoCo PD-hold probing, independentMujocoRneaReference/ optionalPinocchioReferenceoracles, L1/L2a/L2b/L3a/L3b static diagnostics, PD tracking-saturation gating,RealRobotSessionsafety checks, CSV/JSONL/_torque.pngreporting (gracefully skipping plots whenmatplotlibis absent), andpython -m ufactory_mujoco.dynamics <subcommand>CLI.- Four
ufactory_genesis-aligned console scripts inpyproject.toml:dynamics-sim-check,dynamics-sim-collision-check,dynamics-hardware-check, anddynamics-report-compare. - Shared port-502 calibration extraction helpers in
ufactory_mujoco.calibration(robot_name_from_firmware,fetch_kinematics_bytes,decode_kinematics_payload,DegenerateCalibrationError,export_kinematics_calibration), reused by bothscripts/gen_kinematics_params.pyandpython -m ufactory_mujoco.dynamics export-calibration. tests/test_dynamics_suite.pycovering five-arm 20-pose simulation regressions, Schema v4 cross-repo CSV/JSONL compatibility, mockedRealRobotSessionsafety gates,<= 40 °/sspeed-ceiling enforcement,xarm_ros2-aligned port-502 decode andxarm5degeneracy skip tests (exit 2), optionalPinocchioReferencecross-engine checks, anddefault_validation_posesjoint-limit bounds.
Changed
- Enforced a hard
<= 40 °/s(0.6981 rad/s,MAX_DYNAMICS_MOVE_SPEED_RAD_S) joint speed ceiling viavalidate_dynamics_move_speedacrossdynamics-hardware-check,dynamics-sim-collision-check,RealRobotSession.move_to,XArmRobot(..., max_joint_speed_rad_s=...), andufactory-mujoco dynamics --mode sdk-sim/real. - Updated
scripts/accept_installed.pyto track the 12th packaged YAML (configs/dynamics_validation_pose.yaml) and smoke-testdynamics-sim-check,dynamics-hardware-check --dry-run, anddynamics-report-compareunder read-only wheel installations. - Updated
.gitignoreto ignore localreports/and per-unitcalibrations/*.yamlexports (retaining the trackedcalibrations/xarm6_kinematics_L56A01.yamltest fixture).
Fixed
ufactory_mujoco.calibration: aligneddecode_kinematics_payloaddirectly withxarm_ros2(removing the legacyabs(value) > 1.0 -> /= 1000.0heuristic) and raisedDegenerateCalibrationErrorsoexport_kinematics_calibrationskips non-physical> ±2.0 mport-502 parallel-axis packets (e.g.xarm5) cleanly with exit code2and directs users to--nominal-modelwithout writing invalid YAMLs.ufactory_mujoco.kinematics_validation: adjusteddefault_validation_poses("lite6")["pose_b"](J3 = 0.6 rad) to stay within Lite 6'sjoint3range[-0.061087, 5.23599] rad, aligneddefault_validation_poses("uf850")["ready"]([0.0, -0.5, 0.0, 0.0, 0.5, 0.0]) withufactory_genesis/ runtime defaults, and alignedik_okwith the declared1.0 mm/0.5°tolerance on both MuJoCo and controller FK reprojections so singular wrist poses (home) do not fail solely on the inner solver's0.1 mmpolish flag.
Hardware Validation
- xArm 5 (bare flange, firmware
v2.8.2,--nominal-model, Python3.14.6, MuJoCo4.0.1): controller internal simulation self-collision check20/20 PASS(0.000002 radphysical drift); full 20-pose hardware static torque check20/20 PASS(torque_l2error0.520–0.780 Nm, mean0.622 Nm, L2a/L2b/L3a/L3b all20/20 pass). - xArm 6 (bare flange, firmware
v2.8.0, Python3.14.6, MuJoCo4.0.1): controller internal simulation self-collision check20/20 PASS(0.000000 radphysical drift); full 20-pose hardware static torque check20/20 PASS(torque_l2error0.470–0.765 Nm, mean0.619 Nm, L2a/L2b/L3a/L3b all20/20 pass). - xArm 7 (bare flange, firmware
v2.8.2, Python3.14.6, MuJoCo4.0.1): standard FK/IK validationPASS(FK<= 0.0003 mm, IK<= 0.095 mm), controller internal simulation self-collision check20/20 PASS(0.000004 radphysical drift); full 20-pose hardware static torque check20/20 PASS(torque_l2error0.816–3.303 Nm, mean1.750 Nm, L2a/L2b/L3a/L3b all20/20 pass). - Lite 6 (bare flange, firmware
v2.8.2, Python3.14.6, MuJoCo4.0.1): standard FK/IK validationPASS(FK<= 0.649 mm, IK<= 0.660 mm), controller internal simulation self-collision check20/20 PASS(0.000080 radphysical drift); full 20-pose hardware static torque check20/20 PASS(torque_l2error0.028–0.156 Nm, mean0.094 Nm, L2a/L2b/L3a/L3b all20/20 pass). - UF850 (bare flange, firmware
v2.8.100, Python3.14.6, MuJoCo4.0.1): standard FK/IK validationPASS(FK<= 0.854 mm, IK<= 0.871 mm), controller internal simulation self-collision check20/20 PASS(0.000004 radphysical drift); full 20-pose hardware static torque check20/20 PASS(torque_l2error0.086–0.569 Nm, mean0.240 Nm, L2a/L2b/L3a/L3b all20/20 pass).
Verified
- Local 3-environment sequential acceptance (
py312,py313,py314):ruff check .,git diff --check,99XML compilation (0errors,0warnings across all 3 envs), fullpytest tests(py312:386 passed, 601 subtests passed;py313:386 passed, 601 subtests passedincluding Pinocchio checks;py314:379 passed, 7 skipped, 596 subtests passed), CI headless example smoke suite (SMOKE PASSacross all 3 envs),30golden task reports per env with zero unintended drift (26match0.1.4,4lite6simulation reports matchv0.1.5byte-for-byte),twine check --strict, distribution verification (99models,444meshes,12configs,6licenses), and isolated wheel acceptance (47commandsPASSacross all 3 envs). - GitHub Actions CI run #44068096128: all 8 jobs passed (
lint,build,testandinstalledacross Python3.12,3.13,3.14with MuJoCo 4).
SHA-256
041022979d124cabec8bc8f8d93ab75fe3dea296111fda9eea0c58662e067c57 ufactory_mujoco-0.1.6-py3-none-any.whl
78134ab559dab3f7a0d663ea875124f7556cd26cf4358ad01a441a6a9e6a0ebd ufactory_mujoco-0.1.6.tar.gz