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_writer,
29  PointsProcessor* next);
30 
31  static std::unique_ptr<PlyWritingPointsProcessor> FromDictionary(
32  const 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 
50  std::unique_ptr<FileWriter> file_;
51 };
52 
53 } // namespace io
54 } // namespace cartographer
std::function< std::unique_ptr< FileWriter >(const std::string &filename)> FileWriterFactory
Definition: file_writer.h:66
PlyWritingPointsProcessor(std::unique_ptr< FileWriter > file_writer, PointsProcessor *next)
int64_t int64
Definition: port.h:33
PlyWritingPointsProcessor & operator=(const PlyWritingPointsProcessor &)=delete
void Process(std::unique_ptr< PointsBatch > batch) override
static std::unique_ptr< PlyWritingPointsProcessor > FromDictionary(const FileWriterFactory &file_writer_factory, common::LuaParameterDictionary *dictionary, PointsProcessor *next)


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58