ad_map_access
Classes | Typedefs | Enumerations | Functions
ad::map::match Namespace Reference

namespace match More...

Classes

class  AdMapMatching
 performs map matching of a given point to the map More...
 
struct  ENUObjectPosition
 DataType ENUObjectPosition. More...
 
struct  LaneOccupiedRegion
 DataType LaneOccupiedRegion. More...
 
struct  LanePoint
 DataType LanePoint. More...
 
struct  MapMatchedObjectBoundingBox
 DataType MapMatchedObjectBoundingBox. More...
 
struct  MapMatchedPosition
 DataType MapMatchedPosition. More...
 
struct  Object
 DataType Object. More...
 

Typedefs

typedef std::vector<::ad::map::match::ENUObjectPositionENUObjectPositionList
 DataType ENUObjectPositionList.
 
typedef std::vector<::ad::map::match::LaneOccupiedRegionLaneOccupiedRegionList
 DataType LaneOccupiedRegionList.
 
typedef std::vector<::ad::map::match::MapMatchedPositionConfidenceListMapMatchedObjectReferencePositionList
 DataType MapMatchedObjectReferencePositionList. More...
 
typedef std::vector<::ad::map::match::MapMatchedPositionMapMatchedPositionConfidenceList
 DataType MapMatchedPositionConfidenceList. More...
 

Enumerations

enum  MapMatchedPositionType : int32_t {
  MapMatchedPositionType::INVALID = 0, MapMatchedPositionType::UNKNOWN = 1, MapMatchedPositionType::LANE_IN = 2, MapMatchedPositionType::LANE_LEFT = 3,
  MapMatchedPositionType::LANE_RIGHT = 4
}
 DataType MapMatchedPositionType. More...
 
enum  ObjectReferencePoints : int32_t {
  ObjectReferencePoints::FrontLeft = 0, ObjectReferencePoints::FrontRight = 1, ObjectReferencePoints::RearLeft = 2, ObjectReferencePoints::RearRight = 3,
  ObjectReferencePoints::Center = 4, ObjectReferencePoints::NumPoints = 5
}
 DataType ObjectReferencePoints. More...
 

Functions

std::ostream & operator<< (std::ostream &os, ENUObjectPosition const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, LaneOccupiedRegion const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, LanePoint const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, MapMatchedObjectBoundingBox const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, MapMatchedPosition const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, MapMatchedPositionType const &value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, Object const &_value)
 standard ostream operator More...
 
std::ostream & operator<< (std::ostream &os, ObjectReferencePoints const &value)
 standard ostream operator More...
 
point::ParaPointList getParaPoints (MapMatchedPositionConfidenceList const &inMapMatchedPositions)
 get the list of ParaPoints out of the map matched positions
 
bool isLaneType (MapMatchedPositionType const &mapMatchedPositionType)
 
point::ENUHeading getObjectENUHeading (const match::MapMatchedObjectBoundingBox &mapMatchedBoundingBox)
 Calculates the objects ENU angle based on the map matched position.
 
physics::Distance signedDistanceToLane (lane::LaneId const checkLaneId, MapMatchedPositionConfidenceList const &mapMatchedPositions)
 get the signed distance to a lane within the map matched positions More...
 
point::ParaPoint getCenterParaPoint (match::LaneOccupiedRegion const &occupiedRegion)
 get the para point of the occupied Region in the middle of the longitudinal extend of it
 

Detailed Description

namespace match

Map matching

Typedef Documentation

◆ MapMatchedObjectReferencePositionList

DataType MapMatchedObjectReferencePositionList.

The list of the MapMatchedPositionConfidenceList of all ObjectReferencePoints.

◆ MapMatchedPositionConfidenceList

DataType MapMatchedPositionConfidenceList.

Defines a list of map matched positions ordered by probability in decreasing order

Enumeration Type Documentation

◆ MapMatchedPositionType

DataType MapMatchedPositionType.

The type of the map matched position

Enumerator
INVALID 

Invalid value (should be the default)

UNKNOWN 

Unknown

LANE_IN 

Match is located within a lane

LANE_LEFT 

Match is located left of the lane in the sense of the geometrical orientation of the lane

LANE_RIGHT 

Match is located right of the lane in the sense of the geometrical orientation of the lane

◆ ObjectReferencePoints

DataType ObjectReferencePoints.

Defines reference points of an object

Enumerator
FrontLeft 

FrontLeft

FrontRight 

FrontRight

RearLeft 

RearLeft

RearRight 

RearRight

Center 

Center

NumPoints 

NumPoints

Function Documentation

◆ operator<<() [1/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
ENUObjectPosition const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueENUObjectPosition value
Returns
The stream object.

◆ operator<<() [2/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
LaneOccupiedRegion const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueLaneOccupiedRegion value
Returns
The stream object.

◆ operator<<() [3/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
LanePoint const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueLanePoint value
Returns
The stream object.

◆ operator<<() [4/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
MapMatchedObjectBoundingBox const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueMapMatchedObjectBoundingBox value
Returns
The stream object.

◆ operator<<() [5/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
MapMatchedPosition const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueMapMatchedPosition value
Returns
The stream object.

◆ operator<<() [6/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
MapMatchedPositionType const &  value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]valueMapMatchedPositionType value
Returns
The stream object.

◆ operator<<() [7/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
Object const &  _value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]_valueObject value
Returns
The stream object.

◆ operator<<() [8/8]

std::ostream& ad::map::match::operator<< ( std::ostream &  os,
ObjectReferencePoints const &  value 
)
inline

standard ostream operator

Parameters
[in]osThe output stream to write to
[in]valueObjectReferencePoints value
Returns
The stream object.

◆ signedDistanceToLane()

physics::Distance ad::map::match::signedDistanceToLane ( lane::LaneId const  checkLaneId,
MapMatchedPositionConfidenceList const &  mapMatchedPositions 
)

get the signed distance to a lane within the map matched positions

This check searches the mapMatchedPositions for the given checkLaneId and returns a signed distance value to the lane.

Parameters
[in]checkLaneIdthe lane id to find
[in]mapMatchedPositionsthe map matched positions to check
Returns
: If not part of the mapMatchedPositions: distance = std::numeric_limits<physics::Distance>::max() If it's found and map matched type is:
Exceptions
std::runtime_errorif mapMatchedPositions are inconsistent