DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/calibration/lidar/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_lidar_calibration_sample Lidar Calibration Sample
4 @tableofcontents
5 
6 @section dwx_lidar_calibration_description Description
7 
8 The NVIDIA<sup>&reg;</sup> DriveWorks Lidar Calibration sample demonstrates how to use DRIVE Calibration's @ref calibration_mainsection module. The sample uses ICP (Iterative
9 Closest Point) to determine the relative transform between consecutive
10 sweeps of Lidar. Additionally, the sample performs computations on
11 the full point cloud of the latest sweep. Those additional computations are
12 independent of the relative transformation.
13 
14 @section dwx_lidar_calibration_running Running the Sample
15 
16 The Lidar Calibration sample, `sample_calibration_lidar`, accepts the following optional parameters. If none are specified, the Lidar extrinsics are estimated on
17 a default dataset.
18 
19  ./sample_calibration_lidar --rig=[path/to/rig/configuration/file]
20  --lidar-sensor=[integer/sensor-name]
21  --imu-sensor=[integer/sensor-name]
22  --can-sensor=[integer/sensor-name]
23  --output-rig=[output/rig/file]
24  --run-once=[0|1]
25  --use-ego-pose=[0|1]
26  --verbose=[0|1]
27 
28 where
29 
30  --rig=[path/to/rig/configuration/file]
31  Path to the rig configuration file.
32  Default value: path/to/data/samples/lidar/rig_perturbed.json
33 
34  --lidar-sensor=[integer]
35  The index or name of the lidar sensor in the rig configuration file to calibrate
36  Default value: 0
37 
38  --imu-sensor=[integer]
39  The index or name of the IMU sensor in the rig configuration file
40  Default value: 0
41 
42  --can-sensor=[integer]
43  The index or name of the CAN sensor in the rig configuration file
44  Default value: 0
45 
46  --output-rig=[output/rig/file]
47  Output rig configuration file, which contains updated Lidar Extrinsics.
48  Default value: rig_updated.json
49 
50  --run-once=[0|1]
51  Controls whether the runs through a dataset once, rather than a loop.
52  Default value: 0
53 
54  --use-ego-pose=[0|1]
55  Whether or not ego-motion pose is fed to Lidar calibration (in addition to ICP pose).
56  Default value: 0
57 
58  --verbose=[0|1]
59  Whether or not the sample prints detailed estimation together with Lidar sweep number.
60  Default value: 0
61 
62 To pause the sample, press `SPACE`.
63 \n To exit the sample, press `ESC`.
64 \n To rotate and move the camera while the sample is paused, select and drag the image.
65 
66 @note Depending on `--rigOutFile`, you may need to start the sample with **sudo**.
67 
68 @section dwx_lidar_calibration_output Output
69 
70 The sample application shows the previous sweep (Red) and the aligned current sweep (Green).
71 After the calibration converges, the contour rectangle on the ground plane should
72 be aligned co-planar with the ground Lidar points and parallel to the driving direction.
73 
74 The sample application also shows the state of the calibration and the percentage completed,
75 along with the computed update to the Lidar extrinsics calibration.
76 
77 ![Lidar Calibration Sample](sample_lidar_self_calib.png)
78 
79 @section dwx_lidar_calibration_more Additional information
80 
81 For more information on Lidar calibration, see @ref calibration_usecase_lidar.