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

problem building my map using SLAM

asked 2013-02-18 23:54:33 -0500

Wafaay gravatar image

updated 2016-10-24 09:00:15 -0500

ngrennan gravatar image

I was trying to build my environment map using SLAM from this Building a map with SLAMturtorial using my icreate base + kinect and yesterday at after many trials i got this picture and got (my_map.pgm & my_map.yaml) :-

and when i closed and tried to build another one from the beginning i didn't get any map i've tried many times but without any new results i always get this empty view on rviz :-

without building my map on rviz ..so is there any tips about what may went wrong with me ?...thanks in advance

i have added a video of my work :-

this video is from my workstation :- Workstation Rviz interface

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-02-19 21:20:51 -0500

Achim gravatar image

I'd say you forget to run some node in your second try. But it's impossible to diagnose from a far what that might have been... I'd have a look at the output of the mapping node and check if there is data flowing on all the topics it subscribed to.

Driving around a bit also is a good idea, because the map usually only get's updated, if it changes and most mapping algorithms won't update the map without robot movement... depending on the launch order the first map can sometimes get missing, even though the topic is latched. Try to drive a few meters in one direction, if that happens.

edit flag offensive delete link more

Comments

i have edited the question and added a video from my workstation ... if you have any comments sir ..thank you ^_^

Wafaay gravatar image Wafaay  ( 2013-02-19 23:38:37 -0500 )edit
1

answered 2013-02-19 03:44:21 -0500

As evident from one of the rviz screen shots in ur question the camera frame id is giving error because probably its not defined properly. For mapping first try to get laser scan correctly. Since ur using kinect, i am hoping ur using pointcloud_to_laserscan package for creating fake laser from pointcloud. Try getting laser scans, if ur able to see laserscan properly in rviz then that means ur tf tree is perfect. Once that works fine you can use turtlebot_navigation package to create map. Ideally tf should be like this world->map->odom->base_link->laser.

edit flag offensive delete link more

Comments

no i didn't use ointcloud_to_laserscan package at the first picture or second picture ... so can you give me any tip about how to use this package ?

Wafaay gravatar image Wafaay  ( 2013-02-19 18:27:49 -0500 )edit

Download pointcloud_to_laserscan package for convering your pointcloud that you get from kinect into fake laser and then use the scan published by that package for gmapping. You can also go though this link for further details http://www.ros.org/wiki/turtlebot_navigation/Tutorials/Build%20a%20map%20

ayush_dewan gravatar image ayush_dewan  ( 2013-02-19 21:27:49 -0500 )edit

thank you very much ..i'll try it and write down the feedback here to help the others with the same problem

Wafaay gravatar image Wafaay  ( 2013-02-19 23:11:02 -0500 )edit

i have edited the question and added a video from my workstation ... if you have any comments sir ..thank you ^_^

Wafaay gravatar image Wafaay  ( 2013-02-19 23:39:04 -0500 )edit
0

answered 2013-02-19 09:43:00 -0500

I think you are just zoomed out in the second picture. I can clearly see a small white patch resembling an occupancy grid map.

edit flag offensive delete link more

Comments

no it is not a white patch it is just the axes and the corresponding tf nodes ... and i moved my base many times forward and backward....but i got not map :(

Wafaay gravatar image Wafaay  ( 2013-02-19 18:25:14 -0500 )edit

i have edited the question and added a video from my workstation ... if you have any comments sir ..thank you ^_^

Wafaay gravatar image Wafaay  ( 2013-02-19 23:38:52 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-18 23:54:33 -0500

Seen: 1,347 times

Last updated: Feb 19 '13