Bag serialize messages to and from a single file on disk using the bag
format.
|
|
__init__(self,
f,
mode='r',
compression=Compression.NONE,
chunk_threshold=768*1024,
allow_unindexed=False,
options=None,
skip_index=False)
Open a bag file. |
source code
|
|
|
|
|
|
|
|
|
|
| __exit__(self,
exc_type,
exc_value,
traceback) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generator of tuples of (str, roslib.message.Message, roslib.rostime.Time) [not raw] or (str, (str, str,
str, tuple, class), roslib.rostime.Time) [raw]
|
read_messages(self,
topics=None,
start_time=None,
end_time=None,
connection_filter=None,
raw=False)
Read messages from the bag, optionally filtered by topic, timestamp
and connection details. |
source code
|
|
|
|
flush(self)
Write the open chunk to disk so subsequent reads will read all
messages. |
source code
|
|
|
|
write(self,
topic,
msg,
t=None,
raw=False)
Write a message to the bag. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|