Skip to content

v0.0.8 - Multi-Arm Manipulation, RL Suite, Self-Contained Packaging & Hardware Safety Gate

Choose a tag to compare

@DanielWang123321 DanielWang123321 released this 28 Oct 10:16
· 63 commits to master since this release

Release v0.0.8

Completes milestones 0.0.5–0.0.8 (Batches 1–9 aligned with ufactory_genesis 0.3.2), delivering multi-arm manipulation, obstacle avoidance, five-arm dynamics validation, self-contained wheel/sdist packaging, reinforcement learning (Reach + Pick-and-Place) with checkpoint contracts, and real-robot XArmRobot integration with a fail-closed hardware safety gate.


🚀 Key Features & Highlights

1. Multi-Arm Registry, Strict YAML Task Configs & Gripper Contact (ufactory_mujoco/robots.py, config.py, grippers.py)

  • Typed 5-Arm Registry: Unified robot profiles (lite6, xarm5, xarm6, xarm7, uf850), gripper compatibility (gripper_g2, bio_gripper_g2, lite6_gripper, lite6_vacuum_gripper), scene path resolution, and frozen Reach workspaces.
  • Strict YAML Task Configurations: Default and per-robot overlays (configs/) with unknown-key rejection, finite-number validation, and path-independent SHA-256 content hashes.
  • Physical Jaw Gap & Bilateral Contact: Millimeter jaw-gap mapping (gap_to_position / position_to_gap) and bilateral finger-pad contact verification (require_bilateral_contact) before lifting.

2. Multi-Arm Pick-and-Place, Box-Packing & Preflight (ufactory_mujoco/preflight.py, collision.py, path_planning.py, tasks/)

  • Five-Arm Pick-and-Place (05_pick_place.py / ufactory-mujoco pick-place): Supports all five arm+gripper combinations under servo_cartesian and servo_j (place_error < 50 mm, home_drift < 10 mm).
  • Five-Arm Box-Packing Showcase (10_box_pack.py / ufactory-mujoco box-pack): Multi-cycle free-fall release 50 mm above the box rim with speed scaling and 1 mm final collision-bound verification.
  • Trajectory Preflight & RRT-Connect (09_obstacle_avoidance.py): Joint-limit and collision preflight before execution, zero-step --dry-run reporting, and automatic RRT-Connect + path shortcutting around obstacles.

3. Five-Arm Dynamics Validation & Self-Contained Packaging (ufactory_mujoco/tasks/dynamics.py, pyproject.toml, .github/workflows/ci.yml)

  • Five-Arm Dynamics Suite (08_dynamics.py / ufactory-mujoco dynamics): Validates SPD mass matrices, gravity/Coriolis terms, ID/FD reciprocity, feedforward torque utilization, collision fixtures, and step-by-step monitored motion across all five bare arms (4201 steps/arm, zero penetration/limit violations), plus the xArm 6 3 kg payload baseline.
  • Self-Contained Wheel & sdist: Bundles all 48 MJCF XML models, 135 deduplicated meshes, 11 YAML configs, and 5 license notices into ufactory_mujoco, enabling source-free execution from any directory via ufactory-mujoco {pick-place,box-pack,dynamics}.
  • CI Matrix: Automated GitHub Actions workflow covering Python 3.12 / 3.13 / 3.14 editable tests, sdist -> wheel build & twine check, checkout-free read-only wheel acceptance (44 CLI checks), and CPU PyTorch RL tests.

4. Reinforcement Learning: Five-Arm Reach & Tabletop Pick-and-Place (ufactory_mujoco/rl/)

  • Declarative Recipes & Checkpoint Contracts (ufactory_mujoco/rl/artifacts.py): Strict recipe.yaml validation, canonical config.yaml SHA-256 hashing, .checkpoint_manifest.json verification (load_validated_ppo), and provenance.json tracking.
  • Five-Arm TCP Reaching (reach_env.py, examples/rl/reach/): Calibrated workspaces and lite-visual training (~0.3 GB RAM/env) achieving 96.3%–100% success at the strict < 5 mm threshold across lite6, xarm5, xarm6, xarm7, and uf850.
  • Tabletop Cube Pick-and-Place (pick_place_env.py, examples/rl/pick_place/): 4D Cartesian + Gripper G2 gap increment action space on xArm 6 + Gripper G2, independent PickPlaceMetrics & PickPlaceExpert, achieving 100% evaluation success with max touchdown press 0.115 mm (<= 1.0 mm) and mean placement error 3.86 mm (<= 20.0 mm).

5. Real-Robot XArmRobot, Kinematic Calibration & Safety Gate (ufactory_mujoco/xarm_robot.py, calibration.py, safety.py, kinematics_validation.py)

  • XArmRobot(RobotInterface): Read-only observation session by default (read_only=True); physical motion and gripper commands are locked until unlocked with an unforgeable MotionApproval token.
  • Per-Unit Kinematic Calibration & Controller FK/IK Validation: Extracts real controller joint offsets (scripts/gen_kinematics_params.py -> calibrations/xarm6_kinematics_L56A01.yaml), patches MuJoCo models, and cross-validates against firmware FK/IK (xArm 6 SN XI130505L56A01, v2.8.0: FK max error 0.0013 mm / 0.0002°, IK round-trip 0.1501 mm).
  • Controller Internal Simulation (sdk-sim) & Single-Cycle Safety Gate: Replays velocity-bounded trajectories on the controller's internal virtual robot (set_simulation_robot(True)) with automatic finally restoration and verified zero physical joint drift (0.002 mrad <= 1.0 mrad), while enforcing cycles == 1, calibration SHA-256 matching, and --confirm-real for hardware modes.

✅ Verification Summary

  • 276 automated unit & integration tests passing (16 optional-dependency skips in core-only env; 41 RL tests passing in CPU RL env).
  • 44 source-free installed-wheel CLI checks passing under read-only package permissions.
  • Live xArm 6 hardware acceptance (192.168.1.60) passing across FK/IK validation, read-only static/dynamics checks, and pick-place / box-pack / dynamics sdk-sim runs.