CARLA
Public Member Functions | Public Attributes | List of all members
carla::client::Timestamp Class Reference

#include <Timestamp.h>

+ Collaboration diagram for carla::client::Timestamp:

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

Detailed Description

Definition at line 14 of file Timestamp.h.

Constructor & Destructor Documentation

◆ Timestamp() [1/2]

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

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

Member Function Documentation

◆ operator!=()

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

Definition at line 46 of file Timestamp.h.

◆ operator==()

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

Definition at line 42 of file Timestamp.h.

References frame.

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.

◆ elapsed_seconds

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

◆ frame

std::size_t carla::client::Timestamp::frame = 0u

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


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