26 #ifndef TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_CONTROLLER_HPP_
27 #define TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_CONTROLLER_HPP_
46 const std::function<
void(
const std::string &)> & despawn_,
47 const std::shared_ptr<entity::EntityManager> entity_manager_ptr,
48 const std::set<std::uint8_t> auto_sink_entity_types );
50 template <
typename T,
typename... Ts>
53 auto module_ptr = std::make_shared<T>(std::forward<Ts>(
xs)...);
54 modules_.emplace_back(module_ptr);
56 auto execute(
const double current_time,
const double step_time) -> void;
60 auto appendAutoSinks(const
std::set<
std::uint8_t> & auto_sink_entity_types) ->
void;
61 const
std::function<
void(const
std::
string &)> despawn_;
62 const
std::shared_ptr<entity::EntityManager> entity_manager_ptr_;
Definition: traffic_controller.hpp:43
void addModule(Ts &&... xs)
Definition: traffic_controller.hpp:51
TrafficController(const std::function< void(const std::string &)> &despawn_, const std::shared_ptr< entity::EntityManager > entity_manager_ptr, const std::set< std::uint8_t > auto_sink_entity_types)
Definition: traffic_controller.cpp:40
auto makeDebugMarker() const -> visualization_msgs::msg::MarkerArray
Definition: traffic_controller.cpp:70
auto execute(const double current_time, const double step_time) -> void
Definition: traffic_controller.cpp:63
Definition: traffic_module_base.hpp:36
Definition: lanelet_wrapper.hpp:39
Definition: junit5.hpp:25
std::string string
Definition: junit5.hpp:26