Description
Bug report
Required Info:
- Operating System:
- Ubuntu24.04
- Computer:
- 13th Gen Intel NUC
- ROS2 Version:
- Jazzy binaries
- Version or commit hash:
- ros-jazzy-navigation2 1.3.4-1noble.20250124.144513
- DDS implementation:
- Cyclone DDS
Steps to reproduce issue
Attempting to pass through a very narrow passage using MPPI and NavFn. The tree is based on the default navigate_to_pose_w_replanning_and_recovery.xml, with the robot placed in the left space and the goal set in the right space.
Occasionally, when follow_path fails, the local costmap is cleared as part of recovery. However, if NavFn, executed by rate control, fails to find a path afterward, the global costmap is then cleared as a recovery measure. Following this, follow_path halts with "path is empty."
[component_container-1] [INFO][robot.navigation.controller_server]: Optimizer reset
[component_container-1] [WARN][robot.navigation.controller_server]: Optimizer fail to compute path
[component_container-1] [INFO][robot.navigation.controller_server]: Optimizer reset
[component_container-1] [INFO][robot.navigation.controller_server]: Optimizer reset
[component_container-1] [WARN][robot.navigation.controller_server]: Optimizer fail to compute path
[component_container-1] [INFO][robot.navigation.controller_server]: Passing new path to controller.
[component_container-1] [ERROR][robot.navigation.controller_server]: Failed to make progress
[component_container-1] [INFO][robot.navigation.controller_server]: Optimizer reset
[component_container-1] [WARN][robot.navigation.controller_server]: [follow_path] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: Received request to clear entirely the local_costmap
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.controller_server]: Received a goal, begin computing control effort.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [INFO][robot.navigation.controller_server]: Passing new path to controller.
[component_container-1] [INFO][robot.navigation.controller_server]: Passing new path to controller.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-3.34, -4.51) to (-5.73, -2.67): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [INFO][robot.navigation.controller_server]: Passing new path to controller.
[component_container-1] [ERROR][robot.navigation.controller_server]: Path is empty.
[component_container-1] [INFO][robot.navigation.controller_server]: Optimizer reset
[component_container-1] [WARN][robot.navigation.controller_server]: [follow_path] [ActionServer] Aborting handle.
[component_container-1] [ERROR][robot.navigation.bt_navigator_navigate_to_pose_rclcpp_node]: Failed to get result for compute_path_to_pose in node halt!
[component_container-1] [WARN][robot.navigation.bt_navigator]: [navigate_to_pose] [ActionServer] Aborting handle.
[component_container-1] [ERROR][robot.navigation.bt_navigator]: Goal failed
This issue does not occur when a global plan cannot be found from the beginning; in that case, spin, wait, and backup are executed correctly.
[component_container-1] [INFO][robot.navigation.amcl]: Setting pose (2253.600000): -5.113 1.551 -3.116
[component_container-1] [INFO][robot.navigation.bt_navigator]: Begin navigating from current location (-5.18, 1.51) to (-5.72, -1.86)
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.51) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.51) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: Received request to clear entirely the local_costmap
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.51) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.51) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.behavior_server]: Running spin
[component_container-1] [INFO][robot.navigation.behavior_server]: Turning 1.57 for spin behavior.
[component_container-1] [INFO][robot.navigation.behavior_server]: spin completed successfully
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.20, 1.43) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.20, 1.43) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.behavior_server]: Running wait
[component_container-1] [INFO][robot.navigation.behavior_server]: wait completed successfully
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.09, 1.47) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.09, 1.47) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.behavior_server]: Running backup
[component_container-1] [INFO][robot.navigation.behavior_server]: backup completed successfully
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.17, 1.77) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.79) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: Received request to clear entirely the local_costmap
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.local_costmap.local_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.79) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.18, 1.79) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.behavior_server]: Running spin
[component_container-1] [INFO][robot.navigation.behavior_server]: Turning 1.57 for spin behavior.
[component_container-1] [INFO][robot.navigation.behavior_server]: spin completed successfully
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.15, 1.81) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: Received request to clear entirely the global_costmap
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/costmap_filter_info" topic for filter info...
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Received filter info from /robot/navigation/costmap_filter_info topic.
[component_container-1] [INFO][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: Subscribing to "/robot/navigation/keepout_mask" topic for filter mask...
[component_container-1] [WARN][robot.navigation.global_costmap.global_costmap]: KeepoutFilter: New filter mask arrived from /robot/navigation/keepout_mask topic. Updating old filter mask.
[component_container-1] [WARN][robot.navigation.planner_server]: GridBased plugin failed to plan from (-5.15, 1.81) to (-5.72, -1.86): "Failed to create plan with tolerance of: 0.000000"
[component_container-1] [WARN][robot.navigation.planner_server]: [compute_path_to_pose] [ActionServer] Aborting handle.
[component_container-1] [WARN][robot.navigation.bt_navigator]: [navigate_to_pose] [ActionServer] Aborting handle.
[component_container-1] [ERROR][robot.navigation.bt_navigator]: Goal failed
Expected behavior
The recovery behavior is executed, and the navigate_to_pose
action continues.
Actual behavior
When an empty path is shared with follow_path
, the execution of follow_path
is interrupted, and it aborts without executing the recovery behavior.