Hello, when I try to use a “custom behavior tree” for the navigation_through_poses action, it loads but is not being executed and the default’s behavior nav2 is being executed. I would like to know if
anyone knows how to configure or what I need to change in the configuration to be able to use a custom behavior tree in the node bt_navigator.
launch :
Node(
package='nav2_bt_navigator',
executable='bt_navigator',
name='bt_navigator',
output='screen',
# parameters=[bt_navigator_yaml, {'default_bt_xml_filename': default_bt_xml_path}]),
parameters=[bt_navigator_yaml, {'default_nav_through_poses_bt_xml': default_bt_xml_path}]),
(I already treat them both with "default_bt_xml_filename’: default_bt_xml_path " and bt_navigator_yaml, {‘default_nav_through_poses_bt_xml’: default_bt_xml_path)
yaml configuration:
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_through_poses_bt_xml: $(find-pkg-share path_planner_server)/config/mp600_behavior.xml
navigators: ['navigate_through_poses']
navigate_through_poses:
plugin: "nav2_bt_navigator::NavigateThroughPosesNavigator"
plugin_lib_names:
- nav2_compute_path_to_pose_action_bt_node
- nav2_compute_path_through_poses_action_bt_node
- nav2_follow_path_action_bt_node
.......
Version do ros2 : humble