Repository navigation
Add an opt-in elastic band with /elastic_band/toggle (--elastic_band) - #2
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Adds an opt-in elastic band to the Isaac sim, matching the RoboCasa H1-2 sim's.
--elastic_bandhangs the floating H1-2 from a spring-damper (1e4 N/m, 2e3 N·s/m) betweentorso_linkand 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.--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:disabled, thenenabled.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