Package roslib :: Module message :: Class Message
[frames] | no frames]

Class Message

source code

object --+
         |
        Message

Base class of Message data classes auto-generated from msg files.

Instance Methods
 
__init__(self, *args, **kwds)
Create a new Message instance.
source code
 
__getstate__(self)
support for Python pickling
source code
 
__setstate__(self, state)
support for Python pickling
source code
 
serialize(self, buff)
Serialize data into buffer
source code
 
deserialize(self, str)
Deserialize data in str into this instance
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
__eq__(self, other) source code

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

Properties

Inherited from object: __class__

Method Details

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

source code 

Create a new Message instance. There are multiple ways of initializing Message instances, either using a 1-to-1 correspondence between constructor arguments and message fields (*args), or using Python "keyword" arguments (**kwds) to initialize named field and leave the rest with default values.

Overrides: object.__init__

serialize(self, buff)

source code 

Serialize data into buffer

Parameters:
  • buff (StringIO) - buffer

deserialize(self, str)

source code 

Deserialize data in str into this instance

Parameters:
  • str (str) - serialized data

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)