MoveIt 2 Planning Scene: Collision Objects & Pick-and-Place Obstacles

MoveIt 2 planning scene tutorial for ROS 2 robot arms: add collision objects, apply boxes with PlanningSceneInterface, attach/detach grasped objects, tune the Allowed Collision Matrix, and connect obstacles to pick-and-place planning.

In this article

  • The mental model
  • 1. Create a box collision object
  • 2. Apply it to the planning scene
  • 3. Plan after the object exists
  • 4. For pick-and-place, collision objects become task inputs
  • 5. Attach the object once the gripper has it
  • 6. Detach and remove it for place
  • 7. Why the Allowed Collision Matrix matters
  • 8. Debugging checklist