roslib :: message :: Message :: Class Message

Class Message

object --+
         |
        Message
Known Subclasses:

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

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

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)

 

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__

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

deserialize(self, str)

 

Deserialize data in str into this instance

Parameters:
  • str (str) - serialized data

serialize(self, buff)

 

Serialize data into buffer

Parameters:
  • buff (StringIO) - buffer