- Note
- SW Release Applicability: This tutorial is applicable to modules in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.
To replay sensor data from the NVIDIA® DriveWorks recording, you can use the same APIs introduced earlier for creating a virtual sensor object.
For example to replay a camera recording:
sensorParams.
protocol =
"camera.virtual";
std::string file = "video=/location/to/the/recording";
sensorParams.parameters = file.c_str();
Every sensor can be initialized as a virtual sensors and the parameters can be used to point to the location of the recording. Virtual sensors can be created, started and used like real sensors:
To easily replay sensor data:
- Try the default compiled samples with predefined sensor input data
- Change the input parameter of the samples to the data you want to replay. The data should be collected by the recording tools in DriveWorks. (Each sensor sample has a detailed README for usage and explanation)
- Read the sample codes for how to use DriveWorks APIs to replay data as virtual sensors. Read the API definition of each sensor type for details
- Start to use DriveWorks APIs in the targeted application and platforms
For sensors specific example see: