DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

RadarTypes.h File Reference

Go to the source code of this file.

Data Structures

struct  dwRadarDetection
 Defines the return structure for a raw radar detection in sensor coordinates. More...
 
struct  dwRadarMountPosition
 Defines the structure for reporting sensor mount position. More...
 
struct  dwRadarProperties
 Defines the properties of the radar. More...
 
struct  dwRadarScanType
 Defines the type of scan (combination of return type & range) More...
 
struct  dwRadarStatus
 Defines the return structure for sensor status messages. More...
 
struct  dwRadarTrack
 Defines the track which the radar provides. More...
 
struct  dwRadarVehicleState
 Defines the structure for reporting current vehicle dynamics state. More...
 

Enumerations

enum  dwRadarDynamicState {
  DW_RADAR_DYNAMIC_STATE_MOVING = 0 ,
  DW_RADAR_DYNAMIC_STATE_STATIONARY = 1 ,
  DW_RADAR_DYNAMIC_STATE_ONCOMING = 2 ,
  DW_RADAR_DYNAMIC_STATE_CROSS_TRAFFIC = 3 ,
  DW_RADAR_DYNAMIC_STATE_STOPPED = 4 ,
  DW_RADAR_DYNAMIC_STATE_UNKNOWN = 5
}
 Defines the dynamic state of the radar return. More...
 
enum  dwRadarRange {
  DW_RADAR_RANGE_SHORT = 0 ,
  DW_RADAR_RANGE_MEDIUM = 1 ,
  DW_RADAR_RANGE_LONG = 2 ,
  DW_RADAR_RANGE_UNKNOWN = 3 ,
  DW_RADAR_RANGE_COUNT = 4
}
 Defines the range of radar return. More...
 
enum  dwRadarReturnType {
  DW_RADAR_RETURN_TYPE_DETECTION = 0 ,
  DW_RADAR_RETURN_TYPE_TRACK = 1 ,
  DW_RADAR_RETURN_TYPE_STATUS = 2 ,
  DW_RADAR_RETURN_TYPE_COUNT = 3
}
 Defines the type of radar return. More...
 

Data Structure Documentation

◆ dwRadarDetection

struct dwRadarDetection
Data Fields
float32_t azimuth Azimuth angle (radians)
float32_t elevationAngle Angle of elevation (radians)
bool elevationValidity Indicates validity of the elevation angle.
float32_t radialVelocity Radial velocity (m/s)
float32_t radius Radial distance (m)
float32_t rcs Reflection amplitude (dB)
float32_t SNR Signal to noise ratio (dBr)
float32_t Vx X-component (m/s) of the velocity in the azimuth direction, with elevation assumed to be 0 note: partial velocity, vx = radial_vel * std::cos(azimuth)
float32_t Vy Y-component (m/s) of the velocity in the azimuth direction, with elevation assumed to be 0 note: partial velocity, vy = radial_vel * std::sin(azimuth)
float32_t x X-position (m), with elevation assumed to be 0 note: x = radius * std::cos(azimuth)
float32_t y Y-position (m), with elevation assumed to be 0 note: y = radius * std::sin(azimuth)

◆ dwRadarMountPosition

struct dwRadarMountPosition
Data Fields
float32_t damping Damping of radome (db)
bool isReversed Indicates if the sensor is reversed from its default orientation.
dwTransformation3f radarPosition Radar position.
uint32_t sensorId Id of the sensor (vendor-specific)
float32_t wheelbase Size of wheel-base (m)

◆ dwRadarProperties

struct dwRadarProperties
Data Fields
uint32_t inputPacketsPerSecond Number of input odometry packets per second.
uint8_t isDecodingOn Indicates whether decoding is enabled.
bool isSimulation Indicates whether the sensor is simulated.
uint32_t maxReturnsPerScan[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT] Max # of returns in any given scan.
size_t numPacketsPerScan[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT] Number of packets in any given scan.
uint32_t numScanTypes Number of supported scan types.
uint32_t packetsPerScan

of packets per scan (Note: will be deprecated soon)

dwRadarModel radarModel Radar model of the current radar.
size_t radarSSISizeInBytes RadarSSI size in bytes, so user know the memory to be allocated for dwRadarScan.radarSSI.
uint32_t scansPerSecond Number of scans (of a particular type) per second.

In case scan rate differ between scans, this number is the maximum amongst all scan types

uint32_t supportedScanTypes[DW_RADAR_RETURN_TYPE_COUNT][DW_RADAR_RANGE_COUNT] Enumerates the types of scans supported by the radar.

◆ dwRadarScanType

struct dwRadarScanType
Data Fields
dwRadarRange range Scan range.
dwRadarReturnType returnType Type of radar return.

◆ dwRadarStatus

struct dwRadarStatus
Data Fields
float32_t azimuthDeviation[DW_RADAR_RANGE_COUNT] Deviation of azimuth angle for returns (radians) This is the deviation of the measured azimuth from what would be expected based on the geometric boresight of the sensor.
float32_t elevationDeviation[DW_RADAR_RANGE_COUNT] Deviation of elevation angle for returns (radians) This is the deviation of the elevation azimuth from what would be expected based on the geometric boresight of the sensor.
float32_t pitch Pitch angle of sensor (radians)
float32_t roll Roll angle of sensor (radians)
bool sensorAligned Indicates if the sensor is aligned.
bool sensorBlock Indicates if the sensor is blocked.
bool sensorDisturbed Indicates if the sensor is disturbed due to interference.
bool sensorOK Indicates if this is OK.
float32_t x X-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientation as reported by the radar, refer to Radar spec for the coordinate system defintion.

[optional: might not be populated if radar is not supporting estimation]

float32_t y Y-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientation as reported by the radar, refer to Radar spec for the coordinate system defintion.

[optional: might not be populated if radar is not supporting estimation]

float32_t yaw Yaw angle of sensor (radians)
float32_t z Z-position (m) of sensor mounting in AUTOSAR-coordinates from CoG Estimated radar position/orientation as reported by the radar, refer to Radar spec for the coordinate system defintion.

[optional: might not be populated if radar is not supporting estimation]

◆ dwRadarTrack

struct dwRadarTrack
Data Fields
uint32_t age Age of tracked object (in scans)
float32_t Ax X-component (m/s^2) of the acceleration.
float32_t Ay Y-component (m/s^2) of the aceleration.
float32_t azimuth Azimuth angle (radians)
float32_t azimuthRate Rate of change of azimuth angle (radians/s)
float32_t confidence Confidence of object existence (range: 0-1);.
dwRadarDynamicState dynamicState Dynamic state of the object.
bool elevationValid Indicates validity of z position.
uint32_t id Radar-provided track id.
float32_t radialAcceleration Radial acceleration (m/s^2)
float32_t radialVelocity Radial velocity (m/s)
float32_t radius Radial distance (m)
float32_t rcs Compensated reflection amplitude (dB)
float32_t Vx X-component (m/s) of the velocity.
float32_t Vy Y-component (m/s) of the velocity.
float32_t x X-position (m)
float32_t y Y-position (m)
float32_t z Z-position (m)

◆ dwRadarVehicleState

struct dwRadarVehicleState
Data Fields
float32_t acceleration Longitudinal acceleration (m/s^2)
float32_t lateralAcceleration Lateral acceleration (m/s^2)
float32_t velocity Longitudinal velocity (m/s)
float32_t yawRate Yaw rate (radians/s)

Enumeration Type Documentation

◆ dwRadarDynamicState

Defines the dynamic state of the radar return.

Enumerator
DW_RADAR_DYNAMIC_STATE_MOVING 

Moving.

DW_RADAR_DYNAMIC_STATE_STATIONARY 

Stationary.

DW_RADAR_DYNAMIC_STATE_ONCOMING 

Oncoming.

DW_RADAR_DYNAMIC_STATE_CROSS_TRAFFIC 

Cross-traffic.

DW_RADAR_DYNAMIC_STATE_STOPPED 

Stopped (was moving, now stationary)

DW_RADAR_DYNAMIC_STATE_UNKNOWN 

Unknown.

Definition at line 78 of file RadarTypes.h.

◆ dwRadarRange

Defines the range of radar return.

Enumerator
DW_RADAR_RANGE_SHORT 

Short Range.

DW_RADAR_RANGE_MEDIUM 

Medium Range.

DW_RADAR_RANGE_LONG 

Long Range.

DW_RADAR_RANGE_UNKNOWN 

Unknown Range.

DW_RADAR_RANGE_COUNT 

Count.

Definition at line 45 of file RadarTypes.h.

◆ dwRadarReturnType

Defines the type of radar return.

Enumerator
DW_RADAR_RETURN_TYPE_DETECTION 

Raw detection.

DW_RADAR_RETURN_TYPE_TRACK 

Processed tracker output.

DW_RADAR_RETURN_TYPE_STATUS 

Sensor status information.

DW_RADAR_RETURN_TYPE_COUNT 

Count.

Definition at line 63 of file RadarTypes.h.