ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
These are unofficial/volatile APIs, but you can look at how they introspect on the graph to pull the data out (most of this can be done with the masterapi or filesystem operations):
import roslib.message
import rostopic
import rosmsg
type_name = rostopic.get_topic_type('/rosout', blocking=False)[0]
if type_name:
message_class = roslib.message.get_message_class(type_name)
message_text = rosmsg.get_msg_text(type_name)
full_message_text = message_class._full_text