Skip to content

Latest commit

 

History

History
80 lines (49 loc) · 2.82 KB

README.md

File metadata and controls

80 lines (49 loc) · 2.82 KB

RTAB_Mapping_and_Localization

RTAB Mapping and Localization for a two wheeled robot.

Instructions for use :

  1. Install Rtabmap :
sudo apt-get install ros-noetic-rtabmap*
  1. Clone the repositry :
git clone https://github.com/Vamsi-IITI/RTAB_Mapping_and_Localization.git 
  1. Navigate up to the root level directory ( cd RTAB_Mapping_and_Localization ) , and execute:
catkin_make
source devel/setup.bash
roslaunch my_robot world.launch
  1. To operate the robot via the keyboard, open a second terminal, navigate to the root level directory, and execute:
source devel/setup.bash
roslaunch my_robot teleop.launch 

You can then command the robot to move using the keys indicated by the teleop node.

  1. Finally, to run SLAM, open a third terminal, navigate to the root level directory, and execute:
source devel/setup.bash
roslaunch my_robot mapping.launch
  1. As you move the robot around, RTAB-Map will build a map of the room. When you terminate the mapping window, the map will be saved as a database file in the launch folder. To view the map, execute:
rtabmap-databaseViewer ~/RTAB_Mapping_and_Localization/src/my_robot/maps/rtabmap.db

  1. Click "yes" when asked about database parameters, and then select "Constraint View" and "Graph View" from the View menu.

Note : Map uploaded in repo is slightly distorted because robot collided with walls during mapping process.

Directory Structure

Screenshot from 2023-03-09 10-12-14

Images

Screenshot from 2023-03-08 22-40-11

Screenshot from 2023-03-10 13-35-53

No loop closure : ( rtabmap.db file for this already present in repo )

image

image

After some loop closures : ( Download link provided in download_rtabmap.md )

graph

Screenshot from 2023-03-10 13-34-21

Screenshot from 2023-03-10 13-35-53

rqt_tf_tree

rosrun rqt_tf_tree rqt_tf_tree

Screenshot from 2023-03-08 15-13-49