From 0484a62afd06b134bd79a8072f209aeee7eec014 Mon Sep 17 00:00:00 2001 From: Dave Coleman Date: Fri, 19 Jun 2026 22:38:10 -0400 Subject: [PATCH] feat(hangar_sim): persist placed boxes as planning-scene obstacles Picks add each box to the planning scene under a unique id (placed_box_N) and detach it into the world on release, so the whole-body base+arm planner avoids every already-placed box on later picks instead of driving over them (#19973). ResetPlanningSceneObjects at objective start clears boxes left by a previous run, and a placed_count counter ported across perception passes keeps the ids unique. Also reframes the scene camera, widens the suction-cup collision margin, and clears stale grasp markers each pick. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/hangar_sim/description/hangar_scene.xml | 4 +- src/hangar_sim/description/vacuum.xml | 4 +- .../ml_move_boxes_to_loading_zone.xml | 11 +++ ...ve_boxes_to_loading_zone_from_waypoint.xml | 74 ++++++++++++++++++- 4 files changed, 88 insertions(+), 5 deletions(-) diff --git a/src/hangar_sim/description/hangar_scene.xml b/src/hangar_sim/description/hangar_scene.xml index 405962ca5..7d6a86296 100644 --- a/src/hangar_sim/description/hangar_scene.xml +++ b/src/hangar_sim/description/hangar_scene.xml @@ -42,12 +42,12 @@ diff --git a/src/hangar_sim/objectives/ml_move_boxes_to_loading_zone.xml b/src/hangar_sim/objectives/ml_move_boxes_to_loading_zone.xml index cbcf82c12..8ff4f1ce6 100644 --- a/src/hangar_sim/objectives/ml_move_boxes_to_loading_zone.xml +++ b/src/hangar_sim/objectives/ml_move_boxes_to_loading_zone.xml @@ -7,6 +7,10 @@ _favorite="true" > + + + + @@ -27,12 +36,14 @@ negative_prompts="yellow ladder;" prompts="small boxes" place_pose="{place_pose}" + placed_count="{placed_count}" erosion_size="10" /> + + + + + + + + + + + + @@ -332,6 +363,37 @@ gripper_command_action_name="/vacuum_gripper/gripper_cmd" position="1.0" /> + + + + + + + + + + + @@ -361,6 +432,7 @@ +