33 from rosgraph_msgs.msg
import Log
35 from python_qt_binding.QtCore
import QCoreApplication, QDateTime, QObject
47 DEBUG: QCoreApplication.translate(
'Message',
'Debug'),
48 INFO: QCoreApplication.translate(
'Message',
'Info'),
49 WARN: QCoreApplication.translate(
'Message',
'Warn'),
50 ERROR: QCoreApplication.translate(
'Message',
'Error'),
51 FATAL: QCoreApplication.translate(
'Message',
'Fatal'),
58 self.
id = Message._next_id
81 Update the string representation of the timestamp.
82 :param stamp: a tuple containing seconds and nano seconds
84 assert len(stamp) == 2
96 s = s.replace(
'ZZZ', str(self.
__stamp[1]).zfill(9))
99 stamp = property(_get_stamp, _set_stamp)
111 dt.setTime_t(stamp[0])
112 dt.addMSecs(int(float(stamp[1]) / 10**6))
124 text = self.tr(
'Node: ') + self.
node +
'\n'
126 text += self.tr(
'Severity: ') + Message.SEVERITY_LABELS[self.
severity] +
'\n'
127 text += self.tr(
'Published Topics: ') +
', '.join(self.
topics) +
'\n'
128 text +=
'\n' + self.
message +
'\n'
129 text +=
'\n' +
'Location:'
130 text +=
'\n' + self.
location +
'\n\n'
131 text +=
'-' * 100 +
'\n\n'