00001 """autogenerated by genmsg_py from SetPositionRequest.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class SetPositionRequest(roslib.message.Message):
00007 _md5sum = "c0616c0926ce289f15713c2df1d4fb0f"
00008 _type = "fast_plane_detection/SetPositionRequest"
00009 _has_header = False
00010 _full_text = """float64 x
00011 float64 y
00012 float64 z
00013 int32 transform
00014 int32 width
00015 int32 height
00016
00017 """
00018 __slots__ = ['x','y','z','transform','width','height']
00019 _slot_types = ['float64','float64','float64','int32','int32','int32']
00020
00021 def __init__(self, *args, **kwds):
00022 """
00023 Constructor. Any message fields that are implicitly/explicitly
00024 set to None will be assigned a default value. The recommend
00025 use is keyword arguments as this is more robust to future message
00026 changes. You cannot mix in-order arguments and keyword arguments.
00027
00028 The available fields are:
00029 x,y,z,transform,width,height
00030
00031 @param args: complete set of field values, in .msg order
00032 @param kwds: use keyword arguments corresponding to message field names
00033 to set specific fields.
00034 """
00035 if args or kwds:
00036 super(SetPositionRequest, self).__init__(*args, **kwds)
00037
00038 if self.x is None:
00039 self.x = 0.
00040 if self.y is None:
00041 self.y = 0.
00042 if self.z is None:
00043 self.z = 0.
00044 if self.transform is None:
00045 self.transform = 0
00046 if self.width is None:
00047 self.width = 0
00048 if self.height is None:
00049 self.height = 0
00050 else:
00051 self.x = 0.
00052 self.y = 0.
00053 self.z = 0.
00054 self.transform = 0
00055 self.width = 0
00056 self.height = 0
00057
00058 def _get_types(self):
00059 """
00060 internal API method
00061 """
00062 return self._slot_types
00063
00064 def serialize(self, buff):
00065 """
00066 serialize message into buffer
00067 @param buff: buffer
00068 @type buff: StringIO
00069 """
00070 try:
00071 _x = self
00072 buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00073 except struct.error, se: self._check_types(se)
00074 except TypeError, te: self._check_types(te)
00075
00076 def deserialize(self, str):
00077 """
00078 unpack serialized message in str into this message instance
00079 @param str: byte array of serialized message
00080 @type str: str
00081 """
00082 try:
00083 end = 0
00084 _x = self
00085 start = end
00086 end += 36
00087 (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
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 _x = self
00103 buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00104 except struct.error, se: self._check_types(se)
00105 except TypeError, te: self._check_types(te)
00106
00107 def deserialize_numpy(self, str, numpy):
00108 """
00109 unpack serialized message in str into this message instance using numpy for array types
00110 @param str: byte array of serialized message
00111 @type str: str
00112 @param numpy: numpy python module
00113 @type numpy: module
00114 """
00115 try:
00116 end = 0
00117 _x = self
00118 start = end
00119 end += 36
00120 (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00121 return self
00122 except struct.error, e:
00123 raise roslib.message.DeserializationError(e)
00124
00125 _struct_I = roslib.message.struct_I
00126 _struct_3d3i = struct.Struct("<3d3i")
00127 """autogenerated by genmsg_py from SetPositionResponse.msg. Do not edit."""
00128 import roslib.message
00129 import struct
00130
00131
00132 class SetPositionResponse(roslib.message.Message):
00133 _md5sum = "c0616c0926ce289f15713c2df1d4fb0f"
00134 _type = "fast_plane_detection/SetPositionResponse"
00135 _has_header = False
00136 _full_text = """float64 x
00137 float64 y
00138 float64 z
00139 int32 transform
00140 int32 width
00141 int32 height
00142
00143
00144 """
00145 __slots__ = ['x','y','z','transform','width','height']
00146 _slot_types = ['float64','float64','float64','int32','int32','int32']
00147
00148 def __init__(self, *args, **kwds):
00149 """
00150 Constructor. Any message fields that are implicitly/explicitly
00151 set to None will be assigned a default value. The recommend
00152 use is keyword arguments as this is more robust to future message
00153 changes. You cannot mix in-order arguments and keyword arguments.
00154
00155 The available fields are:
00156 x,y,z,transform,width,height
00157
00158 @param args: complete set of field values, in .msg order
00159 @param kwds: use keyword arguments corresponding to message field names
00160 to set specific fields.
00161 """
00162 if args or kwds:
00163 super(SetPositionResponse, self).__init__(*args, **kwds)
00164
00165 if self.x is None:
00166 self.x = 0.
00167 if self.y is None:
00168 self.y = 0.
00169 if self.z is None:
00170 self.z = 0.
00171 if self.transform is None:
00172 self.transform = 0
00173 if self.width is None:
00174 self.width = 0
00175 if self.height is None:
00176 self.height = 0
00177 else:
00178 self.x = 0.
00179 self.y = 0.
00180 self.z = 0.
00181 self.transform = 0
00182 self.width = 0
00183 self.height = 0
00184
00185 def _get_types(self):
00186 """
00187 internal API method
00188 """
00189 return self._slot_types
00190
00191 def serialize(self, buff):
00192 """
00193 serialize message into buffer
00194 @param buff: buffer
00195 @type buff: StringIO
00196 """
00197 try:
00198 _x = self
00199 buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00200 except struct.error, se: self._check_types(se)
00201 except TypeError, te: self._check_types(te)
00202
00203 def deserialize(self, str):
00204 """
00205 unpack serialized message in str into this message instance
00206 @param str: byte array of serialized message
00207 @type str: str
00208 """
00209 try:
00210 end = 0
00211 _x = self
00212 start = end
00213 end += 36
00214 (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00215 return self
00216 except struct.error, e:
00217 raise roslib.message.DeserializationError(e)
00218
00219
00220 def serialize_numpy(self, buff, numpy):
00221 """
00222 serialize message with numpy array types into buffer
00223 @param buff: buffer
00224 @type buff: StringIO
00225 @param numpy: numpy python module
00226 @type numpy module
00227 """
00228 try:
00229 _x = self
00230 buff.write(_struct_3d3i.pack(_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height))
00231 except struct.error, se: self._check_types(se)
00232 except TypeError, te: self._check_types(te)
00233
00234 def deserialize_numpy(self, str, numpy):
00235 """
00236 unpack serialized message in str into this message instance using numpy for array types
00237 @param str: byte array of serialized message
00238 @type str: str
00239 @param numpy: numpy python module
00240 @type numpy: module
00241 """
00242 try:
00243 end = 0
00244 _x = self
00245 start = end
00246 end += 36
00247 (_x.x, _x.y, _x.z, _x.transform, _x.width, _x.height,) = _struct_3d3i.unpack(str[start:end])
00248 return self
00249 except struct.error, e:
00250 raise roslib.message.DeserializationError(e)
00251
00252 _struct_I = roslib.message.struct_I
00253 _struct_3d3i = struct.Struct("<3d3i")
00254 class SetPosition(roslib.message.ServiceDefinition):
00255 _type = 'fast_plane_detection/SetPosition'
00256 _md5sum = '98bf3204c7beb0638717e3f7fd31933c'
00257 _request_class = SetPositionRequest
00258 _response_class = SetPositionResponse