Skip to content

Align V1 fingertip contact settings with V2 - #118

Merged
stevenaya merged 2 commits into
enactic:masterfrom
stevenaya:fix/v1-finger-contact
Nov 24, 2026
Merged

stevenaya merged 2 commits into
enactic:masterfrom
stevenaya:fix/v1-finger-contact

Conversation

@stevenaya

Copy link
Copy Markdown
Contributor

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; no collision mesh or origin changes are included.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 06:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

Copy link
Copy Markdown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stevenaya
stevenaya marked this pull request as ready for review November 24, 2026 09:43
@stevenaya
stevenaya merged commit 0be02a7 into enactic:master Nov 24, 2026
10 checks passed
stevenaya added a commit that referenced this pull request Nov 24, 2026
Sync the V1 model with
[openarm_description](https://github.com/enactic/openarm_description)
`c710e19`, which refreshed the V1 meshes from the public CAD
(enactic/openarm_description#152) and moved the gripper TCP 5 mm forward
(enactic/openarm_description#153).

## Changes

- **Visual meshes:** regenerate the link0–7, hand, finger and pedestal
OBJs from the refreshed description DAEs. The new meshes keep the
original mounting coordinates, so all geom offsets are unchanged.
Fasteners present in the CAD are now included.
- **Materials:** keep the simplified MuJoCo palette (`matte_black`,
`metal_silver`, `default_material`). For each link, every description
color takes the material the previous model showed on the same surface.
Surfaces within 0.5 mm of an old visual are compared, so the overall
look matches `master`.
- **Normals:** write the description's 30° angle-limited normals into
the OBJs as explicit `vn` entries, like the V2 OBJs. Without them MuJoCo
averages normals across hard edges and produces uneven shading.
- **Finger collision:** replace `collision/gripper/finger.stl` with the
description's new 3,004-triangle closed shell. `hand.stl` is unchanged.
- **TCP:** move `hand_tcp` from 90 mm to 95 mm in both the single and
bimanual models, keeping its 5.5 mm offset from the 5 mm longer
fingertip.

Mass, inertia, joint origins and axes, limits, actuators and equality
constraints are unchanged.

## Previews

Each image shows `master` on the left and this PR on the right, with the
same camera and pose. The red sphere marks the TCP. Images are hosted on
the author's fork image branch and are not part of this PR's commits.

| View | master → this PR |
| --- | --- |
| Bimanual | ![V1
bimanual](https://raw.githubusercontent.com/stevenaya/openarm_mujoco/d091bc32f636f3248dc5bb965e3c346ddb31f390/v1-cad-refresh/v1_bimanual.png)
|
| Single arm | ![V1 single
arm](https://raw.githubusercontent.com/stevenaya/openarm_mujoco/d091bc32f636f3248dc5bb965e3c346ddb31f390/v1-cad-refresh/v1_arm.png)
|
| Upper arm cover | ![V1
link3](https://raw.githubusercontent.com/stevenaya/openarm_mujoco/d091bc32f636f3248dc5bb965e3c346ddb31f390/v1-cad-refresh/v1_link3.png)
|
| Gripper and TCP | ![V1
gripper](https://raw.githubusercontent.com/stevenaya/openarm_mujoco/d091bc32f636f3248dc5bb965e3c346ddb31f390/v1-cad-refresh/v1_gripper.png)
|

## Validation

- `v1/scene.xml`, `v1/openarm.xml` and `v1/openarm_bimanual.xml` load.
Each ran 1,000 steps with no warnings and no contacts at the home pose.
- Compared with `master`, compiled body masses, inertias, joint
positions, axes, ranges, actuator gains and equality data are identical.
The only body change is the massless TCP position.
- MuJoCo loads the authored normals (for example 18,608 normals for
`link3_0`).
- Single-arm grasp check with the #118 fingertip contact settings
(`condim=4`, elliptic cone, `impratio=10`), closing on fixed 40 mm and
20 mm blocks:

| Check | master (with #118) | This PR |
| --- | --- | --- |
| 40 mm block, finger positions | 20.59 / 20.82 mm | 20.67 / 20.90 mm |
| 20 mm block, finger positions | 10.67 / 10.80 mm | 10.76 / 10.89 mm |
| Max finger mismatch (40 / 20 mm) | 0.23 / 0.13 mm | 0.23 / 0.13 mm |
| Closed fingers first touch at | ≈0.75 mm | ≈0.85 mm |

Grasps hold without oscillation. The about 0.1 mm wider grip comes from
the new finger shape. The fingers touching just before full closure
already happens on `master`.
- No tests were added. The existing `tests/test_launch.py` covers V2
only.

## Scope

Targets `master` and is rebased onto #118. The finger collision geoms
keep #118's `fingertip` class; its contact and solver settings are
unchanged.
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.

2 participants