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