Open 3D Engine ROS2 Gem API Reference
23.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Simulation clock which can tick and serve time stamps. More...
#include <SimulationClock.h>
Public Member Functions | |
builtin_interfaces::msg::Time | GetROSTimestamp () const |
void | Tick () |
AZStd::chrono::duration< float, AZStd::chrono::seconds::period > | GetExpectedSimulationLoopTime () const |
Returns an expected loop time of simulation. It is an estimation from past frames. | |
builtin_interfaces::msg::Time | GetROSTimestamp () const |
void | Tick () |
Simulation clock which can tick and serve time stamps.
builtin_interfaces::msg::Time ROS2::SimulationClock::GetROSTimestamp | ( | ) | const |
Get simulation time as ROS2 message.
builtin_interfaces::msg::Time ROS2::SimulationClock::GetROSTimestamp | ( | ) | const |
Get simulation time as ROS2 message.
void ROS2::SimulationClock::Tick | ( | ) |
Update time in the ROS 2 ecosystem. This will publish current time to the ROS 2 /clock
topic.
void ROS2::SimulationClock::Tick | ( | ) |
Update time in the ROS 2 ecosystem. This will publish current time to the ROS 2 /clock
topic.