Ask Your Question
0

how to judge move_base has go to the goal?

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

ligang gravatar image

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

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,

thanks!

EDIT1:

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
0

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

Procópio gravatar image

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

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

Comments

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 -0500 )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 -0500 )edit

best work through the actionlib tutorials

mgruhler gravatar image mgruhler  ( 2016-06-23 06:12:13 -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

Stats

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

Seen: 2,368 times

Last updated: Jun 28 '16