Skip to content

Commit

Permalink
added waypoint follower plugin node
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogeorg committed Sep 3, 2024
1 parent dc38322 commit 435d5f9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions path_planner_server/config/waypoint_follower.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
waypoint_follower:
ros__parameters:
loop_rate: 20
stop_on_failure: false
waypoint_task_executor_plugin: "wait_at_waypoint"
wait_at_waypoint:
plugin: "nav2_waypoint_follower::WaitAtWaypoint"
enabled: True
waypoint_pause_duration: 200
12 changes: 11 additions & 1 deletion path_planner_server/launch/navigation.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def generate_launch_description():
'map_server'), 'maps', 'map.yaml')
rviz_config_file_path = os.path.join(get_package_share_directory(
'path_planner_server'), 'rviz_config', 'pathplanning.rviz')
waypoint_follower_yaml = os.path.join(get_package_share_directory(
'path_planner_server'), 'config', 'waypoint_follower.yaml')

return LaunchDescription([
Node(
Expand Down Expand Up @@ -76,6 +78,13 @@ def generate_launch_description():
parameters=[{'use_sim_time': True}],
arguments=['-d', rviz_config_file_path]),

Node(
package='nav2_waypoint_follower',
executable='waypoint_follower',
name='waypoint_follower',
output='screen',
parameters=[waypoint_follower_yaml]),

Node(
package='nav2_lifecycle_manager',
executable='lifecycle_manager',
Expand All @@ -87,5 +96,6 @@ def generate_launch_description():
'controller_server',
'planner_server',
'recoveries_server',
'bt_navigator']}])
'bt_navigator',
'waypoint_follower']}])
])

0 comments on commit 435d5f9

Please sign in to comment.