00001 """autogenerated by genmsg_py from TestConstants.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class TestConstants(roslib.message.Message):
00007 _md5sum = "e60959d2ccf9718dc5e42767bebd1644"
00008 _type = "test_rospy/TestConstants"
00009 _has_header = False
00010 _full_text = """float32 A=-123.0
00011 float32 B=124.0
00012 float64 C=125.0
00013 int32 X=123
00014 int32 Y=-123
00015 uint32 Z=124
00016 string FOO=foo
00017 string SINGLEQUOTE='hi
00018 string DOUBLEQUOTE="hello" there
00019 string MULTIQUOTE="hello" 'goodbye'
00020 string EXAMPLE="#comments" are ignored, and leading and trailing whitespace removed
00021 string WHITESPACE= strip
00022 string EMPTY=
00023 bool TRUE=1
00024 bool FALSE=0
00025 """
00026
00027 A = -123.0
00028 B = 124.0
00029 C = 125.0
00030 X = 123
00031 Y = -123
00032 Z = 124
00033 FOO = 'foo'
00034 SINGLEQUOTE = r"'hi"
00035 DOUBLEQUOTE = r'"hello" there'
00036 MULTIQUOTE = "\"hello\" 'goodbye'"
00037 EXAMPLE = r'"#comments" are ignored, and leading and trailing whitespace removed'
00038 WHITESPACE = 'strip'
00039 EMPTY = ''
00040 TRUE = True
00041 FALSE = False
00042
00043 __slots__ = []
00044 _slot_types = []
00045
00046 def __init__(self, *args, **kwds):
00047 """
00048 Constructor. Any message fields that are implicitly/explicitly
00049 set to None will be assigned a default value. The recommend
00050 use is keyword arguments as this is more robust to future message
00051 changes. You cannot mix in-order arguments and keyword arguments.
00052
00053 The available fields are:
00054
00055
00056 @param args: complete set of field values, in .msg order
00057 @param kwds: use keyword arguments corresponding to message field names
00058 to set specific fields.
00059 """
00060 if args or kwds:
00061 super(TestConstants, self).__init__(*args, **kwds)
00062
00063 def _get_types(self):
00064 """
00065 internal API method
00066 """
00067 return self._slot_types
00068
00069 def serialize(self, buff):
00070 """
00071 serialize message into buffer
00072 @param buff: buffer
00073 @type buff: StringIO
00074 """
00075 try:
00076 pass
00077 except struct.error, se: self._check_types(se)
00078 except TypeError, te: self._check_types(te)
00079
00080 def deserialize(self, str):
00081 """
00082 unpack serialized message in str into this message instance
00083 @param str: byte array of serialized message
00084 @type str: str
00085 """
00086 try:
00087 end = 0
00088 return self
00089 except struct.error, e:
00090 raise roslib.message.DeserializationError(e)
00091
00092
00093 def serialize_numpy(self, buff, numpy):
00094 """
00095 serialize message with numpy array types into buffer
00096 @param buff: buffer
00097 @type buff: StringIO
00098 @param numpy: numpy python module
00099 @type numpy module
00100 """
00101 try:
00102 pass
00103 except struct.error, se: self._check_types(se)
00104 except TypeError, te: self._check_types(te)
00105
00106 def deserialize_numpy(self, str, numpy):
00107 """
00108 unpack serialized message in str into this message instance using numpy for array types
00109 @param str: byte array of serialized message
00110 @type str: str
00111 @param numpy: numpy python module
00112 @type numpy: module
00113 """
00114 try:
00115 end = 0
00116 return self
00117 except struct.error, e:
00118 raise roslib.message.DeserializationError(e)
00119
00120 _struct_I = roslib.message.struct_I