Deserialize a graph. More...
#include <graph_deserializer.h>
Public Member Functions | |
| fuse_core::Graph::UniquePtr | deserialize (const fuse_msgs::SerializedGraph &msg) const |
| Deserialize a SerializedGraph message into a fuse Graph object. More... | |
| fuse_core::Graph::UniquePtr | deserialize (const fuse_msgs::SerializedGraph::ConstPtr &msg) const |
| Deserialize a SerializedGraph message into a fuse Graph object. More... | |
| GraphDeserializer () | |
| Constructor. More... | |
Private Attributes | |
| pluginlib::ClassLoader< fuse_core::Constraint > | constraint_loader_ |
| Pluginlib class loader for Constraint types. More... | |
| pluginlib::ClassLoader< fuse_core::Graph > | graph_loader_ |
| Pluginlib class loader for Graph types. More... | |
| pluginlib::ClassLoader< fuse_core::Loss > | loss_loader_ |
| Pluginlib class loader for Loss types. More... | |
| pluginlib::ClassLoader< fuse_core::Variable > | variable_loader_ |
| Pluginlib class loader for Variable types. More... | |
Deserialize a graph.
The deserializer object loads all of the known Variable and Constraint libraries, allowing derived types contained within the graph to be properly deserialized. The libraries will be unloaded on destruction. As a consequence, the deserializer object must outlive any created graph instances.
Definition at line 59 of file graph_deserializer.h.
| fuse_core::GraphDeserializer::GraphDeserializer | ( | ) |
Constructor.
Definition at line 58 of file graph_deserializer.cpp.
| fuse_core::Graph::UniquePtr fuse_core::GraphDeserializer::deserialize | ( | const fuse_msgs::SerializedGraph & | msg | ) | const |
Deserialize a SerializedGraph message into a fuse Graph object.
If no plugin is available for a contained Variable or Constraint, or an error occurs during deserialization, an exception is thrown.
| [in] | msg | The SerializedGraph message to be deserialized |
Definition at line 86 of file graph_deserializer.cpp.
| fuse_core::Graph::UniquePtr fuse_core::GraphDeserializer::deserialize | ( | const fuse_msgs::SerializedGraph::ConstPtr & | msg | ) | const |
Deserialize a SerializedGraph message into a fuse Graph object.
If no plugin is available for a contained Variable or Constraint, or an error occurs during deserialization, an exception is thrown.
| [in] | msg | The SerializedGraph message to be deserialized |
Definition at line 81 of file graph_deserializer.cpp.
|
private |
Pluginlib class loader for Constraint types.
Definition at line 91 of file graph_deserializer.h.
|
mutableprivate |
Pluginlib class loader for Graph types.
Definition at line 95 of file graph_deserializer.h.
|
private |
Pluginlib class loader for Loss types.
Definition at line 92 of file graph_deserializer.h.
|
private |
Pluginlib class loader for Variable types.
Definition at line 90 of file graph_deserializer.h.