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

Serializes events array generated by DVS camera sensors. More...

#include <DVSEventArraySerializer.h>

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

Classes

struct  DVSHeader
 

Public Types

using DVSEventArray = std::vector< data::DVSEvent >
 

Static Public Member Functions

static SharedPtr< SensorDataDeserialize (RawData &&data)
 
static const DVSHeaderDeserializeHeader (const RawData &data)
 
template<typename Sensor >
static Buffer Serialize (const Sensor &sensor, const DVSEventArray &events, Buffer &&output)
 

Static Public Attributes

static constexpr auto header_offset = sizeof(DVSHeader)
 

Detailed Description

Serializes events array generated by DVS camera sensors.

Definition at line 24 of file DVSEventArraySerializer.h.

Member Typedef Documentation

◆ DVSEventArray

Definition at line 36 of file DVSEventArraySerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 15 of file DVSEventArraySerializer.cpp.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

◆ DeserializeHeader()

static const DVSHeader& carla::sensor::s11n::DVSEventArraySerializer::DeserializeHeader ( const RawData data)
inlinestatic

Definition at line 38 of file DVSEventArraySerializer.h.

References carla::sensor::RawData::begin(), Deserialize(), and Serialize().

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

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

◆ Serialize()

template<typename Sensor >
Buffer carla::sensor::s11n::DVSEventArraySerializer::Serialize ( const Sensor &  sensor,
const DVSEventArray events,
Buffer &&  output 
)
inlinestatic

Reset the output buffer

Pointer to data in buffer

Copy the header into the output buffer

Copy the events into the output buffer

Definition at line 49 of file DVSEventArraySerializer.h.

References DEBUG_ASSERT.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ header_offset

constexpr auto carla::sensor::s11n::DVSEventArraySerializer::header_offset = sizeof(DVSHeader)
static

Definition at line 35 of file DVSEventArraySerializer.h.


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