min_max_range_filtering_points_processor.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_IO_MIN_MAX_RANGE_FILTERING_POINTS_PROCESSOR_H_
18 #define CARTOGRAPHER_IO_MIN_MAX_RANGE_FILTERING_POINTS_PROCESSOR_H_
19 
20 #include <memory>
21 
24 
25 namespace cartographer {
26 namespace io {
27 
28 // Filters all points that are farther away from their 'origin' as 'max_range'
29 // or closer than 'min_range'.
31  public:
32  constexpr static const char* kConfigurationFileActionName =
33  "min_max_range_filter";
34  MinMaxRangeFiteringPointsProcessor(double min_range, double max_range,
35  PointsProcessor* next);
36  static std::unique_ptr<MinMaxRangeFiteringPointsProcessor> FromDictionary(
38 
40 
42  const MinMaxRangeFiteringPointsProcessor&) = delete;
44  const MinMaxRangeFiteringPointsProcessor&) = delete;
45 
46  void Process(std::unique_ptr<PointsBatch> batch) override;
47  FlushResult Flush() override;
48 
49  private:
50  const double min_range_;
51  const double max_range_;
53 };
54 
55 } // namespace io
56 } // namespace cartographer
57 
58 #endif // CARTOGRAPHER_IO_MIN_MAX_RANGE_FILTERING_POINTS_PROCESSOR_H_
MinMaxRangeFiteringPointsProcessor & operator=(const MinMaxRangeFiteringPointsProcessor &)=delete
MinMaxRangeFiteringPointsProcessor(double min_range, double max_range, PointsProcessor *next)
static std::unique_ptr< MinMaxRangeFiteringPointsProcessor > FromDictionary(common::LuaParameterDictionary *dictionary, PointsProcessor *next)


cartographer
Author(s):
autogenerated on Wed Jun 5 2019 21:57:58