Abstract class to define a framework for custom routing cost calculation modules. This interfaces can be implemented to allow routing cost calculation based on specific needs (e.g. road conditions). As of now, two modules are implemented which should satisfy basic needs: More...
#include <RoutingCost.h>
Public Member Functions | |
virtual double | getCostLaneChange (const traffic_rules::TrafficRules &trafficRules, const ConstLanelets &from, const ConstLanelets &to) const =0 |
Get the cost of the lane change between two adjacent lanelets. More... | |
virtual double | getCostSucceeding (const traffic_rules::TrafficRules &trafficRules, const ConstLaneletOrArea &from, const ConstLaneletOrArea &to) const =0 |
Get the cost of the transistion from one to another lanelet. More... | |
virtual | ~RoutingCost ()=default |
Abstract class to define a framework for custom routing cost calculation modules. This interfaces can be implemented to allow routing cost calculation based on specific needs (e.g. road conditions). As of now, two modules are implemented which should satisfy basic needs:
Definition at line 21 of file RoutingCost.h.
|
virtualdefault |
|
pure virtual |
Get the cost of the lane change between two adjacent lanelets.
trafficRules | TrafficRules module to apply |
from | The lanelet or area the traffic participant is on (assumed to be in the middle) |
to | The lanelet or area the traffic participant is reaching for (reference is the middle again) |
Implemented in lanelet::routing::RoutingCostTravelTime, and lanelet::routing::RoutingCostDistance.
|
pure virtual |
Get the cost of the transistion from one to another lanelet.
trafficRules | TrafficRules module to apply |
from | The lanelet or area the traffic participant is on (assumed to be in the middle) |
to | The lanelet or area the traffic participant is reaching for (reference is the middle again) |
Implemented in lanelet::routing::RoutingCostTravelTime, and lanelet::routing::RoutingCostDistance.