$search
00001 """autogenerated by genmsg_py from BBMoveRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 00007 class BBMoveRequest(roslib.message.Message): 00008 _md5sum = "258ee9bd984fca3e863d2c8404dc39e3" 00009 _type = "srs_assisted_detection/BBMoveRequest" 00010 _has_header = False #flag to mark the presence of a Header object 00011 _full_text = """ 00012 float32 l 00013 float32 w 00014 float32 h 00015 00016 geometry_msgs/Pose pose 00017 00018 ================================================================================ 00019 MSG: geometry_msgs/Pose 00020 # A representation of pose in free space, composed of postion and orientation. 00021 Point position 00022 Quaternion orientation 00023 00024 ================================================================================ 00025 MSG: geometry_msgs/Point 00026 # This contains the position of a point in free space 00027 float64 x 00028 float64 y 00029 float64 z 00030 00031 ================================================================================ 00032 MSG: geometry_msgs/Quaternion 00033 # This represents an orientation in free space in quaternion form. 00034 00035 float64 x 00036 float64 y 00037 float64 z 00038 float64 w 00039 00040 """ 00041 __slots__ = ['l','w','h','pose'] 00042 _slot_types = ['float32','float32','float32','geometry_msgs/Pose'] 00043 00044 def __init__(self, *args, **kwds): 00045 """ 00046 Constructor. Any message fields that are implicitly/explicitly 00047 set to None will be assigned a default value. The recommend 00048 use is keyword arguments as this is more robust to future message 00049 changes. You cannot mix in-order arguments and keyword arguments. 00050 00051 The available fields are: 00052 l,w,h,pose 00053 00054 @param args: complete set of field values, in .msg order 00055 @param kwds: use keyword arguments corresponding to message field names 00056 to set specific fields. 00057 """ 00058 if args or kwds: 00059 super(BBMoveRequest, self).__init__(*args, **kwds) 00060 #message fields cannot be None, assign default values for those that are 00061 if self.l is None: 00062 self.l = 0. 00063 if self.w is None: 00064 self.w = 0. 00065 if self.h is None: 00066 self.h = 0. 00067 if self.pose is None: 00068 self.pose = geometry_msgs.msg.Pose() 00069 else: 00070 self.l = 0. 00071 self.w = 0. 00072 self.h = 0. 00073 self.pose = geometry_msgs.msg.Pose() 00074 00075 def _get_types(self): 00076 """ 00077 internal API method 00078 """ 00079 return self._slot_types 00080 00081 def serialize(self, buff): 00082 """ 00083 serialize message into buffer 00084 @param buff: buffer 00085 @type buff: StringIO 00086 """ 00087 try: 00088 _x = self 00089 buff.write(_struct_3f7d.pack(_x.l, _x.w, _x.h, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w)) 00090 except struct.error as se: self._check_types(se) 00091 except TypeError as te: self._check_types(te) 00092 00093 def deserialize(self, str): 00094 """ 00095 unpack serialized message in str into this message instance 00096 @param str: byte array of serialized message 00097 @type str: str 00098 """ 00099 try: 00100 if self.pose is None: 00101 self.pose = geometry_msgs.msg.Pose() 00102 end = 0 00103 _x = self 00104 start = end 00105 end += 68 00106 (_x.l, _x.w, _x.h, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w,) = _struct_3f7d.unpack(str[start:end]) 00107 return self 00108 except struct.error as e: 00109 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00110 00111 00112 def serialize_numpy(self, buff, numpy): 00113 """ 00114 serialize message with numpy array types into buffer 00115 @param buff: buffer 00116 @type buff: StringIO 00117 @param numpy: numpy python module 00118 @type numpy module 00119 """ 00120 try: 00121 _x = self 00122 buff.write(_struct_3f7d.pack(_x.l, _x.w, _x.h, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w)) 00123 except struct.error as se: self._check_types(se) 00124 except TypeError as te: self._check_types(te) 00125 00126 def deserialize_numpy(self, str, numpy): 00127 """ 00128 unpack serialized message in str into this message instance using numpy for array types 00129 @param str: byte array of serialized message 00130 @type str: str 00131 @param numpy: numpy python module 00132 @type numpy: module 00133 """ 00134 try: 00135 if self.pose is None: 00136 self.pose = geometry_msgs.msg.Pose() 00137 end = 0 00138 _x = self 00139 start = end 00140 end += 68 00141 (_x.l, _x.w, _x.h, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w,) = _struct_3f7d.unpack(str[start:end]) 00142 return self 00143 except struct.error as e: 00144 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00145 00146 _struct_I = roslib.message.struct_I 00147 _struct_3f7d = struct.Struct("<3f7d") 00148 """autogenerated by genmsg_py from BBMoveResponse.msg. Do not edit.""" 00149 import roslib.message 00150 import struct 00151 00152 import std_msgs.msg 00153 00154 class BBMoveResponse(roslib.message.Message): 00155 _md5sum = "d8c2dd3109bf1dc2423499244e4009cf" 00156 _type = "srs_assisted_detection/BBMoveResponse" 00157 _has_header = False #flag to mark the presence of a Header object 00158 _full_text = """ 00159 std_msgs/String message 00160 00161 00162 00163 ================================================================================ 00164 MSG: std_msgs/String 00165 string data 00166 00167 """ 00168 __slots__ = ['message'] 00169 _slot_types = ['std_msgs/String'] 00170 00171 def __init__(self, *args, **kwds): 00172 """ 00173 Constructor. Any message fields that are implicitly/explicitly 00174 set to None will be assigned a default value. The recommend 00175 use is keyword arguments as this is more robust to future message 00176 changes. You cannot mix in-order arguments and keyword arguments. 00177 00178 The available fields are: 00179 message 00180 00181 @param args: complete set of field values, in .msg order 00182 @param kwds: use keyword arguments corresponding to message field names 00183 to set specific fields. 00184 """ 00185 if args or kwds: 00186 super(BBMoveResponse, self).__init__(*args, **kwds) 00187 #message fields cannot be None, assign default values for those that are 00188 if self.message is None: 00189 self.message = std_msgs.msg.String() 00190 else: 00191 self.message = std_msgs.msg.String() 00192 00193 def _get_types(self): 00194 """ 00195 internal API method 00196 """ 00197 return self._slot_types 00198 00199 def serialize(self, buff): 00200 """ 00201 serialize message into buffer 00202 @param buff: buffer 00203 @type buff: StringIO 00204 """ 00205 try: 00206 _x = self.message.data 00207 length = len(_x) 00208 buff.write(struct.pack('<I%ss'%length, length, _x)) 00209 except struct.error as se: self._check_types(se) 00210 except TypeError as te: self._check_types(te) 00211 00212 def deserialize(self, str): 00213 """ 00214 unpack serialized message in str into this message instance 00215 @param str: byte array of serialized message 00216 @type str: str 00217 """ 00218 try: 00219 if self.message is None: 00220 self.message = std_msgs.msg.String() 00221 end = 0 00222 start = end 00223 end += 4 00224 (length,) = _struct_I.unpack(str[start:end]) 00225 start = end 00226 end += length 00227 self.message.data = str[start:end] 00228 return self 00229 except struct.error as e: 00230 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00231 00232 00233 def serialize_numpy(self, buff, numpy): 00234 """ 00235 serialize message with numpy array types into buffer 00236 @param buff: buffer 00237 @type buff: StringIO 00238 @param numpy: numpy python module 00239 @type numpy module 00240 """ 00241 try: 00242 _x = self.message.data 00243 length = len(_x) 00244 buff.write(struct.pack('<I%ss'%length, length, _x)) 00245 except struct.error as se: self._check_types(se) 00246 except TypeError as te: self._check_types(te) 00247 00248 def deserialize_numpy(self, str, numpy): 00249 """ 00250 unpack serialized message in str into this message instance using numpy for array types 00251 @param str: byte array of serialized message 00252 @type str: str 00253 @param numpy: numpy python module 00254 @type numpy: module 00255 """ 00256 try: 00257 if self.message is None: 00258 self.message = std_msgs.msg.String() 00259 end = 0 00260 start = end 00261 end += 4 00262 (length,) = _struct_I.unpack(str[start:end]) 00263 start = end 00264 end += length 00265 self.message.data = str[start:end] 00266 return self 00267 except struct.error as e: 00268 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00269 00270 _struct_I = roslib.message.struct_I 00271 class BBMove(roslib.message.ServiceDefinition): 00272 _type = 'srs_assisted_detection/BBMove' 00273 _md5sum = '8bab7599681358fd0acda8702e755e7f' 00274 _request_class = BBMoveRequest 00275 _response_class = BBMoveResponse