Definition at line 54 of file recorder.py.
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.
def rqt_bag.recorder.Recorder._record |
( |
|
self, |
|
|
|
topic, |
|
|
|
m |
|
) |
| |
|
private |
def rqt_bag.recorder.Recorder._run_master_check |
( |
|
self | ) |
|
|
private |
def rqt_bag.recorder.Recorder._run_write |
( |
|
self | ) |
|
|
private |
def rqt_bag.recorder.Recorder._should_subscribe_to |
( |
|
self, |
|
|
|
topic |
|
) |
| |
|
private |
def rqt_bag.recorder.Recorder._unsubscribe |
( |
|
self, |
|
|
|
topic |
|
) |
| |
|
private |
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.
def rqt_bag.recorder.Recorder.bag |
( |
|
self | ) |
|
def rqt_bag.recorder.Recorder.pause |
( |
|
self | ) |
|
def rqt_bag.recorder.Recorder.paused |
( |
|
self | ) |
|
def rqt_bag.recorder.Recorder.start |
( |
|
self | ) |
|
Start subscribing and recording messages to bag.
Definition at line 114 of file recorder.py.
def rqt_bag.recorder.Recorder.stop |
( |
|
self | ) |
|
def rqt_bag.recorder.Recorder.toggle_paused |
( |
|
self | ) |
|
def rqt_bag.recorder.Recorder.unpause |
( |
|
self | ) |
|
rqt_bag.recorder.Recorder._all |
|
private |
rqt_bag.recorder.Recorder._bag |
|
private |
rqt_bag.recorder.Recorder._bag_lock |
|
private |
rqt_bag.recorder.Recorder._failed_topics |
|
private |
rqt_bag.recorder.Recorder._last_update |
|
private |
rqt_bag.recorder.Recorder._limit |
|
private |
rqt_bag.recorder.Recorder._limited_topics |
|
private |
rqt_bag.recorder.Recorder._listeners |
|
private |
rqt_bag.recorder.Recorder._master_check_interval |
|
private |
rqt_bag.recorder.Recorder._master_check_thread |
|
private |
rqt_bag.recorder.Recorder._message_count |
|
private |
rqt_bag.recorder.Recorder._paused |
|
private |
rqt_bag.recorder.Recorder._regex |
|
private |
rqt_bag.recorder.Recorder._regexes |
|
private |
rqt_bag.recorder.Recorder._stop_condition |
|
private |
rqt_bag.recorder.Recorder._stop_flag |
|
private |
rqt_bag.recorder.Recorder._subscriber_helpers |
|
private |
rqt_bag.recorder.Recorder._topics |
|
private |
rqt_bag.recorder.Recorder._write_queue |
|
private |
rqt_bag.recorder.Recorder._write_thread |
|
private |
The documentation for this class was generated from the following file: