ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PoseGraphIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
13 
14 namespace cloudViewer {
15 namespace io {
16 
20 std::shared_ptr<pipelines::registration::PoseGraph> CreatePoseGraphFromFile(
21  const std::string &filename);
22 
26 bool ReadPoseGraph(const std::string &filename,
28 
32 bool WritePoseGraph(const std::string &filename,
33  const pipelines::registration::PoseGraph &pose_graph);
34 
35 } // namespace io
36 } // namespace cloudViewer
std::string filename
bool ReadPoseGraph(const std::string &filename, pipelines::registration::PoseGraph &pose_graph)
Definition: PoseGraphIO.cpp:60
std::shared_ptr< pipelines::registration::PoseGraph > CreatePoseGraphFromFile(const std::string &filename)
Definition: PoseGraphIO.cpp:53
bool WritePoseGraph(const std::string &filename, const pipelines::registration::PoseGraph &pose_graph)
Definition: PoseGraphIO.cpp:81
cloudViewer::pipelines::registration::PoseGraph PoseGraph
Definition: SLACOptimizer.h:22
Generic file read and write utility for python interface.