DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/icp/README.md
Go to the documentation of this file.
1 # Copyright (c) 2018-2019 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_sample_icp ICP (Iterative Closest Points) 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_sample_icp_description Description
9 
10 The NVIDIA<sup>&reg;</sup> DriveWorks ICP sample shows how to obtain ICP transforms via the
11 DriveWorks ICP module. The sample determines the relative transform between
12 two consecutive spins of Lidar and then chains them over a longer period. The
13 sample uses a point-to-plane algorithm and expects the points to be in an
14 order that approximately preserves their relative proximity in 3D space.
15 
16 @section dwx_sample_icp_running Running the Sample
17 
18 The Iterative Closest Points sample, sample_icp, accepts the following optional parameters. If none are specified, it will use a default Lidar recording.
19 
20  ./sample_icp --lidarFile=[path/to/lidar/file]
21  --plyloc=[path/to/folder]
22  --init=[integer]
23  --skip=[integer]
24  --numFrames=[integer]
25  --maxIters=[integer]
26 
27 where
28 
29  --lidarFile=[path/to/lidar/file]
30  Path to the Lidar file, which must be DW captured Velodyne HDL-64E file.
31  Default value: path/to/data/samples/lidar/lidar_velodyne64.bin
32 
33  --plyloc=[path/to/folder]
34  If specified, this os the directory where to write ICP-fused ASCII-PLY file.
35  Default value: (none)
36 
37  --init=[integer]
38  Number of initial spins to skip before the first pair is fed to ICP.
39  Initial frames do not contain enough points for ICP. Must be > 10.
40  Default value: 20
41 
42  -skip=[integer]
43  Number of frames to skip before getting the second spin in the pair. The first
44  spin in a pair is the second spin from the previous pair. In the case of the
45  first pair, the first spin is specified by the value of --init + 1 and the second
46  is N frames later, where --skip specifies N. Must be < 5.
47  Default value: 0
48 
49  --numFrames=[integer]
50  These many pairs are used to perform ICP before stopping.
51  To process all frames, set to zero (0).
52  Default value: 0
53 
54  --maxIters=[integer]
55  Number of ICP iterations to run.
56  Default value: 12
57 
58 To pause the sample, press `SPACE`.
59 
60 To rotate and move the camera while the sample is paused, select and drag the image.
61 
62 @section dwx_sample_icp_output Output
63 
64 ![ICP Sample](sample_icp.png)
65 
66 @section dwx_sample_icp_more Additional Information
67 
68 For more details see @ref pointcloudprocessing_usecase5 .