ad_map_access
|
Autonomus Driving Map Factory. Contains method to be used to initialize and modify content in the Store. More...
#include <ad/map/access/Factory.hpp>
Public Member Functions | |
Factory (Store &store) | |
Constructor. More... | |
virtual | ~Factory ()=default |
Destructor. Releases all resources. | |
bool | add (PartitionId part_id, const lane::LaneId &id, lane::LaneType type, lane::LaneDirection direction) |
Adds or modifies new Lane in the Store. More... | |
lane::LaneId | add (PartitionId part_id, const point::GeoEdge &left_geo, const point::GeoEdge &right_geo) |
Add new lane to the store. More... | |
lane::LaneId | add (PartitionId part_id, const point::ECEFEdge &left_ecef, const point::ECEFEdge &right_ecef, const lane::LaneId &lane_id_0, const lane::LaneId &lane_id_1) |
Add new intersection lane to the store. More... | |
bool | addLandmark (PartitionId part_id, const landmark::LandmarkId &id, const landmark::LandmarkType type, const point::ECEFPoint &position, const point::ECEFPoint &orientation, const point::Geometry &bounding_box) |
Adds or modifies new landmark in the Store. More... | |
bool | addTrafficLight (PartitionId part_id, const landmark::LandmarkId &id, const landmark::TrafficLightType type, const point::ECEFPoint &position, const point::ECEFPoint &orientation, const point::Geometry &bounding_box) |
Adds or modifies new traffic light landmark in the Store. More... | |
bool | addTrafficSign (PartitionId part_id, const landmark::LandmarkId &id, const landmark::TrafficSignType type, const point::ECEFPoint &position, const point::ECEFPoint &orientation, const point::Geometry &bounding_box, const std::string &text) |
Adds or modifies new traffic sign landmark in the Store. More... | |
bool | add (const lane::LaneId &id, const lane::ContactLane &contact_lane) |
Adds Contact to Lane to the Lane object. More... | |
bool | add (const lane::LaneId &id, const lane::ContactLaneList &contact_lanes) |
Adds Contacts to Lane to the Lane object. More... | |
bool | add (const lane::LaneId &id, const restriction::SpeedLimit ¶_speed) |
Add parametic speed limit to the Lane object. More... | |
bool | add (const lane::LaneId &id, const landmark::LandmarkId &landmark) |
Add visible landmark to the Lane object. More... | |
bool | add (const lane::LaneId &id, const restriction::Restriction &restriction, bool andx) |
Add Restriction to the Lane object. More... | |
bool | add (const lane::LaneId &id_from, const lane::LaneId &id_to, const lane::ContactLocation location, const lane::ContactTypeList &types, const restriction::Restrictions &restrs) |
Add Contact to Lane to the Lane object. More... | |
bool | add (const lane::LaneId &id_from, const lane::LaneId &id_to, const lane::ContactLocation location, const lane::ContactTypeList &types, const restriction::Restrictions &restrs, const landmark::LandmarkId &traffic_light) |
Add Contact to Lane to the Lane object. More... | |
bool | set (const lane::LaneId &id, lane::LaneDirection direction) |
Sets the lane attribute. More... | |
bool | set (const lane::LaneId &id, lane::LaneType type) |
Sets the lane attribute. More... | |
bool | set (const lane::LaneId &id, lane::ComplianceVersion compliance_ver) |
Sets the lane attribute. More... | |
bool | set (const lane::LaneId &id, const point::Geometry &edge_left, const point::Geometry &edge_right) |
Sets the Lane Edges. More... | |
bool | set (const lane::LaneId &id, const physics::Speed &speed_limit) |
Sets speed limit for the COMPLETE lane. More... | |
bool | set (const lane::LaneId &id, const restriction::Restrictions &restrictions) |
Set Restrictions to the Lane object. More... | |
bool | set (const lane::LaneId &id, const landmark::LandmarkIdList &landmarks) |
Set visible landmarks to the Lane object. More... | |
bool | set (const TrafficType &traffic_type) |
Set traffic type of the map. More... | |
bool | deleteLane (lane::LaneId id) |
Method to be called to delete Lane from the Store. More... | |
bool | deleteContacts (lane::LaneId from_id, lane::LaneId to_id) |
Delete all contacts from one lane to another. More... | |
bool | deleteLandmark (landmark::LandmarkId id) |
Method to be called to delete landmark from the Store. More... | |
bool | autoConnect (lane::LaneId from_lane_id, lane::LaneId to_lane_id) |
Creates missing topological contacts from one lane to another. More... | |
Protected Attributes | |
Store & | mStore |
Store on which this Factory operates. | |
Autonomus Driving Map Factory. Contains method to be used to initialize and modify content in the Store.
|
inlineexplicit |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id, |
const landmark::LandmarkId & | landmark | ||
) |
Add visible landmark to the Lane object.
[in] | id | Lane Identifier. |
[in] | landmark | to be added. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id, |
const lane::ContactLane & | contact_lane | ||
) |
Adds Contact to Lane to the Lane object.
[in] | id | Lane Identifier. |
[in] | contact_lane | Contact lane to be added. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id, |
const lane::ContactLaneList & | contact_lanes | ||
) |
Adds Contacts to Lane to the Lane object.
[in] | id | Lane Identifier. |
[in] | contact_lanes | Contacts to lanes to be added. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id, |
const restriction::Restriction & | restriction, | ||
bool | andx | ||
) |
Add Restriction to the Lane object.
[in] | id | Lane Identifier. |
[in] | restriction | Restriction to add set. |
[in] | andx | Add restriction to and_ collection. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id, |
const restriction::SpeedLimit & | para_speed | ||
) |
Add parametic speed limit to the Lane object.
[in] | id | Lane Identifier. |
[in] | para_speed | Parametric speed limit restriction. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id_from, |
const lane::LaneId & | id_to, | ||
const lane::ContactLocation | location, | ||
const lane::ContactTypeList & | types, | ||
const restriction::Restrictions & | restrs | ||
) |
Add Contact to Lane to the Lane object.
[in] | id_from | From-Lane Identifier. |
[in] | id_to | Identifier of object to which connection is leading. |
[in] | location | Location of the contact. |
[in] | types | Types of the contact. |
[in] | restrs | Legal restrictions for the contact. |
bool ad::map::access::Factory::add | ( | const lane::LaneId & | id_from, |
const lane::LaneId & | id_to, | ||
const lane::ContactLocation | location, | ||
const lane::ContactTypeList & | types, | ||
const restriction::Restrictions & | restrs, | ||
const landmark::LandmarkId & | traffic_light | ||
) |
Add Contact to Lane to the Lane object.
[in] | id_from | From-Lane Identifier. |
[in] | id_to | Identifier of object to which connection is leading. |
[in] | location | Location of the contact. |
[in] | types | Types of the contact. |
[in] | restrs | Legal restrictions for the contact. |
[in] | traffic_light | Identifier of the traffic light for this Contact (may be invalid). |
bool ad::map::access::Factory::add | ( | PartitionId | part_id, |
const lane::LaneId & | id, | ||
lane::LaneType | type, | ||
lane::LaneDirection | direction | ||
) |
Adds or modifies new Lane in the Store.
[in] | part_id | Partition to which this lane belongs. |
[in] | id | Identifier of this lane. |
[in] | type | Type of the lane. |
[in] | direction | Direction of traffic flow of this lane. |
lane::LaneId ad::map::access::Factory::add | ( | PartitionId | part_id, |
const point::ECEFEdge & | left_ecef, | ||
const point::ECEFEdge & | right_ecef, | ||
const lane::LaneId & | lane_id_0, | ||
const lane::LaneId & | lane_id_1 | ||
) |
Add new intersection lane to the store.
[in] | part_id | Partition to which this lane belongs. |
[in] | left_ecef | Left edge geometry. |
[in] | right_ecef | Right edge geometry. |
[in] | lane_id_0 | First connecting lane. |
[in] | lane_id_1 | Second connecting lane. |
lane::LaneId ad::map::access::Factory::add | ( | PartitionId | part_id, |
const point::GeoEdge & | left_geo, | ||
const point::GeoEdge & | right_geo | ||
) |
Add new lane to the store.
[in] | part_id | Partition to which this lane belongs. |
[in] | left_geo | Left edge geometry. |
[in] | right_geo | Right edge geometry. |
bool ad::map::access::Factory::addLandmark | ( | PartitionId | part_id, |
const landmark::LandmarkId & | id, | ||
const landmark::LandmarkType | type, | ||
const point::ECEFPoint & | position, | ||
const point::ECEFPoint & | orientation, | ||
const point::Geometry & | bounding_box | ||
) |
Adds or modifies new landmark in the Store.
[in] | part_id | Partition to which this landmark belongs. |
[in] | id | Identifier of this landmark. |
[in] | type | Type of the landmark. |
[in] | position | Position of the landmark. |
[in] | orientation | Orientation of the landmark. |
[in] | bounding_box | Bounding box of the landmark. |
bool ad::map::access::Factory::addTrafficLight | ( | PartitionId | part_id, |
const landmark::LandmarkId & | id, | ||
const landmark::TrafficLightType | type, | ||
const point::ECEFPoint & | position, | ||
const point::ECEFPoint & | orientation, | ||
const point::Geometry & | bounding_box | ||
) |
Adds or modifies new traffic light landmark in the Store.
[in] | part_id | Partition to which this landmark belongs. |
[in] | id | Identifier of this landmark. |
[in] | type | Type of the traffic light landmark. |
[in] | position | Position of the landmark. |
[in] | orientation | Orientation of the landmark. |
[in] | bounding_box | Bounding box of the landmark. |
bool ad::map::access::Factory::addTrafficSign | ( | PartitionId | part_id, |
const landmark::LandmarkId & | id, | ||
const landmark::TrafficSignType | type, | ||
const point::ECEFPoint & | position, | ||
const point::ECEFPoint & | orientation, | ||
const point::Geometry & | bounding_box, | ||
const std::string & | text | ||
) |
Adds or modifies new traffic sign landmark in the Store.
[in] | part_id | Partition to which this landmark belongs. |
[in] | id | Identifier of this landmark. |
[in] | type | Type of the traffic sign landmark. |
[in] | position | Position of the landmark. |
[in] | orientation | Orientation of the landmark. |
[in] | bounding_box | Bounding box of the landmark. |
[in] | text | Text of the traffic sign landmark. |
bool ad::map::access::Factory::autoConnect | ( | lane::LaneId | from_lane_id, |
lane::LaneId | to_lane_id | ||
) |
Creates missing topological contacts from one lane to another.
[in] | from_lane_id | First lane identifer. |
[in] | to_lane_id | Second lane identifier. |
bool ad::map::access::Factory::deleteContacts | ( | lane::LaneId | from_id, |
lane::LaneId | to_id | ||
) |
Delete all contacts from one lane to another.
[in] | from_id | Lane identifier. |
[in] | to_id | To-lane identifier. |
bool ad::map::access::Factory::deleteLandmark | ( | landmark::LandmarkId | id | ) |
Method to be called to delete landmark from the Store.
[in] | id | Landmark identifier. |
bool ad::map::access::Factory::deleteLane | ( | lane::LaneId | id | ) |
Method to be called to delete Lane from the Store.
[in] | id | Lane identifier. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
const landmark::LandmarkIdList & | landmarks | ||
) |
Set visible landmarks to the Lane object.
[in] | id | Lane Identifier. |
[in] | landmarks | to set. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
const physics::Speed & | speed_limit | ||
) |
Sets speed limit for the COMPLETE lane.
[in] | id | Lane identifier. |
[in] | speed_limit | Speed limit for the COMPLETE lane. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
const point::Geometry & | edge_left, | ||
const point::Geometry & | edge_right | ||
) |
Sets the Lane Edges.
[in] | id | Lane identifier. |
[in] | edge_left | Left lane geometry. |
[in] | edge_right | Right lane point::Geometry. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
const restriction::Restrictions & | restrictions | ||
) |
Set Restrictions to the Lane object.
[in] | id | Lane Identifier. |
[in] | restrictions | Restrictions to set. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
lane::ComplianceVersion | compliance_ver | ||
) |
Sets the lane attribute.
[in] | id | Identifier of this lane. |
[in] | compliance_ver | Data version compliance of this lane. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
lane::LaneDirection | direction | ||
) |
Sets the lane attribute.
[in] | id | Identifier of this lane. |
[in] | direction | Direction of traffic flow of this lane. |
bool ad::map::access::Factory::set | ( | const lane::LaneId & | id, |
lane::LaneType | type | ||
) |
Sets the lane attribute.
[in] | id | Identifier of this lane. |
[in] | type | Type of the lane. |
bool ad::map::access::Factory::set | ( | const TrafficType & | traffic_type | ) |
Set traffic type of the map.
[in] | traffic_type | the type of traffic within the map. |