ros2 runtime_error ai_generated partial

MoveIt failed to compute a plan to the goal state

ID: ros2/moveit2-planning-failed

Also available as: JSON · Markdown
65%Fix Rate
82%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
2 active

Root Cause

MoveIt2 motion planner cannot find a collision-free path. Caused by tight spaces, IK failures, or planning scene misconfiguration.

generic

Workarounds

  1. 88% success Check if goal pose is reachable with IK: computeIK before planning
    ros2 service call /compute_ik moveit_msgs/srv/GetPositionIK ...
  2. 90% success Visualize the planning scene in RViz to check for unexpected collision objects
    Add PlanningScene display in RViz2; check for stale collision objects
  3. 80% success Use cartesian path planning for constrained motions
    fraction = move_group.compute_cartesian_path(waypoints, 0.01, 0.0)

Dead Ends

Common approaches that don't work:

  1. Increase planning time to 60+ seconds unconditionally 78% fail

    If the goal is unreachable or in collision, no amount of planning time will help

  2. Disable collision checking to get a plan 95% fail

    Produces paths that collide with obstacles or the robot itself; dangerous on real hardware

  3. Switch planner to RRTConnect for every motion 70% fail

    RRTConnect is already the default; the issue is usually the goal or scene, not the planner

Error Chain

Preceded by: