_Constants.py
Go to the documentation of this file.
00001 """autogenerated by genpy from bond/Constants.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006 
00007 
00008 class Constants(genpy.Message):
00009   _md5sum = "6fc594dc1d7bd7919077042712f8c8b0"
00010   _type = "bond/Constants"
00011   _has_header = False #flag to mark the presence of a Header object
00012   _full_text = """float32 DEAD_PUBLISH_PERIOD = 0.05
00013 float32 DEFAULT_CONNECT_TIMEOUT = 10.0
00014 float32 DEFAULT_HEARTBEAT_TIMEOUT = 4.0
00015 float32 DEFAULT_DISCONNECT_TIMEOUT = 2.0
00016 float32 DEFAULT_HEARTBEAT_PERIOD = 1.0
00017 
00018 string DISABLE_HEARTBEAT_TIMEOUT_PARAM=/bond_disable_heartbeat_timeout
00019 """
00020   # Pseudo-constants
00021   DEAD_PUBLISH_PERIOD = 0.05
00022   DEFAULT_CONNECT_TIMEOUT = 10.0
00023   DEFAULT_HEARTBEAT_TIMEOUT = 4.0
00024   DEFAULT_DISCONNECT_TIMEOUT = 2.0
00025   DEFAULT_HEARTBEAT_PERIOD = 1.0
00026   DISABLE_HEARTBEAT_TIMEOUT_PARAM = '/bond_disable_heartbeat_timeout'
00027 
00028   __slots__ = []
00029   _slot_types = []
00030 
00031   def __init__(self, *args, **kwds):
00032     """
00033     Constructor. Any message fields that are implicitly/explicitly
00034     set to None will be assigned a default value. The recommend
00035     use is keyword arguments as this is more robust to future message
00036     changes.  You cannot mix in-order arguments and keyword arguments.
00037 
00038     The available fields are:
00039        
00040 
00041     :param args: complete set of field values, in .msg order
00042     :param kwds: use keyword arguments corresponding to message field names
00043     to set specific fields.
00044     """
00045     if args or kwds:
00046       super(Constants, self).__init__(*args, **kwds)
00047 
00048   def _get_types(self):
00049     """
00050     internal API method
00051     """
00052     return self._slot_types
00053 
00054   def serialize(self, buff):
00055     """
00056     serialize message into buffer
00057     :param buff: buffer, ``StringIO``
00058     """
00059     try:
00060       pass
00061     except struct.error as se: self._check_types(se)
00062     except TypeError as te: self._check_types(te)
00063 
00064   def deserialize(self, str):
00065     """
00066     unpack serialized message in str into this message instance
00067     :param str: byte array of serialized message, ``str``
00068     """
00069     try:
00070       end = 0
00071       return self
00072     except struct.error as e:
00073       raise genpy.DeserializationError(e) #most likely buffer underfill
00074 
00075 
00076   def serialize_numpy(self, buff, numpy):
00077     """
00078     serialize message with numpy array types into buffer
00079     :param buff: buffer, ``StringIO``
00080     :param numpy: numpy python module
00081     """
00082     try:
00083       pass
00084     except struct.error as se: self._check_types(se)
00085     except TypeError as te: self._check_types(te)
00086 
00087   def deserialize_numpy(self, str, numpy):
00088     """
00089     unpack serialized message in str into this message instance using numpy for array types
00090     :param str: byte array of serialized message, ``str``
00091     :param numpy: numpy python module
00092     """
00093     try:
00094       end = 0
00095       return self
00096     except struct.error as e:
00097       raise genpy.DeserializationError(e) #most likely buffer underfill
00098 
00099 _struct_I = genpy.struct_I
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


bond
Author(s): Stuart Glaser
autogenerated on Thu Aug 15 2013 10:10:34