DriveWorks SDK Reference
3.5.78 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
 
struct  dwSensorEvent
 Structure for returning data upon any sensor event. More...
 
struct  dwSensorManagerParams
 

Macros

#define DW_SENSORMANGER_MAX_CAMERAS   16U
 
#define DW_SENSORMANGER_MAX_NUM_SENSORS   64U
 

Typedefs

typedef void(* dwSensorManagerDispatcher_t) (const dwSensorEvent *, void *, dwStatus)
 
typedef struct dwSensorManagerObject * dwSensorManagerHandle_t
 

Enumerations

enum  dwSensorManagerDataMode {
  DW_SENSOR_MANAGER_DATA_MODE_NON_RAW = 0,
  DW_SENSOR_MANAGER_DATA_MODE_RAW = 1
}
 

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. 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. 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 sal)
 Creates and initializes a SensorManager module. More...
 
DW_API_PUBLIC dwStatus dwSensorManager_initializeFromRig (dwSensorManagerHandle_t *sm, dwRigHandle_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, dwRigHandle_t rc, const dwSensorManagerParams *params, size_t poolSize, dwSALHandle_t 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. 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 *cookie, dwSensorManagerHandle_t sm)
 Sets sensor's dispatcher function when the feature is turned on. 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...