Ask Your Question

python sending goals to the navigation stack

asked 2013-09-18 04:04:34 -0600

Massbuilder gravatar image

updated 2014-01-28 17:17:59 -0600

ngrennan gravatar image

Is there any good examples on how to send goals to the navigation stack in python? I been looking around and yet to find the equivalent of the example shown in the navigation tutorial.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-18 07:32:44 -0600

It's just a matter of making a action call. There is an actionlib tutorial showing how to make an action call with python. For navigation, all you have to do is substitute the appropriate goal type.

edit flag offensive delete link more


The link is really helpful. Thank you!

VickyD gravatar image VickyD  ( 2018-01-09 10:14:32 -0600 )edit

answered 2018-02-05 01:24:14 -0600

fiorellasibona gravatar image

updated 2019-01-15 10:50:37 -0600

Hi! Hoping it can be helpful to someone, I have wrote two posts about sending goals to the navigation stack with a Python node (with example code):

  • Sending a single goal (equivalent to the C++ tutorial), here.

  • Sending a sequence of goals (complete of simulation with a turtlebot robot), here.


edit flag offensive delete link more



Can you please update your answer with more information including code examples that way it will be self-contained? If those pages move or disappear then this answer will be useless.

jayess gravatar image jayess  ( 2018-05-26 01:30:38 -0600 )edit

thanks for the code. When I run the code I get the error: AttributeError: 'module' object has no attribute 'SimpleActionClient' I also tried import SimpleActionClient from actionlib -> doesn't work either. Does anybody have an idea?

LeGer gravatar image LeGer  ( 2019-02-01 08:27:39 -0600 )edit

Hi @jayess, I have updated my answer, thank you!

fiorellasibona gravatar image fiorellasibona  ( 2019-03-04 08:55:17 -0600 )edit

Hi @LeGer, due to changes to the turtlebot launch files names the code started returning the error you have reported. The code has been updated and now should work fine. Don't hesitate to contact me for any further issue!

fiorellasibona gravatar image fiorellasibona  ( 2019-03-04 08:57:46 -0600 )edit

@fiorellasibona sorry for the confusion, but I meant putting the examples in the answer. The reason is to keep answers self-contained because files/pages can and do disappear from other sites making the answers not helpful

jayess gravatar image jayess  ( 2019-03-04 12:54:14 -0600 )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: 2013-09-18 04:04:34 -0600

Seen: 4,635 times

Last updated: Jan 15 '19