scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
TrafficLightsTest Class Reference
Inheritance diagram for TrafficLightsTest:
Inheritance graph
[legend]
Collaboration diagram for TrafficLightsTest:
Collaboration graph
[legend]

Public Member Functions

 TrafficLightsTest ()=default
 

Public Attributes

const lanelet::Id id {34836}
 
const lanelet::Id signal_id {34806}
 
const std::string red_state {stateFromColor("red")}
 
const std::string yellow_state {"yellow flashing circle"}
 
const rclcpp::Node::SharedPtr node_ptr = rclcpp::Node::make_shared("TrafficLightsTest")
 
const std::string path
 
const std::shared_ptr< hdmap_utils::HdMapUtilshdmap_utils_ptr
 
std::unique_ptr< traffic_simulator::TrafficLightslights
 

Constructor & Destructor Documentation

◆ TrafficLightsTest()

TrafficLightsTest::TrafficLightsTest ( )
default

Member Data Documentation

◆ hdmap_utils_ptr

const std::shared_ptr<hdmap_utils::HdMapUtils> TrafficLightsTest::hdmap_utils_ptr
Initial value:
=
std::make_shared<hdmap_utils::HdMapUtils>(
path, geographic_msgs::build<geographic_msgs::msg::GeoPoint>()
.latitude(35.61836750154)
.longitude(139.78066608243)
.altitude(0.0))
const std::string path
Definition: test_traffic_lights.cpp:46

◆ id

const lanelet::Id TrafficLightsTest::id {34836}

◆ lights

std::unique_ptr<traffic_simulator::TrafficLights> TrafficLightsTest::lights
Initial value:
=
std::make_unique<traffic_simulator::TrafficLights>(
node_ptr, hdmap_utils_ptr, "awf/universe/20240605")
const std::shared_ptr< hdmap_utils::HdMapUtils > hdmap_utils_ptr
Definition: test_traffic_lights.cpp:49
const rclcpp::Node::SharedPtr node_ptr
Definition: test_traffic_lights.cpp:44

◆ node_ptr

const rclcpp::Node::SharedPtr TrafficLightsTest::node_ptr = rclcpp::Node::make_shared("TrafficLightsTest")

◆ path

const std::string TrafficLightsTest::path
Initial value:
= ament_index_cpp::get_package_share_directory("traffic_simulator") +
"/map/standard_map/lanelet2_map.osm"

◆ red_state

const std::string TrafficLightsTest::red_state {stateFromColor("red")}

◆ signal_id

const lanelet::Id TrafficLightsTest::signal_id {34806}

◆ yellow_state

const std::string TrafficLightsTest::yellow_state {"yellow flashing circle"}

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