rclcpp
master
C++ ROS Client Library API
|
Interface to (de)serialize a message. More...
#include <serialization.hpp>
Public Member Functions | |
SerializationBase (const rosidl_message_type_support_t *type_support) | |
Constructor of SerializationBase. More... | |
virtual | ~SerializationBase ()=default |
Destructor of SerializationBase. More... | |
void | serialize_message (const void *ros_message, SerializedMessage *serialized_message) const |
Serialize a ROS2 message to a serialized stream. More... | |
void | deserialize_message (const SerializedMessage *serialized_message, void *ros_message) const |
Deserialize a serialized stream to a ROS message. More... | |
Interface to (de)serialize a message.
|
explicit |
Constructor of SerializationBase.
[in] | type_support | handle for the message type support to be used for serialization and deserialization. |
|
virtualdefault |
Destructor of SerializationBase.
void rclcpp::SerializationBase::serialize_message | ( | const void * | ros_message, |
SerializedMessage * | serialized_message | ||
) | const |
Serialize a ROS2 message to a serialized stream.
[in] | ros_message | The ROS2 message which is read and serialized by rmw. |
[out] | serialized_message | The serialized message. |
void rclcpp::SerializationBase::deserialize_message | ( | const SerializedMessage * | serialized_message, |
void * | ros_message | ||
) | const |
Deserialize a serialized stream to a ROS message.
[in] | serialized_message | The serialized message to be converted to ROS2 by rmw. |
[out] | ros_message | The deserialized ROS2 message. |