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

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

#include <ObstacleDetectionEventSerializer.h>

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


struct  Data

Static Public Member Functions

static SharedPtr< SensorDataDeserialize (RawData &&data)
static Data DeserializeRawData (const RawData &message)
template<typename SensorT >
static Buffer Serialize (const SensorT &, rpc::Actor self_actor, rpc::Actor other_actor, float distance)

Static Public Attributes

static constexpr auto header_offset = 0u

Detailed Description

Serializes the current state of the whole episode.

Definition at line 23 of file ObstacleDetectionEventSerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 14 of file ObstacleDetectionEventSerializer.cpp.

Referenced by Serialize().

+ Here is the caller graph for this function:

◆ DeserializeRawData()

static Data carla::sensor::s11n::ObstacleDetectionEventSerializer::DeserializeRawData ( const RawData message)

Definition at line 39 of file ObstacleDetectionEventSerializer.h.

References carla::sensor::RawData::begin(), and carla::sensor::RawData::size().

Referenced by carla::sensor::data::ObstacleDetectionEvent::ObstacleDetectionEvent().

+ 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::ObstacleDetectionEventSerializer::Serialize ( const SensorT &  ,
rpc::Actor  self_actor,
rpc::Actor  other_actor,
float  distance 

Definition at line 44 of file ObstacleDetectionEventSerializer.h.

References Deserialize(), carla::sensor::s11n::ObstacleDetectionEventSerializer::Data::other_actor, carla::MsgPack::Pack(), and carla::sensor::s11n::ObstacleDetectionEventSerializer::Data::self_actor.

+ Here is the call graph for this function:

Member Data Documentation

◆ header_offset

constexpr auto carla::sensor::s11n::ObstacleDetectionEventSerializer::header_offset = 0u

Definition at line 37 of file ObstacleDetectionEventSerializer.h.

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