Ask Your Question

Sending waypoints to navigation stack

asked 2019-07-22 09:45:12 -0500

Shanika gravatar image


I would like to know how to send mutliple goals to a robot that doesn't have LaseScan to create a map.

  • Using the diff_drive package , I managed to visualize the movement of the real robot on rviz (diff_drive_odometry) and to make it achieve one goal after another (diff_drive_go_to_goal). the connection (rosserial_python) isn't perfect but the robot can achieve the goal.

  • Now, I am want to make my robot follow a path. I saw we could use waypoints but I am not really sure about how to do this. Currently, I am subscribing to move_base_simple/goal to send a goal and when the robot achieves its goal, the client can send another goal but in most of the examples I saw, move_base is used, what are the differences between these two ?

Thanks in advance,


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-22 18:19:20 -0500

pavel92 gravatar image

The ROS navigation stack is based on move_base and uses global and local planners and costmaps . I dont know much about the diff_drive package you linked but what I can see from description is that it is a "lighter-weight" solution than the ROS controller framework and uses actionlib and PID to calculate velocities. Also I see that is subscribes to move_base_simple/goal just to grab the goal given via the RViz 2D Nav goal plugin.
As for the waypoint navigation, you can write your own node that can send multiple waypoints using SimpleActionClient from actionlib. Also there are some packages like the follow_waypoints that already have some implementation of waypoint navigation.

edit flag offensive delete link more


In order to use move_base, does the robot need to have LaserScan ? In my case, the robot only has an ultrasound sensor.

Shanika gravatar image Shanika  ( 2019-07-23 02:09:41 -0500 )edit

This can ask this as a separate question. You should check for existing layers like this one and this question might have some info.

pavel92 gravatar image pavel92  ( 2019-07-23 15:09:18 -0500 )edit

I will check these links before asking in a separate question. Thank you for your answer ^^

Shanika gravatar image Shanika  ( 2019-07-24 06:48:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-07-22 09:45:12 -0500

Seen: 2,185 times

Last updated: Jul 22 '19