Template Function yasmin_ros::serialize_interface

Function Documentation

template<typename InterfaceT>
std::vector<uint8_t> yasmin_ros::serialize_interface(const InterfaceT &interface_value)

Serialize a ROS 2 interface instance to a byte array.

Template Parameters:

InterfaceT – ROS 2 message, service request/response, or action goal/result/feedback type.

Parameters:

interface_value – The interface instance to serialize.

Returns:

Serialized byte array.