Public Member Functions | Private Member Functions | Private Attributes
rqt_bag.recorder.Recorder Class Reference

List of all members.

Public Member Functions

def __init__
def add_listener
def bag
def pause
def paused
def start
def stop
def toggle_paused
def unpause

Private Member Functions

def _record
def _run_master_check
 Implementation.
def _run_write
def _should_subscribe_to
def _unsubscribe

Private Attributes

 _all
 _bag
 _bag_lock
 _failed_topics
 _last_update
 _limit
 _limited_topics
 _listeners
 _master_check_interval
 _master_check_thread
 _message_count
 _paused
 _regex
 _regexes
 _stop_condition
 _stop_flag
 _subscriber_helpers
 _topics
 _write_queue
 _write_thread

Detailed Description

Definition at line 50 of file recorder.py.


Constructor & Destructor Documentation

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 51 of file recorder.py.


Member Function Documentation

def rqt_bag.recorder.Recorder._record (   self,
  topic,
  m 
) [private]

Definition at line 204 of file recorder.py.

Implementation.

Definition at line 141 of file recorder.py.

def rqt_bag.recorder.Recorder._run_write (   self) [private]

Definition at line 216 of file recorder.py.

def rqt_bag.recorder.Recorder._should_subscribe_to (   self,
  topic 
) [private]

Definition at line 183 of file recorder.py.

def rqt_bag.recorder.Recorder._unsubscribe (   self,
  topic 
) [private]

Definition at line 196 of file recorder.py.

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 101 of file recorder.py.

Definition at line 98 of file recorder.py.

Definition at line 120 of file recorder.py.

Definition at line 117 of file recorder.py.

Start subscribing and recording messages to bag.

Definition at line 109 of file recorder.py.

Stop recording.

Definition at line 129 of file recorder.py.

Definition at line 126 of file recorder.py.

Definition at line 123 of file recorder.py.


Member Data Documentation

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.

Definition at line 66 of file recorder.py.


The documentation for this class was generated from the following file:


rqt_bag
Author(s): Aaron Blasdel, Tim Field
autogenerated on Mon Oct 6 2014 07:15:30