Skip to content
Snippets Groups Projects
Commit d5de9267 authored by Matthew Hansen's avatar Matthew Hansen Committed by Carl Delsey
Browse files

Add recovery behaviors to system test

parent a3d98d95
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ ament_add_test(test_bt_navigator
TEST_WORLD=${PROJECT_SOURCE_DIR}/worlds/turtlebot3_ros2_demo.world
TEST_PARAMS=${PROJECT_SOURCE_DIR}/params/nav2_params.yaml
GAZEBO_MODEL_PATH=${PROJECT_SOURCE_DIR}/models
BT_NAVIGATOR_XML=simple_sequential.xml
BT_NAVIGATOR_XML=navigate_w_replanning_and_recovery.xml
ASTAR=True
)
......@@ -36,12 +36,6 @@ def generate_launch_description():
bt_navigator_xml = os.path.join(bt_navigator_install_path,
'behavior_trees',
os.getenv('BT_NAVIGATOR_XML'))
navigator_action = launch_ros.actions.Node(
package='nav2_bt_navigator',
node_executable='bt_navigator',
node_name='bt_navigator',
output='screen',
parameters=[{'use_sim_time': use_sim_time}, {'bt_xml_filename': bt_navigator_xml}])
return LaunchDescription([
# Launch gazebo server for simulation
......@@ -96,7 +90,19 @@ def generate_launch_description():
output='screen',
parameters=[{'use_sim_time': use_sim_time}, {'use_astar': astar}]),
navigator_action,
launch_ros.actions.Node(
package='nav2_motion_primitives',
node_executable='motion_primitives_node',
node_name='motion_primitives',
output='screen',
parameters=[{'use_sim_time': use_sim_time}]),
launch_ros.actions.Node(
package='nav2_bt_navigator',
node_executable='bt_navigator',
node_name='bt_navigator',
output='screen',
parameters=[{'use_sim_time': use_sim_time}, {'bt_xml_filename': bt_navigator_xml}]),
launch_ros.actions.Node(
package='nav2_lifecycle_manager',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment