Start by going into the SLAM session created in the SLAM step (check 3. Run the SLAM)

cd ./slam_session_tutorial

Create a dedicated Loop closure sub-directory and go in it:

mkdir ./1_loop_closure
cd ./1_loop_closure

The exwayz_loop_closure.exe executable expects

Run the loop closure with the following command

exwayz_loop_closure -i ../frames -t ../traj_odometry.ply -p Odometry -d 5.0

In your console, you should observe that loops are detected between pairs of trajectory points.

image.png

As an output, you’ll have in the current directory

Once the Loop closure is over, the SLAM session should be structured as follow :

πŸ“‚ slam_session_<hour>_<date>