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

SLAM in gazebo [closed]

asked 2012-01-14 04:01:47 -0500

updated 2014-01-28 17:11:07 -0500

ngrennan gravatar image

I am trying to obtain SLAM maps using gazebo, I followed this tutorial.

Using the command,

roslaunch erratic_navigation_apps demo_2dnav_slam.launch


rosrun erratic_teleop erratic_keyboard_teleop

The teleoperation works nicely (using WASD keys), though somewhat slowly. However, I am not able to obtain any maps. I have previously used stage with gmapping & mapserver to obtain SLAM (as a pgm image file), however gazebo seems rather different.

Also, hoping that this method for the SLAM map starts to work - can this method, specifically meant for the erratic robot be used for other robots ?

Any help is most appreciated.

UPDATE: Solved it ! scroll down for my answer

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Arkapravo
close date 2013-06-01 19:49:57

2 Answers

Sort by ยป oldest newest most voted

answered 2012-01-16 16:05:36 -0500

noonv gravatar image

how you try to get the map? try to use rviz for looking it.

edit flag offensive delete link more


@noonv the rviz map is not what I am looking for, I want a pgm map - a SLAM like map, the rviz map vanishes with time.
Arkapravo gravatar image Arkapravo  ( 2012-01-16 16:24:20 -0500 )edit
sure, but you could save it via "rosrun map_server map_saver -f /tmp/my_map"
noonv gravatar image noonv  ( 2012-01-16 16:28:10 -0500 )edit
@noonv though that is not what I want, but your suggestion is sure worth a try - Thank you ! .... but probably it will not be a true SLAM mapping ! ..... I will try it and see !
Arkapravo gravatar image Arkapravo  ( 2012-01-16 16:32:19 -0500 )edit
@noonv You are from Kalingrad, must be a romantic place ..... Kant's city ! ... :-) .... I do recall the '7 Bridges of Konigsberg' problem, which is attributed to Euler ! :-)
Arkapravo gravatar image Arkapravo  ( 2012-01-16 16:35:52 -0500 )edit
@Arkapravo yes :)
noonv gravatar image noonv  ( 2012-01-16 16:46:16 -0500 )edit

answered 2012-01-17 19:56:23 -0500

Got it ! Had to run the map server !

rosrun map_server map_saver

Here is a sample of what I got !

image description

I thank Antons Rebguns for his suggestions !

edit flag offensive delete link more

Question Tools


Asked: 2012-01-14 04:01:47 -0500

Seen: 2,257 times

Last updated: Jan 17 '12