|
ad_map_access
|
namespace access More...
Classes | |
| class | Factory |
| Autonomus Driving Map Factory. Contains method to be used to initialize and modify content in the Store. More... | |
| struct | GeometryStoreItem |
| DataType GeometryStoreItem. More... | |
| struct | MapMetaData |
| DataType MapMetaData. More... | |
| class | PartitionId |
| DataType PartitionId. More... | |
| class | Store |
| Autonomus Driving Map Store. More... | |
Typedefs | |
| typedef std::vector<::ad::map::access::PartitionId > | PartitionIdList |
| DataType PartitionIdList. | |
Enumerations | |
| enum | TrafficType : int32_t { TrafficType::INVALID = 0, TrafficType::LEFT_HAND_TRAFFIC = 1, TrafficType::RIGHT_HAND_TRAFFIC = 2 } |
| DataType TrafficType. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, GeometryStoreItem const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, MapMetaData const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, PartitionId const &_value) |
| standard ostream operator More... | |
| std::ostream & | operator<< (std::ostream &os, TrafficType const &value) |
| standard ostream operator More... | |
| std::shared_ptr< spdlog::logger > | getLogger () |
| get the admap logger | |
| bool | isValid (MapMetaData const &metaData, bool const logErrors=true) |
| checks if the given MapMetaData is valid More... | |
| std::shared_ptr< point::CoordinateTransform > | getCoordinateTransform () |
| get the coordinate transformation object | |
| bool | init (std::string const &configFileName) |
| initialize singleton with given configuration file More... | |
| bool | initFromOpenDriveContent (std::string const &openDriveContent, double const overlapMargin, intersection::IntersectionType const defaultIntersectionType, landmark::TrafficLightType const defaultTrafficLightType=landmark::TrafficLightType::SOLID_RED_YELLOW_GREEN) |
| initialize singleton with OpenDRIVE content More... | |
| bool | init (Store::Ptr store) |
| initialize singleton with given store More... | |
| void | cleanup () |
| remove all loaded maps and configuration | |
| void | setENUReferencePoint (point::GeoPoint const &point) |
| set the current ENU reference point More... | |
| point::GeoPoint | getENUReferencePoint () |
| get the current ENU reference point set in the map More... | |
| bool | isENUReferencePointSet () |
| check if ENU Reference Point is set | |
| std::vector< config::PointOfInterest > | getPointsOfInterest (point::GeoPoint const &geoPoint, physics::Distance const &radius) |
| get points of interest in the surrounding of a given geoPoint More... | |
| const std::vector< config::PointOfInterest > & | getPointsOfInterest () |
| get all points of interest More... | |
| bool | getPointOfInterest (std::string const &name, config::PointOfInterest &poi) |
| get a certain point of interest if exists More... | |
| bool | isLeftHandedTraffic () |
| bool | isRightHandedTraffic () |
| Store & | getStore () |
namespace access
Accessing map data
|
strong |
| point::GeoPoint ad::map::access::getENUReferencePoint | ( | ) |
get the current ENU reference point set in the map
| bool ad::map::access::getPointOfInterest | ( | std::string const & | name, |
| config::PointOfInterest & | poi | ||
| ) |
get a certain point of interest if exists
Calls getPointsOfInterest() and searches for the point with the given name.
| [in] | name | the name of the POI to query |
| [out] | poi | the found PointOfInterest |
true if the PointOfInterest with the given name if exits | const std::vector<config::PointOfInterest>& ad::map::access::getPointsOfInterest | ( | ) |
get all points of interest
| std::vector<config::PointOfInterest> ad::map::access::getPointsOfInterest | ( | point::GeoPoint const & | geoPoint, |
| physics::Distance const & | radius | ||
| ) |
get points of interest in the surrounding of a given geoPoint
| [in] | geoPoint | GeoPoint to be used to query the POIs |
| [in] | radius | radius to be use for the query |
| Store& ad::map::access::getStore | ( | ) |
| bool ad::map::access::init | ( | std::string const & | configFileName | ) |
initialize singleton with given configuration file
The configuration file specifies all available maps, see ConfigFileHandler for details of the semantics
| bool ad::map::access::init | ( | Store::Ptr | store | ) |
initialize singleton with given store
No map files will be read. The store has to be filled by other means.
| bool ad::map::access::initFromOpenDriveContent | ( | std::string const & | openDriveContent, |
| double const | overlapMargin, | ||
| intersection::IntersectionType const | defaultIntersectionType, | ||
| landmark::TrafficLightType const | defaultTrafficLightType = landmark::TrafficLightType::SOLID_RED_YELLOW_GREEN |
||
| ) |
initialize singleton with OpenDRIVE content
| bool ad::map::access::isLeftHandedTraffic | ( | ) |
true if the map is a left hand traffic map | bool ad::map::access::isRightHandedTraffic | ( | ) |
true if the map is a left hand traffic map
|
inline |
checks if the given MapMetaData is valid
The metaData is valid if it's within valid input range.
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | GeometryStoreItem value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | MapMetaData value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | _value | PartitionId value |
|
inline |
standard ostream operator
| [in] | os | The output stream to write to |
| [in] | value | TrafficType value |
| void ad::map::access::setENUReferencePoint | ( | point::GeoPoint const & | point | ) |
set the current ENU reference point
| [in] | point | the geo point defining the reference point |
1.8.17