Home | Trees | Indices | Help |
---|
|
object --+ | Bag
Bag serialize messages to and from a single file on disk using the bag format.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
generator of tuples of (str, genpy.Message, genpy.Time) [not raw] or (str, (str, str, str, tuple, class), genpy.Time) [raw] |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
options Get the options. |
|
filename Get the filename. |
|
version Get the version. |
|
mode Get the mode. |
|
size Get the size in bytes. |
|
compression Get the compression method to use for writing. |
|
chunk_threshold Get the chunk threshold to use for writing. |
|
Inherited from |
Method Details |
Open a bag file. The mode can be 'r', 'w', or 'a' for reading (default), writing or appending. The file will be created if it doesn't exist when opened for writing or appending; it will be truncated when opened for writing. Simultaneous reading and writing is allowed when in writing or appending mode.
|
Read messages from the bag, optionally filtered by topic, timestamp and connection details.
|
Write the open chunk to disk so subsequent reads will read all messages.
|
Write a message to the bag.
|
Reindexes the bag file. Yields position of each chunk for progress. |
Close the bag file. Closing an already closed bag does nothing. |
str(x)
|
Property Details |
optionsGet the options.
|
filenameGet the filename.
|
versionGet the version.
|
modeGet the mode.
|
sizeGet the size in bytes.
|
compressionGet the compression method to use for writing.
|
chunk_thresholdGet the chunk threshold to use for writing.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Dec 28 17:43:12 2013 | http://epydoc.sourceforge.net |