rqt_console.filters.time_filter module
- class rqt_console.filters.time_filter.TimeFilter(*args: Any, **kwargs: Any)
Bases:
BaseFilter
Contains filter logic for a time filter.
If _stop_time_enabled is true then the message’s time value must be between the dates provided to be considered a match If _stop_time_enabled is false then the time must simply be after _start_time
- has_filter()
- set_start_time(time)
Set _start_time.
:param time” start datetime for filter ‘’QDateTime’’ :emits filter_changed_signal: If _enabled is true
- set_stop_time(time)
Set _stop_time.
:param time” stop datetime for filter ‘’QDateTime’’ :emits filter_changed_signal: If _enabled is true
- set_stop_time_enabled(checked)
Set _stop_time_enabled.
:param checked” boolean flag to set ‘’bool’’ :emits filter_changed_signal: If _enabled is true
- test_message(message)
Test if the message matches the filter.
If _stop_time_enabled is true then the message’s time value must be between the dates provided to be considered a match If _stop_time_enabled is false then the time must simply be after _start_time :param message: the message to be tested against the filters, ‘’Message’’ :returns: True if the message matches, ‘’bool’’