45 topic_list = rospy.get_published_topics()
46 for topic_name, topic_type
in topic_list:
47 message = roslib.message.get_message_class(topic_type)()
52 field_dict[topic_name] = {
57 if hasattr(field,
'__slots__'):
58 for slot_name
in field.__slots__:
59 field_dict[topic_name][
'children'].update(
65 if __name__ ==
'__main__':
def _recursive_create_field_dict(self, topic_name, field)