The 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 the DriveWorks SDK on the target, those sample applications are ready to execute. If you need to build the samples from source, please refer to Getting Started With the NVIDIA DriveWorks SDK.
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
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
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 SDK Calibration Engine. |
IMU Calibration Sample | Demonstrates the ability to estimate IMU extrinsics using the DriveWorks SDK Calibration Engine. |
Lidar Calibration Sample | Demonstrates the ability to estimate LIDAR extrinsics using the DriveWorks SDK Calibration Engine. |
Radar Calibration Sample | Demonstrates the ability to estimate RADAR extrinsics using the DriveWorks SDK Calibration Engine. |
Stereo Calibration Sample | Demonstrates the ability to estimate stereo extrinsics using the DriveWorks SDK 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. |
Application Samples
- Note
- For detailed instructions on building the samples from source, please refer to Getting Started With the NVIDIA DriveWorks SDK.