DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

tools/rig_json2json/README-rig_json2json.md
Go to the documentation of this file.
1 # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_rig_json2json_tool Rig Reserializer Tool
4 @tableofcontents
5 
6 @section dwx_rig_json2json_tool_description Description
7 
8 The NVIDIA<sup>&reg;</sup> DriveWorks Rig Reserializer Tool deserializes and serializes an input rig file, upgrading it to the latest version in the process.<br>
9 
10 @section dwx_rig_json2json_tool_prereqs Prerequisites
11 
12 This tool is available on the x86 Host System, NVIDIA DRIVE<sup>&trade;</sup> OS Linux and NVIDIA DRIVE<sup>&trade;</sup> OS QNX.
13 
14 This tool creates an output file that is:
15 - Named [input_rig_name]-new.json if no output rig file is specified
16 - Stored at the same path as the input rig file if no absolute path for the output rig file is specified
17 - Stored at the absolute path provided via the output rig file argument
18 
19 @section dwx_rig_json2json_tool_usage Running the Tool
20 
21 Run this tool by executing:
22 
23  ./rig_json2json input.json [output.json]
24 
25 @subsection dwx_rig_json2json_tool_params Positional parameters
26 
27  [path to input file]
28  Description: The rig file to be re-serialized.
29  If there is no rig file present, the tool will not launch.
30  Default value: N/A
31 
32  [path to output file]
33  Description: The rig file containing the resulting serialized values with the latest version.
34  Default value: <input-rig>-new.json
35 
36 @section dwx_rig_json2json_examples Examples
37 
38  ./rig_json2json /home/user/input-rig.json
39  Results in /home/user/input-rig-new.json
40 
41  ./rig_json2json /home/user/input-rig.json /home/user/result/output-rig.json
42  Results in /home/user/result/output-rig.json
43 
44  ./rig_json2json /home/user/input-rig.json output-rig.json
45  Results in /home/user/output-rig.json