Skip to content

Release v0.3.12: joint dynamics profiles, UJ_BR_2403 inertials, and retrained RL checkpoints - #6

Merged
DanielWang123321 merged 7 commits into
xArm-Developer:mainfrom
DanielWang123321:main
Dec 4, 2026
Merged

DanielWang123321 merged 7 commits into
xArm-Developer:mainfrom
DanielWang123321:main

Conversation

@DanielWang123321

Copy link
Copy Markdown
Member

Added

  • Breaking (config sha256): Added identified arm joint dynamics to the five runtime robot configs (assets/configs/runtime/robots/{xarm5_1305,xarm6_1305,xarm7_1305,uf850,lite6}.yaml): arm.dynamics_profile (default compensated) and arm.dynamics (kt_output_nm_per_a, profiles.{compensated,raw}.{armature,damping,frictionloss}, and domain_randomization relative ranges, which are validated but not yet applied). compensated uses the identified rotor armature and viscous damping with zero Coulomb friction, because the controller compensates dry friction; raw adds the identified Coulomb frictionloss. apply_arm_joint_dynamics(...) (ufactory.dynamics.calibration) applies the selected profile in the pick-place and packaging scenes, the robot viewers and both RL environments. Previously Genesis used the URDF <dynamics> damping/friction (kept as the upstream xarm_ros2 baseline) and its default armature of 0.1. The new fields are part of the runtime config sha256 (xarm6 + gripper_g2: f4ecfc73… → f2ef50f1…). The published v0.3.11 Pick & Place checkpoint is therefore refused at load (runtime config hash); both the Pick & Place and Reach checkpoints were retrained under the new dynamics (see Changed).
  • Added per-unit dynamics calibration overlays (ufactory.dynamics.calibration.load_dynamics_calibration; schema 1, bound to robot_key and the full serial number; optional per-joint armature / damping / frictionloss, where frictionloss applies only under raw) and --dynamics-profile {compensated,raw} / --dynamics-calibration in the dynamics checks, whose reports now record the profile, the calibration path and sha256, and the applied joint armature and damping.

Changed

  • Updated the moving-link (link1..linkN) inertials of xarm5_1305, xarm6_1305 and xarm7_1305 (STL and GLB URDFs) from xarm_ros2 HT_BR2 to the official UJ_BR_2403 parameters for >= 1305 hardware (moving mass: xArm5 8.1568 → 8.5270 kg, xArm6 9.35164 → 9.6710 kg, xArm7 10.4315 → 11.7844 kg), keeping the unified Xarm+_P01 link_base, and refreshed assets/manifest.json. On a bare-flange xArm7 the mean static gravity-torque error of the reference poses fell from 1.47 to 0.15 N·m. urdf_sha256 bindings of xArm5/6/7 and composed URDFs change.
  • lite6_visual.glb.urdf now carries the same link_base inertia tensor as lite6.urdf (it was zero; no effect on the fixed-base arm).
  • Retrained the five Reach checkpoints at 989a5fb under the new physics (compensated joint dynamics, UJ_BR_2403 inertials; seed 7, -B 4096, 300 iterations) and replaced them on Hugging Face (UFACTORY-Developer/ufactory_genesis_rl, reach/). Selected checkpoints: model_250.pt (xArm5), model_275.pt (xArm6) and model_299.pt (xArm7, UF850, Lite6). Holdout evaluation (17000 / 17001, 512 episodes each): success 97.1–100% / 97.9–100%, mean terminal distance 4.23–5.78 / 4.19–5.71 mm; peak VRAM 1.92–2.56 GB on an RTX 4060 Ti. Updated the bilingual Reach README benchmark and examples.
  • Retrained the xArm6 + Gripper G2 Pick & Place RL checkpoint (C10 recipe, -B 2048, v0.3.12 physics with compensated joint dynamics and UJ_BR_2403 inertials) across a 10-seed benchmark (seeds 1..10, up to 1200 iterations): 9/10 (90%) passed strict blind evaluation and GLB B=1 replay (574/576 = 99.65% combined blind success across passing seeds, 0.00 IK rejects). Replaced seed-7 on Hugging Face (UFACTORY-Developer/ufactory_genesis_rl) with pick_place/xarm6-pick-place/seed-2/model_best.pt (early-stopped at 700 iterations): 100% dual-holdout (64/64 on seed 17000, 128/128 on seed 17500), 100% (64/64) blind evaluation on seed 18002 on both Colab L4 (max_press = 0.496 mm, mean/median error 7.55 / 7.28 mm) and local RTX 4060 Ti (max_press = 0.339 mm, mean/median error 7.36 / 7.38 mm), and GLB B=1 replay PASS. Updated bilingual Pick & Place README benchmark and inference examples.

Fixed

  • scripts/gen_kinematics_params.py skips a unit whose SN model code rules out per-unit kinematics compensation (Lite6 < 1006, xArm < 1304) with exit code 2 before it picks a file suffix. Previously the auto-filled suffix made the eligibility check raise ValueError, or print a misleading "loading it anyway" warning when a matching user YAML existed. --force still exports such units.

DanielWang123321 and others added 7 commits November 30, 2026 11:52
…LB inertia

- Update link1..linkN inertials in xarm{5,6,7}_1305 STL/GLB URDFs from HT_BR2 to official xarm_ros2 UJ_BR_2403 (>= 1305 hardware), preserving Xarm+_P01 link_base and joint dynamics
- Align lite6_visual.glb.urdf link_base inertia tensor with lite6.urdf
- Refresh assets/manifest.json SHA-256 entries, robot READMEs, and asset/Bio G2 inertial tests
Check SN eligibility before auto-filling the file suffix, so a unit whose
model code rules out per-unit kinematics compensation exits with code 2
instead of raising ValueError or loading a matching user YAML. --force
still exports such units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the Reach README benchmark and examples (en/zh) for the five
checkpoints retrained at 989a5fb under the compensated joint dynamics and
UJ_BR_2403 inertials, now on Hugging Face, and record them in CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DanielWang123321
DanielWang123321 merged commit 69b28bf into xArm-Developer:main Dec 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant