Apollo  6.0
Open source self driving car software
base_map_matrix.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include "opencv2/opencv.hpp"
20 
22 
23 namespace apollo {
24 namespace localization {
25 namespace msf {
26 
29  public:
31  BaseMapMatrix();
33  virtual ~BaseMapMatrix();
35  BaseMapMatrix(const BaseMapMatrix& cell);
37  virtual void Init(const BaseMapConfig* config) = 0;
39  virtual void Reset(const BaseMapConfig* config) = 0;
43  virtual unsigned int LoadBinary(unsigned char* buf) = 0;
48  virtual unsigned int CreateBinary(unsigned char* buf,
49  unsigned int buf_size) const = 0;
51  virtual unsigned int GetBinarySize() const = 0;
53  virtual void GetIntensityImg(cv::Mat* intensity_img) const = 0;
54 };
55 
56 } // namespace msf
57 } // namespace localization
58 } // namespace apollo
virtual void GetIntensityImg(cv::Mat *intensity_img) const =0
get intensity image of node.
virtual unsigned int CreateBinary(unsigned char *buf, unsigned int buf_size) const =0
Create the binary. Serialization of the object.
The options of the reflectance map.
Definition: base_map_config.h:32
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
The data structure of the map cells in a map node.
Definition: base_map_matrix.h:28
virtual unsigned int GetBinarySize() const =0
Get the binary size of the object.
virtual void Reset(const BaseMapConfig *config)=0
Reset map cells data.
virtual void Init(const BaseMapConfig *config)=0
Initialize the map matrix.
virtual ~BaseMapMatrix()
The deconstructor.
BaseMapMatrix()
The default constructor.
virtual unsigned int LoadBinary(unsigned char *buf)=0
Load the map cell from a binary chunk.