coloring_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_COLORING_POINTS_PROCESSOR_H_
18 #define CARTOGRAPHER_IO_COLORING_POINTS_PROCESSOR_H_
19 
20 #include <memory>
21 
25 
26 namespace cartographer {
27 namespace io {
28 
29 // Colors points with a fixed color by frame_id.
31  public:
32  constexpr static const char* kConfigurationFileActionName = "color_points";
33 
34  ColoringPointsProcessor(const Color& color, const string& frame_id,
35  PointsProcessor* next);
36 
37  static std::unique_ptr<ColoringPointsProcessor> FromDictionary(
39 
41 
44 
45  void Process(std::unique_ptr<PointsBatch> batch) override;
46  FlushResult Flush() override;
47 
48  private:
49  const Color color_;
50  const string frame_id_;
52 };
53 
54 } // namespace io
55 } // namespace cartographer
56 
57 #endif // CARTOGRAPHER_IO_COLORING_POINTS_PROCESSOR_H_
ColoringPointsProcessor(const Color &color, const string &frame_id, PointsProcessor *next)
void Process(std::unique_ptr< PointsBatch > batch) override
ColoringPointsProcessor & operator=(const ColoringPointsProcessor &)=delete
std::array< uint8_t, 3 > Color
Definition: points_batch.h:31
static std::unique_ptr< ColoringPointsProcessor > FromDictionary(common::LuaParameterDictionary *dictionary, PointsProcessor *next)
static constexpr const char * kConfigurationFileActionName


cartographer
Author(s):
autogenerated on Mon Jun 10 2019 12:51:38