Apollo
6.0
Open source self driving car software
|
#include <pyramid_map_matrix_handler.h>
Public Member Functions | |
PyramidLossyMapMatrixHandler () | |
~PyramidLossyMapMatrixHandler () | |
virtual size_t | LoadBinary (const unsigned char *buf, std::shared_ptr< BaseMapMatrix > matrix) |
Load the map cell from a binary chunk. More... | |
virtual size_t | CreateBinary (const std::shared_ptr< BaseMapMatrix > matrix, unsigned char *buf, size_t buf_size) |
Create the binary. Serialization of the object. More... | |
virtual size_t | GetBinarySize (const std::shared_ptr< BaseMapMatrix > matrix) |
Get the binary size of the object. More... | |
![]() | |
LossyMapMatrixHandler () | |
virtual | ~LossyMapMatrixHandler () |
![]() | |
BaseMapMatrixHandler () | |
virtual | ~BaseMapMatrixHandler () |
Additional Inherited Members | |
![]() | |
virtual unsigned char | EncodeIntensity (float intensity) const |
virtual void | DecodeIntensity (unsigned char data, float *intensity) const |
virtual uint16_t | EncodeIntensityVar (float var) const |
virtual void | DecodeIntensityVar (uint16_t data, float *var) const |
virtual uint16_t | EncodeAltitude (float altitude, float min_altitude, float altitude_interval) const |
virtual void | DecodeAltitude (uint16_t data, float min_altitude, float altitude_interval, float *altitude) const |
virtual unsigned char | EncodeCount (unsigned int count, unsigned int count_range) const |
virtual void | DecodeCount (unsigned char data, unsigned int *count) const |
![]() | |
const unsigned int | var_range_ = 1023 |
const unsigned int | var_ratio_ = 4 |
const unsigned int | count_range_ = 2 |
const float | ground_alt_interval_ = 0.04f |
const float | alt_avg_interval_ = 0.04f |
float | alt_avg_min_ = 0.0f |
float | ground_alt_min_ = 0.0f |
float | alt_avg_max_ = 0.0f |
float | ground_alt_max_ = 0.0f |
apollo::localization::msf::pyramid_map::PyramidLossyMapMatrixHandler::PyramidLossyMapMatrixHandler | ( | ) |
apollo::localization::msf::pyramid_map::PyramidLossyMapMatrixHandler::~PyramidLossyMapMatrixHandler | ( | ) |
|
virtual |
Create the binary. Serialization of the object.
<buf,buf_size> | The buffer and its size. |
<return> | The required or the used size of is returned. |
Implements apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.
|
virtual |
Get the binary size of the object.
Implements apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.
|
virtual |
Load the map cell from a binary chunk.
<return> | The size read (the real size of object). |
Implements apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.