Samples#
Warning
The samples data and precompiled samples binaries are not preinstalled on the NVIDIA® DRIVE® AGX Thor Target System. You must download them to the host system following the procedure in Downloading and Installing Additional DriveOS Packages in the NVIDIA DriveOS Installation Guide and install or mount them on the target system following the procedures in Getting Started.
Note
Third-party sensors and accessories noted on this page are for illustrative purposes. Please refer to NVIDIA DRIVE Hyperion™ 8.1 Sensors and Accessories for supported sensors and accessories.
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.
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.
Once installed, the precompiled samples can be found under
/usr/local/driveworks/bin
On the host system, once installed, 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.
Common Options#
In addition to the parameters described in each sample’s documentation, the following options are also available:
- --help#
Prints help information.
- --autoExit=0|1[=0]#
Used for auto-exit function.
0: Sample replays when reaching the end of the data stream.1: Sample auto exits when reaching the end of the data stream.
- --offscreen=0|1|2[=0]#
Allows to disable rendering.
0: Displays window.1: Displays offscreen window.2: No window created.
- --profiling=0|1[=1]#
When set to
1, enables sample profiling. Otherwise, profiling is disabled.
Introductory Samples#
Sample |
Description |
|---|---|
Initializes the DriveWorks SDK context and accesses GPU properties. |
Sensor Abstraction Layer Samples#
Camera Samples#
Sample |
Description |
|---|---|
Displays and records a video setup utilizing the SIPL framework with custom cameras. |
|
Demonstrates how to replay a video and seek to any point in the video. |
|
Displays videos captured from generic USB cameras. |
Other Sensor Samples#
Sample |
Description |
|---|---|
Displays messages from GPS devices. |
|
Implements a driver for a CAN-based GPS sensor. |
|
Displays messages from IMU sensor. |
|
Implements a driver for a CAN-based IMU sensor. |
|
Implements a driver for a UDP/TCP based lidar sensor. |
|
Displays the 3D point cloud from the lidar. |
|
Implements a driver for a UDP/TCP based radar sensor. |
|
Connects to a radar and displays the generated 3D point cloud. |
|
Enumerates all available sensors drivers in the SDK. |
|
Performs time synchronization on lidar data. |
Vehicle and Motion Actuation Samples#
Sample |
Description |
|---|---|
Demonstrates how to convert CAN signals sent and received from a dataspeed drive-by-wire system, to a generic NVIDIA-defined CAN bus format. |
|
Uses steering angle and velocity CAN measurements to compute the position of the car in the world coordinate system. |
|
Reads the rig configuration from XML file. |
|
Controls the vehicle (steering/throttle/brakes) and reads the vehicle’s state. |
|
Demonstrates how to write a fully customized drive-by-wire abstraction. |
Image Processing Samples#
Sample |
Description |
|---|---|
Demonstrates H.264 video playback with color correction. |
|
Demonstrates the connected components labeling algorithm. |
|
Demonstrates feature detection and feature tracking capabilities using the Feature Tracker module. |
|
Demonstrates how to record a video from a CUDA® image or a rendering video. |
|
Demonstrates basic image processing functionalities. |
|
Demonstrates how to use an image streamer in a simple environment. |
|
Demonstrates the stereo pipeline, and how to produce a confidence map and final stereo output. |
|
Demonstrates template tracking capabilities using the Tracking |
|
Removes fisheye distortion from a video captured on a camera with a fisheye lens using the DriveWorks SDK CUDA implementation. |
|
Removes fisheye distortion from a video captured on a camera with a fisheye lens using NvMedia LDC. |
Point Cloud Processing Samples#
Sample |
Description |
|---|---|
Displays a composite image of sequential ICP transforms derived from lidar data. |
|
Demonstrates how to use point cloud processing APIs for primitive processing. |
Calibration Samples#
Sample |
Description |
|---|---|
Demonstrates the ability to estimate camera extrinsics using the DriveWorks SDK Calibration Engine. |
|
Demonstrates the ability to estimate IMU extrinsics using the DriveWorks SDK Calibration Engine. |
|
Demonstrates the ability to estimate lidar extrinsics using the DriveWorks SDK Calibration Engine. |
|
Demonstrates the ability to estimate radar extrinsics using the DriveWorks SDK Calibration Engine. |
|
Demonstrates the ability to estimate stereo extrinsics using the DriveWorks SDK Calibration Engine. |
Communication Samples#
Sample |
Description |
|---|---|
Demonstrates simple IPC functionalities using network sockets. |
Utility Samples#
Sample |
Description |
|---|---|
Demonstrates rendering helpers which help render text, points, lines, triangles, and textures in 2D and 3D for debug visualization. |
|
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 .