This package demonstrates how to parse deserialize message data based on typesupport introspection information.
A more complete implementation refers to https://github.com/osrf/dynamic_message_introspection.
Please look at the implementation of message_to_yaml()
https://github.com/osrf/dynamic_message_introspection/blob/50277e341f61455c42a6015b5718804a4f8588f6/dynmsg/src/message_reading_c.cpp#L583-L599.