scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
traffic_simulator::traffic::TrafficController Class Reference

#include <traffic_controller.hpp>

Public Member Functions

 TrafficController (std::shared_ptr< hdmap_utils::HdMapUtils > hdmap_utils, const std::function< std::vector< std::string >(void)> &get_entity_names_function, const std::function< geometry_msgs::msg::Pose(const std::string &)> &get_entity_pose_function, const std::function< void(std::string)> &despawn_function, bool auto_sink=false)
 
template<typename T , typename... Ts>
void addModule (Ts &&... xs)
 
void execute (const double current_time, const double step_time)
 
auto makeDebugMarker () const -> const visualization_msgs::msg::MarkerArray
 

Public Attributes

const bool auto_sink
 

Constructor & Destructor Documentation

◆ TrafficController()

traffic_simulator::traffic::TrafficController::TrafficController ( std::shared_ptr< hdmap_utils::HdMapUtils hdmap_utils,
const std::function< std::vector< std::string >(void)> &  get_entity_names_function,
const std::function< geometry_msgs::msg::Pose(const std::string &)> &  get_entity_pose_function,
const std::function< void(std::string)> &  despawn_function,
bool  auto_sink = false 
)
explicit

Member Function Documentation

◆ addModule()

template<typename T , typename... Ts>
void traffic_simulator::traffic::TrafficController::addModule ( Ts &&...  xs)
inline

◆ execute()

void traffic_simulator::traffic::TrafficController::execute ( const double  current_time,
const double  step_time 
)

◆ makeDebugMarker()

auto traffic_simulator::traffic::TrafficController::makeDebugMarker ( ) const -> const visualization_msgs::msg::MarkerArray

Member Data Documentation

◆ auto_sink

const bool traffic_simulator::traffic::TrafficController::auto_sink

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