scenario_simulator_v2 C++ API
Enumerations | Functions | Variables
simulation_interface Namespace Reference

Enumerations

enum class  TransportProtocol { TCP }
 
enum class  HostName { LOCALHOST , ANY }
 

Functions

std::string enumToString (const TransportProtocol &protocol)
 
std::string enumToString (const HostName &hostname)
 
std::string getEndPoint (const TransportProtocol &protocol, const HostName &hostname, const unsigned int &port)
 
std::string getEndPoint (const TransportProtocol &protocol, const std::string &hostname, const unsigned int &port)
 
void toProto (const geometry_msgs::msg::Point &p, geometry_msgs::Point &proto)
 
void toMsg (const geometry_msgs::Point &proto, geometry_msgs::msg::Point &p)
 
void toProto (const geometry_msgs::msg::Quaternion &q, geometry_msgs::Quaternion &proto)
 
void toMsg (const geometry_msgs::Quaternion &proto, geometry_msgs::msg::Quaternion &q)
 
void toProto (const geometry_msgs::msg::Pose &p, geometry_msgs::Pose &proto)
 
void toMsg (const geometry_msgs::Pose &proto, geometry_msgs::msg::Pose &p)
 
void toProto (const geometry_msgs::msg::Vector3 &v, geometry_msgs::Vector3 &proto)
 
void toMsg (const geometry_msgs::Vector3 &proto, geometry_msgs::msg::Vector3 &v)
 
void toProto (const geometry_msgs::msg::Twist &t, geometry_msgs::Twist &proto)
 
void toMsg (const geometry_msgs::Twist &proto, geometry_msgs::msg::Twist &t)
 
void toProto (const geometry_msgs::msg::Accel &a, geometry_msgs::Accel &proto)
 
void toMsg (const geometry_msgs::Accel &proto, geometry_msgs::msg::Accel &a)
 
void toProto (const traffic_simulator_msgs::msg::BoundingBox &box, traffic_simulator_msgs::BoundingBox &proto)
 
void toMsg (const traffic_simulator_msgs::BoundingBox &proto, traffic_simulator_msgs::msg::BoundingBox &box)
 
void toProto (const traffic_simulator_msgs::msg::Performance &performance, traffic_simulator_msgs::Performance &proto)
 
void toMsg (const traffic_simulator_msgs::Performance &proto, traffic_simulator_msgs::msg::Performance &performance)
 
void toProto (const traffic_simulator_msgs::msg::Axle &axle, traffic_simulator_msgs::Axle &proto)
 
void toMsg (const traffic_simulator_msgs::Axle &proto, traffic_simulator_msgs::msg::Axle &axle)
 
void toProto (const traffic_simulator_msgs::msg::Axles &axles, traffic_simulator_msgs::Axles &proto)
 
void toMsg (const traffic_simulator_msgs::Axles &proto, traffic_simulator_msgs::msg::Axles &axles)
 
void toProto (const traffic_simulator_msgs::msg::VehicleParameters &p, traffic_simulator_msgs::VehicleParameters &proto)
 
void toMsg (const traffic_simulator_msgs::VehicleParameters &proto, traffic_simulator_msgs::msg::VehicleParameters &p)
 
void toProto (const traffic_simulator_msgs::msg::PedestrianParameters &p, traffic_simulator_msgs::PedestrianParameters &proto)
 
void toMsg (const traffic_simulator_msgs::PedestrianParameters &proto, traffic_simulator_msgs::msg::PedestrianParameters &p)
 
void toProto (const traffic_simulator_msgs::msg::MiscObjectParameters &p, traffic_simulator_msgs::MiscObjectParameters &proto)
 
void toMsg (const traffic_simulator_msgs::MiscObjectParameters &proto, traffic_simulator_msgs::msg::MiscObjectParameters &p)
 
void toProto (const traffic_simulator_msgs::msg::ActionStatus &s, traffic_simulator_msgs::ActionStatus &proto)
 
void toMsg (const traffic_simulator_msgs::ActionStatus &proto, traffic_simulator_msgs::msg::ActionStatus &s)
 
void toProto (const traffic_simulator_msgs::msg::LaneletPose &pose, traffic_simulator_msgs::LaneletPose &proto)
 
void toMsg (const traffic_simulator_msgs::LaneletPose &proto, traffic_simulator_msgs::msg::LaneletPose &pose)
 
void toProto (const traffic_simulator_msgs::msg::EntityType &type, traffic_simulator_msgs::EntityType &proto)
 
void toMsg (const traffic_simulator_msgs::EntityType &proto, traffic_simulator_msgs::msg::EntityType &type)
 
void toProto (const traffic_simulator_msgs::msg::EntitySubtype &subtype, traffic_simulator_msgs::EntitySubtype &proto)
 
void toMsg (const traffic_simulator_msgs::EntitySubtype &proto, traffic_simulator_msgs::msg::EntitySubtype &subtype)
 
void toProto (const traffic_simulator_msgs::msg::EntityStatus &status, simulation_api_schema::EntityStatus &proto)
 
void toProto (const traffic_simulator_msgs::msg::EntityStatus &status, traffic_simulator_msgs::EntityStatus &proto)
 
void toMsg (const traffic_simulator_msgs::EntityStatus &proto, traffic_simulator_msgs::msg::EntityStatus &status)
 
void toMsg (const simulation_api_schema::EntityStatus &proto, traffic_simulator_msgs::msg::EntityStatus &status)
 
void toProto (const builtin_interfaces::msg::Duration &duration, builtin_interfaces::Duration &proto)
 
void toMsg (const builtin_interfaces::Duration &proto, builtin_interfaces::msg::Duration &duration)
 
void toProto (const builtin_interfaces::msg::Time &time, builtin_interfaces::Time &proto)
 
void toMsg (const builtin_interfaces::Time &proto, builtin_interfaces::msg::Time &time)
 
void toProto (const rosgraph_msgs::msg::Clock &time, rosgraph_msgs::Clock &proto)
 
void toMsg (const rosgraph_msgs::Clock &proto, rosgraph_msgs::msg::Clock &time)
 
void toProto (const std_msgs::msg::Header &header, std_msgs::Header &proto)
 
void toMsg (const std_msgs::Header &proto, std_msgs::msg::Header &header)
 
 DEFINE_CONVERSION (autoware_auto_control_msgs, AckermannLateralCommand)
 
 DEFINE_CONVERSION (autoware_auto_control_msgs, LongitudinalCommand)
 
 DEFINE_CONVERSION (autoware_auto_control_msgs, AckermannControlCommand)
 
 DEFINE_CONVERSION (autoware_auto_vehicle_msgs, GearCommand)
 
auto toProto (const std::tuple< autoware_auto_control_msgs::msg::AckermannControlCommand, autoware_auto_vehicle_msgs::msg::GearCommand > &, traffic_simulator_msgs::VehicleCommand &) -> void
 
template<typename TrafficLightBulbMessageType >
auto toMsg (const simulation_api_schema::TrafficLight &proto, TrafficLightBulbMessageType &traffic_light_bulb_state) -> void
 
auto toProtobufMessage (const traffic_simulator_msgs::msg::Vertex &) -> traffic_simulator_msgs::Vertex
 
auto toROS2Message (const traffic_simulator_msgs::Vertex &) -> traffic_simulator_msgs::msg::Vertex
 
auto toProtobufMessage (const traffic_simulator_msgs::msg::Polyline &) -> traffic_simulator_msgs::Polyline
 
auto toROS2Message (const traffic_simulator_msgs::Polyline &) -> traffic_simulator_msgs::msg::Polyline
 
auto toProtobufMessage (const traffic_simulator_msgs::msg::PolylineTrajectory &) -> traffic_simulator_msgs::PolylineTrajectory
 
auto toROS2Message (const traffic_simulator_msgs::PolylineTrajectory &) -> traffic_simulator_msgs::msg::PolylineTrajectory
 
void toProto (const autoware_auto_control_msgs::msg::AckermannLateralCommand &message, autoware_auto_control_msgs::AckermannLateralCommand &proto)
 
void toMsg (const autoware_auto_control_msgs::AckermannLateralCommand &proto, autoware_auto_control_msgs::msg::AckermannLateralCommand &message)
 
void toProto (const autoware_auto_control_msgs::msg::LongitudinalCommand &message, autoware_auto_control_msgs::LongitudinalCommand &proto)
 
void toMsg (const autoware_auto_control_msgs::LongitudinalCommand &proto, autoware_auto_control_msgs::msg::LongitudinalCommand &message)
 
void toProto (const autoware_auto_control_msgs::msg::AckermannControlCommand &message, autoware_auto_control_msgs::AckermannControlCommand &proto)
 
void toMsg (const autoware_auto_control_msgs::AckermannControlCommand &proto, autoware_auto_control_msgs::msg::AckermannControlCommand &message)
 
auto toProto (const autoware_auto_vehicle_msgs::msg::GearCommand &message, autoware_auto_vehicle_msgs::GearCommand &proto) -> void
 
auto toMsg (const autoware_auto_vehicle_msgs::GearCommand &proto, autoware_auto_vehicle_msgs::msg::GearCommand &message) -> void
 

Variables

const TransportProtocol protocol = TransportProtocol::TCP
 

Enumeration Type Documentation

◆ HostName

Enumerator
LOCALHOST 
ANY 

◆ TransportProtocol

Enumerator
TCP 

Function Documentation

◆ DEFINE_CONVERSION() [1/4]

simulation_interface::DEFINE_CONVERSION ( autoware_auto_control_msgs  ,
AckermannControlCommand   
)

◆ DEFINE_CONVERSION() [2/4]

simulation_interface::DEFINE_CONVERSION ( autoware_auto_control_msgs  ,
AckermannLateralCommand   
)

◆ DEFINE_CONVERSION() [3/4]

simulation_interface::DEFINE_CONVERSION ( autoware_auto_control_msgs  ,
LongitudinalCommand   
)

◆ DEFINE_CONVERSION() [4/4]

simulation_interface::DEFINE_CONVERSION ( autoware_auto_vehicle_msgs  ,
GearCommand   
)

◆ enumToString() [1/2]

std::string simulation_interface::enumToString ( const HostName hostname)

◆ enumToString() [2/2]

std::string simulation_interface::enumToString ( const TransportProtocol protocol)

◆ getEndPoint() [1/2]

std::string simulation_interface::getEndPoint ( const TransportProtocol protocol,
const HostName hostname,
const unsigned int &  port 
)

◆ getEndPoint() [2/2]

std::string simulation_interface::getEndPoint ( const TransportProtocol protocol,
const std::string &  hostname,
const unsigned int &  port 
)

◆ toMsg() [1/28]

void simulation_interface::toMsg ( const autoware_auto_control_msgs::AckermannControlCommand &  proto,
autoware_auto_control_msgs::msg::AckermannControlCommand &  message 
)

◆ toMsg() [2/28]

void simulation_interface::toMsg ( const autoware_auto_control_msgs::AckermannLateralCommand &  proto,
autoware_auto_control_msgs::msg::AckermannLateralCommand &  message 
)

◆ toMsg() [3/28]

void simulation_interface::toMsg ( const autoware_auto_control_msgs::LongitudinalCommand &  proto,
autoware_auto_control_msgs::msg::LongitudinalCommand &  message 
)

◆ toMsg() [4/28]

auto simulation_interface::toMsg ( const autoware_auto_vehicle_msgs::GearCommand &  proto,
autoware_auto_vehicle_msgs::msg::GearCommand &  message 
) -> void

◆ toMsg() [5/28]

void simulation_interface::toMsg ( const builtin_interfaces::Duration &  proto,
builtin_interfaces::msg::Duration &  duration 
)

◆ toMsg() [6/28]

void simulation_interface::toMsg ( const builtin_interfaces::Time &  proto,
builtin_interfaces::msg::Time &  time 
)

◆ toMsg() [7/28]

void simulation_interface::toMsg ( const geometry_msgs::Accel &  proto,
geometry_msgs::msg::Accel &  a 
)

◆ toMsg() [8/28]

void simulation_interface::toMsg ( const geometry_msgs::Point &  proto,
geometry_msgs::msg::Point &  p 
)

◆ toMsg() [9/28]

void simulation_interface::toMsg ( const geometry_msgs::Pose &  proto,
geometry_msgs::msg::Pose &  p 
)

◆ toMsg() [10/28]

void simulation_interface::toMsg ( const geometry_msgs::Quaternion &  proto,
geometry_msgs::msg::Quaternion &  q 
)

◆ toMsg() [11/28]

void simulation_interface::toMsg ( const geometry_msgs::Twist &  proto,
geometry_msgs::msg::Twist &  t 
)

◆ toMsg() [12/28]

void simulation_interface::toMsg ( const geometry_msgs::Vector3 &  proto,
geometry_msgs::msg::Vector3 &  v 
)

◆ toMsg() [13/28]

void simulation_interface::toMsg ( const rosgraph_msgs::Clock &  proto,
rosgraph_msgs::msg::Clock &  time 
)

◆ toMsg() [14/28]

void simulation_interface::toMsg ( const simulation_api_schema::EntityStatus proto,
traffic_simulator_msgs::msg::EntityStatus status 
)

◆ toMsg() [15/28]

template<typename TrafficLightBulbMessageType >
auto simulation_interface::toMsg ( const simulation_api_schema::TrafficLight proto,
TrafficLightBulbMessageType &  traffic_light_bulb_state 
) -> void
Note
Enums below are not supported yet in some platforms. I temporarily disabled them

◆ toMsg() [16/28]

void simulation_interface::toMsg ( const std_msgs::Header &  proto,
std_msgs::msg::Header &  header 
)

◆ toMsg() [17/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::ActionStatus &  proto,
traffic_simulator_msgs::msg::ActionStatus &  s 
)

◆ toMsg() [18/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::Axle &  proto,
traffic_simulator_msgs::msg::Axle &  axle 
)

◆ toMsg() [19/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::Axles &  proto,
traffic_simulator_msgs::msg::Axles &  axles 
)

◆ toMsg() [20/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::BoundingBox &  proto,
traffic_simulator_msgs::msg::BoundingBox &  box 
)

◆ toMsg() [21/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::EntityStatus proto,
traffic_simulator_msgs::msg::EntityStatus status 
)

◆ toMsg() [22/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::EntitySubtype proto,
traffic_simulator_msgs::msg::EntitySubtype subtype 
)

◆ toMsg() [23/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::EntityType proto,
traffic_simulator_msgs::msg::EntityType type 
)

◆ toMsg() [24/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::LaneletPose &  proto,
traffic_simulator_msgs::msg::LaneletPose &  pose 
)

◆ toMsg() [25/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::MiscObjectParameters &  proto,
traffic_simulator_msgs::msg::MiscObjectParameters &  p 
)

◆ toMsg() [26/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::PedestrianParameters &  proto,
traffic_simulator_msgs::msg::PedestrianParameters &  p 
)

◆ toMsg() [27/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::Performance &  proto,
traffic_simulator_msgs::msg::Performance &  performance 
)

◆ toMsg() [28/28]

void simulation_interface::toMsg ( const traffic_simulator_msgs::VehicleParameters &  proto,
traffic_simulator_msgs::msg::VehicleParameters &  p 
)

◆ toProto() [1/28]

void simulation_interface::toProto ( const autoware_auto_control_msgs::msg::AckermannControlCommand &  message,
autoware_auto_control_msgs::AckermannControlCommand &  proto 
)

◆ toProto() [2/28]

void simulation_interface::toProto ( const autoware_auto_control_msgs::msg::AckermannLateralCommand &  message,
autoware_auto_control_msgs::AckermannLateralCommand &  proto 
)

◆ toProto() [3/28]

void simulation_interface::toProto ( const autoware_auto_control_msgs::msg::LongitudinalCommand &  message,
autoware_auto_control_msgs::LongitudinalCommand &  proto 
)

◆ toProto() [4/28]

auto simulation_interface::toProto ( const autoware_auto_vehicle_msgs::msg::GearCommand &  message,
autoware_auto_vehicle_msgs::GearCommand &  proto 
) -> void

◆ toProto() [5/28]

void simulation_interface::toProto ( const builtin_interfaces::msg::Duration &  duration,
builtin_interfaces::Duration &  proto 
)

◆ toProto() [6/28]

void simulation_interface::toProto ( const builtin_interfaces::msg::Time &  time,
builtin_interfaces::Time &  proto 
)

◆ toProto() [7/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Accel &  a,
geometry_msgs::Accel &  proto 
)

◆ toProto() [8/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Point &  p,
geometry_msgs::Point &  proto 
)

◆ toProto() [9/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Pose &  p,
geometry_msgs::Pose &  proto 
)

◆ toProto() [10/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Quaternion &  q,
geometry_msgs::Quaternion &  proto 
)

◆ toProto() [11/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Twist &  t,
geometry_msgs::Twist &  proto 
)

◆ toProto() [12/28]

void simulation_interface::toProto ( const geometry_msgs::msg::Vector3 &  v,
geometry_msgs::Vector3 &  proto 
)

◆ toProto() [13/28]

void simulation_interface::toProto ( const rosgraph_msgs::msg::Clock &  time,
rosgraph_msgs::Clock &  proto 
)

◆ toProto() [14/28]

auto simulation_interface::toProto ( const std::tuple< autoware_auto_control_msgs::msg::AckermannControlCommand, autoware_auto_vehicle_msgs::msg::GearCommand > &  message,
traffic_simulator_msgs::VehicleCommand &  proto 
) -> void

◆ toProto() [15/28]

void simulation_interface::toProto ( const std_msgs::msg::Header &  header,
std_msgs::Header &  proto 
)

◆ toProto() [16/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::ActionStatus &  s,
traffic_simulator_msgs::ActionStatus &  proto 
)

◆ toProto() [17/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::Axle &  axle,
traffic_simulator_msgs::Axle &  proto 
)

◆ toProto() [18/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::Axles &  axles,
traffic_simulator_msgs::Axles &  proto 
)

◆ toProto() [19/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::BoundingBox &  box,
traffic_simulator_msgs::BoundingBox &  proto 
)

◆ toProto() [20/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::EntityStatus status,
simulation_api_schema::EntityStatus proto 
)

◆ toProto() [21/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::EntityStatus status,
traffic_simulator_msgs::EntityStatus proto 
)

◆ toProto() [22/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::EntitySubtype subtype,
traffic_simulator_msgs::EntitySubtype proto 
)

◆ toProto() [23/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::EntityType type,
traffic_simulator_msgs::EntityType proto 
)

◆ toProto() [24/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::LaneletPose &  pose,
traffic_simulator_msgs::LaneletPose &  proto 
)

◆ toProto() [25/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::MiscObjectParameters &  p,
traffic_simulator_msgs::MiscObjectParameters &  proto 
)

◆ toProto() [26/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::PedestrianParameters &  p,
traffic_simulator_msgs::PedestrianParameters &  proto 
)

◆ toProto() [27/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::Performance &  performance,
traffic_simulator_msgs::Performance &  proto 
)

◆ toProto() [28/28]

void simulation_interface::toProto ( const traffic_simulator_msgs::msg::VehicleParameters &  p,
traffic_simulator_msgs::VehicleParameters &  proto 
)

◆ toProtobufMessage() [1/3]

auto simulation_interface::toProtobufMessage ( const traffic_simulator_msgs::msg::Polyline &  message) -> traffic_simulator_msgs::Polyline

◆ toProtobufMessage() [2/3]

auto simulation_interface::toProtobufMessage ( const traffic_simulator_msgs::msg::PolylineTrajectory &  message) -> traffic_simulator_msgs::PolylineTrajectory

◆ toProtobufMessage() [3/3]

auto simulation_interface::toProtobufMessage ( const traffic_simulator_msgs::msg::Vertex &  message) -> traffic_simulator_msgs::Vertex

◆ toROS2Message() [1/3]

auto simulation_interface::toROS2Message ( const traffic_simulator_msgs::Polyline &  proto) -> traffic_simulator_msgs::msg::Polyline

◆ toROS2Message() [2/3]

auto simulation_interface::toROS2Message ( const traffic_simulator_msgs::PolylineTrajectory &  proto) -> traffic_simulator_msgs::msg::PolylineTrajectory

◆ toROS2Message() [3/3]

auto simulation_interface::toROS2Message ( const traffic_simulator_msgs::Vertex &  proto) -> traffic_simulator_msgs::msg::Vertex

Variable Documentation

◆ protocol

const TransportProtocol simulation_interface::protocol = TransportProtocol::TCP