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.
Originally posted by ayush_dewan with karma: 1610 on 2013-02-19
This answer was NOT ACCEPTED on the original site
Post score: 1
Original comments
Comment by Wafaay on 2013-02-19:
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 ?
Comment by ayush_dewan on 2013-02-19:
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
Comment by Wafaay on 2013-02-20:
thank you very much ..i'll try it and write down the feedback here to help the others with the same problem
Comment by Wafaay on 2013-02-20:
i have edited the question and added a video from my workstation ... if you have any comments sir ..thank you ^_^