Template Function proto2ros::conversions::Convert(const proto2ros::msg::AnyProto&, T *)

Function Documentation

template<typename T>
void proto2ros::conversions::Convert(const proto2ros::msg::AnyProto &ros_msg, T *proto_msg)

Unpacks a proto2ros/AnyProto ROS message into any Protobuf message.

Throws:

std::runtime_error – if the given ROS message cannot be unpacked onto the given Protobuf message.