Apollo  6.0
Open source self driving car software
ndt_map.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 
23 
24 namespace apollo {
25 namespace localization {
26 namespace msf {
27 
28 class NdtMap : public BaseMap {
29  public:
30  explicit NdtMap(NdtMapConfig* config);
31  ~NdtMap();
38  virtual void PreloadMapArea(const Eigen::Vector3d& location,
39  const Eigen::Vector3d& trans_diff,
40  unsigned int resolution_id, unsigned int zone_id);
47  virtual bool LoadMapArea(const Eigen::Vector3d& seed_pt3d,
48  unsigned int resolution_id, unsigned int zone_id,
49  int filter_size_x, int filter_size_y);
50 };
51 
52 } // namespace msf
53 } // namespace localization
54 } // namespace apollo
The data structure of the base map.
Definition: base_map.h:35
Definition: ndt_map.h:28
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
NdtMap(NdtMapConfig *config)
The options of the reflectance map.
Definition: ndt_map_config.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...