Skip to content

Add an opt-in elastic band with /elastic_band/toggle (--elastic_band) - #2

Merged
maxconwa merged 7 commits into
mainfrom
elastic-band
Nov 20, 2026
Merged

maxconwa merged 7 commits into
mainfrom
elastic-band

Conversation

@maxconwa

Copy link
Copy Markdown

What this does

Adds an opt-in elastic band to the Isaac sim, matching the RoboCasa H1-2 sim's.

  • --elastic_band hangs the floating H1-2 from a spring-damper (1e4 N/m, 2e3 N·s/m) between torso_link and an anchor 4 cm below its spawn.
  • /elastic_band/toggle (std_srvs/srv/Trigger) releases it, or enables it again. It is served on the sensor bridge's node and handled between physics steps.
  • Off by default: without the flag the robot floats free as before. The flag is refused together with --fix_base.

The force is rotated into the torso's current frame before it is stored. Isaac Lab's wrench composer rotates a world-frame force with the orientation it cached at its first call, which sent a fallen robot flying when the band was re-enabled.

Tested

In the real Isaac sim (RTX 4090), by GOLEM's tests/isaaclab/run_elastic_band.sh, 4/4 checks:

  • held within 6 cm of the anchor for 40 s with no controller;
  • collapsed when the service released it;
  • pulled back to the anchor from the fallen pose when re-enabled;
  • the service answered disabled, then enabled.

Without the flag, the Isaac smoke test and the Magpie robot-interop test pass as before. The CPU unit tests for the band are in GOLEM (tests/isaaclab/test_elastic_band.py).

GOLEM pins this commit in correlllab/GOLEM#37.

🤖 Generated with Claude Code

https://claude.ai/code/session_015EG7p9fHRyH9uB5cMqdm8P

maxconwa and others added 7 commits September 16, 2026 15:39
EventCfg only cleared the IMU history on reset, so env.reset() kept whatever
physical state the articulation reached during initialization: the first
recorded state could already be displaced and tilted ~40 degrees. Reset the
scene to its default root/joint state before clearing the IMU cache.

Verified in the GOLEM stack tests: both Isaac cases now start upright at the
default pose (z=0.995-1.0 m) instead of a scrambled pre-reset state.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
CL_Assets carries the MID-360 IMU chip as livox_imu_link: Livox's offset
plus the real robot's measured tilt, as a child of the point frame
livox_link. The IMU sensor reads that prim; Isaac Lab's Imu composes it
with its rigid ancestor. /livox/imu therefore has the real lever arm and
tilt, and the lidar stays on livox_link. Inspire keeps both on lidar_link.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
H12RobotDDS leaves LowState_.mode_machine at the IDL default 0, while the
real H1-2 reports 6 in every sample. golem_safety checks each /lowstate
against the robot's mode_machine, so the sim must report the same value.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MezUeauFS9tKMgZKJxo1HC
src/python/sensors/estop_server.py serves the real box's lines (ESTOP,BOOT,
then ESTOP,0|1 at 50 Hz) on 127.0.0.1:<15700 + ROS_DOMAIN_ID>; ENTER on the
sim's terminal toggles the button. GOLEM's H1-2 bringups point estop_node
there, so golem_safety runs the real robot's estop path in the sim.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MezUeauFS9tKMgZKJxo1HC
--elastic_band hangs the floating H1-2 from the RoboCasa H1-2 sim's band: a
spring-damper (1e4 N/m, 2e3 N*s/m) from torso_link to an anchor 4 cm below
its spawn. UnitreeMotorAction applies it before every physics step, and
/elastic_band/toggle (std_srvs/srv/Trigger), served on the sensor bridge's
node and handled between steps, releases it or enables it again. It is
refused with --fix_base; without the flag the robot floats free as before.

The force is rotated into the torso's current frame before it is stored:
Isaac Lab's wrench composer rotates a world-frame force with the orientation
it cached at its first call, which sends a fallen robot flying when the band
is re-enabled.

Checked in the Isaac sim by GOLEM's tests/isaaclab/run_elastic_band.sh: held
within 6 cm of the anchor for 40 s, released, and re-held from the fallen
pose (4/4).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015EG7p9fHRyH9uB5cMqdm8P
@maxconwa
maxconwa merged commit 3bd5dcc into main Nov 20, 2026
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