Apollo 11.0
自动驾驶开放平台
base_map_matrix.h
浏览该文件的文档.
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
23namespace apollo {
24namespace localization {
25namespace msf {
26
29 public:
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
The options of the reflectance map.
The data structure of the map cells in a map node.
virtual unsigned int CreateBinary(unsigned char *buf, unsigned int buf_size) const =0
Create the binary.
virtual void GetIntensityImg(cv::Mat *intensity_img) const =0
get intensity image of node.
virtual void Reset(const BaseMapConfig *config)=0
Reset map cells data.
virtual unsigned int GetBinarySize() const =0
Get the binary size of the object.
virtual unsigned int LoadBinary(unsigned char *buf)=0
Load the map cell from a binary chunk.
virtual void Init(const BaseMapConfig *config)=0
Initialize the map matrix.
virtual ~BaseMapMatrix()
The deconstructor.
class register implement
Definition arena_queue.h:37