DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

SensorManager.h File Reference

Detailed Description

NVIDIA DriveWorks API: SensorManager

Description: This file defines the SensorManager interface.

Definition in file SensorManager.h.

Go to the source code of this file.

Data Structures

struct  dwDispatcherParams
 Parameters for dispatcher, used to define some behaviors of dispatcher. More...
 
struct  dwSensorEvent
 Structure for returning data upon any sensor event. More...
 
struct  dwSensorManagerParams
 Parameters for sensor manager, used to create a sensor manager. More...
 

Typedefs

typedef void(* dwSensorManagerDispatcher_t) (const dwSensorEvent *, void *, dwStatus)
 function pointer of sensormanager dispatcher. More...
 
typedef struct dwSensorManagerObject * dwSensorManagerHandle_t
 Handle of sensor manager. More...
 
typedef struct dwUltrasonicEnvelope dwUltrasonicEnvelope
 Not available as of current release. Will be added in future releases. More...
 

Enumerations

enum  dwSensorManagerDataMode {
  DW_SENSOR_MANAGER_DATA_MODE_NON_RAW = 0 ,
  DW_SENSOR_MANAGER_DATA_MODE_RAW = 1
}
 Data mode in this unit, which determines whether read raw data. More...
 

Functions

DW_API_PUBLIC dwStatus dwSensorManager_acquireNextEvent (const dwSensorEvent **ev, dwTime_t timeoutMicroSeconds, dwSensorManagerHandle_t sm)
 Called by the application to consume the next available sensor event ready for consumption. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_addCameraSensor (const char8_t *groupName, uint32_t siblingIndex, dwSensorParams params, uint64_t clientData, dwSensorManagerHandle_t sm)
 Adds a camera sensor to the SAL instance. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_addSensor (dwSensorParams params, uint64_t clientData, dwSensorManagerHandle_t sm)
 Adds a sensor to the SAL instance. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_getNumSensors (uint32_t *count, dwSensorType type, dwSensorManagerHandle_t sm)
 Gets the number of sensors instantiated for a given sensor type. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_getSensorClientData (uint64_t *cd, uint32_t sensorIndex, dwSensorManagerHandle_t sm)
 Gets sensor's clientData according to the assigned sensorIndex. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_getSensorHandle (dwSensorHandle_t *handle, uint32_t sensorIndex, dwSensorManagerHandle_t sm)
 Gets the sensor handle to the specified sensor. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_getSensorIndex (uint32_t *sensorIndex, dwSensorType type, uint32_t sensorTypeIndex, dwSensorManagerHandle_t sm)
 Gets sensor's index according to the dwSensorType and the sensorTypeIndex. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_getSensorTypeIndex (uint32_t *sensorTypeIndex, dwSensorType *type, uint32_t sensorIndex, dwSensorManagerHandle_t sm)
 Gets sensor's relative index and type based upon its sensor index. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_initialize (dwSensorManagerHandle_t *sm, size_t poolSize, dwSALHandle_t const sal)
 Creates an instance of SensorManager module. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_initializeFromRig (dwSensorManagerHandle_t *sm, dwConstRigHandle_t rc, size_t poolSize, dwSALHandle_t sal)
 Creates and initializes a SensorManager module, adding all sensors in the provided Rig Configuration. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_initializeFromRigWithParams (dwSensorManagerHandle_t *sm, dwConstRigHandle_t rc, const dwSensorManagerParams *params, size_t poolSize, dwSALHandle_t const sal)
 Creates and initializes a SensorManager module, adding enabled sensors in the provided Rig Configuration, and configuring SensorManager according to params provided. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_release (dwSensorManagerHandle_t sm)
 Releases the SensorManager module by deleting the handle. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_releaseAcquiredEvent (const dwSensorEvent *ev, dwSensorManagerHandle_t sm)
 Releases a previously acquired event back to the pool. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_reset (dwSensorManagerHandle_t sm)
 Resets all sensors. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_setDispatcher (dwSensorManagerDispatcher_t dispatchPtr, void *const cookie, dwSensorManagerHandle_t sm)
 Sets sensor's dispatcher function when the feature is turned on. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_setTimeout (dwTime_t timeout, dwSensorManagerHandle_t sm)
 Sets the timeout to wait for a new frame across all sensors. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_start (dwSensorManagerHandle_t sm)
 Starts all sensors. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_stop (dwSensorManagerHandle_t sm)
 Stops all sensors. More...