class documentation

class Message(object):

Constructor: Message(*args, **kwds)

View In Hierarchy

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

Method __eq__ Undocumented
Method __getstate__ Support for Python pickling.
Method __init__ Create a new Message instance.
Method __ne__ Undocumented
Method __repr__ Undocumented
Method __setstate__ Support for Python pickling.
Method __str__ Undocumented
Method deserialize Deserialize data in str into this instance.
Method serialize Serialize data into buffer.
Class Variable __slots__ Undocumented
Method _check_types Perform dynamic type-checking of Message fields.
Method _get_types Undocumented
def __eq__(self, other):

Undocumented

def __getstate__(self):

Support for Python pickling.

def __init__(self, *args, **kwds):

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.

def __ne__(self, other):

Undocumented

def __repr__(self):

Undocumented

def __setstate__(self, state):

Support for Python pickling.

def __str__(self):

Undocumented

def deserialize(self, str_):

Deserialize data in str into this instance.

Parameters
str_serialized data, str
def serialize(self, buff):

Serialize data into buffer.

Parameters
buffbuffer, StringIO
__slots__: list[str] =

Undocumented

def _check_types(self, exc=None):

Perform dynamic type-checking of Message fields.

This is performance intensive and is meant for post-error diagnosis :param exc: underlying exception that gave cause for type check, Exception :raises: exc:genpy.SerializationError If typecheck fails

def _get_types(self):

Undocumented