Nav2 Libarys from default config File not found

asked 2022-04-19 07:38:40 -0500

isiko gravatar image

I'm trying to gett Nav2 Running on my Robot, but somehow a lot of the BT_Navigator Libaries throw an error because they can't be found when running on my System. I'll put my bt_navigator config below, with the "missing" libraries commented out. I'm using Docker on Windows with a Ubuntu 20.04 Container and installed nav2 via the apt command. (apt install ros-foxy-navigation2 and apt install ros-foxy-nav*)

Config:

bt_navigator:
  ros__parameters:
    use_sim_time: True
    global_frame: map
    robot_base_frame: base_link
    odom_topic: /odometry/filtered
    bt_loop_duration: 10
    default_server_timeout: 20
    enable_groot_monitoring: True
    groot_zmq_publisher_port: 1666
    groot_zmq_server_port: 1667
    # The following Values should be overwritten by the Launchfile.
    default_nav_to_pose_bt_xml:       /field_robot/dev_ws/src/field_robot/config/nav2_bt_config.xml
    default_nav_through_poses_bt_xml: /field_robot/dev_ws/src/field_robot/config/nav2_bt_config.xml
    # 'default_nav_through_poses_bt_xml' and 'default_nav_to_pose_bt_xml' are use defaults:
    # nav2_bt_navigator/navigate_to_pose_w_replanning_and_recovery.xml
    # nav2_bt_navigator/navigate_through_poses_w_replanning_and_recovery.xml
    # They can be set here or via a RewrittenYaml remap from a parent launch file to Nav2.
    plugin_lib_names:
    - nav2_compute_path_to_pose_action_bt_node
    # - nav2_compute_path_through_poses_action_bt_node
    # - nav2_smooth_path_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_globally_updated_goal_condition_bt_node
    # - nav2_is_path_valid_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_path_expiring_timer_condition
    - nav2_distance_traveled_condition_bt_node
    # - nav2_single_trigger_bt_node
    - nav2_is_battery_low_condition_bt_node
    # - nav2_navigate_through_poses_action_bt_node
    - nav2_navigate_to_pose_action_bt_node
    # - nav2_remove_passed_goals_action_bt_node
    # - nav2_planner_selector_bt_node
    # - nav2_controller_selector_bt_node
    # - nav2_goal_checker_selector_bt_node
    # - nav2_controller_cancel_bt_node
    # - nav2_path_longer_on_approach_bt_node
    # - nav2_wait_cancel_bt_node
    # - nav2_spin_cancel_bt_node
    # - nav2_back_up_cancel_bt_node

I also have a another issue that when I try to assign a namespace it tries to load a library that isn't used anymore, I outlined that problem in this post: https://answers.ros.org/question/3991...

edit retag flag offensive close merge delete