CARLA
Static Public Member Functions | List of all members
carla::sensor::s11n::SemanticLidarSerializer Class Reference

Serializes the data generated by Lidar sensors. More...

#include <SemanticLidarSerializer.h>

Static Public Member Functions

static SharedPtr< SensorDataDeserialize (RawData &&data)
 
static SemanticLidarHeaderView DeserializeHeader (const RawData &data)
 
static size_t GetHeaderOffset (const RawData &data)
 
template<typename Sensor >
static Buffer Serialize (const Sensor &sensor, const data::SemanticLidarData &measurement, Buffer &&output)
 

Detailed Description

Serializes the data generated by Lidar sensors.

Definition at line 59 of file SemanticLidarSerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 14 of file SemanticLidarSerializer.cpp.

◆ DeserializeHeader()

static SemanticLidarHeaderView carla::sensor::s11n::SemanticLidarSerializer::DeserializeHeader ( const RawData data)
inlinestatic

Definition at line 62 of file SemanticLidarSerializer.h.

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

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

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

◆ GetHeaderOffset()

static size_t carla::sensor::s11n::SemanticLidarSerializer::GetHeaderOffset ( const RawData data)
inlinestatic

Definition at line 66 of file SemanticLidarSerializer.h.

References PropAttributes::SIZE.

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

+ Here is the caller graph for this function:

◆ Serialize()

template<typename Sensor >
Buffer carla::sensor::s11n::SemanticLidarSerializer::Serialize ( const Sensor &  sensor,
const data::SemanticLidarData measurement,
Buffer &&  output 
)
inlinestatic

Definition at line 85 of file SemanticLidarSerializer.h.

References carla::sensor::data::SemanticLidarData::_header, carla::sensor::data::SemanticLidarData::_ser_points, and carla::Buffer::copy_from().

+ Here is the call graph for this function:

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