Defines the obstacle data structures and APIs.
Data Structures | |
struct | dwObstacle |
struct | dwObstacleArray |
struct | dwObstacleLink |
For every obstacle, link information provides necessary info to access related obstacles across multiple obstacle array shards. More... | |
struct | dwObstacleLinkArray |
dwObstacleArray can be paired with link array information which provides access information across multiple dwObstacleArray shards. More... | |
struct | dwObstacleRDM |
struct | dwObstacleSector |
struct | dwObstacleSegment |
struct | dwObstacleSilhouette |
struct | dwObstacleSilhouetteArray |
Functions | |
DW_API_PUBLIC dwStatus | dwObstacle_reset (dwObstacle *obstacle) |
Resets the fields of dwObstacle. More... | |
struct dwObstacle |
Data Fields | ||
---|---|---|
dwVector3f | acceleration_mps2 | Acceleration of ref point in m/s^2. |
dwConfidence3f | accelerationConfidence | |
uint32_t | boundaryPointCount | The number of boundary points. |
dwVector3f | boundaryPoints[DW_OBSTACLE_BOUNDARY_POINT_MAX_COUNT] | Shape information. Non-closed polyline encoded by 3D vertices. |
float32_t | classConfidence | Classification confidence. |
float32_t | clearance_m | Minimum clearance. |
dwConfidence1f | clearanceConfidence | (used for overhangs, zero otherwise) |
float32_t | confidence | Confidence that obstacle exists. |
dwVector3f | direction | Forward direction. |
dwConfidence3f | directionConfidence | |
float32_t | height_m | Maximum height of obstacle. |
dwConfidence1f | heightConfidence | |
uint64_t | id | Object ID for tracking purposes. |
dwObjectClass | objectClass |
Class information. Object class |
dwObstacleClass | obstacleClass | Obstacle class. |
dwVector3f | position | A reference point on the obstacle. |
dwConfidence3f | positionConfidence | |
uint32_t | prop | Properties. |
dwVector3f | rotationAxis | Unit rotation axis at reference. |
dwConfidence3f | rotationAxisConfidence | |
float32_t | rotationVel_rps | Rotational velocity in radians/sec. |
dwConfidence1f | rotationVelConfidence | |
uint64_t | sensorIdMask | Bitmask indicating which sensors agreed with this obstacle detection. |
dwObstacleState | state | Obstacle State (stopped/in motion) |
dwObstacleStateFlags | stateFlags | Hints (turn signals, brake lights) |
float32_t | subclassConfidence | Subclassification confidence. |
dwTime_t | timestamp_us | Timestamp for this obstacle in host clock. |
float32_t | traversalSpeed_mps | Maximum velocity that it is physically advised to move over this obstacle (used for speed bumps, gratings, low curbs or rough surfaces, zero otherwise. |
dwConfidence1f | traversalSpeedConfidence | |
dwVector3f | velocity_mps | Velocity of reference point in m/s. |
dwConfidence3f | velocityConfidence |
struct dwObstacleArray |
Data Fields | ||
---|---|---|
uint32_t | count | |
dwObstacle | obstacles[DW_OBSTACLE_ARRAY_MAX_COUNT] |
struct dwObstacleLink |
Data Fields | ||
---|---|---|
uint32_t | arrayIndex[DW_OBSTACLE_MAX_LINKS] | index to obstacle array shard |
float32_t | confidence[DW_OBSTACLE_MAX_LINKS] | |
uint32_t | count |
of valid linkages of obstacle |
uint64_t | obstacleId[DW_OBSTACLE_MAX_LINKS] | corresponding obstacle’s id |
uint32_t | obstacleIndex[DW_OBSTACLE_MAX_LINKS] | index within dwObstacleArray |
struct dwObstacleLinkArray |
Data Fields | ||
---|---|---|
uint32_t | count | |
dwObstacleLink | links[DW_OBSTACLE_ARRAY_MAX_COUNT] |
struct dwObstacleRDM |
Data Fields | ||
---|---|---|
float32_t | angleMax_r | angle where last sector ends. |
float32_t | angleMin_r | angle where first sector starts. |
uint32_t | sectorCount | Actual number of sectors. |
dwObstacleSector | sectors[DW_OBSTACLE_RDF_MAX_SECTORS] | Sectors. |
dwTime_t | timestamp_us | Timestamp. |
struct dwObstacleSector |
Data Fields | ||
---|---|---|
uint32_t | segmentCount | Actual number of segments. |
dwObstacleSegment | segments[DW_OBSTACLE_SECTOR_MAX_SEGMENTS] | Segments. |
struct dwObstacleSegment |
Data Fields | ||
---|---|---|
float32_t | classConfidence | Region class confidence. |
float32_t | distance_m | Distance in meters from the origin to segment end. |
int32_t | endIndex | dwObstacleArray index of dwObstacle that ends the segment. Negative if none. |
uint64_t | endObstacleId | corresponding dwObstacle’s id |
dwObstacleRegionClass | regionClass | Class of this region. |
uint64_t | sourceIdMask | Bitmask indicating which sources agree. |
struct dwObstacleSilhouette |
Data Fields | ||
---|---|---|
uint32_t | indices[DW_OBSTACLE_SILHOUETTE_MAX_POINTS] | Indices in the vertex pool. |
uint32_t | nVertices | Number of vertices in this silhouette. |
uint64_t | obstacleId | Obstacle ID. |
struct dwObstacleSilhouetteArray |
Data Fields | ||
---|---|---|
uint32_t | nObstacles | |
uint32_t | nVertices | |
dwObstacleSilhouette | silhouettes[DW_OBSTACLE_ARRAY_MAX_COUNT] | |
dwVector3f | vertices[DW_OBSTACLE_SILHOUETTE_MAX_VERTICES] |
#define DW_OBSTACLE_ARRAY_MAX_COUNT 1000 |
Definition at line 289 of file Obstacle.h.
#define DW_OBSTACLE_BOUNDARY_POINT_MAX_COUNT 30u |
Definition at line 65 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_ANIMAL_BASE DW_OBSTACLE_CLASS_IS_ANIMAL + DW_OBSTACLE_CLASS_IS_ANIMATE |
Definition at line 141 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_BIKE_BASE DW_OBSTACLE_CLASS_IS_BIKE + DW_OBSTACLE_CLASS_IS_ANIMATE |
Definition at line 137 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_ANIMAL (1 << 13) |
animal mask
Definition at line 130 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_ANIMATE (1 << 8) |
Canonical classification bits for fast filtering These bits represent the super-class, while all bits represent sub-class.
obstacle that can move mask
Definition at line 125 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_BIKE (1 << 11) |
wheeled VRU mask
Definition at line 128 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_OBJECT (1 << 14) |
inanimate object (e.g cone) mask
Definition at line 131 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_PEDESTRIAN (1 << 12) |
pedestrian mask
Definition at line 129 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_UNDEFINED (1 << 15) |
undefined object
Definition at line 132 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_VEHICLE (1 << 10) |
vehicle mask
Definition at line 127 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_IS_VIRTUAL (1 << 9) |
non physical obstacles mask
Definition at line 126 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_OBJECT_BASE DW_OBSTACLE_CLASS_IS_OBJECT |
Definition at line 143 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_PEDESTRIAN_BASE DW_OBSTACLE_CLASS_IS_PEDESTRIAN + DW_OBSTACLE_CLASS_IS_ANIMATE |
Definition at line 139 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_UNDEFINED_ANIMATE_BASE DW_OBSTACLE_CLASS_IS_UNDEFINED + DW_OBSTACLE_CLASS_IS_ANIMATE |
Definition at line 145 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_UNDEFINED_STATIC_BASE DW_OBSTACLE_CLASS_IS_UNDEFINED |
Definition at line 144 of file Obstacle.h.
#define DW_OBSTACLE_CLASS_VEHICLE_BASE DW_OBSTACLE_CLASS_IS_VEHICLE + DW_OBSTACLE_CLASS_IS_ANIMATE |
Base offsets for object classes.
Definition at line 135 of file Obstacle.h.
#define DW_OBSTACLE_MAX_LINKS 16 |
Definition at line 297 of file Obstacle.h.
#define DW_OBSTACLE_MAX_SENSOR_COUNT 64 |
Definition at line 243 of file Obstacle.h.
#define DW_OBSTACLE_RDF_MAX_SECTORS 4000 |
Definition at line 374 of file Obstacle.h.
#define DW_OBSTACLE_SECTOR_MAX_SEGMENTS 10 |
Definition at line 373 of file Obstacle.h.
#define DW_OBSTACLE_SILHOUETTE_MAX_POINTS 128 |
Definition at line 320 of file Obstacle.h.
#define DW_OBSTACLE_SILHOUETTE_MAX_VERTICES |
Definition at line 329 of file Obstacle.h.
#define DW_OBSTACLE_STATE_MOVING (1 << 9) |
Definition at line 79 of file Obstacle.h.
#define DW_OBSTACLE_STATE_NOTMOVING (1 << 8) |
Bitmasks modifiers of obstacle state.
Definition at line 78 of file Obstacle.h.
enum dwObjectClass |
Object classes known to DriveWorks.
Definition at line 110 of file Obstacle.h.
enum dwObstacleClass |
Obstacle class enumeration.
Definition at line 149 of file Obstacle.h.
enum dwObstacleProperties |
Definition at line 67 of file Obstacle.h.
Definition at line 341 of file Obstacle.h.
enum dwObstacleState |
Definition at line 81 of file Obstacle.h.
enum dwObstacleStateFlags |
Definition at line 225 of file Obstacle.h.
DW_API_PUBLIC dwStatus dwObstacle_reset | ( | dwObstacle * | obstacle | ) |
Resets the fields of dwObstacle.
[in] | obstacle | The obstacle to reset. |