|
grepros 1.3.0
grep for ROS bag files and live topics
|

Public Member Functions | |
| __init__ (self, args=None, **kwargs) | |
| format_message (self, msg, highlight=False) | |
| message_to_yaml (self, val, top=(), typename=None) | |
| validate (self) | |
Static Public Attributes | |
| DEFAULT_ARGS | |
| Constructor argument defaults. | |
| str | NOCOLOR_HIGHLIGHT_WRAPPERS = "**", "**" |
| Default highlight wrappers if not color output. | |
Provides message formatting as text.
Definition at line 134 of file outputs.py.
| __init__ | ( | self, | |
args = None, |
|||
| ** | kwargs | ||
| ) |
@param args arguments as namespace or dictionary, case-insensitive
@param args.color False or "never" for not using colors in replacements
@param args.highlight highlight matched values (default true)
@param args.emit_field message fields to emit if not all
@param args.noemit_field message fields to skip in output
@param args.max_field_lines maximum number of lines to output per field
@param args.start_line message line number to start output from
@param args.end_line message line number to stop output at
@param args.max_message_lines maximum number of lines to output per message
@param args.lines_around_match number of message lines around matched fields to output
@param args.matched_fields_only output only the fields where match was found
@param args.wrap_width character width to wrap message YAML output at
@param args.match_wrapper string to wrap around matched values,
both sides if one value, start and end if more than one,
or no wrapping if zero values
@param kwargs any and all arguments as keyword overrides, case-insensitive
Reimplemented in ConsoleSink, and HtmlSink.
Definition at line 146 of file outputs.py.
| format_message | ( | self, | |
| msg, | |||
highlight = False |
|||
| ) |
Returns message as formatted string, optionally highlighted for matches if configured.
Reimplemented in HtmlSink.
Definition at line 181 of file outputs.py.
| message_to_yaml | ( | self, | |
| val, | |||
top = (), |
|||
typename = None |
|||
| ) |
Returns ROS message or other value as YAML.
Definition at line 222 of file outputs.py.
| validate | ( | self | ) |
Returns whether arguments are valid, emits error if not, else populates options.
Reimplemented in ConsoleSink, and HtmlSink.
Definition at line 172 of file outputs.py.
|
static |
Constructor argument defaults.
Definition at line 141 of file outputs.py.
|
static |
Default highlight wrappers if not color output.
Definition at line 138 of file outputs.py.