scenario_simulator_v2 C++ API
Classes | Public Member Functions | Public Attributes | Friends | List of all members
traffic_simulator::TrafficLight Struct Reference

#include <traffic_light.hpp>

Classes

struct  Bulb
 
struct  Color
 
struct  Shape
 
struct  Status
 

Public Member Functions

 TrafficLight (const lanelet::Id, const hdmap_utils::HdMapUtils &)
 
auto clear ()
 
auto contains (const Bulb &bulb) const
 
auto contains (const Color &color, const Status &status, const Shape &shape) const
 
auto contains (const std::string &name) const
 
template<typename Markers , typename Now >
auto draw (Markers &markers, const Now &now, const std::string &frame_id) const
 
template<typename... Ts>
auto emplace (Ts &&... xs)
 
auto empty () const
 
auto set (const std::string &states) -> void
 
 operator simulation_api_schema::TrafficSignal () const
 
 operator traffic_simulator_msgs::msg::TrafficLightV1 () const
 

Public Attributes

const lanelet::Id way_id
 
const lanelet::Ids regulatory_elements_ids
 
double confidence = 1.0
 
std::set< Bulbbulbs
 
const std::map< Bulb::Hash, std::optional< geometry_msgs::msg::Point > > positions
 

Friends

auto operator<< (std::ostream &os, const TrafficLight &traffic_light) -> std::ostream &
 

Constructor & Destructor Documentation

◆ TrafficLight()

traffic_simulator::TrafficLight::TrafficLight ( const lanelet::Id  lanelet_id,
const hdmap_utils::HdMapUtils hdmap_utils 
)
explicit

Member Function Documentation

◆ clear()

auto traffic_simulator::TrafficLight::clear ( )
inline

◆ contains() [1/3]

auto traffic_simulator::TrafficLight::contains ( const Bulb bulb) const
inline

◆ contains() [2/3]

auto traffic_simulator::TrafficLight::contains ( const Color color,
const Status status,
const Shape shape 
) const
inline

◆ contains() [3/3]

auto traffic_simulator::TrafficLight::contains ( const std::string &  name) const
inline

◆ draw()

template<typename Markers , typename Now >
auto traffic_simulator::TrafficLight::draw ( Markers &  markers,
const Now &  now,
const std::string &  frame_id 
) const
inline

◆ emplace()

template<typename... Ts>
auto traffic_simulator::TrafficLight::emplace ( Ts &&...  xs)
inline

◆ empty()

auto traffic_simulator::TrafficLight::empty ( ) const
inline

◆ operator simulation_api_schema::TrafficSignal()

traffic_simulator::TrafficLight::operator simulation_api_schema::TrafficSignal ( ) const
inlineexplicit

◆ operator traffic_simulator_msgs::msg::TrafficLightV1()

traffic_simulator::TrafficLight::operator traffic_simulator_msgs::msg::TrafficLightV1 ( ) const
inlineexplicit

◆ set()

auto traffic_simulator::TrafficLight::set ( const std::string &  states) -> void

Friends And Related Function Documentation

◆ operator<<

auto operator<< ( std::ostream &  os,
const TrafficLight traffic_light 
) -> std::ostream &
friend

Member Data Documentation

◆ bulbs

std::set<Bulb> traffic_simulator::TrafficLight::bulbs

◆ confidence

double traffic_simulator::TrafficLight::confidence = 1.0

◆ positions

const std::map<Bulb::Hash, std::optional<geometry_msgs::msg::Point> > traffic_simulator::TrafficLight::positions

◆ regulatory_elements_ids

const lanelet::Ids traffic_simulator::TrafficLight::regulatory_elements_ids

◆ way_id

const lanelet::Id traffic_simulator::TrafficLight::way_id

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