Skip to content

fix(gantry): ignore [ / ] rope adjustment when gantry is disabled#6

Merged
lgulich merged 1 commit intoNVIDIA-ISAAC-ROS:impedence-control-supportfrom
eraimondi-jpg:eraimondi/gantry-disabled-key
Apr 28, 2026
Merged

fix(gantry): ignore [ / ] rope adjustment when gantry is disabled#6
lgulich merged 1 commit intoNVIDIA-ISAAC-ROS:impedence-control-supportfrom
eraimondi-jpg:eraimondi/gantry-disabled-key

Conversation

@eraimondi-jpg
Copy link
Copy Markdown

Summary

  • [ / ] while the gantry is disabled previously silently modified rope_length_ and logged a misleading length-change message with no indication the gantry was inactive
  • Ticks are now discarded when disabled; a WARN is emitted instead: VirtualGantryPlugin: gantry disabled — rope length unchanged
  • Keys are still consumed in on_key() so they don't fall through to MuJoCo's camera handler
  • README keyboard-controls table updated to document the disabled-state behavior

Follow-up to #3.

Test plan

  • Launch G1 MuJoCo sim with gantry enabled; press [/] → rope shortens/lengthens as expected
  • Press G to disable gantry; press [/] → WARN logged, rope length unchanged, MuJoCo camera does not switch
  • Press G to re-enable; press [/] → rope adjustment resumes normally

🤖 Generated with Claude Code

Pressing [ or ] while the gantry is disabled previously modified
rope_length_ and logged a misleading length-change message, giving no
indication that the gantry was inactive. Now the ticks are discarded
and a WARN is emitted instead. Keys are still consumed so they don't
fall through to the MuJoCo viewer camera handler.

README updated to document the disabled-state behavior.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lgulich lgulich merged commit 03d0045 into NVIDIA-ISAAC-ROS:impedence-control-support Apr 28, 2026
7 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.

2 participants