DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

tools/calibration/apps/graph-to-rig/README-graph-to-rig.md
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
11 @page dwx_calibration_graph_to_rig Calibrated Graph to Rig File Tool
12 @tableofcontents
13 
14 @section dwx_calibration_graph_to_rig_description Description
15 
16 The NVIDIA<sup>&reg;</sup> DriveWorks Calibrated Graph to Rig File tool extracts the relevant parts from a JSON calibrated graph file as input, into a JSON rig file as output.<br>
17 This output file can be parsed by the @ref rig_mainsection module within DriveWorks.
18 
19 @section dwx_calibration_graph_to_rig_prereqs Prerequisites
20 
21 This tool is available on the x86 Host System and NVIDIA DRIVE<sup>&trade;</sup> OS Linux.
22 
23 This tool creates output files that are placed into the current working directory by default. Please ensure the following for your convenience:
24 - Write permissions are enabled for the current working directory.
25 - Include the tools folder in the binary search path of the system.
26 - Execute from your home directory.
27 
28 @section dwx_calibration_graph_to_rig_usage Running the Tool
29 
30 Run the tool by executing:
31 
32  /calibration-graph-to-rig --graph=[path to input calibrated-graph.json file]
33  --rig=[path to input rig.json file]
34  --output=[path to output rig file]
35 
36 @subsection dwx_calibration_graph_to_rig_parameters Parameters
37 
38  --graph=[path to input calibrated-graph.json file]
39  Description: The input calibrated graph file.
40  If only this parameter is provided, a `rig.json` file is created from scratch.
41 
42  --rig=[path to input rig.json file]
43  Description: The input rig file.
44  If this parameter and `--graph` are both provided, the calibration data from the `calibrated-graph.json` file
45  is merged with the input `rig.json` file.
46 
47  --output=[path to output rig file]
48  Description: The output rig file. If this parameter is specified, the `calibrated-graph.json` and `rig.json` files
49  are saved to a separate file. The default setting overwrites the input `rig.json` file.
50 
51 @section dwx_calibration_graph_to_rig_output Output
52 
53 The tool generates a `rig.json` file in the current folder as output. This file lists all cameras used during calibration with their intrinsic \n and extrinsic calibration data. If an existing `rig.json` file is passed to the application as input, all camera entries are modified with the new calibration results.<br>
54 For additional information regarding the format for the produced JSON file, please refer to @ref rig_mainsection and @ref rigconfiguration_usecase0.
55 
56 @section dwx_calibration_graph_to_rig_additional Additional Information
57 
58 This tool uses the center of the rear axle projected to the ground as a coordinate system origin.<br>
59 For additional information regarding this coordinate system, please refer to @ref dwx_coordinate_systems.