ad_map_access
|
Implements routing on the lane network. More...
#include <ad/map/route/Route.hpp>
Classes | |
struct | RawRoute |
Basic route description. More... | |
Public Types | |
enum | Type { Type::INVALID, Type::SHORTEST, Type::SHORTEST_IGNORE_DIRECTION } |
Routing type. More... | |
typedef std::vector< point::ParaPointList > | BasicRoute |
Basic route description. | |
Public Member Functions | |
Route (const RoutingParaPoint &start, const RoutingParaPoint &dest, physics::Distance const &maxDistance, physics::Duration const &maxDuration, Type const &routingType) | |
Constructor. Calculates route between two points. More... | |
Route (Route const &)=delete | |
Route (Route const &&)=delete | |
Route & | operator= (Route const &)=delete |
Route & | operator= (Route &&)=delete |
virtual | ~Route ()=default |
Destructor. | |
const point::ParaPoint & | getStart () const |
const RoutingParaPoint & | getRoutingStart () const |
const point::ParaPoint & | getDest () const |
const RoutingParaPoint & | getRoutingDest () const |
Type | getType () const |
bool | laneDirectionIsIgnored () const |
virtual bool | calculate ()=0 |
Performs the routing. More... | |
bool | isValid () const |
const RawRoute & | getRawRoute (size_t const routeIndex=0u) const |
const std::vector< RawRoute > & | getRawRoutes () const |
BasicRoute | getBasicRoute (size_t const routeIndex=0u) const |
std::vector< BasicRoute > | getBasicRoutes () const |
Protected Attributes | |
RoutingParaPoint | mStart |
Start point. | |
RoutingParaPoint | mDest |
Destination point. | |
const physics::Distance | mMaxDistance |
prediction distance to be used | |
const physics::Duration | mMaxDuration |
prediction duration to be used | |
Type | mType |
Type of the route to be calculated. | |
bool | mValid |
Indicates if calculation was successful. More... | |
std::vector< RawRoute > | mRawRoutes |
Implements routing on the lane network.
|
strong |
ad::map::route::planning::Route::Route | ( | const RoutingParaPoint & | start, |
const RoutingParaPoint & | dest, | ||
physics::Distance const & | maxDistance, | ||
physics::Duration const & | maxDuration, | ||
Type const & | routingType | ||
) |
Constructor. Calculates route between two points.
[in] | start | Start point. |
[in] | dest | Destination point. |
[in] | maxDistance | maximum route search distance. |
[in] | maxDuration | maximum route search duration. |
[in] | routingType | Type of the route to be calculated. |
|
pure virtual |
Performs the routing.
Implemented in ad::map::route::planning::RouteAstar, and ad::map::route::planning::RoutePrediction.
BasicRoute ad::map::route::planning::Route::getBasicRoute | ( | size_t const | routeIndex = 0u | ) | const |
std::vector<BasicRoute> ad::map::route::planning::Route::getBasicRoutes | ( | ) | const |
|
inline |
const RawRoute& ad::map::route::planning::Route::getRawRoute | ( | size_t const | routeIndex = 0u | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool ad::map::route::planning::Route::laneDirectionIsIgnored | ( | ) | const |
|
protected |
Indicates if calculation was successful.
Calculated routes.