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

Sending Goals to the Navigation Stack

asked 2017-01-17 12:02:36 -0600

Ayush Sharma gravatar image

I am working on the navigation stack of ros. I want to implement the following random video https://www.youtube.com/watch?v=RFdlX... This video is showing exactly what i want to implement. Kindly help me where can i find the source or tutorials so that i can understand and implement the same.

Regards

edit retag flag offensive close merge delete

Comments

Which robot are you using for run the Goals to the navigation stack?, because my robot are not with move_base and now I need another. thank you

vcanato gravatar image vcanato  ( 2017-01-21 14:35:57 -0600 )edit

I am using the "diff-wheeled-robot" as mentioned in the book "mastering ROS for robotics". U may find the files and codes mentioned in the book from the following link. "https://github.com/qboticslabs/mastering_ros" If you need only the robot , you may direct get the "chapter_3_codes".

Ayush Sharma gravatar image Ayush Sharma  ( 2017-01-22 00:34:41 -0600 )edit

works, thank you

vcanato gravatar image vcanato  ( 2017-01-22 22:38:49 -0600 )edit

3 Answers

Sort by » oldest newest most voted
0

answered 2017-01-17 13:02:00 -0600

ahendrix gravatar image

The tutorial on Sending goals to the navigation stack may get you started.

edit flag offensive delete link more

Comments

Thank you for your reply. I regret but i am not able to understand the prerequisite section of the tutorial. Is it necessary to use the two given links. Or can i simply run my own bot in gazebo and rviz and then check the cpp file?? And what exactly these two links are gonna perform?? Regards

Ayush Sharma gravatar image Ayush Sharma  ( 2017-01-17 13:22:13 -0600 )edit

The prerequisite is a robot or simulation running the navigation stack; the prerequisite links will show you how to start a simulation with navigation. If you already have your own robot or simulation running navigation, you can use that instead.

ahendrix gravatar image ahendrix  ( 2017-01-17 15:19:01 -0600 )edit

I´m using the tutorial that you post But on this step "rostopic .. _base/goal" I got no answer, so calling "rostopic list" I found running "move_base_simple/goal" So I back to the "simple_navigation_goals.cpp" file and change only in line 11 "move_base" to "move_base_simple" but didn´t work.Help me?

vcanato gravatar image vcanato  ( 2017-01-17 20:26:23 -0600 )edit

move_base_simple/goal is not an actionlib server, so sending goals to it probably won't work. If there's no move_base/goal topic, you may want to double-check that move base is running.

ahendrix gravatar image ahendrix  ( 2017-01-17 22:06:46 -0600 )edit

Thank you @ahendrix . I have implemented the tutorial. I have used my bot to move a meter forward in my own loaded map. Now i want to send the command to the bot which could make the bot to move in a any desired location (as shown in the video link). Can anyone help with with such code?? Regards

Ayush Sharma gravatar image Ayush Sharma  ( 2017-01-18 06:06:18 -0600 )edit

Sounds like you should extend the example with a list of goals, and loop over that list. For each goal, send the goal, wait for the robot to get to that point, and then repeat and send the next goal.

ahendrix gravatar image ahendrix  ( 2017-01-18 12:06:23 -0600 )edit

but i want to make the user to send the goal on real time basis such that robot takes the input from user, moves to that location and so on. setting multiple goals and pre-defining them in the program wont do the job but i m not able to find any help from the net so far.

Ayush Sharma gravatar image Ayush Sharma  ( 2017-01-18 12:40:43 -0600 )edit

The video you linked doesn't show any user interaction; the robot just appears to be following a pre-defined set of waypoints. If you want to command the robot manually, why not just send goals directly from rviz?

ahendrix gravatar image ahendrix  ( 2017-01-18 13:05:10 -0600 )edit
0

answered 2019-01-17 06:58:54 -0600

Alberto E. gravatar image

Hi!

I would suggest you the follow_waypoints package, which seems quite convenient for what you're looking for. Also, since it's written in Python, it's pretty easy to understand and to modify/customize.

I've also created a short video showing how to use it, you can check it here.

edit flag offensive delete link more

Comments

Can you please update your answer with the relevant information to answer the question instead of linking to a video tutorial and a package? If that video disappears (which happens) then your answer will be of much less help.

jayess gravatar image jayess  ( 2019-01-17 14:56:26 -0600 )edit
-1

answered 2018-05-24 04:18:48 -0600

fiorellasibona gravatar image

updated 2019-01-15 10:50:40 -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.

Cheers!

edit flag offensive delete link more

Comments

2

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:29:34 -0600 )edit

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

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

@fiorellasibona sorry for the confusion, but I meant putting the examples in the answer. The reason is 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:48 -0600 )edit

@fiorellasibona can you be more specific with your answer. I am also working on ros and i am using turtlebot3 burger. can you share how to run this code and what are pre requisites for this? i mean which packages to be installed and what sould be running before running this code.

enthusiast.australia gravatar image enthusiast.australia  ( 2019-08-27 09:30:32 -0600 )edit

@enthusiast.australia Hi! I think what you are looking for is available within the first post I have linked (The "Sending a single goal" tutorial). Needed packages and launching instructions are available... Let me know! Thank you

fiorellasibona gravatar image fiorellasibona  ( 2019-09-01 15:28:51 -0600 )edit

@fiorellasibona Answers that link to external resources are discouraged (as has been mentioned) because that content can and does disappear (which happened with this answer). If you could update your answer with the relevant content from that tutorial, that would make this answer useful.

jayess gravatar image jayess  ( 2019-09-01 15:46:52 -0600 )edit

Question Tools

6 followers

Stats

Asked: 2017-01-17 12:02:36 -0600

Seen: 7,569 times

Last updated: Jan 17 '19