scenario_simulator_v2 C++ API
Functions
traffic_simulator::lanelet_wrapper::route Namespace Reference

Functions

auto isInRoute (const lanelet::Id lanelet_id, const lanelet::Ids &route_lanelets_ids) -> bool
 
auto speedLimit (const lanelet::Ids &lanelet_ids, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> double
 
auto routeFromGraph (const lanelet::Id from_lanelet_id, const lanelet::Id to_lanelet_id, const RoutingConfiguration &routing_configuration=RoutingConfiguration()) -> lanelet::Ids
 
auto followingLanelets (const lanelet::Id lanelet_id, const lanelet::Ids &candidate_lanelet_ids, const double distance=100, const bool include_self=true, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> lanelet::Ids
 
auto followingLanelets (const lanelet::Id lanelet_id, const double distance=100, const bool include_self=true, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> lanelet::Ids
 
auto previousLanelets (const lanelet::Id current_lanelet_id, const double backward_horizon=100, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> lanelet::Ids
 

Function Documentation

◆ followingLanelets() [1/2]

auto traffic_simulator::lanelet_wrapper::route::followingLanelets ( const lanelet::Id  lanelet_id,
const double  distance = 100,
const bool  include_self = true,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> lanelet::Ids

◆ followingLanelets() [2/2]

auto traffic_simulator::lanelet_wrapper::route::followingLanelets ( const lanelet::Id  lanelet_id,
const lanelet::Ids &  candidate_lanelet_ids,
const double  distance = 100,
const bool  include_self = true,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> lanelet::Ids

◆ isInRoute()

auto traffic_simulator::lanelet_wrapper::route::isInRoute ( const lanelet::Id  lanelet_id,
const lanelet::Ids &  route_lanelets_ids 
) -> bool

◆ previousLanelets()

auto traffic_simulator::lanelet_wrapper::route::previousLanelets ( const lanelet::Id  current_lanelet_id,
const double  backward_horizon = 100,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> lanelet::Ids

◆ routeFromGraph()

auto traffic_simulator::lanelet_wrapper::route::routeFromGraph ( const lanelet::Id  from_lanelet_id,
const lanelet::Id  to_lanelet_id,
const RoutingConfiguration routing_configuration = RoutingConfiguration() 
) -> lanelet::Ids
Todo:
improve architecture in terms of access to cache of the graph
Todo:
improve architecture in terms of access to cache of the graph

◆ speedLimit()

auto traffic_simulator::lanelet_wrapper::route::speedLimit ( const lanelet::Ids &  lanelet_ids,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> double