Ask Your Question
0

python sending goals to the navigation stack

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

Massbuilder gravatar image

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

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
0

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

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

Comments

The link is really helpful. Thank you!

VickyD gravatar imageVickyD ( 2018-01-09 10:14:32 -0500 )edit
1

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

fiorellasibona gravatar image

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

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.

Cheers!

edit flag offensive delete link more

Comments

3

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 imagejayess ( 2018-05-26 01:30:38 -0500 )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 imageLeGer ( 2019-02-01 08:27:39 -0500 )edit

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

fiorellasibona gravatar imagefiorellasibona ( 2019-03-04 08:55:17 -0500 )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 imagefiorellasibona ( 2019-03-04 08:57:46 -0500 )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 imagejayess ( 2019-03-04 12:54:14 -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: 2013-09-18 04:04:34 -0500

Seen: 3,332 times

Last updated: Jan 15