Ask Your Question

Queueing positions for the robot to move to

asked 2015-06-19 07:56:16 -0500

duskxii gravatar image


I would like to have the robot move to point a->b->c in order and am not sure how to do this using a simple action client. I'm using movebase for this. When I add a second position for the robot to move to then it overwrites the first position. Thus, it looks like I need a way to check what the robot's current position is and if it point a then the robot should move to b and so on. Is this correct? How would I go about implementing this?


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-19 08:39:04 -0500

yigit gravatar image

updated 2015-06-23 07:07:48 -0500

You can listen /move_base/status for the status of the current goal. Here is the related document. You can go on with your second goal only if the first one is successful, for example.

Moreover, if you want to try a systematic approach you can use smach to create a state machine with states and transitions etc.

edit flag offensive delete link more

answered 2015-06-23 06:42:58 -0500

duskxii gravatar image

Thanks! I was able to successfully implement this.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools



Asked: 2015-06-19 07:56:16 -0500

Seen: 114 times

Last updated: Jun 23 '15