rqt_console.message_data_model module

class rqt_console.message_data_model.MessageDataModel(*args: Any, **kwargs: Any)

Bases: QAbstractTableModel

columnCount(parent=None)
columns = ['message', 'severity', 'node', 'stamp', 'location']
data(index, role=None)
get_message_between(start_time, end_time=None)
Parameters:

start_time – time to start in timestamp form (including decimal

fractions of a second is acceptable, ‘’unixtimestamp’’ :param end_time: time to end in timestamp form (including decimal fractions of a second is acceptable, ‘’unixtimestamp’’ (Optional) :returns: list of messages in the time range ‘’list[message]’’

get_message_limit()
get_selected_text(rowlist)

Returns an easily readable block of text for the currently selected rows :param rowlist: list of row indexes, ‘’list(int)’’ :returns: the text from those indexes, ‘’str’’

get_severity_dict()
get_time_range(rowlist)
Parameters:

rowlist – a list of row indexes, ‘’list’’

Returns:

a tuple of min and max times in a rowlist in ‘(unix timestamp).(fraction of second)’ format, ‘’tuple(str,str)’’

get_unique_nodes()
get_unique_severities()
headerData(section, orientation, role=None)
insert_rows(msgs)
remove_rows(rowlist)
Parameters:

rowlist – list of row indexes, ‘’list(int)’’

Returns:

True if the indexes were removed successfully, ‘’bool’’

rowCount(parent=None)
set_message_limit(new_limit)
severity_colors = {10: python_qt_binding.QtGui.QBrush, 20: python_qt_binding.QtGui.QBrush, 30: python_qt_binding.QtGui.QBrush, 40: python_qt_binding.QtGui.QBrush, 50: python_qt_binding.QtGui.QBrush}