The main objective of this project is to create 2D occupancy grid and 3D octomap from simulated environment using RTAB-Map ROS Package
To consolidate the robotic concepts learned in the Udacity Robotics Nanodegree and get a hands-on experience of working with C++, ROS and Gazebo simulation enviroment.
sudo apt-get install ros-kinetic-navigation
sudo apt-get install ros-kinetic-map-server
sudo apt-get install ros-kinetic-move-base
sudo apt-get install ros-kinetic-rtabmap-ros
$ mkdir -p catkin_ws
$ cd catkin_ws/
$ git clone https://github.com/RamCharanThota/Udacity_Robotic_ND_Proj4_MapMyWorld src
$ cd catkin_ws/src
$ catkin_init_workspace
$ cd ../
$ catkin_make
$ source devel/setup.bash
$ roslaunch my_robot world.launch
$ source devel/setup.bash
$ roslaunch my_robot mapping.launch
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
teleop node helps you drive the robot arround in the simulated environment using input from keyboard. Navigate your robot in the simulation to create map for the environment! When you are all set, terminate the node and you could find your map db file in the place you specified in the launch file. If you did not modify the argument, it will be located in the /root/.ros/ folder.
The resulted maps from RTABMap files can be visualised using rtabmap-databaseViewer tool. This is how you will check for loop closures, generate 3D maps for viewing, extract images, check feature mapping rich zones, and much more!
$ rtabmap-databaseViewer ~/.ros/rtabmap.db