44 #ifndef DW_SENSORS_SENSORMANAGER_H__ 45 #define DW_SENSORS_SENSORMANAGER_H__ 60 #define DW_SENSORMANGER_MAX_CAMERAS 6U 136 dwSensorManagerHandle_t sm);
160 dwSensorManagerHandle_t sm);
213 dwTime_t timeout_us, dwSensorManagerHandle_t sm);
229 dwSensorManagerHandle_t sm);
244 dwSensorManagerHandle_t sm);
260 size_t index, dwSensorManagerHandle_t sm);
268 #endif // DW_SENSORS_SENSORMANAGER_H__ Holds sets of parameters for sensor creation.
Defines the structure for a complete radar scan.
NVIDIA DriveWorks API: Radar
DW_API_PUBLIC dwStatus dwSensorManager_reset(dwSensorManagerHandle_t sm)
Resets all sensors.
NVIDIA DriveWorks API: Lidar
const dwRadarScan * radFrame
dwSensorType
Defines the type of sensors that are available in DriveWorks.
DW_API_PUBLIC dwStatus dwSensorManager_getNumSensors(size_t *count, dwSensorType type, dwSensorManagerHandle_t sm)
Gets the number of sensors instantiated for a given sensor type.
uint32_t sensorId
Index of the given sensor (aligns w/ sensor count)
DW_API_PUBLIC dwStatus dwSensorManager_start(dwSensorManagerHandle_t sm)
Starts all sensors.
uint64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Structure for returning data upon any sensor event.
DW_API_PUBLIC dwStatus dwSensorManager_addSensor(dwSensorParams params, uint64_t clientData, dwSensorManagerHandle_t sm)
Adds a sensor to the SAL instance.
struct dwSensorManagerObject * dwSensorManagerHandle_t
dwTime_t timestamp_us
Timestamp (us)
DW_API_PUBLIC dwStatus dwSensorManager_stop(dwSensorManagerHandle_t sm)
Stops all sensors.
DW_API_PUBLIC dwStatus dwSensorManager_addCameraSensor(const char *groupName, size_t siblingIndex, dwSensorParams params, uint64_t clientData, dwSensorManagerHandle_t sm)
Adds a camera sensor to the SAL instance.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
dwStatus
Status definition.
NVIDIA DriveWorks API: Sensors
const dwLidarDecodedPacket * lidFrame
size_t numCamFrames
Data accessor for camera.
DW_API_PUBLIC dwStatus dwSensorManager_acquireNextEvent(const dwSensorEvent **ev, dwTime_t timeout_us, dwSensorManagerHandle_t sm)
Called by the application to consume the next available sensor event ready for consumption.
DW_API_PUBLIC dwStatus dwSensorManager_releaseAcquiredEvent(const dwSensorEvent *ev, dwSensorManagerHandle_t sm)
Releases a previously acquired event back to the pool.
An IMU frame containing sensor readings from the IMU sensor.
struct dwSALObject * dwSALHandle_t
Handle representing the Sensor Abstraction Layer interface.
DW_API_PUBLIC dwStatus dwSensorManager_release(dwSensorManagerHandle_t *sm)
Releases the SensorManager module.
NVIDIA DriveWorks API: GPS
NVIDIA DriveWorks API: CAN
#define DW_SENSORMANGER_MAX_CAMERAS
dwGPSFrame gpsFrame
Data accessor for all other sensors.
NVIDIA DriveWorks API: Cameras
struct dwCameraFrame * dwCameraFrameHandle_t
Handle to captured frame.
DW_API_PUBLIC dwStatus dwSensorManager_getSensorHandle(dwSensorHandle_t *handle, dwSensorType type, size_t index, dwSensorManagerHandle_t sm)
Gets the sensor handle to the specified sensor.
DW_API_PUBLIC dwStatus dwSensorManager_initialize(dwSensorManagerHandle_t *sm, size_t poolSize, dwSALHandle_t sal)
Creates and initializes a SensorManager module.
NVIDIA DriveWorks API: IMU
dwSensorType type
Type of sensor providing data for this event.
A GPS packet containing localization information.