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

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

#include <LidarSerializer.h>

Static Public Member Functions

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

Detailed Description

Serializes the data generated by Lidar sensors.

Definition at line 58 of file LidarSerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 15 of file LidarSerializer.cpp.

◆ DeserializeHeader()

static LidarHeaderView carla::sensor::s11n::LidarSerializer::DeserializeHeader ( const RawData data)
inlinestatic

Definition at line 61 of file LidarSerializer.h.

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

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

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

◆ GetHeaderOffset()

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

Definition at line 65 of file LidarSerializer.h.

References PropAttributes::SIZE.

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

+ Here is the caller graph for this function:

◆ Serialize()

template<typename Sensor >
Buffer carla::sensor::s11n::LidarSerializer::Serialize ( const Sensor &  sensor,
const data::LidarData data,
Buffer &&  output 
)
inlinestatic

Definition at line 84 of file LidarSerializer.h.

References carla::sensor::data::SemanticLidarData::_header, carla::sensor::data::LidarData::_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: