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

Ros Programming how to open my saved map

asked 2014-11-02 05:59:32 -0500

ros_master gravatar image

Hi guys. I have a problem. I am beginner at ROS Programming. I use RVIZ for mapping. 1) I mapped with Turtlebot using this tutorial: link text . Then next day I tried to open my map using this tutorial: link text but my map didn't open. I can't understand how I will solve this problem.

2) I see that Turtlebot can't localize itself truly on the map when after I open the map at the same day.

edit retag flag offensive close merge delete

Comments

do you see map in rviz ? or map is not loaded ?

bvbdort gravatar image bvbdort  ( 2014-11-02 07:50:09 -0500 )edit

For the first question, map file does not appear in directory which i saved map, this situation happens when i shut down the computer. For the second question map is loaded but robot can not find its location on the appearing map.

ros_master gravatar image ros_master  ( 2014-11-02 08:14:02 -0500 )edit

for 2. are you able to see localisation running ?

bvbdort gravatar image bvbdort  ( 2014-11-02 11:36:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-02 11:34:40 -0500

bvbdort gravatar image

rosrun map_server map_saver -f /tmp/my_map

saves my_map.pgm in /tmp folder which will be cleared on every reboot.

just do rosrun map_server map_saver -f my_map ,it will save map in current folder

or change saving path. rosrun map_server map_saver -f /..your..path.../my_map

edit flag offensive delete link more

Comments

Thank you very much !! I solved the problem in the first question. In the second question, while running robot can localize truly. Robot moves in wrong directions but after I closed the map.

ros_master gravatar image ros_master  ( 2014-11-02 13:38:00 -0500 )edit

so you solved 2 also ? if not ,I didn't get what is problem with localisation.

bvbdort gravatar image bvbdort  ( 2014-11-03 02:57:41 -0500 )edit

Localisation problem : When i move forward robot by using teleoperation, it goes wrong direction in map.

ros_master gravatar image ros_master  ( 2014-11-03 03:34:57 -0500 )edit

In rviz, there are global and local maps, when robot moves, global map coordinates does not change but local ones change, so which coordinates should i use to move robot from somewhere to another where.

ros_master gravatar image ros_master  ( 2014-11-03 03:35:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-11-02 05:59:32 -0500

Seen: 1,417 times

Last updated: Nov 02 '14