34 from python_qt_binding.QtCore
import QObject
40 A message details renderer. When registered with rqt_bag, a MessageView is called
41 whenever the timeline playhead moves.
54 @param bag: the bag file the message is contained in
56 @param msg_details: the details of the message to be viewed
57 @type msg_details: tuple (topic, msg, time)
58 @param topic: the message topic
60 @param msg: the message
61 @param t: the message timestamp
68 Clear the currently viewed message (if any).
74 Called when the messages in a timeline change, e.g. if a new message is recorded, or
81 Close the message view, releasing any resources.
88 This function will be called to process events posted by post_event
89 it will call message_cleared or message_viewed with the relevant data
91 bag, msg_data = event.data
93 self.message_viewed(bag, msg_data)
95 self.message_cleared()