Definition at line 54 of file recorder.py.
◆ __init__()
def rqt_bag.recorder.Recorder.__init__ |
( |
|
self, |
|
|
|
filename, |
|
|
|
bag_lock = None , |
|
|
|
all = True , |
|
|
|
topics = [] , |
|
|
|
regex = False , |
|
|
|
limit = 0 , |
|
|
|
master_check_interval = 1.0 |
|
) |
| |
Subscribe to ROS messages and record them to a bag file.
@param filename: filename of bag to write to
@type filename: str
@param all: all topics are to be recorded [default: True]
@type all: bool
@param topics: topics (or regexes if regex is True) to record [default: empty list]
@type topics: list of str
@param regex: topics should be considered as regular expressions [default: False]
@type regex: bool
@param limit: record only this number of messages on each topic (if non-positive, then unlimited) [default: 0]
@type limit: int
@param master_check_interval: period (in seconds) to check master for new topic publications [default: 1]
@type master_check_interval: float
Definition at line 56 of file recorder.py.
◆ _record()
def rqt_bag.recorder.Recorder._record |
( |
|
self, |
|
|
|
topic, |
|
|
|
m |
|
) |
| |
|
private |
◆ _run_master_check()
def rqt_bag.recorder.Recorder._run_master_check |
( |
|
self | ) |
|
|
private |
◆ _run_write()
def rqt_bag.recorder.Recorder._run_write |
( |
|
self | ) |
|
|
private |
◆ _should_subscribe_to()
def rqt_bag.recorder.Recorder._should_subscribe_to |
( |
|
self, |
|
|
|
topic |
|
) |
| |
|
private |
◆ _unsubscribe()
def rqt_bag.recorder.Recorder._unsubscribe |
( |
|
self, |
|
|
|
topic |
|
) |
| |
|
private |
◆ add_listener()
def rqt_bag.recorder.Recorder.add_listener |
( |
|
self, |
|
|
|
listener |
|
) |
| |
Add a listener which gets called whenever a message is recorded.
@param listener: function to call
@type listener: function taking (topic, message, time)
Definition at line 106 of file recorder.py.
◆ bag()
def rqt_bag.recorder.Recorder.bag |
( |
|
self | ) |
|
◆ pause()
def rqt_bag.recorder.Recorder.pause |
( |
|
self | ) |
|
◆ paused()
def rqt_bag.recorder.Recorder.paused |
( |
|
self | ) |
|
◆ start()
def rqt_bag.recorder.Recorder.start |
( |
|
self | ) |
|
Start subscribing and recording messages to bag.
Definition at line 114 of file recorder.py.
◆ stop()
def rqt_bag.recorder.Recorder.stop |
( |
|
self | ) |
|
◆ toggle_paused()
def rqt_bag.recorder.Recorder.toggle_paused |
( |
|
self | ) |
|
◆ unpause()
def rqt_bag.recorder.Recorder.unpause |
( |
|
self | ) |
|
◆ _all
rqt_bag.recorder.Recorder._all |
|
private |
◆ _bag
rqt_bag.recorder.Recorder._bag |
|
private |
◆ _bag_lock
rqt_bag.recorder.Recorder._bag_lock |
|
private |
◆ _failed_topics
rqt_bag.recorder.Recorder._failed_topics |
|
private |
◆ _last_update
rqt_bag.recorder.Recorder._last_update |
|
private |
◆ _limit
rqt_bag.recorder.Recorder._limit |
|
private |
◆ _limited_topics
rqt_bag.recorder.Recorder._limited_topics |
|
private |
◆ _listeners
rqt_bag.recorder.Recorder._listeners |
|
private |
◆ _master_check_interval
rqt_bag.recorder.Recorder._master_check_interval |
|
private |
◆ _master_check_thread
rqt_bag.recorder.Recorder._master_check_thread |
|
private |
◆ _message_count
rqt_bag.recorder.Recorder._message_count |
|
private |
◆ _paused
rqt_bag.recorder.Recorder._paused |
|
private |
◆ _regex
rqt_bag.recorder.Recorder._regex |
|
private |
◆ _regexes
rqt_bag.recorder.Recorder._regexes |
|
private |
◆ _stop_condition
rqt_bag.recorder.Recorder._stop_condition |
|
private |
◆ _stop_flag
rqt_bag.recorder.Recorder._stop_flag |
|
private |
◆ _subscriber_helpers
rqt_bag.recorder.Recorder._subscriber_helpers |
|
private |
◆ _topics
rqt_bag.recorder.Recorder._topics |
|
private |
◆ _write_queue
rqt_bag.recorder.Recorder._write_queue |
|
private |
◆ _write_thread
rqt_bag.recorder.Recorder._write_thread |
|
private |
The documentation for this class was generated from the following file: