maliput
|
A concrete implementation of the api::IntersectionBook abstract interface.
#include <include/maliput/base/intersection_book.h>
Public Member Functions | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (IntersectionBook) | |
IntersectionBook (const api::RoadGeometry *road_geometry) | |
Constructs an IntersectionBook. More... | |
~IntersectionBook () override | |
void | AddIntersection (std::unique_ptr< api::Intersection > intersection) |
Adds intersection to this IntersectionBook. More... | |
std::vector< api::Intersection * > | FindIntersections (const std::vector< api::LaneSRange > ®ion, double tolerance) |
Returns a vector of Intersection pointers whose regions intersect region . More... | |
![]() | |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN (IntersectionBook) | |
std::vector< Intersection * > | GetIntersections () |
Gets a list of all Intersections within this book. More... | |
Intersection * | GetIntersection (const Intersection::Id &id) |
Gets the specified Intersection. More... | |
Intersection * | FindIntersection (const rules::TrafficLight::Id &id) |
Find the intersection which contains api::rules::TrafficLight::Id. More... | |
Intersection * | FindIntersection (const rules::DiscreteValueRule::Id &id) |
Find the intersection which contains api::rules::DiscreteValueRule::Id. More... | |
Intersection * | FindIntersection (const InertialPosition &inertial_pos) |
Find the intersection which contains api::rules::DiscreteValueRule::Id. More... | |
Intersection * | FindIntersection (const rules::RightOfWayRule::Id &id) |
Find the intersection which contains api::rules::RightOfWayRule::Id. More... | |
Additional Inherited Members | |
![]() | |
IntersectionBook ()=default | |
|
explicit |
Constructs an IntersectionBook.
road_geometry | The api::RoadGeometry used when computing GetFindIntersection(inertial_pose) |
maliput::common::assertion_error | when preconditions are unmet. |
|
overridevirtualdefault |
Reimplemented from IntersectionBook.
void AddIntersection | ( | std::unique_ptr< api::Intersection > | intersection | ) |
Adds intersection
to this IntersectionBook.
std::exception | if an api::Intersection with the same ID already exists, or if intersection is nullptr. |
std::vector< Intersection * > FindIntersections | ( | const std::vector< api::LaneSRange > & | region, |
double | tolerance | ||
) |
Returns a vector of Intersection pointers whose regions intersect region
.
region | A vector of api::LaneSRanges. |
tolerance | Tolerance to compare api::LaneSRange intersections. |
MALIPUT_NO_COPY_NO_MOVE_NO_ASSIGN | ( | IntersectionBook | ) |