00001 """autogenerated by genmsg_py from RossrvARequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class RossrvARequest(roslib.message.Message):
00007 _md5sum = "0217cf2f145df7686492b0471b5ecf7a"
00008 _type = "test_rosmsg/RossrvARequest"
00009 _has_header = False
00010 _full_text = """int32 areq
00011
00012 """
00013 __slots__ = ['areq']
00014 _slot_types = ['int32']
00015
00016 def __init__(self, *args, **kwds):
00017 """
00018 Constructor. Any message fields that are implicitly/explicitly
00019 set to None will be assigned a default value. The recommend
00020 use is keyword arguments as this is more robust to future message
00021 changes. You cannot mix in-order arguments and keyword arguments.
00022
00023 The available fields are:
00024 areq
00025
00026 @param args: complete set of field values, in .msg order
00027 @param kwds: use keyword arguments corresponding to message field names
00028 to set specific fields.
00029 """
00030 if args or kwds:
00031 super(RossrvARequest, self).__init__(*args, **kwds)
00032
00033 if self.areq is None:
00034 self.areq = 0
00035 else:
00036 self.areq = 0
00037
00038 def _get_types(self):
00039 """
00040 internal API method
00041 """
00042 return self._slot_types
00043
00044 def serialize(self, buff):
00045 """
00046 serialize message into buffer
00047 @param buff: buffer
00048 @type buff: StringIO
00049 """
00050 try:
00051 buff.write(_struct_i.pack(self.areq))
00052 except struct.error, se: self._check_types(se)
00053 except TypeError, te: self._check_types(te)
00054
00055 def deserialize(self, str):
00056 """
00057 unpack serialized message in str into this message instance
00058 @param str: byte array of serialized message
00059 @type str: str
00060 """
00061 try:
00062 end = 0
00063 start = end
00064 end += 4
00065 (self.areq,) = _struct_i.unpack(str[start:end])
00066 return self
00067 except struct.error, e:
00068 raise roslib.message.DeserializationError(e)
00069
00070
00071 def serialize_numpy(self, buff, numpy):
00072 """
00073 serialize message with numpy array types into buffer
00074 @param buff: buffer
00075 @type buff: StringIO
00076 @param numpy: numpy python module
00077 @type numpy module
00078 """
00079 try:
00080 buff.write(_struct_i.pack(self.areq))
00081 except struct.error, se: self._check_types(se)
00082 except TypeError, te: self._check_types(te)
00083
00084 def deserialize_numpy(self, str, numpy):
00085 """
00086 unpack serialized message in str into this message instance using numpy for array types
00087 @param str: byte array of serialized message
00088 @type str: str
00089 @param numpy: numpy python module
00090 @type numpy: module
00091 """
00092 try:
00093 end = 0
00094 start = end
00095 end += 4
00096 (self.areq,) = _struct_i.unpack(str[start:end])
00097 return self
00098 except struct.error, e:
00099 raise roslib.message.DeserializationError(e)
00100
00101 _struct_I = roslib.message.struct_I
00102 _struct_i = struct.Struct("<i")
00103 """autogenerated by genmsg_py from RossrvAResponse.msg. Do not edit."""
00104 import roslib.message
00105 import struct
00106
00107
00108 class RossrvAResponse(roslib.message.Message):
00109 _md5sum = "7714078796589731036f4da799e23357"
00110 _type = "test_rosmsg/RossrvAResponse"
00111 _has_header = False
00112 _full_text = """int32 aresp
00113
00114
00115 """
00116 __slots__ = ['aresp']
00117 _slot_types = ['int32']
00118
00119 def __init__(self, *args, **kwds):
00120 """
00121 Constructor. Any message fields that are implicitly/explicitly
00122 set to None will be assigned a default value. The recommend
00123 use is keyword arguments as this is more robust to future message
00124 changes. You cannot mix in-order arguments and keyword arguments.
00125
00126 The available fields are:
00127 aresp
00128
00129 @param args: complete set of field values, in .msg order
00130 @param kwds: use keyword arguments corresponding to message field names
00131 to set specific fields.
00132 """
00133 if args or kwds:
00134 super(RossrvAResponse, self).__init__(*args, **kwds)
00135
00136 if self.aresp is None:
00137 self.aresp = 0
00138 else:
00139 self.aresp = 0
00140
00141 def _get_types(self):
00142 """
00143 internal API method
00144 """
00145 return self._slot_types
00146
00147 def serialize(self, buff):
00148 """
00149 serialize message into buffer
00150 @param buff: buffer
00151 @type buff: StringIO
00152 """
00153 try:
00154 buff.write(_struct_i.pack(self.aresp))
00155 except struct.error, se: self._check_types(se)
00156 except TypeError, te: self._check_types(te)
00157
00158 def deserialize(self, str):
00159 """
00160 unpack serialized message in str into this message instance
00161 @param str: byte array of serialized message
00162 @type str: str
00163 """
00164 try:
00165 end = 0
00166 start = end
00167 end += 4
00168 (self.aresp,) = _struct_i.unpack(str[start:end])
00169 return self
00170 except struct.error, e:
00171 raise roslib.message.DeserializationError(e)
00172
00173
00174 def serialize_numpy(self, buff, numpy):
00175 """
00176 serialize message with numpy array types into buffer
00177 @param buff: buffer
00178 @type buff: StringIO
00179 @param numpy: numpy python module
00180 @type numpy module
00181 """
00182 try:
00183 buff.write(_struct_i.pack(self.aresp))
00184 except struct.error, se: self._check_types(se)
00185 except TypeError, te: self._check_types(te)
00186
00187 def deserialize_numpy(self, str, numpy):
00188 """
00189 unpack serialized message in str into this message instance using numpy for array types
00190 @param str: byte array of serialized message
00191 @type str: str
00192 @param numpy: numpy python module
00193 @type numpy: module
00194 """
00195 try:
00196 end = 0
00197 start = end
00198 end += 4
00199 (self.aresp,) = _struct_i.unpack(str[start:end])
00200 return self
00201 except struct.error, e:
00202 raise roslib.message.DeserializationError(e)
00203
00204 _struct_I = roslib.message.struct_I
00205 _struct_i = struct.Struct("<i")
00206 class RossrvA(roslib.message.ServiceDefinition):
00207 _type = 'test_rosmsg/RossrvA'
00208 _md5sum = '76c968b761b29d4bcc0a15cf4316a1e7'
00209 _request_class = RossrvARequest
00210 _response_class = RossrvAResponse