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 = "0032309c8dd2c569e0e0d0e75974e750"
00008 _type = "test_roscpp_serialization/Constants"
00009 _has_header = False
00010 _full_text = """uint8 a = 1
00011 int8 b = 2
00012 uint16 c = 3
00013 int16 d = 4
00014 uint32 e = 5
00015 int32 f = 6
00016 uint64 g = 7
00017 int64 h = 8
00018 float32 fa = 1.5
00019 float64 fb = 40.9
00020 string str = hello there
00021 string str2 = this string has "quotes" and \slashes\ in it
00022 """
00023
00024 a = 1
00025 b = 2
00026 c = 3
00027 d = 4
00028 e = 5
00029 f = 6
00030 g = 7
00031 h = 8
00032 fa = 1.5
00033 fb = 40.9
00034 str = 'hello there'
00035 str2 = r'this string has "quotes" and \slashes\ in it'
00036
00037 __slots__ = []
00038 _slot_types = []
00039
00040 def __init__(self, *args, **kwds):
00041 """
00042 Constructor. Any message fields that are implicitly/explicitly
00043 set to None will be assigned a default value. The recommend
00044 use is keyword arguments as this is more robust to future message
00045 changes. You cannot mix in-order arguments and keyword arguments.
00046
00047 The available fields are:
00048
00049
00050 @param args: complete set of field values, in .msg order
00051 @param kwds: use keyword arguments corresponding to message field names
00052 to set specific fields.
00053 """
00054 if args or kwds:
00055 super(Constants, self).__init__(*args, **kwds)
00056
00057 def _get_types(self):
00058 """
00059 internal API method
00060 """
00061 return self._slot_types
00062
00063 def serialize(self, buff):
00064 """
00065 serialize message into buffer
00066 @param buff: buffer
00067 @type buff: StringIO
00068 """
00069 try:
00070 pass
00071 except struct.error, se: self._check_types(se)
00072 except TypeError, te: self._check_types(te)
00073
00074 def deserialize(self, str):
00075 """
00076 unpack serialized message in str into this message instance
00077 @param str: byte array of serialized message
00078 @type str: str
00079 """
00080 try:
00081 end = 0
00082 return self
00083 except struct.error, e:
00084 raise roslib.message.DeserializationError(e)
00085
00086
00087 def serialize_numpy(self, buff, numpy):
00088 """
00089 serialize message with numpy array types into buffer
00090 @param buff: buffer
00091 @type buff: StringIO
00092 @param numpy: numpy python module
00093 @type numpy module
00094 """
00095 try:
00096 pass
00097 except struct.error, se: self._check_types(se)
00098 except TypeError, te: self._check_types(te)
00099
00100 def deserialize_numpy(self, str, numpy):
00101 """
00102 unpack serialized message in str into this message instance using numpy for array types
00103 @param str: byte array of serialized message
00104 @type str: str
00105 @param numpy: numpy python module
00106 @type numpy: module
00107 """
00108 try:
00109 end = 0
00110 return self
00111 except struct.error, e:
00112 raise roslib.message.DeserializationError(e)
00113
00114 _struct_I = roslib.message.struct_I