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

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

#include <DVSEventArraySerializer.h>

Classes

struct  DVSHeader

Public Types

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

Static Public Member Functions

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

Member Function Documentation

◆ Deserialize()

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

Definition at line 15 of file DVSEventArraySerializer.cpp.

◆ DeserializeHeader()

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

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

Member Data Documentation

◆ header_offset

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

Definition at line 35 of file DVSEventArraySerializer.h.


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