Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler Class Reference

#include <pyramid_map_matrix_handler.h>

Inheritance diagram for apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler:
Inheritance graph
Collaboration diagram for apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler:
Collaboration graph

Public Member Functions

 LossyMapFullAltMatrixHandler ()
 
 ~LossyMapFullAltMatrixHandler ()
 
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...
 
- Public Member Functions inherited from apollo::localization::msf::pyramid_map::LossyMapMatrixHandler
 LossyMapMatrixHandler ()
 
virtual ~LossyMapMatrixHandler ()
 
- Public Member Functions inherited from apollo::localization::msf::pyramid_map::BaseMapMatrixHandler
 BaseMapMatrixHandler ()
 
virtual ~BaseMapMatrixHandler ()
 

Additional Inherited Members

- Protected Member Functions inherited from apollo::localization::msf::pyramid_map::LossyMapMatrixHandler
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
 
- Protected Attributes inherited from apollo::localization::msf::pyramid_map::LossyMapMatrixHandler
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
 

Constructor & Destructor Documentation

◆ LossyMapFullAltMatrixHandler()

apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler::LossyMapFullAltMatrixHandler ( )

◆ ~LossyMapFullAltMatrixHandler()

apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler::~LossyMapFullAltMatrixHandler ( )

Member Function Documentation

◆ CreateBinary()

virtual size_t apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler::CreateBinary ( const std::shared_ptr< BaseMapMatrix matrix,
unsigned char *  buf,
size_t  buf_size 
)
virtual

Create the binary. Serialization of the object.

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

◆ GetBinarySize()

virtual size_t apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler::GetBinarySize ( const std::shared_ptr< BaseMapMatrix matrix)
virtual

Get the binary size of the object.

Implements apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.

◆ LoadBinary()

virtual size_t apollo::localization::msf::pyramid_map::LossyMapFullAltMatrixHandler::LoadBinary ( const unsigned char *  buf,
std::shared_ptr< BaseMapMatrix matrix 
)
virtual

Load the map cell from a binary chunk.

Parameters
<return>The size read (the real size of object).

Implements apollo::localization::msf::pyramid_map::BaseMapMatrixHandler.


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