xyz_writing_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_XYZ_WRITING_POINTS_PROCESSOR_H_
18 #define CARTOGRAPHER_IO_XYZ_WRITING_POINTS_PROCESSOR_H_
19 
20 #include <fstream>
21 #include <memory>
22 #include <string>
23 
27 
28 namespace cartographer {
29 namespace io {
30 
31 // Writes ASCII xyz points.
33  public:
34  constexpr static const char* kConfigurationFileActionName = "write_xyz";
35 
36  XyzWriterPointsProcessor(std::unique_ptr<FileWriter>, PointsProcessor* next);
37 
38  static std::unique_ptr<XyzWriterPointsProcessor> FromDictionary(
39  FileWriterFactory file_writer_factory,
41 
43 
46 
47  void Process(std::unique_ptr<PointsBatch> batch) override;
48  FlushResult Flush() override;
49 
50  private:
52  std::unique_ptr<FileWriter> file_writer_;
53 };
54 
55 } // namespace io
56 } // namespace cartographer
57 
58 #endif // CARTOGRAPHER_IO_XYZ_WRITING_POINTS_PROCESSOR_H_
void Process(std::unique_ptr< PointsBatch > batch) override
std::function< std::unique_ptr< FileWriter >(const string &filename)> FileWriterFactory
Definition: file_writer.h:63
XyzWriterPointsProcessor & operator=(const XyzWriterPointsProcessor &)=delete
XyzWriterPointsProcessor(std::unique_ptr< FileWriter >, PointsProcessor *next)
static constexpr const char * kConfigurationFileActionName
static std::unique_ptr< XyzWriterPointsProcessor > FromDictionary(FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)


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