scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
traffic_simulator::SimulationClock Class Reference

#include <simulation_clock.hpp>

Inheritance diagram for traffic_simulator::SimulationClock:
Inheritance graph
[legend]
Collaboration diagram for traffic_simulator::SimulationClock:
Collaboration graph
[legend]

Public Member Functions

 SimulationClock (bool use_sim_time, double realtime_factor, double frame_rate)
 
auto getCurrentRosTime () -> rclcpp::Time
 
auto getCurrentRosTimeAsMsg () -> rosgraph_msgs::msg::Clock
 
auto getCurrentScenarioTime () const
 
auto getCurrentSimulationTime () const
 
auto getStepTime () const
 
auto start () -> void
 
auto started () const
 
auto update () -> void
 

Public Attributes

const bool use_sim_time
 
double realtime_factor
 

Constructor & Destructor Documentation

◆ SimulationClock()

traffic_simulator::SimulationClock::SimulationClock ( bool  use_sim_time,
double  realtime_factor,
double  frame_rate 
)
explicit

Member Function Documentation

◆ getCurrentRosTime()

auto traffic_simulator::SimulationClock::getCurrentRosTime ( ) -> rclcpp::Time

◆ getCurrentRosTimeAsMsg()

auto traffic_simulator::SimulationClock::getCurrentRosTimeAsMsg ( ) -> rosgraph_msgs::msg::Clock

◆ getCurrentScenarioTime()

auto traffic_simulator::SimulationClock::getCurrentScenarioTime ( ) const
inline

◆ getCurrentSimulationTime()

auto traffic_simulator::SimulationClock::getCurrentSimulationTime ( ) const
inline

◆ getStepTime()

auto traffic_simulator::SimulationClock::getStepTime ( ) const
inline

◆ start()

auto traffic_simulator::SimulationClock::start ( ) -> void

◆ started()

auto traffic_simulator::SimulationClock::started ( ) const
inline

◆ update()

auto traffic_simulator::SimulationClock::update ( ) -> void

Member Data Documentation

◆ realtime_factor

double traffic_simulator::SimulationClock::realtime_factor

◆ use_sim_time

const bool traffic_simulator::SimulationClock::use_sim_time

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