unstable/slam/serialization.h
Go to the documentation of this file.
1 
10 #pragma once
11 
13 
14 namespace gtsam {
15 
16 // Serialize/Deserialize a NonlinearFactorGraph
17 std::string serializeGraph(const NonlinearFactorGraph& graph);
18 
19 NonlinearFactorGraph::shared_ptr deserializeGraph(const std::string& serialized_graph);
20 
21 std::string serializeGraphXML(const NonlinearFactorGraph& graph,
22  const std::string& name = "graph");
23 
24 NonlinearFactorGraph::shared_ptr deserializeGraphXML(const std::string& serialized_graph,
25  const std::string& name = "graph");
26 
27 
28 // Serialize/Deserialize a Values
29 std::string serializeValues(const Values& values);
30 
31 Values::shared_ptr deserializeValues(const std::string& serialized_values);
32 
33 std::string serializeValuesXML(const Values& values, const std::string& name = "values");
34 
35 Values::shared_ptr deserializeValuesXML(const std::string& serialized_values,
36  const std::string& name = "values");
37 
38 // Serialize to/from files
39 // serialize functions return true if successful
40 // Filename arguments include path
41 
42 // Serialize
43 bool serializeGraphToFile(const NonlinearFactorGraph& graph, const std::string& fname);
44 bool serializeGraphToXMLFile(const NonlinearFactorGraph& graph,
45  const std::string& fname, const std::string& name = "graph");
46 
47 bool serializeValuesToFile(const Values& values, const std::string& fname);
49  const std::string& fname, const std::string& name = "values");
50 
51 // Deserialize
54  const std::string& name = "graph");
55 
56 Values::shared_ptr deserializeValuesFromFile(const std::string& fname);
57 Values::shared_ptr deserializeValuesFromXMLFile(const std::string& fname,
58  const std::string& name = "values");
59 
60 } // \namespace gtsam
61 
62 
name
Annotation for function names.
Definition: attr.h:51
Values
gtsam::Values::shared_ptr
std::shared_ptr< Values > shared_ptr
A shared_ptr to this class.
Definition: Values.h:84
different_sigmas::values
HybridValues values
Definition: testHybridBayesNet.cpp:245
gtsam::serializeGraph
std::string serializeGraph(const NonlinearFactorGraph &graph)
Definition: serialization.cpp:179
gtsam::deserializeGraphXML
NonlinearFactorGraph::shared_ptr deserializeGraphXML(const std::string &serialized_graph, const std::string &name="graph")
Definition: serialization.cpp:196
gtsam::deserializeGraphFromFile
NonlinearFactorGraph::shared_ptr deserializeGraphFromFile(const std::string &fname)
Definition: serialization.cpp:251
gtsam::serializeValuesXML
std::string serializeValuesXML(const Values &values, const std::string &name="values")
Definition: serialization.cpp:216
gtsam::deserializeValues
Values::shared_ptr deserializeValues(const std::string &serialized_values)
Definition: serialization.cpp:209
gtsam::deserializeValuesFromFile
Values::shared_ptr deserializeValuesFromFile(const std::string &fname)
Definition: serialization.cpp:268
gtsam::deserializeGraph
NonlinearFactorGraph::shared_ptr deserializeGraph(const std::string &serialized_graph)
Definition: serialization.cpp:184
gtsam
traits
Definition: SFMdata.h:40
gtsam::deserializeGraphFromXMLFile
NonlinearFactorGraph::shared_ptr deserializeGraphFromXMLFile(const std::string &fname, const std::string &name="graph")
Definition: serialization.cpp:259
NonlinearFactorGraph.h
Factor Graph consisting of non-linear factors.
gtsam::serializeGraphToXMLFile
bool serializeGraphToXMLFile(const NonlinearFactorGraph &graph, const std::string &fname, const std::string &name="graph")
Definition: serialization.cpp:234
gtsam::serializeGraphXML
std::string serializeGraphXML(const NonlinearFactorGraph &graph, const std::string &name="graph")
Definition: serialization.cpp:191
gtsam::serializeGraphToFile
bool serializeGraphToFile(const NonlinearFactorGraph &graph, const std::string &fname)
Definition: serialization.cpp:229
graph
NonlinearFactorGraph graph
Definition: doc/Code/OdometryExample.cpp:2
gtsam::deserializeValuesXML
Values::shared_ptr deserializeValuesXML(const std::string &serialized_values, const std::string &name="values")
Definition: serialization.cpp:221
gtsam::deserializeValuesFromXMLFile
Values::shared_ptr deserializeValuesFromXMLFile(const std::string &fname, const std::string &name="values")
Definition: serialization.cpp:276
gtsam::serializeValues
std::string serializeValues(const Values &values)
Definition: serialization.cpp:204
gtsam::serializeValuesToFile
bool serializeValuesToFile(const Values &values, const std::string &fname)
Definition: serialization.cpp:240
gtsam::NonlinearFactorGraph::shared_ptr
std::shared_ptr< This > shared_ptr
Definition: NonlinearFactorGraph.h:61
gtsam::serializeValuesToXMLFile
bool serializeValuesToXMLFile(const Values &values, const std::string &fname, const std::string &name="values")
Definition: serialization.cpp:245


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:11