Class GraphDeserializer
Defined in File graph_deserializer.hpp
Class Documentation
-
class GraphDeserializer
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.
Public Functions
-
GraphDeserializer()
Constructor.
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.
- Parameters:
msg – [in] The SerializedGraph message to be deserialized
- Returns:
A unique_ptr to a derived Graph object
-
fuse_core::Graph::UniquePtr deserialize(const fuse_msgs::msg::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.
- Parameters:
msg – [in] The SerializedGraph message to be deserialized
- Returns:
A unique_ptr to a derived Graph object
-
GraphDeserializer()