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