scenario_simulator_v2 C++ API
Typedefs | Functions
traffic_simulator::lanelet_wrapper::lane_change Namespace Reference

Typedefs

using Parameter = traffic_simulator::lane_change::Parameter
 
using Direction = traffic_simulator::lane_change::Direction
 
using Constraint = traffic_simulator::lane_change::Constraint
 
using TrajectoryShape = traffic_simulator::lane_change::TrajectoryShape
 

Functions

auto canChangeLane (const lanelet::Id from_lanelet_id, const lanelet::Id to_lanelet_id, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> bool
 
auto laneChangeableLaneletId (const lanelet::Id lanelet_id, const Direction &direction, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> std::optional< lanelet::Id >
 
auto laneChangeableLaneletId (const lanelet::Id lanelet_id, const Direction &direction, const std::uint8_t shift, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> std::optional< lanelet::Id >
 
auto countLaneChanges (const lanelet::Id &from_lanelet_id, const lanelet::Id &to_lanelet_id, const RoutingConfiguration &routing_configuration=RoutingConfiguration()) -> std::optional< std::pair< int, int >>
 
auto laneChangeTrajectory (const Pose &from_pose, const LaneletPose &to_lanelet_pose, const TrajectoryShape &trajectory_shape, const double tangent_vector_size) -> Curve
 
auto laneChangeTrajectory (const LaneletPose &from_lanelet_pose, const Parameter &lane_change_parameter) -> std::optional< std::pair< Curve, double >>
 
auto laneChangeTrajectory (const Pose &from_pose, const Parameter &lane_change_parameter, const double maximum_curvature_threshold, const double target_trajectory_length, const double forward_distance_threshold) -> std::optional< std::pair< Curve, double >>
 

Typedef Documentation

◆ Constraint

◆ Direction

◆ Parameter

◆ TrajectoryShape

Function Documentation

◆ canChangeLane()

auto traffic_simulator::lanelet_wrapper::lane_change::canChangeLane ( const lanelet::Id  from_lanelet_id,
const lanelet::Id  to_lanelet_id,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> bool

◆ countLaneChanges()

auto traffic_simulator::lanelet_wrapper::lane_change::countLaneChanges ( const lanelet::Id &  from_lanelet_id,
const lanelet::Id &  to_lanelet_id,
const RoutingConfiguration routing_configuration = RoutingConfiguration() 
) -> std::optional<std::pair<int, int>>

◆ laneChangeableLaneletId() [1/2]

auto traffic_simulator::lanelet_wrapper::lane_change::laneChangeableLaneletId ( const lanelet::Id  lanelet_id,
const Direction direction,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> std::optional<lanelet::Id>

◆ laneChangeableLaneletId() [2/2]

auto traffic_simulator::lanelet_wrapper::lane_change::laneChangeableLaneletId ( const lanelet::Id  lanelet_id,
const Direction direction,
const std::uint8_t  shift,
const RoutingGraphType  type = RoutingConfiguration().routing_graph_type 
) -> std::optional<lanelet::Id>

◆ laneChangeTrajectory() [1/3]

auto traffic_simulator::lanelet_wrapper::lane_change::laneChangeTrajectory ( const LaneletPose from_lanelet_pose,
const Parameter lane_change_parameter 
) -> std::optional<std::pair<Curve, double>>

◆ laneChangeTrajectory() [2/3]

auto traffic_simulator::lanelet_wrapper::lane_change::laneChangeTrajectory ( const Pose from_pose,
const LaneletPose to_lanelet_pose,
const TrajectoryShape trajectory_shape,
const double  tangent_vector_size 
) -> Curve

◆ laneChangeTrajectory() [3/3]

auto traffic_simulator::lanelet_wrapper::lane_change::laneChangeTrajectory ( const Pose from_pose,
const Parameter lane_change_parameter,
const double  maximum_curvature_threshold,
const double  target_trajectory_length,
const double  forward_distance_threshold 
) -> std::optional<std::pair<Curve, double>>