counting_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_COUNTING_POINTS_PROCESSOR_H_
18 #define CARTOGRAPHER_IO_COUNTING_POINTS_PROCESSOR_H_
19 
22 
23 namespace cartographer {
24 namespace io {
25 
26 // Passes through points, but keeps track of how many points it saw and output
27 // that on Flush.
29  public:
30  constexpr static const char* kConfigurationFileActionName = "dump_num_points";
32 
33  static std::unique_ptr<CountingPointsProcessor> FromDictionary(
35 
37 
40 
41  void Process(std::unique_ptr<PointsBatch> points) override;
42  FlushResult Flush() override;
43 
44  private:
47 };
48 
49 } // namespace io
50 } // namespace cartographer
51 
52 #endif // CARTOGRAPHER_IO_COUNTING_POINTS_PROCESSOR_H_
void Process(std::unique_ptr< PointsBatch > points) override
static constexpr const char * kConfigurationFileActionName
static std::unique_ptr< CountingPointsProcessor > FromDictionary(common::LuaParameterDictionary *dictionary, PointsProcessor *next)
int64_t int64
Definition: port.h:31
CountingPointsProcessor & operator=(const CountingPointsProcessor &)=delete


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