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