34 from .message_tree_model
import MessageTreeModel
40 super(TopicTreeModel, self).
__init__(parent)
45 topic_list = rospy.get_published_topics()
46 for topic_path, topic_type
in topic_list:
47 topic_name = topic_path.strip(
'/')
48 message_instance = roslib.message.get_message_class(topic_type)()
49 self.
add_message(message_instance, topic_name, topic_type, topic_path)