Hi everyone
I’m trying to run the path planning system for the final project.
Nodes seem to start in a proper way:
[planner_server-4] [INFO] [1659458628.243002277] [global_costmap.global_costmap]: start
[planner_server-4] [INFO] [1659458628.298515465] [planner_server]: Activating plugin GridBased of type NavfnPlanner
[lifecycle_manager-7] [INFO] [1659458628.299315896] [lifecycle_manager_pathplanner]: Activating controller_server
[controller_server-3] [INFO] [1659458628.299667729] [controller_server]: Activating
[controller_server-3] [INFO] [1659458628.299748777] [local_costmap.local_costmap]: Activating
[controller_server-3] [INFO] [1659458628.299778689] [local_costmap.local_costmap]: Checking transform
[controller_server-3] [INFO] [1659458628.299901549] [local_costmap.local_costmap]: start
[lifecycle_manager-7] [INFO] [1659458628.399684284] [lifecycle_manager_pathplanner]: Activating recoveries_server
[recoveries_server-5] [INFO] [1659458628.400233953] [recoveries_server]: Activating
[recoveries_server-5] [INFO] [1659458628.400294647] [recoveries_server]: Activating spin
[recoveries_server-5] [INFO] [1659458628.400319038] [recoveries_server]: Activating backup
[recoveries_server-5] [INFO] [1659458628.400337537] [recoveries_server]: Activating wait
[lifecycle_manager-7] [INFO] [1659458628.401484026] [lifecycle_manager_pathplanner]: Activating bt_navigator
[bt_navigator-6] [INFO] [1659458628.401778170] [bt_navigator]: Activating
[lifecycle_manager-7] [INFO] [1659458628.402386041] [lifecycle_manager_pathplanner]: Managed nodes are active
Nevertheless, when sending Nav2 Goals through Rviz2, I get the next errors:
[rviz2-8] [INFO] [1659458663.932603475] [rviz2]: Setting goal pose: Frame:map, Position(0.637056, -0.733013, 0), Orientation(0, 0, -0.924357, 0.381528) = Angle: -2.35869
[bt_navigator-6] [INFO] [1659458663.936166614] [bt_navigator]: Begin navigating from current location to (0.64, -0.73)
[bt_navigator-6] [ERROR] [1659458663.937610264] [bt_navigator]: Action server failed while executing action callback: "One of the children of a DecoratorNode or ControlNode is nullptr"
[bt_navigator-6] [WARN] [1659458663.938555277] [bt_navigator]: [navigate_to_pose] [ActionServer] Aborting handle.
The configuration of my BT node is the following:
bt_navigator:
ros__parameters:
use_sim_time: True
global_frame: map
robot_base_frame: base_link
odom_topic: /odom
bt_loop_duration: 10
default_server_timeout: 20
default_nav_to_pose_bt_xml: "/home/user/ros2_ws/src/project_path_planning/config/behavior.xml"
plugin_lib_names:
- nav2_compute_path_to_pose_action_bt_node
- nav2_follow_path_action_bt_node
- nav2_back_up_action_bt_node
- nav2_spin_action_bt_node
- nav2_wait_action_bt_node
- nav2_clear_costmap_service_bt_node
- nav2_is_stuck_condition_bt_node
- nav2_goal_reached_condition_bt_node
- nav2_goal_updated_condition_bt_node
- nav2_initial_pose_received_condition_bt_node
- nav2_reinitialize_global_localization_service_bt_node
- nav2_rate_controller_bt_node
- nav2_distance_controller_bt_node
- nav2_speed_controller_bt_node
- nav2_truncate_path_action_bt_node
- nav2_goal_updater_node_bt_node
- nav2_recovery_node_bt_node
- nav2_pipeline_sequence_bt_node
- nav2_round_robin_node_bt_node
- nav2_transform_available_condition_bt_node
- nav2_time_expired_condition_bt_node
- nav2_distance_traveled_condition_bt_node
The BT is defined by using the same XML that is provided in the course:
<root main_tree_to_execute="MainTree">
<BehaviorTree ID="MainTree">
<RecoveryNode number_of_retries="6" name="NavigateRecovery">
<PipelineSequence name="NavigateWithReplanning">
<RateController hz="1.0">
<RecoveryNode number_of_retries="1" name="ComputePathToPose">
<ComputePathToPose goal="{goal}" path="{path}" planner_id="GridBased"/>
<ClearEntireCostmap service_name="global_costmap/clear_entirely_global_costmap"/>
</RecoveryNode>
</RateController>
<RecoveryNode number_of_retries="1" name="FollowPath">
<FollowPath path="{path}" controller_id="FollowPath"/>
<ClearEntireCostmap service_name="local_costmap/clear_entirely_local_costmap"/>
</RecoveryNode>
</PipelineSequence>
<SequenceStar name="RecoveryActions">
<ClearEntireCostmap service_name="local_costmap/clear_entirely_local_costmap"/>
<ClearEntireCostmap service_name="global_costmap/clear_entirely_global_costmap"/>
<Spin spin_dist="1.57"/>
<Wait wait_duration="5"/>
</SequenceStar>
</RecoveryNode>
</BehaviorTree>
</root>
I don’t know what could be the problem.
Thanks in advance again!