[KnowledgeBase] LPSLAM Configuration File
This page documents and describes all the available parameters to configure LPSLAM.
manager
section
The manager acts as the primary interface between the user and the Visual-SLAM backend. It allows users to set, enable, and disable general functionalities of LPSLAM.
Argument | Type | Description |
---|---|---|
|
| Activate/deactivate filling the occupancy grid. |
|
| Allow to drop frames if the processing time is too slow. |
|
| File to save the generated occupancy map. |
|
| Enable/disable recording data. |
|
| If |
|
| Number of items in the processing batch when replaying data. |
|
| Activate/deactivate a live view of the camera input. |
|
| Number of threads to use for processing. |
Â
cameras
section
Here, one sets the crucial calibration parameters for the utilized camera. These parameters define the relationship between 3D points in the world and their corresponding image projections. Accurate calibration ensures the camera model accurately reflects the real world, allowing for precise reconstruction of the environment in Visual-SLAM.
Argument | Type | Description |
---|---|---|
|
| The number assigned to the desired camera device starts from 0. When there is only one camera connected to the system 0 is the default. |
|
| Specifies the camera’s mathematical model. Available options:
|
|
| Focal length of the camera in the X-direction, in pixels. |
|
| Focal length of the camera in the Y-direction, in pixels. |
|
| The principal point (optical center) of the camera in the X-direction, in pixels. It represents the intersection of the optical axis with the image plane. |
|
| The principal point (optical center) of the camera in the Y-direction, in pixels. |
|
| If |
|
| If |
|
| The horizontal resolution of the camera image sensor, in pixels. |
|
| The vertical resolution of the camera image sensor, in pixels. |
|
| Factor to scale down the image. Use values between [0, 1]. |
|
| Represents the camera’s frame rate or the number of images it captures per second. |
|
| Deviation of the camera lens from a perfect pinhole model. In other words, the geometric distortion introduced by the lens. It is represented as a vector of distortion coefficients:
|
|
| Specific to stereo cameras, it represents the distance between the optical centers of the left and right cameras. |
|
| The 3D translation vector of the camera relative to a reference frame. A vector that specifies the camera position along the X, Y, and Z axes. |
|
| Describes the camera’s orientation relative to a reference frame. Represented as a rotation matrix SO(3). |
|
| This is interchangeable with the |
|
| The mask type used during calibration. It can be used to exclude certain regions of the image from the calibration process. Available options:
|
When using a stereo camera, each camera requires its own configuration within the same file. They are differentiated by numerical identifiers, with the left camera typically assigned 0 and the right camera assigned to 1. Notably, the parameters focal_x_baseline
, translation
, and rotation
(or rotation_vec
) are only specified for the first camera.
Â
datasources
section
This section configures the image data source to use and defines its general settings.
File Source
This data source is utilized when it is desired to utilize LPSLAM with a pre-recorded dataset file (.pb
) in replay
mode.
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Camera’s relative position. |
|
| Camera’s relative quaternion orientation. | |
|
| File path. |
LeapMotion and Rigel
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Camera’s relative position. |
|
| Camera’s relative quaternion orientation. |
OpenCV
Generally, this data source type can be used for any camera that the system detects and can be accessed via OpenCV (e.g. StereoLabs ZED2)
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Camera’s relative position. |
|
| Camera’s relative quaternion orientation. | |
|
| ID of the input camera in the system. | |
|
| Enable/disable grayscale as the color order. | |
|
| The horizontal resolution of the camera image sensor, in pixels. | |
|
| The vertical resolution of the camera image sensor, in pixels. | |
|
| The orientation of the stereo camera. Available options:
| |
|
| Framerate of input images. | |
|
| Exposure value for the camera. | |
|
| Gain value for the camera. | |
|
| Activate/deactivate OpenCV’s verbosity. | |
|
| The desired |
Varjo
This type is for using Varjo XR-3 HMD cameras as data source.
Requires LPSLAM_BUILD_VARJO
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Camera’s relative position. |
|
| Camera’s relative quaternion orientation. | |
|
| Â |
Others
Argument | Type | Description | |
---|---|---|---|
|
| Available options:
| |
|
|
| |
 |  |  |  |
Â
trackers
section
The mechanism or object responsible for the tracking functionality is referred to as a tracker. Here, one sets the specific configuration for it.
VSLAM
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
       General |
|
| Available options:
|
|
| Path of a direct configuration YAML file for the Visual-SLAM backend. | |
|
| Activate/deactivate the viewer. | |
|
| Activate/deactivate sending poses with only orientation information. | |
|
| Port number to which the poses will be sent. | |
|
| An ID for the tracker. | |
|
| Images per second to show in the viewer. | |
|
| Enable/disable using CUDA. | |
|
| Enable/disable using OpenCL. | |
|
| Enable/disable undistorting the images for better feature estimation and tracking. | |
|
| Path of the file containing the Bag of Words database to assign identifiers to the visual features. | |
    Mapping |
|
| Enable/disable publishing the generated map in real-time. |
|
| Enable/disable creating a map and only perform localization. | |
|
| Enable/disable looking for loop closure poses to add to the pose graph. | |
|
| If | |
|
| Enable/disable using a map database. | |
       Visual Features |
|
| Depth threshold used to compute ORB keypoints. |
|
| Minimum number of triangulated points required for a successful pose update in the Visual-SLAM backend. | |
|
| Maximum number of keypoints to estimate. | |
|
| Initial threshold for intensity difference when examining pixels around the potential corner detected by FAST. ORB starts with comparing intensities around the corner based on this parameter. | |
|
| Minimum acceptable intensity difference for a pixel to be considered part of the corner feature. It acts as a filter. Only corners where a certain number of pixels (defined by ORB) exhibit an intensity difference greater than this parameter are retained as features. | |
|
| Total number of levels in the image pyramid created by ORB. | |
|
| Multiplicative factor by which the image is progressively scaled down to create a pyramid of images. Each level in the pyramid represents a different scale of the original image. | |
     Others |
|
| Activate/deactivate forwarding data with a higher rate than the image |
|
| Enable/disable processing and forwarding IMU data to the Visual-SLAM backend. | |
|
| Enable/disable processing and forwarding navigation odometry data to the Visual-SLAM backend. | |
|
| The maximum age of laser data before it’s considered outdated when using a laser scanner and a camera in the system. | |
|
| Enable/disable relocalize with navigation odometry data. | |
|
| Enable/disable waiting for navigation odometry data to be processed. |
Marker
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| The size of the marker, in meters. |
|
| Scaling factor for the Process Noise Covariance | |
|
| Scaling factor for the Observation Noise Covariance | |
|
| Port number to which the poses will be sent. | |
|
| Enable/disable showing a window with the tracked tag. | |
|
| If its desired to detect only one marker, the number ID of the desired marker. |
Â
processors
section
This section allows to apply some pre-defined image processing methods to the incoming images.
Camera Calibration
To be deprecated.
Argument | Type | Description |
---|---|---|
|
|
|
|
|
|
Coordinates Alignment
To be deprecated.
Argument | Type | Description |
---|---|---|
|
|
|
|
|
|
Image Blackout
To be deprecated.
Argument | Type | Description |
---|---|---|
|
|
Blacks out the image frames between 150 and 190. |
|
|
|
Image Thresholding
This image processor thresholds the images using truncate fixed-level thresholding.
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Whether automatically determine the threshold via Otsu’s algorithm. |
|
| Threshold value |
Intensity Adjustment
This image processor adjusts the contrast of the images by mapping the input intensity range to a specified output range.
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Lower bound of the output intensity range. |
|
| Upper bound of the output intensity range. |
Online Photometric Calibration
This performs Online Photometric Calibration with the upcoming images to generate the camera’s inverse response function. For further details about it refer to: Online Photometric Calibration of Auto Exposure Video for Realtime Visual Odometry and SLAM (P. Bergmann, R. Wang, D. Cremers), In IEEE Robotics and Automation Letters (RA-L), volume 3, 2018 (pdf).
Argument | Type | Description | |
---|---|---|---|
|
|
| |
|
| Â | |
 |
|
| Image patch size used in the frontend tracker. |
|
| Number of image pyramid levels used in the frontend tracker. | |
|
| Number of features kept for each frame. | |
|
| Number of images used for rapid exposure time estimation. | |
|
| Number of frames kept in the database. | |
|
| Spacing for sampling keyframes in the backend optimization. | |
|
| Minimum number of keyframes a feature should appear. |
Undistortion
This image processor undistorts the images based on the camera parameters and lens model.
Argument | Type | Description |
---|---|---|
|
|
|
|
|
|
markers
section
Argument | Type | Description | |
---|---|---|---|
|
| Available options:
| |
|
| Â | |
 |
|
| ID of the Chilitags marker. |
 |
|
| Relative position of the marker to the camera. |
 |
|
| Relative orientation of the marker to the camera. |
Â
Â