DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/sensors/plugins/imu/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_imu_plugin_sample IMU Plugin 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_imu_plugin_sample_description Description
9 
10 The IMU Plugin sample implements a sensor driver for a CAN-based IMU
11 using the comprehensive sensor plugin framework. This uses a DriveWorks
12 @ref canbus_mainsection sensor to provide raw data.
13 
14 It also provides sources for a refcounted-`BufferPool` data structure
15 that may be used as reference for other implementations.
16 
17 @section dwx_imu_plugin_sample_run Running the sample
18 
19 This sample compiles as a shared library (.so) that can be used with the
20 DriveWorks Sensor Abstraction Layer (SAL).
21 
22 This plugin can be used in conjunction with the @ref dwx_imu_loc_sample to test
23 and verify functionality:
24 
25  ./sample_imu_logger --driver=imu.custom
26  --params=decoder-path=[path_to_decoder.so],
27  can-proto=[can.virtual|can.socket],
28  [file=<path_to_can_recording.bin>|device=<can_device>]
29  --timestamp-trace=[true|false]
30 
31 For playing back IMU data recorded with a custom plugin, the following
32 command line can be used:
33 
34  ./sample_imu_logger --driver=imu.virtual
35  --params=file=[path_to_recording.bin],
36  decoder-path=[path_to_decoder.so]
37 
38 @note The precompiled decoder library is called `libsample_imu_plugin.so`.
39 
40 @section dwx_imu_plugin_sample_more Additional Information
41 
42 For more information, please refer to @ref sensorplugins_imusensor.