NVIDIA® DriveWorks SDK includes samples that you can use as a starting point for developing, porting, and optimizing your applications. These samples are provided as source code that you can modify to meet specific use cases, such as the use of third-party sensors, custom rendering steps, etc.
You can use the as-delivered sample applications without compiling or loading them. If you installed DriveWorks on the target, those sample applications are ready to execute. If you need to build the samples from source, please refer to Building DriveWorks Samples.
The samples use included data files by default if no other file is specified at execution. These data files are short in length, and the default samples are not to be considered as thorough demonstrations.
Precompiled samples can be found under:
/usr/local/driveworks/bin
The source code can be found under:
/usr/local/driveworks/samples/src
- Note
- If you experience a permissions error when entering the command to run a sample, re-enter the command preceded with
sudo
.
This generally happens when the sample tries to write an output file under /usr/local
.
In addition to the parameters described in each sample's documentation, the following options are also available:
--offscreen=[0|1]
Allows to disable rendering.
Default value: 0
--profiling=[0|1]
When set to 1, enables sample profiling.
Otherwise, profiling is disabled.
Default value: 1
Introductory Samples
Sample | Description |
Hello World Sample | Initializes the DriveWorks SDK context and accesses GPU properties. |
Sensor Abstraction Layer Samples
Camera Samples
Sample | Description |
USB Camera Capture Sample | Displays videos captured from generic USB cameras. |
Camera Sample | Displays and records a video setup utilizing the SIPL framework with custom cameras. |
dwx_camera_sample_extra | Extension of dwx_camera_sample. Demonstrates use of NvSci buffers and synchronization primitives. |
Camera Replay Sample | Uses a hardware decoder to playback and display an H.264 video stream. |
Camera Seek Sample | Demonstrates how to replay a video and seek to any point in the video. |
Other Sensor Samples
Vehicle and Motion Actuation Samples
Image Processing Samples
Point Cloud Processing Samples
Deep Neural Network (DNN) Framework Samples
Calibration Samples
Sample | Description |
Camera Calibration Sample | Demonstrates the ability to estimate camera extrinsics using the DriveWorks Calibration Engine. |
IMU Calibration Sample | Demonstrates the ability to estimate IMU extrinsics using the DriveWorks Calibration Engine. |
Lidar Calibration Sample | Demonstrates the ability to estimate Lidar extrinsics using the DriveWorks Calibration Engine. |
Radar Calibration Sample | Demonstrates the ability to estimate Radar extrinsics using the DriveWorks Calibration Engine. |
Stereo Calibration Sample | Demonstrates the ability to estimate Stereo extrinsics using the DriveWorks Calibration Engine. |
Steering Calibration Sample | Demonstrates the ability to estimate vehicle steering offset using the DriveWorks Calibration Engine. |
Communication Samples
Utility Samples
Sample | Description |
Rendering Sample | Demonstrates rendering helpers which help render text, points, lines, triangles, and textures in 2D and 3D for debug visualization. |
Rendering Engine Sample | Demonstrates how to draw points, lines, triangles, ellipses, boxes, arrows, plots, grids, and images in 2D and 3D. |
- Note
- For detailed instructions on building the samples from source, please refer to Getting Started With the NVIDIA DriveWorks SDK.