#include <RealTimeSource.h>
Inherits ROS2::ITimeSource.
Public Member Functions | |
virtual void | Activate () override |
virtual void | Deactivate () override |
virtual builtin_interfaces::msg::Time | GetROSTimestamp () const override |
![]() |
The RealTimeSource starts from 0 at the start of the simulation. This time source could be affected by the jitter in the data, simulation computations or other similar events. On the other hand RealTimeSource can remain consistent with the other independent clocks if it is synchronised (e.g. through NTP).
|
inlineoverridevirtual |
Implements ROS2::ITimeSource.
|
inlineoverridevirtual |
Implements ROS2::ITimeSource.
|
overridevirtual |
Get simulation time as ROS 2 message.
Implements ROS2::ITimeSource.