|
def | __init__ (self, args=None, **kwargs) |
|
def | close (self) |
|
def | close_output (self) |
|
def | emit (self, topic, msg, stamp=None, match=None, index=None) |
|
def | validate (self) |
|
def | __enter__ (self) |
|
def | __exit__ (self, exc_type, exc_value, traceback) |
|
def | autodetect (cls, target) |
|
def | bind (self, source) |
|
def | emit_meta (self) |
|
def | flush (self) |
|
def | is_highlighting (self) |
|
def | thread_excepthook (self, text, exc) |
|
def | ensure_rollover (self, topic, msg, stamp) |
|
def | format_output_meta (self) |
|
def | get_write_options (cls, label) |
|
def | make_filename (self) |
|
def | size (self) |
|
|
| DEFAULT_ARGS = dict(META=False, WRITE_OPTIONS={}, VERBOSE=False) |
| Constructor argument defaults. More...
|
|
tuple | FILE_EXTENSIONS = (".mcap", ) |
| Auto-detection file extensions. More...
|
|
| DEFAULT_ARGS = dict(META=False) |
| Constructor argument defaults. More...
|
|
tuple | FILE_EXTENSIONS = () |
| Auto-detection file extensions for subclasses, as (".ext", ) More...
|
|
| DEFAULT_ARGS = dict(VERBOSE=False, WRITE=None, WRITE_OPTIONS={}) |
| Constructor argument defaults. More...
|
|
string | FILE_META_TEMPLATE = "{name} ({size})" |
|
string | MULTI_META_TEMPLATE = "\n- {name} ({size}, {mcount}, {tcount})" |
|
list | OPTIONS_TEMPLATES |
| Command-line help templates for rollover options, as [(name, text with s label placeholder)]. More...
|
|
string | START_META_TEMPLATE = "{mcount} in {tcount} to " |
|
Writes messages to MCAP file.
Definition at line 562 of file mcap.py.
def grepros.plugins.mcap.McapSink.__init__ |
( |
|
self, |
|
|
|
args = None , |
|
|
** |
kwargs |
|
) |
| |
@param args arguments as namespace or dictionary, case-insensitive;
or a single path as the file to write
@param args.write base name of MCAP files to write
@param args.write_options {"overwrite": whether to overwrite existing file
(default false),
"rollover-size": bytes limit for individual output files,
"rollover-count": message limit for individual output files,
"rollover-duration": time span limit for individual output files,
as ROS duration or convertible seconds,
"rollover-template": output filename template, supporting
strftime format codes like "%H-%M-%S"
and "%(index)s" as output file index}
@param args.meta whether to print metainfo
@param args.verbose whether to print debug information
@param kwargs any and all arguments as keyword overrides, case-insensitive
Reimplemented from grepros.outputs.Sink.
Definition at line 572 of file mcap.py.