Skip to content
PPHYSICAL AI GUIDESTART HERE →

Field guide

MoveIt 2 Planning Scenes: Verify Obstacles Before Planning

Debug missing obstacles in MoveIt 2. Check scene ownership, synchronous updates, geometry, attached objects, and collision permissions with a reusable acceptance worksheet.

By Physical AI Guide Editorial TeamPublished Updated

The short answer

Before requesting a plan, verify the obstacle in the scene used by the planning node, not just in a visualization. Check the update result, read back the object’s geometry and pose, inspect attachment and collision permissions, and run a controlled collision check in an isolated software setup.

The MoveIt 2 C++ interface explicitly distinguishes asynchronous addCollisionObjects from synchronous applyCollisionObjects. It also warns that other planning scene monitors do not receive the synchronous update unless they subscribe to move_group’s monitored scene. A successful update to one scene is not confirmation that every consumer has the same scene.

This guide provides a diagnostic sequence and a reusable scene acceptance worksheet. It is based on official MoveIt documentation and pinned source reviewed on November 6, 2026. The documentation is the Rolling/main material, not a guarantee for every ROS distribution or installed MoveIt release. We did not execute MoveIt, run the proposed checks, or move a robot. Match the APIs to your installed version before using the procedure.

First identify which scene owns the decision

Start with a concrete question: which node and scene will answer this planning request? Record its namespace, request endpoint, planning group, and scene-update route. Also record the scene source displayed in your visualization and any separate monitor used by another application.

The interface header accepts a namespace for discovering MoveIt topics and services. Its synchronous apply methods name the move_group node as the target. Do not treat two similarly named interfaces in different namespaces as the same recipient.

Our proposed evidence chain is:

  1. Identify the planning owner and exact request.
  2. Send the intended scene change to that owner.
  3. Check completion and application result.
  4. Query the relevant world and attached objects.
  5. Verify geometry, frame, pose, and collision exclusions.
  6. Run the controlled diagnostic against that scene.
  7. Preserve the evidence with the planning result.

This is an integration procedure, not a built-in MoveIt transaction spanning sensing, planning, and execution. The developer-stack guide explains where motion planning sits between scene inputs and hardware-facing control.

Choose an update mechanism with an explicit completion boundary

The official planning scene ROS API tutorial describes two routes: a service call that waits for the diff to be applied, and a topic publication that can continue before application. Its example checks the service response’s success field and handles timeout separately.

Update route What the reviewed source establishes What to verify before the dependent plan
addCollisionObjects Asynchronous world update through /planning_scene The target scene contains the intended objects, not merely that the function returned
applyCollisionObjects Synchronous application to the move_group scene The returned result and relevant object readback
applyPlanningScene Synchronous application of a scene message to move_group Result, diff intent, and the resulting world and robot state
Separate planning scene monitor Not automatically updated by these apply calls Its subscription to the monitored scene and its observed contents

The C++ header comments also describe removeCollisionObjects as asynchronous. Removal needs a completion check when a subsequent operation depends on it.

Do not replace completion evidence with an arbitrary sleep. A delay may make a demonstration appear reliable without defining what the application knows. If the service fails or times out, mark the scene state unresolved and withhold the dependent planning step until you re-establish it. That is our proposed application policy, not a claim that the tutorial enforces it automatically.

Readback is evidence at the time of the query. If another writer can change the scene before planning, readback alone does not bind the later request to that snapshot. Record competing writers and serialize scene changes and dependent planning in your application where required. Do not invent a global revision guarantee that the reviewed interface does not provide.

Check the obstacle itself, not only its ID

The interface provides getKnownObjectNames, getObjects, getObjectPoses, and getAttachedObjects. Use them for different questions. Knowing that an ID exists is weaker than inspecting the object’s actual geometry and pose.

For each diagnostic obstacle, preserve:

  • A unique object ID and the requested operation.
  • The geometry definition and dimensions.
  • The reference frame and pose used to locate it.
  • The target scene’s returned object representation.
  • Whether it belongs to the world or is attached to a robot link.
  • The robot state and planning group used in the check.

The ROS API example explicitly requires a valid TF frame for its attached-object message. It defines geometry, pose, object ID, and operation rather than relying on a display label. For transform direction and timestamp diagnostics, use the coordinate-frame validation guide.

Our diagnostic recommendation is to compare requested and returned geometry numerically, including units and frame conventions. A correct-looking screenshot is supporting evidence, not a substitute for that comparison. A correctly received obstacle can still be in the wrong place if the supplied frame or calibration is wrong.

Treat pick and place as scene transitions

A manipulated part changes its relationship to the robot. The official tutorial implementation models picking up an object by removing it from the world and attaching it to the robot in a scene diff. Its detach example removes the attachment and reintroduces the object into the world.

Intended stage Expected world representation in this workflow Expected attached representation
Before pickup Object present at the observed world pose No attachment for that object
After attachment Original world object removed Object attached to the intended link
After placement Object restored at the intended placed pose Attachment removed

These are proposed acceptance states following the tutorial’s workflow, not observations from a test we ran. Check the full transition and reject ambiguous representation. Do not infer the physical grasp succeeded merely because the scene contains an attachment.

The example also sets touch_links to allow contact between the carried box and selected hand links. Review those allowances explicitly. Copying the example’s Panda link names into a different robot does not define an appropriate contact policy for that robot.

Inspect collision exclusions before blaming the planner

The collision-checking tutorial demonstrates modifying an Allowed Collision Matrix so selected pairs no longer count as collisions. It distinguishes self-collision checking from full collision checking with the environment. A self-collision-only check cannot answer whether an arm intersects a world obstacle.

For a missed-obstacle report, record the collision-check API, group, tested state, contact pairs, Allowed Collision Matrix entries, attached-object touch links, and relevant padding configuration. In the reviewed tutorial, self-collision uses unpadded robot geometry, while full collision checking accounts for the environment with the documented padding distinction. Avoid combining results from different checks under one label such as collision-free.

Do not broaden collision allowances until a plan succeeds and then describe the result as a fix. First explain which intended contact each allowance represents. Planning around modeled geometry is also different from validating contact-rich manipulation, where force, compliance, and recovery matter.

A scene acceptance worksheet

Use this in a non-actuating software test environment with known geometry. Choose a deliberately intersecting robot configuration and obstacle for the negative control. The expected result below assumes the chosen pair is within the checked scope and is not intentionally excluded.

Check Proposed receiving-team check Evidence to retain
Owner Identify the node and namespace serving the planning request Endpoint and scene-update route
Update completion Apply the obstacle and check the result, or verify asynchronous convergence Result or query evidence with timestamps
Geometry Compare ID, shape, dimensions, frame, and pose Requested and returned object data
Negative control Check a known obstacle-intersecting state against the intended scene Collision result and contact pair, not a screenshot alone
Clear control Use a separately checked non-intersecting state Result under the same configuration
Attachment Perform the modeled world-to-attached transition without actuation World and attached-object readback
Placement Remove attachment and restore the placed world object Link, pose, and representation checks
Propagation Inspect each additional monitor used for decisions Its observed scene and subscription route
Failure path Exercise rejected or unconfirmed updates in isolation Evidence that dependent planning was withheld

Execution status: NOT TESTED by Physical AI Guide. Fill each row with expected outcome, observed outcome, artifact location, reviewer, and date. Leave unavailable observations unknown. The checklist is our editorial deliverable, derived from the cited API boundaries, not a MoveIt certification protocol.

If the negative control does not report the intended collision, investigate scene ownership, geometry, frames, check scope, and exclusions before interpreting a subsequent plan. If it does report the collision, that validates this controlled diagnostic, not arbitrary future trajectories or changing physical environments.

What a successful check still does not prove

A verified obstacle update establishes only the bounded scene facts you inspected. It does not prove complete perception, current calibration, correct hardware execution, physical clearance under uncertainty, or a safety-rated protective function.

Keep the scene evidence with the plan and its timing. If the physical environment changes, establish an application-specific policy for re-observation, replanning, and execution authorization. For incident evidence, preserve the relevant scene changes and planning inputs alongside the recording and replay plan. For working near people, use a separate application safety and standards assessment.

The useful question is not whether a box appeared on screen. It is whether the intended planner evaluated the intended state against the intended scene, with known exclusions, and what evidence supports that conclusion.

Sources and review scope

Reviewed November 6, 2026:

  1. MoveIt 2 PlanningSceneInterface at revision 6ed6372, synchronous and asynchronous methods, readback APIs, namespace, and monitor propagation boundary.
  2. Planning Scene ROS API tutorial implementation at revision e1b3727, diff updates, service outcome, object frames, attachment, detachment, and touch links.
  3. Planning Scene collision tutorial implementation at revision e1b3727, collision scope, matrix exclusions, and padding distinctions.
  4. Rendered Planning Scene ROS API tutorial, readable explanation and demonstration context. This rolling page can change independently of the pinned source.

Frequently asked questions

Does publishing a MoveIt planning scene update mean the planner has received it?

No. Topic-based planning scene updates are asynchronous. The C++ PlanningSceneInterface documents applyCollisionObjects as synchronous for the move_group scene, but separate monitors need the appropriate monitored-scene subscription.

Why can MoveIt show an obstacle but still plan through it?

Check which scene the planner uses, whether the update completed, the object's geometry and frame, the checked robot state and group, and collision exclusions. A visualization alone does not establish that the planning request used the intended collision scene.

Is a collision-free MoveIt plan proof that a physical movement is safe?

No. It is evidence relative to a particular scene, robot model, collision configuration, and planning request. Physical conditions, sensing, execution, and application safety need separate validation.