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

Functions

auto lateralDistance (const LaneletPose &from, const LaneletPose &to, const RoutingConfiguration &routing_configuration=RoutingConfiguration()) -> std::optional< double >
 
auto distanceToStopLine (const lanelet::Ids &route_lanelets, const SplineInterface &route_spline) -> std::optional< double >
 
auto distanceToStopLine (const lanelet::Ids &route_lanelets, const std::vector< Point > &route_waypoints) -> std::optional< double >
 
auto distanceToStopLine (const std::vector< Point > &route_waypoints, const lanelet::Id stop_line_id) -> std::optional< double >
 

Function Documentation

◆ distanceToStopLine() [1/3]

auto traffic_simulator::lanelet_wrapper::distance::distanceToStopLine ( const lanelet::Ids &  route_lanelets,
const SplineInterface route_spline 
) -> std::optional<double>

◆ distanceToStopLine() [2/3]

auto traffic_simulator::lanelet_wrapper::distance::distanceToStopLine ( const lanelet::Ids &  route_lanelets,
const std::vector< Point > &  route_waypoints 
) -> std::optional<double>

◆ distanceToStopLine() [3/3]

auto traffic_simulator::lanelet_wrapper::distance::distanceToStopLine ( const std::vector< Point > &  route_waypoints,
const lanelet::Id  stop_line_id 
) -> std::optional<double>

◆ lateralDistance()

auto traffic_simulator::lanelet_wrapper::distance::lateralDistance ( const LaneletPose from,
const LaneletPose to,
const RoutingConfiguration routing_configuration = RoutingConfiguration() 
) -> std::optional<double>
Todo:
maybe an exception should be thrown here? since the route exists but is incorrect?
Todo:
maybe an exception should be thrown here? since the route exists but is incorrect?