Open 3D Engine ROS2 Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ROS2::RealTimeSource Class Reference

#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
 

Detailed Description

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).

Member Function Documentation

◆ GetROSTimestamp()

virtual builtin_interfaces::msg::Time ROS2::RealTimeSource::GetROSTimestamp ( ) const
overridevirtual

Get simulation time as ROS 2 message.

See also
ROS2Requests::GetROSTimestamp() for more details.

Implements ROS2::ITimeSource.


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