DriveWorks SDK Reference 3.5.78 Release For Test and Development only
CAN Plugin Sample

Note
SW Release Applicability: This sample is available in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.

# Description

The CAN Plugin sample implements a sensor driver for a CAN using the comprehensive sensor plugin framework. This uses a DriveWorks CAN Bus sensor to provide raw data.

It also provides sources for a refcounted-BufferPool data structure that may be used as reference for other implementations.

# Running the sample

This sample compiles as a shared library (.so) that can be used with the DriveWorks Sensor Abstraction Layer (SAL).

This plugin can be used to test and verify functionality:

./sample_canbus_logger --driver=can.custom
--params=decoder-path=[path_to_decoder.so]


For playing back CAN data recorded with a custom plugin, the following command line can be used:

./sample_canbus_logger --driver=can.virtual
--params=file=[path_to_recording.bin],
decoder-path=[path_to_decoder.so]

Note
The precompiled decoder library is called libsample_can_plugin.so.