CARLA
Loading...
Searching...
No Matches
carla::sensor::s11n::EpisodeStateSerializer Class Reference

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

#include <EpisodeStateSerializer.h>

Classes

struct  Header

Public Types

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

Static Public Member Functions

static SharedPtr< SensorData > Deserialize (RawData &&data)
static const Header & DeserializeHeader (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.

◆ DeserializeHeader()

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

◆ Serialize()

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

Definition at line 53 of file EpisodeStateSerializer.h.

Member Data Documentation

◆ header_offset

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

Definition at line 46 of file EpisodeStateSerializer.h.


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