This document presents some tips on how to use SLAM algorithm in LidarView, or one of its derived distribution. Even if this SLAM is embedded in a Paraview plugin and is therefore directly usable in Paraview, we will focus on its use in LidarView (as we consider here LiDAR data, LidarView seems a better choice for most use-cases and display).
Since 2020, this SLAM plugin is natively included and available in LidarView.
Follow LidarView's Developer Guide instructions to build LidarView on Windows or Linux from source.
IMPORTANT: to enable SLAM support, ensure your CMake configuration has these options set to True :
-DENABLE_ceres=True
-DENABLE_nanoflann=True
-DENABLE_pcl=True
-DENABLE_slam=True
LidarSlamPlugin should be automatically loaded at LidarView's startup. If not, ensure Advanced features are enabled in Help tab, then select Tools > Manage Plugins > Load New. Browse to your LidarView install directory and select the libLidarSlamPlugin.so (this file can normally be found under <lidarview_superbuild_dir>/install/lib/lidarview-3.6/plugins/libLidarSlamPlugin.so).
LidarView's SLAM has been tested on .pcap files aquired from different LiDAR sensors including :


Open a previously recorded .pcap file (or set up a stream source) associated with its LiDAR calibration file.
In Pipeline browser, select Frame (the pointcloud source). Then click on Filters tab > Alphabetical > SLAM.
Tip : After having selected Frame , you can also hit Ctrl+space and then type slam in filter search bar.

Hit Enter to select a SLAM filter: pick SLAM (online) to perform a real-time test with live display, or SLAM (offline) for a full process, displaying only final trajectory and maps.
A new input dialog will appear :

Under Properties panel, modify the parameters if needed (see section SLAM parameters tuning), then hit Apply.
Once SLAM is complete, you can export the Trajectory (for example as as .poses file) to avoid running the SLAM again. To save it, select in the Pipeline Browser panel the Trajectory output, then hit Ctrl+s (or Advance tab > File > Save Data), and choose the output format and name in the dialog window. Later, to load the trajectory back in LidarView, you can drag and drop the .poses file.
To save SLAM keypoints maps, select the map output you want to save in the Pipeline Browser panel, then hit Ctrl+s (or Advance tab > File > Save Data), and choose the output format and name in the dialog window. Common pointclouds formats are csv, pcd, las, ply or vtp.
To export processed frames as a single aggregated pointcloud, you need to instanciate a Transforms Applier filter to aggregate all frames using the computed trajectory (sensor path estimated by SLAM):
intensity array in the main toolbar.Ctrl+s, and choose the output format and name.
The default SLAM parameters are a good compromise to run the SLAM in outdoor urban area, indoor scene and poor geometric scene (forest recorded from UAV, glades, career, ...). However, the parameters can be adapted to the specific kind of environment you want to process to have an optimal result. Especially, consider tuning these parameters first :
General parameters
Maps parameters
Spinning sensor keypoints extractor parameters