This is a ROS package to make the robot mapping whole environment automatically, developed by gmapping and navigation_stack.
sudo apt-get install ros-kinetic-gmapping
sudo apt-get install ros-kinetic-navigation
roslaunch mbot_gazebo view_mbot_with_laser_kinect.launch
roslaunch mbot_navigation exploring_slam_demo.launch
rosrun mbot_navigation exploring_slam.py
All tasks are tested by a self-defined robot in a customized apartment in GAZEBO.
If you want to see the whole test environment, you can check Homebot.
Click below image you can see the robot explor and map the apartment automatically.