ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to judge move_base has go to the goal?

asked 2016-06-22 05:04:17 -0600

ligang gravatar image

updated 2016-06-28 04:50:58 -0600

Procópio gravatar image

We can control the robot to a goal, using base_move and amcl.

but i can not judge that when the robot reached the goal.

I think, we can judge the vel or the tf not change to do it .

but, I think that ,it must have better solution.

I use rqt_graph and rosrun tf view_frames list all. but , I can not find any solution than I do.

anyone can help me to solve it,



when the route is short the status always be 3 , when the robot nav to a long distance the status change to 1 and then change to 3.

I want to know why , the status is not change the status 3 SUCCEEDED->1ACTIVE->3 SUCCEEDED ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-06-23 02:40:40 -0600

Procópio gravatar image

updated 2016-06-28 04:55:04 -0600

you can check the topic move_base/status (more info).

answering EDIT 1:

you probably see the status as 3 (SUCCEEDED) for short paths because move_base "thinks" it already arrived at the goal position, probably because the goal is inside the tolerance.

for longer paths, it should first be 1 (ACTIVE) and then 3 (SUCCEEDED).

edit flag offensive delete link more


Note though, that this only works if you use the action interface. If you use the move_base_simple/goal topic interface (which you do if you set the goal in rviz) this will not work.

But in the end, the only way to do it is to use the action interface, so @Procopio is right.

mgruhler gravatar image mgruhler  ( 2016-06-23 02:43:45 -0600 )edit

use the action interface, can you provide a simple example, I am a fresh in ROS.

ligang gravatar image ligang  ( 2016-06-23 04:48:02 -0600 )edit

best work through the actionlib tutorials

mgruhler gravatar image mgruhler  ( 2016-06-23 06:12:13 -0600 )edit

Question Tools

1 follower


Asked: 2016-06-22 05:04:17 -0600

Seen: 3,508 times

Last updated: Jun 28 '16