Function dynmsg::c::yaml_to_rosmsg

Function Documentation

RosMessage dynmsg::c::yaml_to_rosmsg(const InterfaceTypeName &interface_type, const std::string &yaml_str)

Parse a YAML representation of a message into a ROS message and store it in a raw bytes buffer.

The introspection information is used to convert the YAML representation into the correct binary representation for the given ROS message.

It is an error for the YAML representation to contain a field that is not in the ROS message. It is not an error for a field of the ROS message to not be specified in the YAML representation; that field will be left uninitialised.