Repository navigation
feat(world): the floor follows the chair's height (planner config ground) - #77
Draft
SwapnilPande wants to merge 1 commit into
Draft
SwapnilPande wants to merge 1 commit into
SwapnilPande wants to merge 1 commit into
Conversation
…ound`)
With `ground: {layer: floor, frame: base_footprint}` in the planner config,
the node looks up arm_mount <- base_footprint before every plan and moves the
floor layer's boxes so their top is on that frame's z = 0. The arm rides on
the seat, so the chair and occupant layers stay put in arm_mount; only the
floor moves when the seat elevates. No transform, a ground tilted more than
2 deg, or a moved floor the planner refuses (reaching the arm's base) refuses
the plan. Off unless configured.
Core: CuRoboPlanner.set_ground(z), applied to every later world (pushes,
add_obstacles, reset), and geometry.ground_plane. Node: tf2_ros listener,
created only with `ground`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Seat elevation is coming (RAMMP-mib-fw #95/#96). The arm is mounted on the seat, so when the seat goes up the chair and occupant layers stay where they are in
arm_mount, but the floor drops. This PR makes the floor layer follow TF.ground: {layer: floor, frame: base_footprint}. Off when absent, so every existing robot plans exactly as before.ground, it starts atf2_roslistener and, before every plan, looks uparm_mount <- base_footprint. It then moves the floor layer so the layer's top sits on that frame's z = 0.arm_mount(we only move the floor up and down; tilt comes later with the MIB's pitch/roll), or when the planner refuses the moved floor (for example, the floor reaching the arm's base spheres).CuRoboPlanner.set_ground(z)re-places the floor in the installed world. The rest of the world is left alone, and anything anignore=push excluded stays excluded. The new height carries into every later world (update_world,add_obstacles,reset). A change under 1 mm sends cuRobo nothing; a real change is an in-placeupdate_world, so the CUDA graphs stay valid.geometry.ground_planegives the plane's height underarm_mountand its tilt.Scope, as agreed in #flatbot-support: scene objects pushed with
set_worldare not moved. They're perceived through TF at the current seat height and planned right away, so they're already correct. A scene perceived before a lift and reused after it is the case this leaves out.Enabling it
Nothing in rammp-deployments turns this on yet.
base_footprintdoesn't exist until the MIB publishesodom -> base_footprint -> base_link(RAMMP-mib-fw #95). Until then,frame: base_linkon gen_1_5 reproduces today's floor through TF:world.yamlputsarm_mount0.5020 m abovebase_link, and the floor layer's top is at -0.5019. That makes it a way to check the plumbing on the robot first.Open questions
Tests
core/tests/test_planner_cpu.py: the floor moves and nothing else does; the height holds through a push withignore=,add_obstaclesandreset; a ground reaching the arm's base is refused and the old one kept; agroundwithout a frame is refused;ground_plane's height and tilt. 41 passed (CPU).rammp_curobo_ros/test/test_ground.py: no lookup withoutground, the floor goes where TF says, and a missing transform, a tilted ground or a planner refusal each refuse the plan. Full node suite inros:humble-ros-baseas CI runs it: 67 passed. The existing test fakes gainedground_frame = None.🤖 Generated with Claude Code