Skip to content

v0.1.6 - Schema v4 Hardware Dynamics Validation Suite

Choose a tag to compare

@DanielWang123321 DanielWang123321 released this 17 Nov 11:08
· 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 xarm6

The 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.dynamics subpackage (preserving ArmDynamics and attach_payload exports at both ufactory_mujoco and ufactory_mujoco.dynamics), adding Schema v4 validation dataclasses, five-arm 20-pose expansion (configs/dynamics_validation_pose.yaml), closed-loop MuJoCo PD-hold probing, independent MujocoRneaReference / optional PinocchioReference oracles, L1/L2a/L2b/L3a/L3b static diagnostics, PD tracking-saturation gating, RealRobotSession safety checks, CSV/JSONL/_torque.png reporting (gracefully skipping plots when matplotlib is absent), and python -m ufactory_mujoco.dynamics <subcommand> CLI.
  • Four ufactory_genesis-aligned console scripts in pyproject.toml: dynamics-sim-check, dynamics-sim-collision-check, dynamics-hardware-check, and dynamics-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 both scripts/gen_kinematics_params.py and python -m ufactory_mujoco.dynamics export-calibration.
  • tests/test_dynamics_suite.py covering five-arm 20-pose simulation regressions, Schema v4 cross-repo CSV/JSONL compatibility, mocked RealRobotSession safety gates, <= 40 °/s speed-ceiling enforcement, xarm_ros2-aligned port-502 decode and xarm5 degeneracy skip tests (exit 2), optional PinocchioReference cross-engine checks, and default_validation_poses joint-limit bounds.

Changed

  • Enforced a hard <= 40 °/s (0.6981 rad/s, MAX_DYNAMICS_MOVE_SPEED_RAD_S) joint speed ceiling via validate_dynamics_move_speed across dynamics-hardware-check, dynamics-sim-collision-check, RealRobotSession.move_to, XArmRobot(..., max_joint_speed_rad_s=...), and ufactory-mujoco dynamics --mode sdk-sim/real.
  • Updated scripts/accept_installed.py to track the 12th packaged YAML (configs/dynamics_validation_pose.yaml) and smoke-test dynamics-sim-check, dynamics-hardware-check --dry-run, and dynamics-report-compare under read-only wheel installations.
  • Updated .gitignore to ignore local reports/ and per-unit calibrations/*.yaml exports (retaining the tracked calibrations/xarm6_kinematics_L56A01.yaml test fixture).

Fixed

  • ufactory_mujoco.calibration: aligned decode_kinematics_payload directly with xarm_ros2 (removing the legacy abs(value) > 1.0 -> /= 1000.0 heuristic) and raised DegenerateCalibrationError so export_kinematics_calibration skips non-physical > ±2.0 m port-502 parallel-axis packets (e.g. xarm5) cleanly with exit code 2 and directs users to --nominal-model without writing invalid YAMLs.
  • ufactory_mujoco.kinematics_validation: adjusted default_validation_poses("lite6")["pose_b"] (J3 = 0.6 rad) to stay within Lite 6's joint3 range [-0.061087, 5.23599] rad, aligned default_validation_poses("uf850")["ready"] ([0.0, -0.5, 0.0, 0.0, 0.5, 0.0]) with ufactory_genesis / runtime defaults, and aligned ik_ok with the declared 1.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's 0.1 mm polish flag.

Hardware Validation

  • xArm 5 (bare flange, firmware v2.8.2, --nominal-model, Python 3.14.6, MuJoCo 4.0.1): controller internal simulation self-collision check 20/20 PASS (0.000002 rad physical drift); full 20-pose hardware static torque check 20/20 PASS (torque_l2 error 0.520–0.780 Nm, mean 0.622 Nm, L2a/L2b/L3a/L3b all 20/20 pass).
  • xArm 6 (bare flange, firmware v2.8.0, Python 3.14.6, MuJoCo 4.0.1): controller internal simulation self-collision check 20/20 PASS (0.000000 rad physical drift); full 20-pose hardware static torque check 20/20 PASS (torque_l2 error 0.470–0.765 Nm, mean 0.619 Nm, L2a/L2b/L3a/L3b all 20/20 pass).
  • xArm 7 (bare flange, firmware v2.8.2, Python 3.14.6, MuJoCo 4.0.1): standard FK/IK validation PASS (FK <= 0.0003 mm, IK <= 0.095 mm), controller internal simulation self-collision check 20/20 PASS (0.000004 rad physical drift); full 20-pose hardware static torque check 20/20 PASS (torque_l2 error 0.816–3.303 Nm, mean 1.750 Nm, L2a/L2b/L3a/L3b all 20/20 pass).
  • Lite 6 (bare flange, firmware v2.8.2, Python 3.14.6, MuJoCo 4.0.1): standard FK/IK validation PASS (FK <= 0.649 mm, IK <= 0.660 mm), controller internal simulation self-collision check 20/20 PASS (0.000080 rad physical drift); full 20-pose hardware static torque check 20/20 PASS (torque_l2 error 0.028–0.156 Nm, mean 0.094 Nm, L2a/L2b/L3a/L3b all 20/20 pass).
  • UF850 (bare flange, firmware v2.8.100, Python 3.14.6, MuJoCo 4.0.1): standard FK/IK validation PASS (FK <= 0.854 mm, IK <= 0.871 mm), controller internal simulation self-collision check 20/20 PASS (0.000004 rad physical drift); full 20-pose hardware static torque check 20/20 PASS (torque_l2 error 0.086–0.569 Nm, mean 0.240 Nm, L2a/L2b/L3a/L3b all 20/20 pass).

Verified

  • Local 3-environment sequential acceptance (py312, py313, py314): ruff check ., git diff --check, 99 XML compilation (0 errors, 0 warnings across all 3 envs), full pytest tests (py312: 386 passed, 601 subtests passed; py313: 386 passed, 601 subtests passed including Pinocchio checks; py314: 379 passed, 7 skipped, 596 subtests passed), CI headless example smoke suite (SMOKE PASS across all 3 envs), 30 golden task reports per env with zero unintended drift (26 match 0.1.4, 4 lite6 simulation reports match v0.1.5 byte-for-byte), twine check --strict, distribution verification (99 models, 444 meshes, 12 configs, 6 licenses), and isolated wheel acceptance (47 commands PASS across all 3 envs).
  • GitHub Actions CI run #44068096128: all 8 jobs passed (lint, build, test and installed across Python 3.12, 3.13, 3.14 with MuJoCo 4).

SHA-256

041022979d124cabec8bc8f8d93ab75fe3dea296111fda9eea0c58662e067c57  ufactory_mujoco-0.1.6-py3-none-any.whl
78134ab559dab3f7a0d663ea875124f7556cd26cf4358ad01a441a6a9e6a0ebd  ufactory_mujoco-0.1.6.tar.gz