ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DemoPoseGraphOptimization.cpp
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 #include <Logging.h>
9 
10 #include <string>
11 #include <vector>
12 
14 
15 namespace cloudViewer {
16 namespace data {
17 
20  "20220201-data/DemoPoseGraphOptimization.zip",
21  "af085b28d79dea7f0a50aef50c96b62c"};
22 
24  const std::string& data_root)
25  : DownloadDataset("DemoPoseGraphOptimization", data_descriptor, data_root) {
26  const std::string extract_dir = GetExtractDir();
27  pose_graph_fragment_path_ =
28  extract_dir + "/pose_graph_example_fragment.json";
29  pose_graph_global_path_ = extract_dir + "/pose_graph_example_global.json";
30 }
31 
32 } // namespace data
33 } // namespace cloudViewer
const std::string GetExtractDir() const
Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}.
Definition: Dataset.h:94
DemoPoseGraphOptimization(const std::string &data_root="")
Dataset class with one or more downloaded file.
Definition: Dataset.h:152
std::string CloudViewerDownloadsPrefix()
Definition: Dataset.cpp:49
static const DataDescriptor data_descriptor
Generic file read and write utility for python interface.
Infomation about a file to be downloaded.
Definition: Dataset.h:111