$search
00001 """autogenerated by genmsg_py from ArmNavRemoveCollObjectsRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class ArmNavRemoveCollObjectsRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 """ 00012 __slots__ = [] 00013 _slot_types = [] 00014 00015 def __init__(self, *args, **kwds): 00016 """ 00017 Constructor. Any message fields that are implicitly/explicitly 00018 set to None will be assigned a default value. The recommend 00019 use is keyword arguments as this is more robust to future message 00020 changes. You cannot mix in-order arguments and keyword arguments. 00021 00022 The available fields are: 00023 00024 00025 @param args: complete set of field values, in .msg order 00026 @param kwds: use keyword arguments corresponding to message field names 00027 to set specific fields. 00028 """ 00029 if args or kwds: 00030 super(ArmNavRemoveCollObjectsRequest, self).__init__(*args, **kwds) 00031 00032 def _get_types(self): 00033 """ 00034 internal API method 00035 """ 00036 return self._slot_types 00037 00038 def serialize(self, buff): 00039 """ 00040 serialize message into buffer 00041 @param buff: buffer 00042 @type buff: StringIO 00043 """ 00044 try: 00045 pass 00046 except struct.error as se: self._check_types(se) 00047 except TypeError as te: self._check_types(te) 00048 00049 def deserialize(self, str): 00050 """ 00051 unpack serialized message in str into this message instance 00052 @param str: byte array of serialized message 00053 @type str: str 00054 """ 00055 try: 00056 end = 0 00057 return self 00058 except struct.error as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00060 00061 00062 def serialize_numpy(self, buff, numpy): 00063 """ 00064 serialize message with numpy array types into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 @param numpy: numpy python module 00068 @type numpy module 00069 """ 00070 try: 00071 pass 00072 except struct.error as se: self._check_types(se) 00073 except TypeError as te: self._check_types(te) 00074 00075 def deserialize_numpy(self, str, numpy): 00076 """ 00077 unpack serialized message in str into this message instance using numpy for array types 00078 @param str: byte array of serialized message 00079 @type str: str 00080 @param numpy: numpy python module 00081 @type numpy: module 00082 """ 00083 try: 00084 end = 0 00085 return self 00086 except struct.error as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from ArmNavRemoveCollObjectsResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 import geometry_msgs.msg 00095 import srs_assisted_arm_navigation_msgs.msg 00096 import std_msgs.msg 00097 00098 class ArmNavRemoveCollObjectsResponse(roslib.message.Message): 00099 _md5sum = "60f3515a4f43a52c1d9b2b6dddaf2949" 00100 _type = "srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsResponse" 00101 _has_header = False #flag to mark the presence of a Header object 00102 _full_text = """CollisionObject[] objects 00103 00104 00105 ================================================================================ 00106 MSG: srs_assisted_arm_navigation_msgs/CollisionObject 00107 string name 00108 string id 00109 geometry_msgs/PoseStamped pose 00110 geometry_msgs/Point bb_lwh 00111 bool allow_collision 00112 bool attached 00113 bool allow_pregrasps 00114 00115 ================================================================================ 00116 MSG: geometry_msgs/PoseStamped 00117 # A Pose with reference coordinate frame and timestamp 00118 Header header 00119 Pose pose 00120 00121 ================================================================================ 00122 MSG: std_msgs/Header 00123 # Standard metadata for higher-level stamped data types. 00124 # This is generally used to communicate timestamped data 00125 # in a particular coordinate frame. 00126 # 00127 # sequence ID: consecutively increasing ID 00128 uint32 seq 00129 #Two-integer timestamp that is expressed as: 00130 # * stamp.secs: seconds (stamp_secs) since epoch 00131 # * stamp.nsecs: nanoseconds since stamp_secs 00132 # time-handling sugar is provided by the client library 00133 time stamp 00134 #Frame this data is associated with 00135 # 0: no frame 00136 # 1: global frame 00137 string frame_id 00138 00139 ================================================================================ 00140 MSG: geometry_msgs/Pose 00141 # A representation of pose in free space, composed of postion and orientation. 00142 Point position 00143 Quaternion orientation 00144 00145 ================================================================================ 00146 MSG: geometry_msgs/Point 00147 # This contains the position of a point in free space 00148 float64 x 00149 float64 y 00150 float64 z 00151 00152 ================================================================================ 00153 MSG: geometry_msgs/Quaternion 00154 # This represents an orientation in free space in quaternion form. 00155 00156 float64 x 00157 float64 y 00158 float64 z 00159 float64 w 00160 00161 """ 00162 __slots__ = ['objects'] 00163 _slot_types = ['srs_assisted_arm_navigation_msgs/CollisionObject[]'] 00164 00165 def __init__(self, *args, **kwds): 00166 """ 00167 Constructor. Any message fields that are implicitly/explicitly 00168 set to None will be assigned a default value. The recommend 00169 use is keyword arguments as this is more robust to future message 00170 changes. You cannot mix in-order arguments and keyword arguments. 00171 00172 The available fields are: 00173 objects 00174 00175 @param args: complete set of field values, in .msg order 00176 @param kwds: use keyword arguments corresponding to message field names 00177 to set specific fields. 00178 """ 00179 if args or kwds: 00180 super(ArmNavRemoveCollObjectsResponse, self).__init__(*args, **kwds) 00181 #message fields cannot be None, assign default values for those that are 00182 if self.objects is None: 00183 self.objects = [] 00184 else: 00185 self.objects = [] 00186 00187 def _get_types(self): 00188 """ 00189 internal API method 00190 """ 00191 return self._slot_types 00192 00193 def serialize(self, buff): 00194 """ 00195 serialize message into buffer 00196 @param buff: buffer 00197 @type buff: StringIO 00198 """ 00199 try: 00200 length = len(self.objects) 00201 buff.write(_struct_I.pack(length)) 00202 for val1 in self.objects: 00203 _x = val1.name 00204 length = len(_x) 00205 buff.write(struct.pack('<I%ss'%length, length, _x)) 00206 _x = val1.id 00207 length = len(_x) 00208 buff.write(struct.pack('<I%ss'%length, length, _x)) 00209 _v1 = val1.pose 00210 _v2 = _v1.header 00211 buff.write(_struct_I.pack(_v2.seq)) 00212 _v3 = _v2.stamp 00213 _x = _v3 00214 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00215 _x = _v2.frame_id 00216 length = len(_x) 00217 buff.write(struct.pack('<I%ss'%length, length, _x)) 00218 _v4 = _v1.pose 00219 _v5 = _v4.position 00220 _x = _v5 00221 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00222 _v6 = _v4.orientation 00223 _x = _v6 00224 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00225 _v7 = val1.bb_lwh 00226 _x = _v7 00227 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00228 _x = val1 00229 buff.write(_struct_3B.pack(_x.allow_collision, _x.attached, _x.allow_pregrasps)) 00230 except struct.error as se: self._check_types(se) 00231 except TypeError as te: self._check_types(te) 00232 00233 def deserialize(self, str): 00234 """ 00235 unpack serialized message in str into this message instance 00236 @param str: byte array of serialized message 00237 @type str: str 00238 """ 00239 try: 00240 end = 0 00241 start = end 00242 end += 4 00243 (length,) = _struct_I.unpack(str[start:end]) 00244 self.objects = [] 00245 for i in range(0, length): 00246 val1 = srs_assisted_arm_navigation_msgs.msg.CollisionObject() 00247 start = end 00248 end += 4 00249 (length,) = _struct_I.unpack(str[start:end]) 00250 start = end 00251 end += length 00252 val1.name = str[start:end] 00253 start = end 00254 end += 4 00255 (length,) = _struct_I.unpack(str[start:end]) 00256 start = end 00257 end += length 00258 val1.id = str[start:end] 00259 _v8 = val1.pose 00260 _v9 = _v8.header 00261 start = end 00262 end += 4 00263 (_v9.seq,) = _struct_I.unpack(str[start:end]) 00264 _v10 = _v9.stamp 00265 _x = _v10 00266 start = end 00267 end += 8 00268 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00269 start = end 00270 end += 4 00271 (length,) = _struct_I.unpack(str[start:end]) 00272 start = end 00273 end += length 00274 _v9.frame_id = str[start:end] 00275 _v11 = _v8.pose 00276 _v12 = _v11.position 00277 _x = _v12 00278 start = end 00279 end += 24 00280 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00281 _v13 = _v11.orientation 00282 _x = _v13 00283 start = end 00284 end += 32 00285 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00286 _v14 = val1.bb_lwh 00287 _x = _v14 00288 start = end 00289 end += 24 00290 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00291 _x = val1 00292 start = end 00293 end += 3 00294 (_x.allow_collision, _x.attached, _x.allow_pregrasps,) = _struct_3B.unpack(str[start:end]) 00295 val1.allow_collision = bool(val1.allow_collision) 00296 val1.attached = bool(val1.attached) 00297 val1.allow_pregrasps = bool(val1.allow_pregrasps) 00298 self.objects.append(val1) 00299 return self 00300 except struct.error as e: 00301 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00302 00303 00304 def serialize_numpy(self, buff, numpy): 00305 """ 00306 serialize message with numpy array types into buffer 00307 @param buff: buffer 00308 @type buff: StringIO 00309 @param numpy: numpy python module 00310 @type numpy module 00311 """ 00312 try: 00313 length = len(self.objects) 00314 buff.write(_struct_I.pack(length)) 00315 for val1 in self.objects: 00316 _x = val1.name 00317 length = len(_x) 00318 buff.write(struct.pack('<I%ss'%length, length, _x)) 00319 _x = val1.id 00320 length = len(_x) 00321 buff.write(struct.pack('<I%ss'%length, length, _x)) 00322 _v15 = val1.pose 00323 _v16 = _v15.header 00324 buff.write(_struct_I.pack(_v16.seq)) 00325 _v17 = _v16.stamp 00326 _x = _v17 00327 buff.write(_struct_2I.pack(_x.secs, _x.nsecs)) 00328 _x = _v16.frame_id 00329 length = len(_x) 00330 buff.write(struct.pack('<I%ss'%length, length, _x)) 00331 _v18 = _v15.pose 00332 _v19 = _v18.position 00333 _x = _v19 00334 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00335 _v20 = _v18.orientation 00336 _x = _v20 00337 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w)) 00338 _v21 = val1.bb_lwh 00339 _x = _v21 00340 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z)) 00341 _x = val1 00342 buff.write(_struct_3B.pack(_x.allow_collision, _x.attached, _x.allow_pregrasps)) 00343 except struct.error as se: self._check_types(se) 00344 except TypeError as te: self._check_types(te) 00345 00346 def deserialize_numpy(self, str, numpy): 00347 """ 00348 unpack serialized message in str into this message instance using numpy for array types 00349 @param str: byte array of serialized message 00350 @type str: str 00351 @param numpy: numpy python module 00352 @type numpy: module 00353 """ 00354 try: 00355 end = 0 00356 start = end 00357 end += 4 00358 (length,) = _struct_I.unpack(str[start:end]) 00359 self.objects = [] 00360 for i in range(0, length): 00361 val1 = srs_assisted_arm_navigation_msgs.msg.CollisionObject() 00362 start = end 00363 end += 4 00364 (length,) = _struct_I.unpack(str[start:end]) 00365 start = end 00366 end += length 00367 val1.name = str[start:end] 00368 start = end 00369 end += 4 00370 (length,) = _struct_I.unpack(str[start:end]) 00371 start = end 00372 end += length 00373 val1.id = str[start:end] 00374 _v22 = val1.pose 00375 _v23 = _v22.header 00376 start = end 00377 end += 4 00378 (_v23.seq,) = _struct_I.unpack(str[start:end]) 00379 _v24 = _v23.stamp 00380 _x = _v24 00381 start = end 00382 end += 8 00383 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end]) 00384 start = end 00385 end += 4 00386 (length,) = _struct_I.unpack(str[start:end]) 00387 start = end 00388 end += length 00389 _v23.frame_id = str[start:end] 00390 _v25 = _v22.pose 00391 _v26 = _v25.position 00392 _x = _v26 00393 start = end 00394 end += 24 00395 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00396 _v27 = _v25.orientation 00397 _x = _v27 00398 start = end 00399 end += 32 00400 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end]) 00401 _v28 = val1.bb_lwh 00402 _x = _v28 00403 start = end 00404 end += 24 00405 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end]) 00406 _x = val1 00407 start = end 00408 end += 3 00409 (_x.allow_collision, _x.attached, _x.allow_pregrasps,) = _struct_3B.unpack(str[start:end]) 00410 val1.allow_collision = bool(val1.allow_collision) 00411 val1.attached = bool(val1.attached) 00412 val1.allow_pregrasps = bool(val1.allow_pregrasps) 00413 self.objects.append(val1) 00414 return self 00415 except struct.error as e: 00416 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00417 00418 _struct_I = roslib.message.struct_I 00419 _struct_3B = struct.Struct("<3B") 00420 _struct_4d = struct.Struct("<4d") 00421 _struct_2I = struct.Struct("<2I") 00422 _struct_3d = struct.Struct("<3d") 00423 class ArmNavRemoveCollObjects(roslib.message.ServiceDefinition): 00424 _type = 'srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjects' 00425 _md5sum = '60f3515a4f43a52c1d9b2b6dddaf2949' 00426 _request_class = ArmNavRemoveCollObjectsRequest 00427 _response_class = ArmNavRemoveCollObjectsResponse