How to build a map on rviz from laser scan
I'm using a SICK laser scan under ROS. When i run the node, I can see the /scan topic from rostopic and I can also display the scan data under RVIZ by selecting /laser as fixed frame.
Now, I would like to build a 2-D map of my room under Gazebo. I would like to move the laser sensor around my room and to build a map.
I tried to find some tutorial on google, but I wasn't able to find any good document. Can you help me, please?
I think should specify the room frame as fixed and the laser frame as non-static, but I don't know how to do this.