DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

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