Package rosh :: Package impl :: Module bag :: Class Bag
[frames] | no frames]

Class Bag

source code

    object --+    
             |    
rosbag.bag.Bag --+
                 |
                Bag

Instance Methods
 
__init__(self, *args, **kwds)
Constructor is the same as rosbag.Bag, with the addition of the 'ctx' keyword argument.
source code
 
__iter__(self) source code
 
record(self, topic) source code
 
close(self)
Close the bag file.
source code
 
start(self) source code
 
stop(self) source code

Inherited from rosbag.bag.Bag: __enter__, __exit__, __str__, flush, read_messages, reindex, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties
  topics

Inherited from rosbag.bag.Bag: chunk_threshold, compression, filename, mode, options, size, version

Inherited from object: __class__

Method Details

__init__(self, *args, **kwds)
(Constructor)

source code 

Constructor is the same as rosbag.Bag, with the addition of the 'ctx' keyword argument.

Parameters:
  • ctx (Context) - ROSH Context
Raises:
  • ValueError - if any argument is invalid
  • ROSBagException - if an error occurs opening file
  • ROSBagFormatException - if bag format is corrupted
Overrides: object.__init__

__iter__(self)

source code 
Overrides: rosbag.bag.Bag.__iter__

close(self)

source code 

Close the bag file. Closing an already closed bag does nothing.

Overrides: rosbag.bag.Bag.close
(inherited documentation)

Property Details

topics

Get Method:
_get_topics(self)