Class RMWImplementedConverter

Inheritance Relationships

Base Type

Class Documentation

class RMWImplementedConverter : public rosbag2_cpp::converter_interfaces::SerializationFormatConverter

Default implementation of the SerializationFormatConverter.

This converter does not understand any serialization formats on its own, instead it searches the system for an installed RMW implementation that understands the requested format, loads that library if found, and uses its implementation for serialization.

Public Functions

explicit RMWImplementedConverter(const std::string &format)

Constructor.

Throws:

std::runtime_error – if no RMW implementation was found supporting the format.

~RMWImplementedConverter() override
void deserialize(std::shared_ptr<const rosbag2_storage::SerializedBagMessage> serialized_message, const rosidl_message_type_support_t *type_support, std::shared_ptr<rosbag2_cpp::rosbag2_introspection_message_t> introspection_message) override
void serialize(std::shared_ptr<const rosbag2_cpp::rosbag2_introspection_message_t> introspection_message, const rosidl_message_type_support_t *type_support, std::shared_ptr<rosbag2_storage::SerializedBagMessage> serialized_message) override