Skip to content

Add attached collision object for picked boxes in hangar_sim ML objective#727

Draft
davetcoleman wants to merge 1 commit into
mainfrom
claude/hangar-sim-attach-grasped-box
Draft

Add attached collision object for picked boxes in hangar_sim ML objective#727
davetcoleman wants to merge 1 commit into
mainfrom
claude/hangar-sim-attach-grasped-box

Conversation

@davetcoleman

@davetcoleman davetcoleman commented Jun 20, 2026

Copy link
Copy Markdown
Member

Summary

Three changes to the ML Move Boxes to Loading Zone workflow in hangar_sim.

Attach grasped box as a collision object

The pick/place subtree (move_boxes_to_loading_zone_from_waypoint.xml) now, right after the vacuum grips a box:

  • AddCollisionMesh — adds package://hangar_sim/objectives/box.stl to the planning scene at the box's ICP-refined pose ({target_pose}, world frame), with overwrite="true" so a re-picked id replaces the stale world entry.
  • AttachObject — attaches it to grasp_link, with the suction-cup links allowed to touch it.

On release at the loading zone it is DetachObject-ed back into the world. This makes the move to the loading zone plan around the carried box instead of ignoring it.

It also clears grasp-candidate markers each pick loop (ClearAllVisualMarkers) so stale grasp_* markers (lifetime 0 = persist forever) no longer accumulate in the 3D view.

Reframe scene camera

Nudged the scene_camera (and its paired optical-frame site) in hangar_scene.xml toward the aircraft for better framing.

Widen suction-cup collision

vacuum.xml: suction-cup collision margin/gap widened 0.02 -> 0.04.

Notes

  • Planning-scene + sim-tuning only.
  • Single shared object id grasped_box: with overwrite, only the most-recently-placed box persists as a world collision object (carry-time avoidance works every pick). A unique id per pick would persist every placed box; deferred as out of scope.

Release notes

None

@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ae43d102-c730-49b4-8e7c-0a8ecd296c2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

…era, widen suction-cup collision

The ML box-picking objective now adds the box mesh to the planning scene at its ICP-refined pose and attaches it to grasp_link on pickup, so the move to the loading zone plans around the carried box; it is detached on release. Grasp candidate markers are cleared each pick loop. The scene camera is nudged toward the aircraft for better framing, and the suction-cup collision margin/gap is widened 0.02 -> 0.04.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@davetcoleman davetcoleman force-pushed the claude/hangar-sim-attach-grasped-box branch from 8fc8a9a to 0bae7b7 Compare June 20, 2026 16:52
@github-actions

Copy link
Copy Markdown

MoveIt Pro Example WS - Objectives Integration Test Report

@github-actions

Copy link
Copy Markdown

MoveIt Pro Example WS - Objectives Integration Test Report

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.

1 participant