CARLA
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
carla::sensor::s11n::EpisodeStateSerializer Class Reference

Serializes the current state of the whole episode. More...

#include <EpisodeStateSerializer.h>

+ Collaboration diagram for carla::sensor::s11n::EpisodeStateSerializer:

Classes

struct  Header
 

Public Types

enum  SimulationState { None = (0x0 << 0), MapChange = (0x1 << 0), PendingLightUpdate = (0x1 << 1) }
 

Static Public Member Functions

static SharedPtr< SensorDataDeserialize (RawData &&data)
 
static const HeaderDeserializeHeader (const RawData &message)
 
template<typename SensorT >
static Buffer Serialize (const SensorT &, Buffer &&buffer)
 

Static Public Attributes

static constexpr auto header_offset = sizeof(Header)
 

Detailed Description

Serializes the current state of the whole episode.

Definition at line 27 of file EpisodeStateSerializer.h.

Member Enumeration Documentation

◆ SimulationState

Enumerator
None 
MapChange 
PendingLightUpdate 

Definition at line 30 of file EpisodeStateSerializer.h.

Member Function Documentation

◆ Deserialize()

SharedPtr< SensorData > carla::sensor::s11n::EpisodeStateSerializer::Deserialize ( RawData &&  data)
static

Definition at line 15 of file EpisodeStateSerializer.cpp.

Referenced by Serialize().

+ Here is the caller graph for this function:

◆ DeserializeHeader()

static const Header& carla::sensor::s11n::EpisodeStateSerializer::DeserializeHeader ( const RawData message)
inlinestatic

Definition at line 48 of file EpisodeStateSerializer.h.

References carla::sensor::RawData::begin().

Referenced by carla::sensor::data::RawEpisodeState::GetHeader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Serialize()

template<typename SensorT >
static Buffer carla::sensor::s11n::EpisodeStateSerializer::Serialize ( const SensorT &  ,
Buffer &&  buffer 
)
inlinestatic

Definition at line 53 of file EpisodeStateSerializer.h.

References Deserialize().

+ Here is the call graph for this function:

Member Data Documentation

◆ header_offset

constexpr auto carla::sensor::s11n::EpisodeStateSerializer::header_offset = sizeof(Header)
static

Definition at line 46 of file EpisodeStateSerializer.h.


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