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

Turtlebot AMCL help

asked 2013-08-27 11:36:18 -0500

SaiHV gravatar image

updated 2014-04-20 14:09:43 -0500

ngrennan gravatar image

Hello,

My primary objective is to construct a scenario where AMCL/navigation stack would be used for 2d path planning for a Turtlebot using simulation. I currently have the turtlebot simulator from ROS Hydro. If I run that, and then "rosrun amcl amcl" and "rosrun map_server map_server "my_previously_constructed_map".yaml", I can see the map, base_link, an empty /scan topic, etc. in rviz. Of course, I can only set the initial pose, nothing moves if I set a goal.

So I have a few questions, and I'd be thankful if I can get some clarifications:

  1. How would AMCL/nav stack work through the simulator (if it even does), because there is no valid laser scan data?
  2. Is there a way where I can just see the solution path (in rviz) from the navigation stack through this simulated setup I have? The robot does not even have to move. This is a question because I do not have access to the turtlebot hardware: and amcl_demo, which incorporates move_base, does not run when the robot is not connected.
  3. How should I go about, if I want to modify the path planning operation for the turtlebot? For instance, writing a custom code that feeds it a certain pattern of goals one by one, etc.

Thank you for your time. Sai

edit retag flag offensive close merge delete

Comments

Assuming you are using Hydro sources.... I'm just now preparing a couple of demos on this: build a 2D map of a Gazebo's virtual world, and then use it to navigate the world. Hopefully today all will be commited on https://github.com/turtlebot/turtlebot_simulator. I'll then post a detailed answer.

jorge gravatar image jorge  ( 2013-08-27 14:00:19 -0500 )edit

Done. You can try gmapping_demo.launch and amcl_demo.launch. But I cannot update wiki tutorials now due to current migration.

jorge gravatar image jorge  ( 2013-08-27 23:50:25 -0500 )edit

Thank you! I'll give them a try.

SaiHV gravatar image SaiHV  ( 2013-08-28 06:21:52 -0500 )edit

Hi jorge, the demo files did work, and I was able to see the path. Is there some way to load a custom map into gazebo? Because I tried my map with amcl and move base; and the turtlebot just walked through obstacles: I assume it's because the fake /scan doesn't account for them?

SaiHV gravatar image SaiHV  ( 2013-08-28 10:28:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-08-29 22:04:25 -0500

jorge gravatar image

Now I can upgrade my post to an answer. We have created a turtlebot simulator tutorial that should answer to questions 1 and 2. Update the code and gazebo packages, as we made tons of changes in the last days.

And please, please, please report whatever fails or is bad explained. Thank you!

Question 3 goes out of the scope of the tutorial, but the fast answer is to create your own global planner plugin for the move_base node. I think the easiest way to do so is to duplicate the simple carrot planner and modify at your will.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-08-27 11:36:18 -0500

Seen: 1,487 times

Last updated: Aug 29 '13