ply_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 
20 
21 namespace cartographer {
22 namespace io {
23 
24 // Streams a PLY file to disk. The header is written in 'Flush'.
26  public:
27  constexpr static const char* kConfigurationFileActionName = "write_ply";
28  PlyWritingPointsProcessor(std::unique_ptr<FileWriter> file,
29  PointsProcessor* next);
30 
31  static std::unique_ptr<PlyWritingPointsProcessor> FromDictionary(
32  FileWriterFactory file_writer_factory,
34 
36 
39  delete;
40 
41  void Process(std::unique_ptr<PointsBatch> batch) override;
42  FlushResult Flush() override;
43 
44  private:
46 
49  std::unique_ptr<FileWriter> file_;
50 };
51 
52 } // namespace io
53 } // namespace cartographer
std::function< std::unique_ptr< FileWriter >(const string &filename)> FileWriterFactory
Definition: file_writer.h:63
PlyWritingPointsProcessor & operator=(const PlyWritingPointsProcessor &)=delete
void Process(std::unique_ptr< PointsBatch > batch) override
PlyWritingPointsProcessor(std::unique_ptr< FileWriter > file, PointsProcessor *next)
int64_t int64
Definition: port.h:31
static std::unique_ptr< PlyWritingPointsProcessor > FromDictionary(FileWriterFactory file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)


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