Repository navigation
Use six-part V1 pedestal collisions and a 700-face V1/V2 chest hull - #113
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Preview: https://stevenaya.github.io/openarm_mujoco See https://github.com/enactic/openarm_mujoco/blob/-/README.md#pull-request-and-preview how to configure preview on fork. |
ba26234 to
d4604db
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
V1 joint2, joint4 and joint6 rotate about the correct axes, but their origin frames differ from description. Align the origins while compensating geometry, centers of mass and child-body transforms. ## Changes - Align joint2, joint4 and joint6 in the single arm and both bimanual arms with description: nine origins in total. - Compensate local geometry, inertial-center and child-body positions. Keep the assembled geometry, joint axes and limits, TCP motion, masses, COM-centered inertia tensors and actuator settings unchanged. ## Validation - After splitting: all 3 existing Python tests pass; both V1 robot entries and all 20 V2 scene entries load. No tests were added. - Prior focused validation of this patch: The unchanged origin-only patch was checked at 104 poses each for single-arm and bimanual V1 models: geometry, TCP, world COM/inertia, mass matrices, bias forces and contact pairs agree within floating-point precision. Both models and the V1 scene ran 1,000 steps without warnings. - Reapplying the four independent patches reproduces the original combined PR tree exactly. ## Scope and dependencies Targets `master` independently; no dependency on the other split PRs or external-control PR #112. Split from the original combined #113; this PR contains only the change described above.
The V2 ZED mount has visual and collision geometry but no declared inertia. Add a fixed mount body in the pedestal and Cell assemblies using the existing description parameters. ## Changes - Add a fixed `openarm_body_zed_support_base_link` in both pedestal and Cell assemblies, using [description's declared mount mass and full inertia](https://github.com/enactic/openarm_description/blob/0d0240be9a50ca96148fa58abd158f2b45cb4468/assets/accessory/zed_mount/config/inertials/nominal.yaml). - The mount contributes **0.13704 kg**. Keep the Cell lifter itself at **2.82498 kg**; lifter plus mount totals **2.96202 kg**, excluding the arms. - Preserve visual/collision placement and named camera poses. The Cell mount and head cameras continue to move with the lifter. - No additional camera-body mass is guessed: the source camera description does not declare it separately. This synchronizes model parameters, not a new physical weighing. ## Validation - After splitting: all 3 existing Python tests pass; both V1 robot entries and all 20 V2 scene entries load. No tests were added. - Prior focused validation of this patch: The unchanged mount-only patch was checked at nine configurations per assembly, including Cell lift heights of 0, 0.1 and 0.3 m. Geometry, named camera poses and contacts are preserved. The lift mass-matrix entry increases by 0.13704 kg and its gravity term by 1.3443624 N. Pedestal arm dynamics remain unchanged; both assemblies ran 1,000 steps without warnings. - Reapplying the four independent patches reproduces the original combined PR tree exactly. ## Scope and dependencies Targets `master` independently; no dependency on the other split PRs or external-control PR #112. Split from the original combined #113; this PR contains only the change described above.
The basic pedestal home keyframe places both J4 joints at 90 degrees but omits control targets, which default to zero on direct keyframe reset. Supply matching position targets without changing the home pose. ## Changes - Keep both J4 positions at 90 degrees and add matching `ctrl` values to `pedestal.xml`. - Direct keyframe loading no longer gives those position actuators a zero target. Other pedestal scene home keyframes already supplied matching controls. ## Validation - After splitting: all 3 existing Python tests pass; both V1 robot entries and all 20 V2 scene entries load. No tests were added. - Prior focused validation of this patch: All 19 V2 entries with a home keyframe were checked for matching position-control targets. Direct reset of the basic pedestal gives J4 qpos = ctrl = 1.570796 on both sides. This removes the keyframe target mismatch; it does not add gravity compensation. - Reapplying the four independent patches reproduces the original combined PR tree exactly. ## Scope and dependencies Targets `master` independently; no dependency on the other split PRs or external-control PR #112. Split from the original combined #113; this PR contains only the change described above.
V1 finger contacts currently use `condim=3`, so the configured torsional friction coefficient is inactive. Align V1 with V2's finger contact and global friction-solver settings. ## Changes - Add a `fingertip` default inheriting the existing collision settings with `condim=4`, and apply it to the two single-arm and four bimanual finger collision geoms. - Set `cone="elliptic"` and `impratio="10"` in both V1 robot definitions. `v1/scene.xml` inherits these through its existing include. - Preserve all collision exclusions, non-finger contact dimensions, friction coefficients, contact softness, margins, masks, mimic constraints and actuator parameters. Meshes and V2 files are unchanged. ## Validation - All 3 existing Python tests pass; no tests added to the repository. - Load the V1 single-arm, bimanual and scene entries and verify the effective finger contact dimensions and solver settings. - Compare compiled model arrays against master: collision exclusions (13 single-arm / 28 bimanual), other contact parameters, inertia, mimic and actuator parameters are unchanged. - Run each V1 entry for 1,000 steps with finite state and no MuJoCo warnings. This is a model smoke check, not a grasping-performance benchmark. - `git diff --check` passes. ## Dependencies Targets master independently. No dependency on #113–#116 or the external-control PR.
V1 currently uses a column-only visual mesh for pedestal collision. Replace it with six convex parts, and improve the chest collision approximation in both V1 and V2.
Changes
collision/body/split_6parts/; they are byte-identical to the corresponding V2 parts and use metres.Collision previews
Each pair uses the same camera and joint pose. Solid colors identify collision parts; shadows are disabled for comparison. The robot-context views show pedestal collisions alongside arm visuals. These colors are for the previews only. Images are hosted on the author's fork image branch and are not part of the feature commits.
Validation
Scope and dependencies
Targets
masterindependently; no dependency on the other split PRs or external-control PR #112. This PR retains only the collision portion of the original #113. The other changes are published separately.Related independent draft PRs: #114 (V1 origins), #115 (ZED mount inertia), and #116 (home controls).