Apollo  6.0
Open source self driving car software
lossy_map_2d.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 
21 
22 namespace apollo {
23 namespace localization {
24 namespace msf {
25 
26 class LossyMap2D : public BaseMap {
27  public:
28  explicit LossyMap2D(LossyMapConfig2D* config);
29  ~LossyMap2D();
30 
37  virtual void PreloadMapArea(const Eigen::Vector3d& location,
38  const Eigen::Vector3d& trans_diff,
39  unsigned int resolution_id, unsigned int zone_id);
45  virtual bool LoadMapArea(const Eigen::Vector3d& seed_pt3d,
46  unsigned int resolution_id, unsigned int zone_id,
47  int filter_size_x, int filter_size_y);
48 };
49 
50 } // namespace msf
51 } // namespace localization
52 } // namespace apollo
The data structure of the base map.
Definition: base_map.h:35
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Eigen::Vector3d Vector3d
Definition: frame_transform.h:27
Definition: lossy_map_2d.h:26
The options of the reflectance map.
Definition: lossy_map_config_2d.h:28
virtual bool LoadMapArea(const Eigen::Vector3d &seed_pt3d, unsigned int resolution_id, unsigned int zone_id, int filter_size_x, int filter_size_y)
Load map nodes for the location calculate of this frame. If the forecasts are correct in last frame...
virtual void PreloadMapArea(const Eigen::Vector3d &location, const Eigen::Vector3d &trans_diff, unsigned int resolution_id, unsigned int zone_id)
Preload map nodes for the next frame location calculation. It will forecasts the nodes by the directi...
LossyMap2D(LossyMapConfig2D *config)