47#ifndef DW_SENSORS_RADAR_RADAR_H_
48#define DW_SENSORS_RADAR_RADAR_H_
56#define DW_RADARSCAN_MINIMUM_PAYLOAD_SIZE 1744
539 const uint8_t*
const rawData,
size_t const size,
dwSensorHandle_t const sensor);
NVIDIA DriveWorks API: RadarScan
dwRadarModel
Defines the radar sensor model.
Defines FFT patch value of the detection.
Defines the detection misc.
Defines the probability of some items recevied in a detection.
Defines the quality of the detection.
Defines standard deviation of the detection.
Defines the ambiguity of a radar scan.
Defines the radar scan misc.
Defines the validity of features in a radar scan. Include the validity structure in this page.
NVIDIA DriveWorks API: Sensors
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
dwStatus
Status definition.
dwRadarDetectionStdDev const * detectionStdDev
Pointer to the array of dwRadarDetectionStdDev, size of this array is numReturns.
float32_t velocity
Longitudinal velocity (m/s)
uint32_t scansPerSecond
Number of scans (of a particular type) per second.
float32_t confidence
Confidence of object existence (range: 0-1);.
uint32_t inputPacketsPerSecond
Number of input odometry packets per second.
bool elevationValid
Indicates validity of z position.
dwRadarScanType scanType
Type of scan.
float32_t y
Y-position (m)
dwRadarDetectionMisc const * detectionMisc
Pointer to the array of dwRadarDetectionMisc, size of this array is numReturns.
float32_t x
X-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientatio...
uint32_t supportedScanTypes[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT]
Enumerates the types of scans supported by the radar.
dwRadarRange range
Scan range.
uint32_t numScanTypes
Number of supported scan types.
dwTime_t sensorTimestamp
Sensor timestamp at which the current measurement scan was started (us)
bool sensorOK
Indicaes if the is OK.
float32_t wheelbase
Size of wheel-base (m)
float32_t Ay
Y-component (m/s^2) of the aceleration.
float32_t x
X-position (m)
bool elevationValidity
Indicates validity of the elevation angle.
dwRadarReturnType returnType
Type of radar return.
float32_t lateralAcceleration
Lateral acceleration (m/s^2)
dwTransformation3f radarPosition
Radar position.
float32_t azimuthDeviation[DW_RADAR_RANGE_COUNT]
float32_t radialAcceleration
Radial acceleration (m/s^2)
dwTime_t hostTimestamp
Host timestamp at reception of first packet belonging to this scan (us)
float32_t acceleration
Longitudinal acceleration (m/s^2)
float32_t roll
Roll angle of sensor (radians)
float32_t elevationAngle
Angle of elevation (radians)
float32_t yaw
Yaw angle of sensor (radians)
dwRadarScanValidity scanValidity
Radar Scan validity If the signal is unavailable or invalid, the value of the signal will be the maxi...
bool sensorBlock
Indicates if the sensor is blocked.
float32_t azimuth
Azimuth angle (radians)
dwRadarDetectionFFTPatch const * detectionFFTPatch
Pointer to the array of dwRadarDetectionFFTPatch, size of this array is numReturns.
float32_t Vy
Y-component (m/s) of the velocity.
bool sensorDisturbed
Indicates if the sensor is disturbed due to interference.
float32_t elevationDeviation[DW_RADAR_RANGE_COUNT]
dwRadarDetectionProbability const * detectionProbability
Pointer to the array of dwRadarDetectionProbability, size of this array is numReturns.
bool sensorAligned
Indicates if the sensor is aligned.
uint32_t sensorId
Id of the sensor (vendor-specific)
uint32_t maxReturnsPerScan[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT]
Max # of returns in any given scan.
float32_t pitch
Pitch angle of sensor (radians)
uint32_t scanIndex
Sensor-provided scan index.
float32_t radius
Radial distance (m)
dwRadarModel radarModel
Radar model of the current radar.
dwRadarScanAmbiguity radarScanAmbiguity
Radar Scan ambiguity.
uint32_t id
Radar-provided track id.
float32_t Vx
X-component (m/s) of the velocity in the azimuth direction.
dwRadarDynamicState dynamicState
Dynamic state of the object.
bool isReversed
Indicates if the sensor is reversed from its default orientation.
float32_t y
Y-position (m)
float32_t radius
Radial distance (m)
float32_t azimuth
Azimuth angle (radians)
float32_t Vy
Y-component (m/s) of the velocity in the azimuth direction.
float32_t rcs
Reflection amplitude (dB)
float32_t Vx
X-component (m/s) of the velocity.
float32_t y
Y-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientatio...
dwRadarDetectionQuality const * detectionQuality
Pointer to the array of dwRadarDetectionQuality, size of this array is numReturns.
float32_t x
X-position (m)
float32_t Ax
X-component (m/s^2) of the acceleration.
float32_t radialVelocity
Radial velocity (m/s)
float32_t radialVelocity
Radial velocity (m/s)
void * data
Pointer to the array of returns (to be casted based on return type) Size of this array is numReturns.
float32_t SNR
Signal to noise ratio (dBr)
uint32_t numReturns
Number of radar returns in this scan.
float32_t yawRate
Yaw rate (radians/s)
float32_t dopplerAmbiguity
Doppler ambiguity free range.
bool isSimulation
Indicates whether the sensor is simulated.
uint32_t age
Age of tracked object (in scans)
float32_t damping
Damping of radome (db)
float32_t rcs
Compensated reflection amplitude (dB)
uint8_t isDecodingOn
Indicates whether decoding is enabled.
dwRadarScanMisc radarScanMisc
Radar Scan miscellaneous fields.
float32_t z
Z-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientatio...
float32_t z
Z-position (m)
float32_t azimuthRate
Rate of change of azimuth angle (radians/s)
DW_API_PUBLIC dwStatus dwSensorRadar_readScan(const dwRadarScan **const data, const dwTime_t timeoutUs, dwSensorHandle_t const sensor)
Reads a one scan chunk.
DW_API_PUBLIC dwStatus dwSensorRadar_toggleScanType(bool const enable, dwRadarScanType const scanType, dwSensorHandle_t const sensor)
Enables/Disables a scan type for the radar sensor.
DW_API_PUBLIC dwStatus dwSensorRadar_readData(const dwRadarScan **const data, const dwRadarScanType type, const dwTime_t timeoutUs, dwSensorHandle_t const sensor)
Reads a single packet, which might be an entire scan or a fraction of a scan, which is sensor depende...
DW_API_PUBLIC dwStatus dwSensorRadar_processRawData(const dwRadarScan **const data, const uint8_t *const rawData, size_t const size, dwSensorHandle_t const sensor)
Decodes raw data previously read onto the application side structure.
DW_API_PUBLIC dwStatus dwSensorRadar_setMountPosition(dwRadarMountPosition *const data, dwSensorHandle_t const sensor)
Sends the radar mount position information to the radar.
DW_API_PUBLIC dwStatus dwSensorRadar_returnData(const dwRadarScan *const scan, dwSensorHandle_t const sensor)
Returns the data read to the internal pool.
DW_API_PUBLIC dwStatus dwSensorRadar_setDataDecoding(bool const enable, dwSensorHandle_t const sensor)
Enables/disables the decoding of the Radar packets, which incurs in additional CPU load.
DW_API_PUBLIC dwStatus dwSensorRadar_setVehicleState(dwRadarVehicleState *const data, dwSensorHandle_t const sensor)
Sends vehicle dynamics information to the radar.
DW_API_PUBLIC dwStatus dwSensorRadar_getProperties(dwRadarProperties *const radarProperties, dwSensorHandle_t const sensor)
Gets information about the radar sensor.
DW_API_PUBLIC dwStatus dwSensorRadar_returnScan(const dwRadarScan *const scan, dwSensorHandle_t const sensor)
Returns the data covering an entire scan read to the internal pool.
dwRadarRange
Defines the range of radar return.
dwRadarReturnType
Defines the type of radar return.
dwRadarDynamicState
Defines the dynamic state of the radar return.
@ DW_RADAR_RANGE_LONG
Long Range.
@ DW_RADAR_RANGE_UNKNOWN
Unknown Range.
@ DW_RADAR_RANGE_SHORT
Short Range.
@ DW_RADAR_RANGE_MEDIUM
Medium Range.
@ DW_RADAR_RANGE_COUNT
Count.
@ DW_RADAR_RETURN_TYPE_TRACK
Processed tracker output.
@ DW_RADAR_RETURN_TYPE_COUNT
Count.
@ DW_RADAR_RETURN_TYPE_STATUS
Sensor status information.
@ DW_RADAR_RETURN_TYPE_DETECTION
Raw detection.
@ DW_RADAR_DYNAMIC_STATE_STOPPED
Stopped (was moving, now stationary)
@ DW_RADAR_DYNAMIC_STATE_CROSS_TRAFFIC
Cross-traffic.
@ DW_RADAR_DYNAMIC_STATE_STATIONARY
Stationary.
@ DW_RADAR_DYNAMIC_STATE_UNKNOWN
Unknown.
@ DW_RADAR_DYNAMIC_STATE_ONCOMING
Oncoming.
@ DW_RADAR_DYNAMIC_STATE_MOVING
Moving.
Defines the return structure for a raw radar detection in sensor coordinates.
Defines the structure for reporting sensor mount position.
Defines the properties of the radar.
Defines the structure for a complete radar scan.
Defines the type of scan (combination of return type & range)
Defines the return structure for sensor status messages.
Defines the track which the radar provides.
Defines the structure for reporting current vehicle dynamics state.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.