LiDAR Driveworks Plugin for 7.2.5

DRIVE OS Version: 7.2.5

I am currently attempting to migrate my lidar plugin from Driveworks 7.0.3 to 7.2.5. For 7.0.3, my plugin code works fine as expected. I tried compiling the same plugin code against 7.2.5 initially - but I ran into some missing header files (one called LidarPlugin.h).

While digging further, it looked like the sample lidar plugin structure had fundamentally changed, so I started refactoring my code based on the new structure. After compiling and executing this plugin, I get the following error during runtime
Driveworks exception thrown: DW_SAL_CANNOT_CREATE_SENSOR: CodecHeaderLidarCustomEx: Cannot link shared library call: dwSensorLidarPlugin_getFunctionTable.

Upon digging further, this function call does not exist in the sample main.cpp file, so it is unclear why this function call is expected. Furthermore, the information in this link appears to be contradictory - it seems to indicate the original plugin sample will be deprecated in a future release but at the same time, it points to a link to the newer plugin code to be followed. Any clarification on how to proceed will be much appreciated.

Dear @zenyata ,
Is it possible to share plugin code?

Hi @SivaRamaKrishnaNV, unfortunately I cannot share the source code. However I made some progress and ran into some issues which I am currently debugging. But what is not clear to me is how the plugin is to be executed. The documentation indicates the following

./sample_lidar_replay --protocol=lidar.live --params=codec=lidar/nvidia_reference, protocol=udp, ip=XXX.XXX.XXX.XXX, port=XXXX, scan-frequency=10

In the prior versions, there was a specific param where I could specify the decoder path for my custom lidar. How is this handled for 7.2.5? Can you point me to some documentation on what commands are to be run for a custom lidar?

Hi @SivaRamaKrishnaNV, any feedback on this?

Hi @zenyata,

In DriveWorks 6.x and 7.x frameworks (including DRIVE OS 7.2.5 for Thor), the mechanism for passing a custom LiDAR plugin path has been consolidated directly into the parameter string.

Instead of an independent, dedicated command-line flag, the framework leverages the generic lidar.plugins abstraction layer. Here is how you execute it:

1. Command Execution Syntax

To run your custom decoder, you must specify the protocol as lidar.plugins and point the decoder-path parameter directly to your compiled .so library within the --params string:

./sample_lidar_replay \
  --protocol=lidar.plugins \
  --params=decoder-path=/absolute/path/to/your/libdw_custom_lidar_plugin.so,ip=XXX.XXX.XXX.XXX,port=XXXX,scan-frequency=10

2. Environment Variables & Search Paths

If you prefer not to hardcode an absolute file system path directly inside the --params block, you can place your compiled .so plugin library into the custom plugin runtime directories or export its location using the DW_PLUGIN_PATH environment variable:

export DW_PLUGIN_PATH=/home/nvidia/my_custom_plugins/

When this variable is set, DriveWorks will automatically evaluate that folder to locate the file declared under your decoder-path= parameter.

3. Handling Custom Driver Arguments

Any proprietary attributes or driver flags (such as specific configuration constants required by your decoder layout) should be appended sequentially inside the same comma-separated --params string. The DriveWorks plugin initialization routines will forward that exact payload context directly to your implementation’s internal parsing blocks.


Note: Synthesized with AI assistance.


Hi @Andrey1984, lidar.plugins does not appear to be a recognized protocol

Hi @zenyata,

Please accept my apologies; that was a typo regarding the protocol string interface. lidar.plugins is not a valid protocol in the DriveWorks SAL framework.

Depending on how your plugin interface is structured in 7.2.5 (whether it is an end-to-end full sensor abstraction or a packet decoder overlay), you have two distinct, valid methods to execute it:

Option A: Using the lidar.custom Protocol

If your plugin fully implements the dwSensorPlugin layout to handle its own socket initialization, buffering, and packet lifecycle, you invoke it via the lidar.custom protocol. The path to your compiled library is specified via the decoder-path argument: [1, 2]

./sample_lidar_replay \
  --protocol=lidar.custom \
  --params=device=CUSTOM_EX,decoder-path=/absolute/path/to/libdw_custom_lidar.so,ip=XXX.XXX.XXX.XXX,port=XXXX,scan-frequency=10

(Note: Ensure your code exports the required dwSensorLidarPlugin_getFunctionTable symbol). [1]

Option B: Using the lidar.socket Protocol with Custom Device

If your plugin is strictly a packet decoder designed to sit on top of DriveWorks’ native network stack, use lidar.socket as the protocol. Pass device=CUSTOM or device=CUSTOM_EX alongside your library via the decoder key inside the params string: [1, 2]

./sample_lidar_replay \
  --protocol=lidar.socket \
  --params=device=CUSTOM_EX,decoder=/absolute/path/to/libdw_custom_lidar.so,ip=XXX.XXX.XXX.XXX,port=XXXX,scan-frequency=10

If you still get a loading error:

Ensure that your library path is either fully absolute or explicitly contained in a directory exported via the environment search path:

export DW_PLUGIN_PATH=/path/to/your/compiled/plugin/directory/


Disclaimer: Drafted with AI assistance; technical details should be verified against NVIDIA’s official guidance.


References:

LiDAR Driveworks Plugin for 7.2.5

DriveWorks SDK Reference: Sensor Querying

DriveWorks SDK Reference: Lidar Plugin Sample

Thanks @Andrey1984 for suggestions.
@zenyata any feedback on th suggestion?

Hi @Andrey1984 and @SivaRamaKrishnaNV - the second recommendation, per my understanding is not applicable any longer to Driveworks 7.2.5. Per the documentation here, the lidar plugin architecture has changed. It looks like lidar.live has replaced lidar.custom, and there is no mention of decoder-path in the arguments.

Hi @zenyata,

Thank you for clarifying

Looking closely at your runtime exception layout:
CodecHeaderLidarCustomEx: Cannot link shared library call: dwSensorLidarPlugin_getFunctionTable

The identifier CodecHeaderLidarCustomEx indicates that the SAL framework is attempting to initialize your driver through the Decoder-Only (Custom Decoder Overlay) stack rather than the new Codec-Based standalone framework.

Since you mentioned you refactored your source code based on the new 7.2.5 sample (which uses the new codec-based framework and intentionally does not expose dwSensorLidarPlugin_getFunctionTable), the SAL loader is throwing a linkage error because it’s looking for that missing symbol.

This happens if your runtime command string inadvertently routes to the custom decoder layout. For the new codec framework code you compiled, try verifying the following adjustments:

  1. Clear Environment Paths:

    Ensure no lingering older libraries are cached in your DW_PLUGIN_PATH paths.

  2. Strict Command Syntax: Ensure you are passing the exact mapped codec identifier matching what your plugin exports via NVLidarCodec.hpp (e.g. codec=lidar/nvidia_reference or your custom MIME string):

    ./sample_lidar_replay --protocol=lidar.live --params=codec=your_custom_mime_here,protocol=udp,ip=XXX.XXX.XXX.XXX,port=XXXX,scan-frequency=10
    
    

If you pass device=CUSTOM or device=CUSTOM_EX in the arguments of DriveWorks 7.2.5, it forces the SAL layer to search for the legacy dwSensorLidarPlugin_getFunctionTable symbol. Dropping those legacy keys and using only the codec= identifier should stop the runtime loader from expecting that missing linkage symbol.


Disclaimer: Drafted with AI assistance; technical details should be verified against NVIDIA’s official guidance.
Custom lidar reference

Hi @zenyata,

To summarize the two distinct integration paths available in DriveWorks 7.2.5 depending on how your plugin is architected, here is how the execution parameters break down for both models:

Paradigm 1: New Codec-Based Framework (lidar.live)

  • When to use: If you have refactored your plugin code around the new stream codec structure (using NVLidarCodec.hpp / stream decoders).

  • Mechanism: The library acts purely as a packet decoder payload. It does not export dwSensorLidarPlugin_getFunctionTable().

  • Execution Syntax:

    ./sample_lidar_replay \
      --protocol=lidar.live \
      --params=codec=your_custom_mime_here,protocol=udp,ip=XXX.XXX.XXX.XXX,port=XXXX,scan-frequency=10
    
    
  • Crucial: Do not include device=CUSTOM, device=CUSTOM_EX, or decoder-path= flags, as these trigger the legacy loader and cause the dwSensorLidarPlugin_getFunctionTable link failure.

Paradigm 2: Comprehensive / Full-Sensor Plugin (lidar.custom)

  • When to use: If your plugin implements the full sensor lifecycle, custom network transport, and raw data gathering buffers directly (dwSensorPlugin interface).

  • Mechanism: The shared library must export the C entry point symbol dwSensorLidarPlugin_getFunctionTable().

  • Execution Syntax:

    ./sample_lidar_replay \
      --protocol=lidar.custom \
      --params=decoder-path=/absolute/path/to/libdw_custom_lidar.so,ip=XXX.XXX.XXX.
    

Disclaimer: Drafted with AI assistance; technical details should be verified against NVIDIA’s official guidance.

Dear @zenyata ,
so you have changed to codec based implementation(supported in future releases) in DOS 7.2.5 and tried ./sample_lidar_replay \ --protocol=lidar.live \ --params=codec=lidar/nvidia_reference,protocol=udp,ip=xx.xx.xx.xx,port=xxxx,scan-frequency=xx?

Could you please provide any update for this topic?