probability_grid_range_data_inserter_2d.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 The Cartographer Authors
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 #ifndef CARTOGRAPHER_MAPPING_2D_RANGE_DATA_INSERTER_2D_PROBABILITY_GRID_H_
18 #define CARTOGRAPHER_MAPPING_2D_RANGE_DATA_INSERTER_2D_PROBABILITY_GRID_H_
19 
20 #include <utility>
21 #include <vector>
22 
27 #include "cartographer/mapping/proto/2d/probability_grid_range_data_inserter_options_2d.pb.h"
31 
32 namespace cartographer {
33 namespace mapping {
34 
35 proto::ProbabilityGridRangeDataInserterOptions2D
37  common::LuaParameterDictionary* parameter_dictionary);
38 
40  public:
42  const proto::ProbabilityGridRangeDataInserterOptions2D& options);
43 
45  const ProbabilityGridRangeDataInserter2D&) = delete;
47  const ProbabilityGridRangeDataInserter2D&) = delete;
48 
49  // Inserts 'range_data' into 'probability_grid'.
50  virtual void Insert(const sensor::RangeData& range_data,
51  GridInterface* grid) const override;
52 
53  private:
54  const proto::ProbabilityGridRangeDataInserterOptions2D options_;
55  const std::vector<uint16> hit_table_;
56  const std::vector<uint16> miss_table_;
57 };
58 
59 } // namespace mapping
60 } // namespace cartographer
61 
62 #endif // CARTOGRAPHER_MAPPING_2D_RANGE_DATA_INSERTER_2D_PROBABILITY_GRID_H_
const proto::ProbabilityGridRangeDataInserterOptions2D options_
proto::ProbabilityGridRangeDataInserterOptions2D CreateProbabilityGridRangeDataInserterOptions2D(common::LuaParameterDictionary *parameter_dictionary)
ProbabilityGridRangeDataInserter2D(const proto::ProbabilityGridRangeDataInserterOptions2D &options)
virtual void Insert(const sensor::RangeData &range_data, GridInterface *grid) const override
ProbabilityGridRangeDataInserter2D & operator=(const ProbabilityGridRangeDataInserter2D &)=delete


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58