0
$\begingroup$

Rosanswers logo

Has anyone had success getting the navigation stack to work with the gmapping package? If I understand it correctly, it appears that you could stop using the map_server and amcl, replace those with gmapping, and you could then perform autonomous mobility in an environment while you SLAM. Is that understanding correct? Do the local_costmap and global_costmap support this idea, and if so, what are the key parameters to configure this to happen?


Originally posted by jdt141 on ROS Answers with karma: 118 on 2011-03-15

Post score: 5

$\endgroup$

3 Answers 3

0
$\begingroup$

Rosanswers logo

I was able to get this to work by not running both amcl and map_server, and running gmapping. The only parameter that I had to change (from the defaults in the navigation tutorial) were to change the global_costmap to NOT have a static map (static_map: false) and to set the rolling_window to true (rolling_window: true) in the global_costmap_params.yaml file.


Originally posted by jdt141 with karma: 118 on 2011-03-16

This answer was ACCEPTED on the original site

Post score: 4


Original comments

Comment by ParNurZeal on 2012-01-13:
I think this is a wrong guideline. Even though it can work, the navigation stack will never receive the updated map. The static map should be set to true and the rolling window should be set to false.

Comment by ParNurZeal on 2011-12-20:
I tried to do as you said. I tried to set the goal point in rviz in unknown space and the robot wouldn't go there. Do I have to change some parameter in base_planer like global_base_planner and local_base_planner?

$\endgroup$
0
$\begingroup$

Rosanswers logo

You shouldn't have to change the global_costmap parameters at all to run the navigation stack with gmapping, replacing AMCL and the map_server with gmapping should be sufficient from CTurtle onwards. For an example of the navigation stack running with gmapping in stage, you might want to check out the navigation_stage package here: http://www.ros.org/wiki/navigation_stage . One thing to mention is that the navigation_stage package is configured for a Diamonback setup, though it'll probably work on CTurtle as well.


Originally posted by eitan with karma: 2743 on 2011-03-22

This answer was NOT ACCEPTED on the original site

Post score: 5


Original comments

Comment by Eric Perko on 2011-12-21:
Fixed the navigation_stage link.

Comment by tom on 2011-12-15:
I know it's a little late, but: please delete the trailing dot from the navigation_stage link, so it works. Cheers.

$\endgroup$
0
$\begingroup$

Rosanswers logo

You can find a fully functional demo in http://www.ros.org/wiki/erratic_navigation_apps There you can find two gmapping-demo launch files for a real or a simulated (with gazebo) erratic robot.


Originally posted by Pablo Iñigo Blasco with karma: 2982 on 2011-04-05

This answer was NOT ACCEPTED on the original site

Post score: 2


Original comments

Comment by Arkapravo on 2011-12-24:
@Pablo Iñigo Blasco : The gazebo model is very good - Thank you !

Comment by ParNurZeal on 2011-12-21:
I saw that in erratic launch file. Even in slam demo launch file, they still use static map. I thought if we wanna do slam, we should not use static map in global cost map. Is the launch file correct?

Comment by Achim on 2012-08-30:
@ParNurZeal: you misinterpret "static" here. It is a parameter to the costmap that means the map comes from the outside and has not to be build from the laserscanners. i.e. static is correct here for the planner, because it get's a finished map from gmapping and does not have to build its own one.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.