26 #ifndef TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_CONTROLLER_HPP_
27 #define TRAFFIC_SIMULATOR__TRAFFIC__TRAFFIC_CONTROLLER_HPP_
46 const std::shared_ptr<entity::EntityManager> entity_manager_ptr,
47 const std::set<std::uint8_t> auto_sink_entity_types );
49 template <
typename T,
typename... Ts>
52 auto module_ptr = std::make_shared<T>(std::forward<Ts>(
xs)...);
53 modules_.emplace_back(module_ptr);
55 auto execute(
const double current_time,
const double step_time) -> void;
59 auto appendAutoSinks(const
std::set<
std::uint8_t> & auto_sink_entity_types) ->
void;
60 const
std::shared_ptr<entity::EntityManager> entity_manager_ptr_;
Definition: traffic_controller.hpp:43
TrafficController(const std::shared_ptr< entity::EntityManager > entity_manager_ptr, const std::set< std::uint8_t > auto_sink_entity_types)
Definition: traffic_controller.cpp:39
void addModule(Ts &&... xs)
Definition: traffic_controller.hpp:50
auto makeDebugMarker() const -> visualization_msgs::msg::MarkerArray
Definition: traffic_controller.cpp:74
auto execute(const double current_time, const double step_time) -> void
Definition: traffic_controller.cpp:67
Definition: traffic_module_base.hpp:36
Definition: junit5.hpp:25