scenario_simulator_v2 C++ API
Functions
helper.hpp File Reference
#include <rclcpp/time.hpp>
#include <std_msgs/msg/header.hpp>
Include dependency graph for helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto stateFromColor (const std::string &color) -> std::string
 Helper functions. More...
 
auto stateFromStatus (const std::string &status) -> std::string
 
auto stateFromShape (const std::string &shape) -> std::string
 
auto getTime (const builtin_interfaces::msg::Time &time) -> int
 Returns time in nanoseconds. More...
 
auto getTime (const std_msgs::msg::Header &header) -> int
 Returns time in nanoseconds. More...
 
auto getTime (const rclcpp::Time &time) -> int
 Returns time in nanoseconds. More...
 

Function Documentation

◆ getTime() [1/3]

auto getTime ( const builtin_interfaces::msg::Time &  time) -> int
inline

Returns time in nanoseconds.

◆ getTime() [2/3]

auto getTime ( const rclcpp::Time &  time) -> int
inline

Returns time in nanoseconds.

◆ getTime() [3/3]

auto getTime ( const std_msgs::msg::Header &  header) -> int
inline

Returns time in nanoseconds.

◆ stateFromColor()

auto stateFromColor ( const std::string &  color) -> std::string
inline

Helper functions.

◆ stateFromShape()

auto stateFromShape ( const std::string &  shape) -> std::string
inline

◆ stateFromStatus()

auto stateFromStatus ( const std::string &  status) -> std::string
inline