$search
00001 """autogenerated by genmsg_py from FindFiducialActionResult.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import turtlebot_actions.msg 00007 import roslib.rostime 00008 import actionlib_msgs.msg 00009 import std_msgs.msg 00010 00011 class FindFiducialActionResult(roslib.message.Message): 00012 _md5sum = "6d0edd723ba2f2ae6bcfa76c98c311f7" 00013 _type = "turtlebot_actions/FindFiducialActionResult" 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 FindFiducialResult 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: turtlebot_actions/FindFiducialResult 00080 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00081 #result definition 00082 geometry_msgs/PoseStamped pose 00083 00084 ================================================================================ 00085 MSG: geometry_msgs/PoseStamped 00086 # A Pose with reference coordinate frame and timestamp 00087 Header header 00088 Pose pose 00089 00090 ================================================================================ 00091 MSG: geometry_msgs/Pose 00092 # A representation of pose in free space, composed of postion and orientation. 00093 Point position 00094 Quaternion orientation 00095 00096 ================================================================================ 00097 MSG: geometry_msgs/Point 00098 # This contains the position of a point in free space 00099 float64 x 00100 float64 y 00101 float64 z 00102 00103 ================================================================================ 00104 MSG: geometry_msgs/Quaternion 00105 # This represents an orientation in free space in quaternion form. 00106 00107 float64 x 00108 float64 y 00109 float64 z 00110 float64 w 00111 00112 """ 00113 __slots__ = ['header','status','result'] 00114 _slot_types = ['Header','actionlib_msgs/GoalStatus','turtlebot_actions/FindFiducialResult'] 00115 00116 def __init__(self, *args, **kwds): 00117 """ 00118 Constructor. Any message fields that are implicitly/explicitly 00119 set to None will be assigned a default value. The recommend 00120 use is keyword arguments as this is more robust to future message 00121 changes. You cannot mix in-order arguments and keyword arguments. 00122 00123 The available fields are: 00124 header,status,result 00125 00126 @param args: complete set of field values, in .msg order 00127 @param kwds: use keyword arguments corresponding to message field names 00128 to set specific fields. 00129 """ 00130 if args or kwds: 00131 super(FindFiducialActionResult, self).__init__(*args, **kwds) 00132 #message fields cannot be None, assign default values for those that are 00133 if self.header is None: 00134 self.header = std_msgs.msg._Header.Header() 00135 if self.status is None: 00136 self.status = actionlib_msgs.msg.GoalStatus() 00137 if self.result is None: 00138 self.result = turtlebot_actions.msg.FindFiducialResult() 00139 else: 00140 self.header = std_msgs.msg._Header.Header() 00141 self.status = actionlib_msgs.msg.GoalStatus() 00142 self.result = turtlebot_actions.msg.FindFiducialResult() 00143 00144 def _get_types(self): 00145 """ 00146 internal API method 00147 """ 00148 return self._slot_types 00149 00150 def serialize(self, buff): 00151 """ 00152 serialize message into buffer 00153 @param buff: buffer 00154 @type buff: StringIO 00155 """ 00156 try: 00157 _x = self 00158 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00159 _x = self.header.frame_id 00160 length = len(_x) 00161 buff.write(struct.pack('<I%ss'%length, length, _x)) 00162 _x = self 00163 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00164 _x = self.status.goal_id.id 00165 length = len(_x) 00166 buff.write(struct.pack('<I%ss'%length, length, _x)) 00167 buff.write(_struct_B.pack(self.status.status)) 00168 _x = self.status.text 00169 length = len(_x) 00170 buff.write(struct.pack('<I%ss'%length, length, _x)) 00171 _x = self 00172 buff.write(_struct_3I.pack(_x.result.pose.header.seq, _x.result.pose.header.stamp.secs, _x.result.pose.header.stamp.nsecs)) 00173 _x = self.result.pose.header.frame_id 00174 length = len(_x) 00175 buff.write(struct.pack('<I%ss'%length, length, _x)) 00176 _x = self 00177 buff.write(_struct_7d.pack(_x.result.pose.pose.position.x, _x.result.pose.pose.position.y, _x.result.pose.pose.position.z, _x.result.pose.pose.orientation.x, _x.result.pose.pose.orientation.y, _x.result.pose.pose.orientation.z, _x.result.pose.pose.orientation.w)) 00178 except struct.error as se: self._check_types(se) 00179 except TypeError as te: self._check_types(te) 00180 00181 def deserialize(self, str): 00182 """ 00183 unpack serialized message in str into this message instance 00184 @param str: byte array of serialized message 00185 @type str: str 00186 """ 00187 try: 00188 if self.header is None: 00189 self.header = std_msgs.msg._Header.Header() 00190 if self.status is None: 00191 self.status = actionlib_msgs.msg.GoalStatus() 00192 if self.result is None: 00193 self.result = turtlebot_actions.msg.FindFiducialResult() 00194 end = 0 00195 _x = self 00196 start = end 00197 end += 12 00198 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00199 start = end 00200 end += 4 00201 (length,) = _struct_I.unpack(str[start:end]) 00202 start = end 00203 end += length 00204 self.header.frame_id = str[start:end] 00205 _x = self 00206 start = end 00207 end += 8 00208 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00209 start = end 00210 end += 4 00211 (length,) = _struct_I.unpack(str[start:end]) 00212 start = end 00213 end += length 00214 self.status.goal_id.id = str[start:end] 00215 start = end 00216 end += 1 00217 (self.status.status,) = _struct_B.unpack(str[start:end]) 00218 start = end 00219 end += 4 00220 (length,) = _struct_I.unpack(str[start:end]) 00221 start = end 00222 end += length 00223 self.status.text = str[start:end] 00224 _x = self 00225 start = end 00226 end += 12 00227 (_x.result.pose.header.seq, _x.result.pose.header.stamp.secs, _x.result.pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00228 start = end 00229 end += 4 00230 (length,) = _struct_I.unpack(str[start:end]) 00231 start = end 00232 end += length 00233 self.result.pose.header.frame_id = str[start:end] 00234 _x = self 00235 start = end 00236 end += 56 00237 (_x.result.pose.pose.position.x, _x.result.pose.pose.position.y, _x.result.pose.pose.position.z, _x.result.pose.pose.orientation.x, _x.result.pose.pose.orientation.y, _x.result.pose.pose.orientation.z, _x.result.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00238 return self 00239 except struct.error as e: 00240 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00241 00242 00243 def serialize_numpy(self, buff, numpy): 00244 """ 00245 serialize message with numpy array types into buffer 00246 @param buff: buffer 00247 @type buff: StringIO 00248 @param numpy: numpy python module 00249 @type numpy module 00250 """ 00251 try: 00252 _x = self 00253 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00254 _x = self.header.frame_id 00255 length = len(_x) 00256 buff.write(struct.pack('<I%ss'%length, length, _x)) 00257 _x = self 00258 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00259 _x = self.status.goal_id.id 00260 length = len(_x) 00261 buff.write(struct.pack('<I%ss'%length, length, _x)) 00262 buff.write(_struct_B.pack(self.status.status)) 00263 _x = self.status.text 00264 length = len(_x) 00265 buff.write(struct.pack('<I%ss'%length, length, _x)) 00266 _x = self 00267 buff.write(_struct_3I.pack(_x.result.pose.header.seq, _x.result.pose.header.stamp.secs, _x.result.pose.header.stamp.nsecs)) 00268 _x = self.result.pose.header.frame_id 00269 length = len(_x) 00270 buff.write(struct.pack('<I%ss'%length, length, _x)) 00271 _x = self 00272 buff.write(_struct_7d.pack(_x.result.pose.pose.position.x, _x.result.pose.pose.position.y, _x.result.pose.pose.position.z, _x.result.pose.pose.orientation.x, _x.result.pose.pose.orientation.y, _x.result.pose.pose.orientation.z, _x.result.pose.pose.orientation.w)) 00273 except struct.error as se: self._check_types(se) 00274 except TypeError as te: self._check_types(te) 00275 00276 def deserialize_numpy(self, str, numpy): 00277 """ 00278 unpack serialized message in str into this message instance using numpy for array types 00279 @param str: byte array of serialized message 00280 @type str: str 00281 @param numpy: numpy python module 00282 @type numpy: module 00283 """ 00284 try: 00285 if self.header is None: 00286 self.header = std_msgs.msg._Header.Header() 00287 if self.status is None: 00288 self.status = actionlib_msgs.msg.GoalStatus() 00289 if self.result is None: 00290 self.result = turtlebot_actions.msg.FindFiducialResult() 00291 end = 0 00292 _x = self 00293 start = end 00294 end += 12 00295 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00296 start = end 00297 end += 4 00298 (length,) = _struct_I.unpack(str[start:end]) 00299 start = end 00300 end += length 00301 self.header.frame_id = str[start:end] 00302 _x = self 00303 start = end 00304 end += 8 00305 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00306 start = end 00307 end += 4 00308 (length,) = _struct_I.unpack(str[start:end]) 00309 start = end 00310 end += length 00311 self.status.goal_id.id = str[start:end] 00312 start = end 00313 end += 1 00314 (self.status.status,) = _struct_B.unpack(str[start:end]) 00315 start = end 00316 end += 4 00317 (length,) = _struct_I.unpack(str[start:end]) 00318 start = end 00319 end += length 00320 self.status.text = str[start:end] 00321 _x = self 00322 start = end 00323 end += 12 00324 (_x.result.pose.header.seq, _x.result.pose.header.stamp.secs, _x.result.pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00325 start = end 00326 end += 4 00327 (length,) = _struct_I.unpack(str[start:end]) 00328 start = end 00329 end += length 00330 self.result.pose.header.frame_id = str[start:end] 00331 _x = self 00332 start = end 00333 end += 56 00334 (_x.result.pose.pose.position.x, _x.result.pose.pose.position.y, _x.result.pose.pose.position.z, _x.result.pose.pose.orientation.x, _x.result.pose.pose.orientation.y, _x.result.pose.pose.orientation.z, _x.result.pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00335 return self 00336 except struct.error as e: 00337 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00338 00339 _struct_I = roslib.message.struct_I 00340 _struct_3I = struct.Struct("<3I") 00341 _struct_B = struct.Struct("<B") 00342 _struct_7d = struct.Struct("<7d") 00343 _struct_2I = struct.Struct("<2I")