$search
00001 """autogenerated by genmsg_py from LookupTransformActionResult.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import tf2_msgs.msg 00009 import std_msgs.msg 00010 00011 class LookupTransformActionResult(roslib.message.Message): 00012 _md5sum = "ac26ce75a41384fa8bb4dc10f491ab90" 00013 _type = "tf2_msgs/LookupTransformActionResult" 00014 _has_header = True #flag to mark the presence of a Header object 00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00016 00017 Header header 00018 actionlib_msgs/GoalStatus status 00019 LookupTransformResult result 00020 00021 ================================================================================ 00022 MSG: std_msgs/Header 00023 # Standard metadata for higher-level stamped data types. 00024 # This is generally used to communicate timestamped data 00025 # in a particular coordinate frame. 00026 # 00027 # sequence ID: consecutively increasing ID 00028 uint32 seq 00029 #Two-integer timestamp that is expressed as: 00030 # * stamp.secs: seconds (stamp_secs) since epoch 00031 # * stamp.nsecs: nanoseconds since stamp_secs 00032 # time-handling sugar is provided by the client library 00033 time stamp 00034 #Frame this data is associated with 00035 # 0: no frame 00036 # 1: global frame 00037 string frame_id 00038 00039 ================================================================================ 00040 MSG: actionlib_msgs/GoalStatus 00041 GoalID goal_id 00042 uint8 status 00043 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00044 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00045 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00046 # and has since completed its execution (Terminal State) 00047 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00048 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00049 # to some failure (Terminal State) 00050 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00051 # because the goal was unattainable or invalid (Terminal State) 00052 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00053 # and has not yet completed execution 00054 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00055 # but the action server has not yet confirmed that the goal is canceled 00056 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00057 # and was successfully cancelled (Terminal State) 00058 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00059 # sent over the wire by an action server 00060 00061 #Allow for the user to associate a string with GoalStatus for debugging 00062 string text 00063 00064 00065 ================================================================================ 00066 MSG: actionlib_msgs/GoalID 00067 # The stamp should store the time at which this goal was requested. 00068 # It is used by an action server when it tries to preempt all 00069 # goals that were requested before a certain time 00070 time stamp 00071 00072 # The id provides a way to associate feedback and 00073 # result message with specific goal requests. The id 00074 # specified must be unique. 00075 string id 00076 00077 00078 ================================================================================ 00079 MSG: tf2_msgs/LookupTransformResult 00080 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00081 geometry_msgs/TransformStamped transform 00082 tf2_msgs/TF2Error error 00083 00084 ================================================================================ 00085 MSG: geometry_msgs/TransformStamped 00086 # This expresses a transform from coordinate frame header.frame_id 00087 # to the coordinate frame child_frame_id 00088 # 00089 # This message is mostly used by the 00090 # <a href="http://www.ros.org/wiki/tf">tf</a> package. 00091 # See it's documentation for more information. 00092 00093 Header header 00094 string child_frame_id # the frame id of the child frame 00095 Transform transform 00096 00097 ================================================================================ 00098 MSG: geometry_msgs/Transform 00099 # This represents the transform between two coordinate frames in free space. 00100 00101 Vector3 translation 00102 Quaternion rotation 00103 00104 ================================================================================ 00105 MSG: geometry_msgs/Vector3 00106 # This represents a vector in free space. 00107 00108 float64 x 00109 float64 y 00110 float64 z 00111 ================================================================================ 00112 MSG: geometry_msgs/Quaternion 00113 # This represents an orientation in free space in quaternion form. 00114 00115 float64 x 00116 float64 y 00117 float64 z 00118 float64 w 00119 00120 ================================================================================ 00121 MSG: tf2_msgs/TF2Error 00122 uint8 NO_ERROR = 0 00123 uint8 LOOKUP_ERROR = 1 00124 uint8 CONNECTIVITY_ERROR = 2 00125 uint8 EXTRAPOLATION_ERROR = 3 00126 uint8 INVALID_ARGUMENT_ERROR = 4 00127 uint8 TIMEOUT_ERROR = 5 00128 uint8 TRANSFORM_ERROR = 6 00129 00130 uint8 error 00131 string error_string 00132 00133 """ 00134 __slots__ = ['header','status','result'] 00135 _slot_types = ['Header','actionlib_msgs/GoalStatus','tf2_msgs/LookupTransformResult'] 00136 00137 def __init__(self, *args, **kwds): 00138 """ 00139 Constructor. Any message fields that are implicitly/explicitly 00140 set to None will be assigned a default value. The recommend 00141 use is keyword arguments as this is more robust to future message 00142 changes. You cannot mix in-order arguments and keyword arguments. 00143 00144 The available fields are: 00145 header,status,result 00146 00147 @param args: complete set of field values, in .msg order 00148 @param kwds: use keyword arguments corresponding to message field names 00149 to set specific fields. 00150 """ 00151 if args or kwds: 00152 super(LookupTransformActionResult, self).__init__(*args, **kwds) 00153 #message fields cannot be None, assign default values for those that are 00154 if self.header is None: 00155 self.header = std_msgs.msg._Header.Header() 00156 if self.status is None: 00157 self.status = actionlib_msgs.msg.GoalStatus() 00158 if self.result is None: 00159 self.result = tf2_msgs.msg.LookupTransformResult() 00160 else: 00161 self.header = std_msgs.msg._Header.Header() 00162 self.status = actionlib_msgs.msg.GoalStatus() 00163 self.result = tf2_msgs.msg.LookupTransformResult() 00164 00165 def _get_types(self): 00166 """ 00167 internal API method 00168 """ 00169 return self._slot_types 00170 00171 def serialize(self, buff): 00172 """ 00173 serialize message into buffer 00174 @param buff: buffer 00175 @type buff: StringIO 00176 """ 00177 try: 00178 _x = self 00179 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00180 _x = self.header.frame_id 00181 length = len(_x) 00182 buff.write(struct.pack('<I%ss'%length, length, _x)) 00183 _x = self 00184 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00185 _x = self.status.goal_id.id 00186 length = len(_x) 00187 buff.write(struct.pack('<I%ss'%length, length, _x)) 00188 buff.write(_struct_B.pack(self.status.status)) 00189 _x = self.status.text 00190 length = len(_x) 00191 buff.write(struct.pack('<I%ss'%length, length, _x)) 00192 _x = self 00193 buff.write(_struct_3I.pack(_x.result.transform.header.seq, _x.result.transform.header.stamp.secs, _x.result.transform.header.stamp.nsecs)) 00194 _x = self.result.transform.header.frame_id 00195 length = len(_x) 00196 buff.write(struct.pack('<I%ss'%length, length, _x)) 00197 _x = self.result.transform.child_frame_id 00198 length = len(_x) 00199 buff.write(struct.pack('<I%ss'%length, length, _x)) 00200 _x = self 00201 buff.write(_struct_7dB.pack(_x.result.transform.transform.translation.x, _x.result.transform.transform.translation.y, _x.result.transform.transform.translation.z, _x.result.transform.transform.rotation.x, _x.result.transform.transform.rotation.y, _x.result.transform.transform.rotation.z, _x.result.transform.transform.rotation.w, _x.result.error.error)) 00202 _x = self.result.error.error_string 00203 length = len(_x) 00204 buff.write(struct.pack('<I%ss'%length, length, _x)) 00205 except struct.error as se: self._check_types(se) 00206 except TypeError as te: self._check_types(te) 00207 00208 def deserialize(self, str): 00209 """ 00210 unpack serialized message in str into this message instance 00211 @param str: byte array of serialized message 00212 @type str: str 00213 """ 00214 try: 00215 if self.header is None: 00216 self.header = std_msgs.msg._Header.Header() 00217 if self.status is None: 00218 self.status = actionlib_msgs.msg.GoalStatus() 00219 if self.result is None: 00220 self.result = tf2_msgs.msg.LookupTransformResult() 00221 end = 0 00222 _x = self 00223 start = end 00224 end += 12 00225 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00226 start = end 00227 end += 4 00228 (length,) = _struct_I.unpack(str[start:end]) 00229 start = end 00230 end += length 00231 self.header.frame_id = str[start:end] 00232 _x = self 00233 start = end 00234 end += 8 00235 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00236 start = end 00237 end += 4 00238 (length,) = _struct_I.unpack(str[start:end]) 00239 start = end 00240 end += length 00241 self.status.goal_id.id = str[start:end] 00242 start = end 00243 end += 1 00244 (self.status.status,) = _struct_B.unpack(str[start:end]) 00245 start = end 00246 end += 4 00247 (length,) = _struct_I.unpack(str[start:end]) 00248 start = end 00249 end += length 00250 self.status.text = str[start:end] 00251 _x = self 00252 start = end 00253 end += 12 00254 (_x.result.transform.header.seq, _x.result.transform.header.stamp.secs, _x.result.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00255 start = end 00256 end += 4 00257 (length,) = _struct_I.unpack(str[start:end]) 00258 start = end 00259 end += length 00260 self.result.transform.header.frame_id = 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.result.transform.child_frame_id = str[start:end] 00267 _x = self 00268 start = end 00269 end += 57 00270 (_x.result.transform.transform.translation.x, _x.result.transform.transform.translation.y, _x.result.transform.transform.translation.z, _x.result.transform.transform.rotation.x, _x.result.transform.transform.rotation.y, _x.result.transform.transform.rotation.z, _x.result.transform.transform.rotation.w, _x.result.error.error,) = _struct_7dB.unpack(str[start:end]) 00271 start = end 00272 end += 4 00273 (length,) = _struct_I.unpack(str[start:end]) 00274 start = end 00275 end += length 00276 self.result.error.error_string = str[start:end] 00277 return self 00278 except struct.error as e: 00279 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00280 00281 00282 def serialize_numpy(self, buff, numpy): 00283 """ 00284 serialize message with numpy array types into buffer 00285 @param buff: buffer 00286 @type buff: StringIO 00287 @param numpy: numpy python module 00288 @type numpy module 00289 """ 00290 try: 00291 _x = self 00292 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00293 _x = self.header.frame_id 00294 length = len(_x) 00295 buff.write(struct.pack('<I%ss'%length, length, _x)) 00296 _x = self 00297 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00298 _x = self.status.goal_id.id 00299 length = len(_x) 00300 buff.write(struct.pack('<I%ss'%length, length, _x)) 00301 buff.write(_struct_B.pack(self.status.status)) 00302 _x = self.status.text 00303 length = len(_x) 00304 buff.write(struct.pack('<I%ss'%length, length, _x)) 00305 _x = self 00306 buff.write(_struct_3I.pack(_x.result.transform.header.seq, _x.result.transform.header.stamp.secs, _x.result.transform.header.stamp.nsecs)) 00307 _x = self.result.transform.header.frame_id 00308 length = len(_x) 00309 buff.write(struct.pack('<I%ss'%length, length, _x)) 00310 _x = self.result.transform.child_frame_id 00311 length = len(_x) 00312 buff.write(struct.pack('<I%ss'%length, length, _x)) 00313 _x = self 00314 buff.write(_struct_7dB.pack(_x.result.transform.transform.translation.x, _x.result.transform.transform.translation.y, _x.result.transform.transform.translation.z, _x.result.transform.transform.rotation.x, _x.result.transform.transform.rotation.y, _x.result.transform.transform.rotation.z, _x.result.transform.transform.rotation.w, _x.result.error.error)) 00315 _x = self.result.error.error_string 00316 length = len(_x) 00317 buff.write(struct.pack('<I%ss'%length, length, _x)) 00318 except struct.error as se: self._check_types(se) 00319 except TypeError as te: self._check_types(te) 00320 00321 def deserialize_numpy(self, str, numpy): 00322 """ 00323 unpack serialized message in str into this message instance using numpy for array types 00324 @param str: byte array of serialized message 00325 @type str: str 00326 @param numpy: numpy python module 00327 @type numpy: module 00328 """ 00329 try: 00330 if self.header is None: 00331 self.header = std_msgs.msg._Header.Header() 00332 if self.status is None: 00333 self.status = actionlib_msgs.msg.GoalStatus() 00334 if self.result is None: 00335 self.result = tf2_msgs.msg.LookupTransformResult() 00336 end = 0 00337 _x = self 00338 start = end 00339 end += 12 00340 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00341 start = end 00342 end += 4 00343 (length,) = _struct_I.unpack(str[start:end]) 00344 start = end 00345 end += length 00346 self.header.frame_id = str[start:end] 00347 _x = self 00348 start = end 00349 end += 8 00350 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00351 start = end 00352 end += 4 00353 (length,) = _struct_I.unpack(str[start:end]) 00354 start = end 00355 end += length 00356 self.status.goal_id.id = str[start:end] 00357 start = end 00358 end += 1 00359 (self.status.status,) = _struct_B.unpack(str[start:end]) 00360 start = end 00361 end += 4 00362 (length,) = _struct_I.unpack(str[start:end]) 00363 start = end 00364 end += length 00365 self.status.text = str[start:end] 00366 _x = self 00367 start = end 00368 end += 12 00369 (_x.result.transform.header.seq, _x.result.transform.header.stamp.secs, _x.result.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00370 start = end 00371 end += 4 00372 (length,) = _struct_I.unpack(str[start:end]) 00373 start = end 00374 end += length 00375 self.result.transform.header.frame_id = str[start:end] 00376 start = end 00377 end += 4 00378 (length,) = _struct_I.unpack(str[start:end]) 00379 start = end 00380 end += length 00381 self.result.transform.child_frame_id = str[start:end] 00382 _x = self 00383 start = end 00384 end += 57 00385 (_x.result.transform.transform.translation.x, _x.result.transform.transform.translation.y, _x.result.transform.transform.translation.z, _x.result.transform.transform.rotation.x, _x.result.transform.transform.rotation.y, _x.result.transform.transform.rotation.z, _x.result.transform.transform.rotation.w, _x.result.error.error,) = _struct_7dB.unpack(str[start:end]) 00386 start = end 00387 end += 4 00388 (length,) = _struct_I.unpack(str[start:end]) 00389 start = end 00390 end += length 00391 self.result.error.error_string = str[start:end] 00392 return self 00393 except struct.error as e: 00394 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00395 00396 _struct_I = roslib.message.struct_I 00397 _struct_3I = struct.Struct("<3I") 00398 _struct_B = struct.Struct("<B") 00399 _struct_2I = struct.Struct("<2I") 00400 _struct_7dB = struct.Struct("<7dB")