# Error while launching bt\_navigator

**URL:** <https://get-help.theconstruct.ai/t/error-while-launching-bt-navigator/23210>\
**Category:** ROS2 Navigation\
**Tags:** error, navigation\
**Created:** [March 21, 2023, 12:24am UTC](https://get-help.theconstruct.ai/t/error-while-launching-bt-navigator/23210 "2023-03-21T00:24:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [March 22, 2023, 3:30am UTC](https://get-help.theconstruct.ai/t/error-while-launching-bt-navigator/23210/4 "2023-03-22T03:30:43Z")

</div>

Hi @w.ronaldo.cd ,

Just as I thought, your `behavior.xml` and `bt_navigator.yaml` requires changes.  
`bt_navigator.yaml` did not have certain plugin libraries for `Foxy` during its release, which includes `nav2_compute_through_poses`.

Below you can find the correct files for `Foxy` version - the ROS2 version used in rosject currently.

= = = = = = = = = =

`behavior.xml`:

```xml
<!--
  This Behavior Tree replans the global path periodically at 1 Hz, and has
  recovery actions. Obtained from the official Nav2 package
-->

<!-- Foxy Version -->
<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 name="ClearGlobalCostmap-Context" service_name="global_costmap/clear_entirely_global_costmap"/>
          </RecoveryNode>
        </RateController>
        <RecoveryNode number_of_retries="1" name="FollowPath">
          <FollowPath path="{path}" controller_id="FollowPath"/>
          <ClearEntireCostmap name="ClearLocalCostmap-Context" service_name="local_costmap/clear_entirely_local_costmap"/>
        </RecoveryNode>
      </PipelineSequence>
      <ReactiveFallback name="RecoveryFallback">
        <GoalUpdated/>
        <SequenceStar name="RecoveryActions">
          <ClearEntireCostmap name="ClearLocalCostmap-Subtree" service_name="local_costmap/clear_entirely_local_costmap"/>
          <ClearEntireCostmap name="ClearGlobalCostmap-Subtree" service_name="global_costmap/clear_entirely_global_costmap"/>
          <Spin spin_dist="1.57"/>
          <Wait wait_duration="5"/>
        </SequenceStar>
      </ReactiveFallback>
    </RecoveryNode>
  </BehaviorTree>
</root>

```

= = = = = = = = = =

`bt_navigator.yaml` (notice that a few plugins are removed):  
**NOTE / WARNING / ATTENTION:**  
Please replace `<your_package_name>` to your package containing the `bt_navigator.yaml` config file - in the parameter `default_bt_xml_filename`.  
**= = = = = = = = = =**

```yaml
# Foxy Version
bt_navigator:
  ros__parameters:
    use_sim_time: True
    global_frame: map
    robot_base_frame: base_footprint # base_link
    odom_topic: /odom
    enable_groot_monitoring: True
    groot_zmq_publisher_port: 1666
    groot_zmq_server_port: 1667
    default_bt_xml_filename: "/home/user/ros2_ws/src/<your_package_name>/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

```

= = = = = = = = = =

Also, when I asked you to share your launch file, I wanted the complete file contents, not just the `Node` declaration of `bt_navigator`. Please re-post the complete launch file.

Regards,  
Girish

PS: The above referenced contents for the `behavior.xml` and `bt_navigator.yaml` were obtained from this post: [Path planning error - ROS2 Navigation course - #3 by rtellez](https://get-help.robotigniteacademy.com/t/path-planning-error-ros2-navigation-course/18544/3)

---

_[View the full topic](https://get-help.theconstruct.ai/t/error-while-launching-bt-navigator/23210)._
