Package rosbag :: Module bag :: Class BagMessage
[frames] | no frames]

Class BagMessage

source code

object --+    
         |    
     tuple --+
             |
            BagMessage

BagMessage(topic, message, timestamp)

Instance Methods
 
__getnewargs__(self)
Return self as a plain tuple.
source code
 
__getstate__(self)
Exclude the OrderedDict from pickling
source code
 
__repr__(self)
Return a nicely formatted representation string
source code

Inherited from tuple: __add__, __contains__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __rmul__, __sizeof__, count, index

Inherited from object: __delattr__, __format__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(_cls, topic, message, timestamp)
Create new instance of BagMessage(topic, message, timestamp)
source code
Properties
  message
Alias for field number 1
  timestamp
Alias for field number 2
  topic
Alias for field number 0

Inherited from object: __class__

Method Details

__getnewargs__(self)

source code 

Return self as a plain tuple. Used by copy and pickle.

Overrides: tuple.__getnewargs__

__new__(_cls, topic, message, timestamp)
Static Method

source code 

Create new instance of BagMessage(topic, message, timestamp)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(self)
(Representation operator)

source code 

Return a nicely formatted representation string

Overrides: object.__repr__

Property Details

message

Alias for field number 1

Get Method:
<operator.itemgetter object at 0x7f26d7da9050>

timestamp

Alias for field number 2

Get Method:
<operator.itemgetter object at 0x7f26d7da9090>

topic

Alias for field number 0

Get Method:
<operator.itemgetter object at 0x7f26d7d94fd0>