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] |
|
||
|
|||
|
|||
|
|||
|
|||
generator of CompressionTuple of (str, int, int) |
|
||
int |
|
||
float, timestamp in seconds, includes fractions of a second |
|
||
float, timestamp in seconds, includes fractions of a second |
|
||
|
|||
|
|||
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. |
Returns information about the compression of the bag
|
Returns the number of messages in the bag. Can be filtered by Topic
|
Returns the start time of the bag.
|
Returns the end time of the bag.
|
Coallates info about the type and topics in the bag. Note, it would be nice to filter by type as well, but there appear to be some limitations in the current architecture that prevent that from working when more than one message type is written on the same topic. @param topic_filters: specify one or more topic to filter by. @type topic_filters: either a single str or a list of str. @return: generator of TypesAndTopicsTuple(types{key:type name, val: md5hash}, topics{type: msg type (Ex. "std_msgs/String"), message_count: the number of messages of the particular type, connections: the number of connections, frequency: the data frequency, key: type name, val: md5hash}) describing the types of messages present and information about the topics @rtype: TypesAndTopicsTuple(dict(str, str), TopicTuple(str, int, int, float, str, str)) |
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 Tue Mar 7 03:45:51 2017 | http://epydoc.sourceforge.net |