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

#include <traffic_sink.hpp>

Inheritance diagram for traffic_simulator::traffic::TrafficSink:
Inheritance graph
[legend]
Collaboration diagram for traffic_simulator::traffic::TrafficSink:
Collaboration graph
[legend]

Public Member Functions

 TrafficSink (lanelet::Id lanelet_id, double radius, const geometry_msgs::msg::Point &position, 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)
 
void execute (const double current_time, const double step_time) override
 
auto appendDebugMarker (visualization_msgs::msg::MarkerArray &marker_array) const -> void override
 
- Public Member Functions inherited from traffic_simulator::traffic::TrafficModuleBase
 TrafficModuleBase ()
 

Public Attributes

const lanelet::Id lanelet_id
 
const double radius
 
const geometry_msgs::msg::Point position
 

Constructor & Destructor Documentation

◆ TrafficSink()

traffic_simulator::traffic::TrafficSink::TrafficSink ( lanelet::Id  lanelet_id,
double  radius,
const geometry_msgs::msg::Point &  position,
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 
)
explicit

Member Function Documentation

◆ appendDebugMarker()

auto traffic_simulator::traffic::TrafficSink::appendDebugMarker ( visualization_msgs::msg::MarkerArray &  marker_array) const -> void
overridevirtual

◆ execute()

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

Member Data Documentation

◆ lanelet_id

const lanelet::Id traffic_simulator::traffic::TrafficSink::lanelet_id

◆ position

const geometry_msgs::msg::Point traffic_simulator::traffic::TrafficSink::position

◆ radius

const double traffic_simulator::traffic::TrafficSink::radius

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