scenario_simulator_v2 C++ API
Functions
entity_behavior::do_nothing_behavior::follow_trajectory Namespace Reference

Functions

bool checkPolylineTrajectory (const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &trajectory)
 
auto getLastVertexTimestamp (const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &trajectory) -> std::optional< double >
 
auto interpolateEntityStatusFromPolylineTrajectory (const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &trajectory, const std::shared_ptr< traffic_simulator::CanonicalizedEntityStatus > &entity_status, double current_time, double step_time) -> std::optional< traffic_simulator::EntityStatus >
 

Function Documentation

◆ checkPolylineTrajectory()

bool entity_behavior::do_nothing_behavior::follow_trajectory::checkPolylineTrajectory ( const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &  trajectory)

◆ getLastVertexTimestamp()

auto entity_behavior::do_nothing_behavior::follow_trajectory::getLastVertexTimestamp ( const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &  trajectory) -> std::optional<double>

◆ interpolateEntityStatusFromPolylineTrajectory()

auto entity_behavior::do_nothing_behavior::follow_trajectory::interpolateEntityStatusFromPolylineTrajectory ( const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &  trajectory,
const std::shared_ptr< traffic_simulator::CanonicalizedEntityStatus > &  entity_status,
double  current_time,
double  step_time 
) -> std::optional<traffic_simulator::EntityStatus>