DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

samples/vehicleio_plugin/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_vehicleio_plugin_sample VehicleIO Plugin Sample
4 @tableofcontents
5 
6 @section dwx_vehicleio_plugin_description Description
7 
8 The VehicleIO Plugin sample demonstrates how to write a custom VehicleIO backend via a
9 dynamically loaded library.
10 
11 For simplicity, this sample only encodes and parses steering commands as
12 specified in a DBC file.
13 
14 @section dwx_vehicleio_plugin_running Running the Sample
15 
16 In order to instruct the VehicleIO module to use the plug-in backend, a rig file
17 should specify a VehicleIO node with `type` parameter set to `"custom"` and
18 `custom-lib` parameter pointing to the dynamically loaded library, e.g.
19 
20 ```
21  "vehicleio": [
22  {
23  "type": "custom",
24  "parent-sensor": "can:vehicle:custom",
25  "custom-lib": "libsample_vehicleio_plugin.so"
26  }
27  ],
28 ```
29 
30 A sample rig file already provided in `<dw>/data/samples/vehicleio/rig-plugin.json`.
31 
32 Once the rig file is ready, you can run sample_vehicleio:
33 
34  ./sample_vehicleio --rig=path/to/dw/data/samples/vehicleio/rig-plugin.json
35 
36 @section dwx_vehicleio_plugin_more Additional information
37 
38 For more information, see @ref vehicleio_mainsection.