CARLA
Loading...
Searching...
No Matches
carla::client::Timestamp Class Reference

#include <Timestamp.h>

Public Member Functions

bool operator!= (const Timestamp &rhs) const
bool operator== (const Timestamp &rhs) const
 Timestamp ()=default
 Timestamp (std::size_t in_frame, double in_elapsed_seconds, double in_delta_seconds, double in_platform_timestamp)

Public Attributes

double delta_seconds = 0.0
 Simulated seconds elapsed since previous frame.
double elapsed_seconds = 0.0
 Simulated seconds elapsed since the beginning of the current episode.
std::size_t frame = 0u
 Number of frames elapsed since the simulator was launched.
double platform_timestamp = 0.0
 Time-stamp of the frame at which this measurement was taken, in seconds as given by the OS.

Detailed Description

Definition at line 14 of file Timestamp.h.

Constructor & Destructor Documentation

◆ Timestamp() [1/2]

carla::client::Timestamp::Timestamp ( )
default

Referenced by operator!=(), and operator==().

◆ Timestamp() [2/2]

carla::client::Timestamp::Timestamp ( std::size_t in_frame,
double in_elapsed_seconds,
double in_delta_seconds,
double in_platform_timestamp )
inline

Definition at line 19 of file Timestamp.h.

References delta_seconds, elapsed_seconds, frame, and platform_timestamp.

Member Function Documentation

◆ operator!=()

bool carla::client::Timestamp::operator!= ( const Timestamp & rhs) const
inline

Definition at line 46 of file Timestamp.h.

References Timestamp().

◆ operator==()

bool carla::client::Timestamp::operator== ( const Timestamp & rhs) const
inline

Definition at line 42 of file Timestamp.h.

References frame, and Timestamp().

Member Data Documentation

◆ delta_seconds

double carla::client::Timestamp::delta_seconds = 0.0

Simulated seconds elapsed since previous frame.

Definition at line 36 of file Timestamp.h.

Referenced by Timestamp().

◆ elapsed_seconds

double carla::client::Timestamp::elapsed_seconds = 0.0

◆ frame

◆ platform_timestamp

double carla::client::Timestamp::platform_timestamp = 0.0

Time-stamp of the frame at which this measurement was taken, in seconds as given by the OS.

Definition at line 40 of file Timestamp.h.

Referenced by Timestamp().


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