scenario_simulator_v2 C++ API
Public Member Functions | Friends | List of all members
traffic_simulator::follow_trajectory::FollowWaypointController Class Reference

#include <follow_waypoint_controller.hpp>

Public Member Functions

constexpr FollowWaypointController (const traffic_simulator_msgs::msg::BehaviorParameter &behavior_parameter, const double step_time, const bool with_breaking, const std::optional< double > &target_speed=std::nullopt)
 
auto getFollowedWaypointDetails (const traffic_simulator_msgs::msg::PolylineTrajectory &polyline_trajectory) const -> std::string
 
auto getPredictedWaypointArrivalState (const double step_acceleration, const double remaining_time, const double remaining_distance, const double acceleration, const double speed) const -> std::optional< PredictedState >
 
auto getAcceleration (const double remaining_distance, const double acceleration, const double speed) const -> double
 
auto getAcceleration (const double remaining_time_source, const double remaining_distance, const double acceleration, const double speed) const -> double
 
auto areConditionsOfArrivalMet (const double acceleration, const double speed, const double distance) const -> double
 

Friends

template<typename StreamType >
auto operator<< (StreamType &stream, const FollowWaypointController &c) -> StreamType &
 

Constructor & Destructor Documentation

◆ FollowWaypointController()

constexpr traffic_simulator::follow_trajectory::FollowWaypointController::FollowWaypointController ( const traffic_simulator_msgs::msg::BehaviorParameter &  behavior_parameter,
const double  step_time,
const bool  with_breaking,
const std::optional< double > &  target_speed = std::nullopt 
)
inlineexplicitconstexpr

Member Function Documentation

◆ areConditionsOfArrivalMet()

auto traffic_simulator::follow_trajectory::FollowWaypointController::areConditionsOfArrivalMet ( const double  acceleration,
const double  speed,
const double  distance 
) const -> double
inline

◆ getAcceleration() [1/2]

auto traffic_simulator::follow_trajectory::FollowWaypointController::getAcceleration ( const double  remaining_distance,
const double  acceleration,
const double  speed 
) const -> double

◆ getAcceleration() [2/2]

auto traffic_simulator::follow_trajectory::FollowWaypointController::getAcceleration ( const double  remaining_time_source,
const double  remaining_distance,
const double  acceleration,
const double  speed 
) const -> double

◆ getFollowedWaypointDetails()

auto traffic_simulator::follow_trajectory::FollowWaypointController::getFollowedWaypointDetails ( const traffic_simulator_msgs::msg::PolylineTrajectory &  polyline_trajectory) const -> std::string
inline

◆ getPredictedWaypointArrivalState()

auto traffic_simulator::follow_trajectory::FollowWaypointController::getPredictedWaypointArrivalState ( const double  step_acceleration,
const double  remaining_time,
const double  remaining_distance,
const double  acceleration,
const double  speed 
) const -> std::optional<PredictedState>

Friends And Related Function Documentation

◆ operator<<

template<typename StreamType >
auto operator<< ( StreamType &  stream,
const FollowWaypointController c 
) -> StreamType &
friend

The documentation for this class was generated from the following files: