scenario_simulator_v2 C++ API
Public Member Functions | Protected Attributes | List of all members
cpp_mock_scenarios::CppScenarioNode Class Referenceabstract

#include <cpp_scenario_node.hpp>

Inheritance diagram for cpp_mock_scenarios::CppScenarioNode:
Inheritance graph
[legend]
Collaboration diagram for cpp_mock_scenarios::CppScenarioNode:
Collaboration graph
[legend]

Public Member Functions

 CppScenarioNode (const std::string &node_name, const std::string &map_path, const std::string &lanelet2_map_file, const std::string &scenario_filename, const bool verbose, const rclcpp::NodeOptions &option)
 
void start ()
 
void stop (Result result, const std::string &description="")
 
void expectThrow ()
 
void expectNoThrow ()
 
template<typename T >
auto equals (const T v1, const T v2, const T tolerance=std::numeric_limits< T >::epsilon()) const -> bool
 
void spawnEgoEntity (const traffic_simulator::CanonicalizedLaneletPose &spawn_lanelet_pose, const std::vector< traffic_simulator::CanonicalizedLaneletPose > &goal_lanelet_pose, const traffic_simulator_msgs::msg::VehicleParameters &parameters)
 
auto isVehicle (const std::string &name) const -> bool
 
auto isPedestrian (const std::string &name) const -> bool
 

Protected Attributes

traffic_simulator::API api_
 
common::junit::JUnit5 junit_
 

Constructor & Destructor Documentation

◆ CppScenarioNode()

cpp_mock_scenarios::CppScenarioNode::CppScenarioNode ( const std::string &  node_name,
const std::string &  map_path,
const std::string &  lanelet2_map_file,
const std::string &  scenario_filename,
const bool  verbose,
const rclcpp::NodeOptions &  option 
)
explicit

Member Function Documentation

◆ equals()

template<typename T >
auto cpp_mock_scenarios::CppScenarioNode::equals ( const T  v1,
const T  v2,
const T  tolerance = std::numeric_limits<T>::epsilon() 
) const -> bool
inline

◆ expectNoThrow()

void cpp_mock_scenarios::CppScenarioNode::expectNoThrow ( )
inline

◆ expectThrow()

void cpp_mock_scenarios::CppScenarioNode::expectThrow ( )
inline

◆ isPedestrian()

auto cpp_mock_scenarios::CppScenarioNode::isPedestrian ( const std::string &  name) const -> bool

◆ isVehicle()

auto cpp_mock_scenarios::CppScenarioNode::isVehicle ( const std::string &  name) const -> bool

◆ spawnEgoEntity()

void cpp_mock_scenarios::CppScenarioNode::spawnEgoEntity ( const traffic_simulator::CanonicalizedLaneletPose spawn_lanelet_pose,
const std::vector< traffic_simulator::CanonicalizedLaneletPose > &  goal_lanelet_pose,
const traffic_simulator_msgs::msg::VehicleParameters &  parameters 
)

◆ start()

void cpp_mock_scenarios::CppScenarioNode::start ( )

◆ stop()

void cpp_mock_scenarios::CppScenarioNode::stop ( Result  result,
const std::string &  description = "" 
)

Member Data Documentation

◆ api_

traffic_simulator::API cpp_mock_scenarios::CppScenarioNode::api_
protected

◆ junit_

common::junit::JUnit5 cpp_mock_scenarios::CppScenarioNode::junit_
protected

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