Before we can instantiate Sensor Manager, we need to declare and instantiate NVIDIA® DriveWorks Context , Sensor Abstration Layer and Rig Configuration :
Now we can initialize Sensor Manager and start the underlying sensors:
Once Sensor Manager object initialized and sensors are started, it is possible to read events in a loop:
Clean-up procedure consists of stopping Sensor Manager and releasing the memory:
Similarly, DriveWorks Context, SAL and Rig Configuration objects must be released at the end.
Sensor Manager is used in multiple samples: