00001 """autogenerated by genpy from turtlebot_block_manipulation/InteractiveBlockManipulationActionResult.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import turtlebot_block_manipulation.msg
00008 import geometry_msgs.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import std_msgs.msg
00012
00013 class InteractiveBlockManipulationActionResult(genpy.Message):
00014 _md5sum = "3d3e4da50890d607335059cdebae3e1d"
00015 _type = "turtlebot_block_manipulation/InteractiveBlockManipulationActionResult"
00016 _has_header = True
00017 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00018
00019 Header header
00020 actionlib_msgs/GoalStatus status
00021 InteractiveBlockManipulationResult result
00022
00023 ================================================================================
00024 MSG: std_msgs/Header
00025 # Standard metadata for higher-level stamped data types.
00026 # This is generally used to communicate timestamped data
00027 # in a particular coordinate frame.
00028 #
00029 # sequence ID: consecutively increasing ID
00030 uint32 seq
00031 #Two-integer timestamp that is expressed as:
00032 # * stamp.secs: seconds (stamp_secs) since epoch
00033 # * stamp.nsecs: nanoseconds since stamp_secs
00034 # time-handling sugar is provided by the client library
00035 time stamp
00036 #Frame this data is associated with
00037 # 0: no frame
00038 # 1: global frame
00039 string frame_id
00040
00041 ================================================================================
00042 MSG: actionlib_msgs/GoalStatus
00043 GoalID goal_id
00044 uint8 status
00045 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00046 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00047 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00048 # and has since completed its execution (Terminal State)
00049 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00050 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00051 # to some failure (Terminal State)
00052 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00053 # because the goal was unattainable or invalid (Terminal State)
00054 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00055 # and has not yet completed execution
00056 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00057 # but the action server has not yet confirmed that the goal is canceled
00058 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00059 # and was successfully cancelled (Terminal State)
00060 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00061 # sent over the wire by an action server
00062
00063 #Allow for the user to associate a string with GoalStatus for debugging
00064 string text
00065
00066
00067 ================================================================================
00068 MSG: actionlib_msgs/GoalID
00069 # The stamp should store the time at which this goal was requested.
00070 # It is used by an action server when it tries to preempt all
00071 # goals that were requested before a certain time
00072 time stamp
00073
00074 # The id provides a way to associate feedback and
00075 # result message with specific goal requests. The id
00076 # specified must be unique.
00077 string id
00078
00079
00080 ================================================================================
00081 MSG: turtlebot_block_manipulation/InteractiveBlockManipulationResult
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 #result definition
00084 geometry_msgs/Pose pickup_pose
00085 geometry_msgs/Pose place_pose
00086
00087 ================================================================================
00088 MSG: geometry_msgs/Pose
00089 # A representation of pose in free space, composed of postion and orientation.
00090 Point position
00091 Quaternion orientation
00092
00093 ================================================================================
00094 MSG: geometry_msgs/Point
00095 # This contains the position of a point in free space
00096 float64 x
00097 float64 y
00098 float64 z
00099
00100 ================================================================================
00101 MSG: geometry_msgs/Quaternion
00102 # This represents an orientation in free space in quaternion form.
00103
00104 float64 x
00105 float64 y
00106 float64 z
00107 float64 w
00108
00109 """
00110 __slots__ = ['header','status','result']
00111 _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','turtlebot_block_manipulation/InteractiveBlockManipulationResult']
00112
00113 def __init__(self, *args, **kwds):
00114 """
00115 Constructor. Any message fields that are implicitly/explicitly
00116 set to None will be assigned a default value. The recommend
00117 use is keyword arguments as this is more robust to future message
00118 changes. You cannot mix in-order arguments and keyword arguments.
00119
00120 The available fields are:
00121 header,status,result
00122
00123 :param args: complete set of field values, in .msg order
00124 :param kwds: use keyword arguments corresponding to message field names
00125 to set specific fields.
00126 """
00127 if args or kwds:
00128 super(InteractiveBlockManipulationActionResult, self).__init__(*args, **kwds)
00129
00130 if self.header is None:
00131 self.header = std_msgs.msg.Header()
00132 if self.status is None:
00133 self.status = actionlib_msgs.msg.GoalStatus()
00134 if self.result is None:
00135 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult()
00136 else:
00137 self.header = std_msgs.msg.Header()
00138 self.status = actionlib_msgs.msg.GoalStatus()
00139 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult()
00140
00141 def _get_types(self):
00142 """
00143 internal API method
00144 """
00145 return self._slot_types
00146
00147 def serialize(self, buff):
00148 """
00149 serialize message into buffer
00150 :param buff: buffer, ``StringIO``
00151 """
00152 try:
00153 _x = self
00154 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00155 _x = self.header.frame_id
00156 length = len(_x)
00157 if python3 or type(_x) == unicode:
00158 _x = _x.encode('utf-8')
00159 length = len(_x)
00160 buff.write(struct.pack('<I%ss'%length, length, _x))
00161 _x = self
00162 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00163 _x = self.status.goal_id.id
00164 length = len(_x)
00165 if python3 or type(_x) == unicode:
00166 _x = _x.encode('utf-8')
00167 length = len(_x)
00168 buff.write(struct.pack('<I%ss'%length, length, _x))
00169 buff.write(_struct_B.pack(self.status.status))
00170 _x = self.status.text
00171 length = len(_x)
00172 if python3 or type(_x) == unicode:
00173 _x = _x.encode('utf-8')
00174 length = len(_x)
00175 buff.write(struct.pack('<I%ss'%length, length, _x))
00176 _x = self
00177 buff.write(_struct_14d.pack(_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_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, ``str``
00185 """
00186 try:
00187 if self.header is None:
00188 self.header = std_msgs.msg.Header()
00189 if self.status is None:
00190 self.status = actionlib_msgs.msg.GoalStatus()
00191 if self.result is None:
00192 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult()
00193 end = 0
00194 _x = self
00195 start = end
00196 end += 12
00197 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00198 start = end
00199 end += 4
00200 (length,) = _struct_I.unpack(str[start:end])
00201 start = end
00202 end += length
00203 if python3:
00204 self.header.frame_id = str[start:end].decode('utf-8')
00205 else:
00206 self.header.frame_id = str[start:end]
00207 _x = self
00208 start = end
00209 end += 8
00210 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00211 start = end
00212 end += 4
00213 (length,) = _struct_I.unpack(str[start:end])
00214 start = end
00215 end += length
00216 if python3:
00217 self.status.goal_id.id = str[start:end].decode('utf-8')
00218 else:
00219 self.status.goal_id.id = str[start:end]
00220 start = end
00221 end += 1
00222 (self.status.status,) = _struct_B.unpack(str[start:end])
00223 start = end
00224 end += 4
00225 (length,) = _struct_I.unpack(str[start:end])
00226 start = end
00227 end += length
00228 if python3:
00229 self.status.text = str[start:end].decode('utf-8')
00230 else:
00231 self.status.text = str[start:end]
00232 _x = self
00233 start = end
00234 end += 112
00235 (_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end])
00236 return self
00237 except struct.error as e:
00238 raise genpy.DeserializationError(e)
00239
00240
00241 def serialize_numpy(self, buff, numpy):
00242 """
00243 serialize message with numpy array types into buffer
00244 :param buff: buffer, ``StringIO``
00245 :param numpy: numpy python module
00246 """
00247 try:
00248 _x = self
00249 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00250 _x = self.header.frame_id
00251 length = len(_x)
00252 if python3 or type(_x) == unicode:
00253 _x = _x.encode('utf-8')
00254 length = len(_x)
00255 buff.write(struct.pack('<I%ss'%length, length, _x))
00256 _x = self
00257 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00258 _x = self.status.goal_id.id
00259 length = len(_x)
00260 if python3 or type(_x) == unicode:
00261 _x = _x.encode('utf-8')
00262 length = len(_x)
00263 buff.write(struct.pack('<I%ss'%length, length, _x))
00264 buff.write(_struct_B.pack(self.status.status))
00265 _x = self.status.text
00266 length = len(_x)
00267 if python3 or type(_x) == unicode:
00268 _x = _x.encode('utf-8')
00269 length = len(_x)
00270 buff.write(struct.pack('<I%ss'%length, length, _x))
00271 _x = self
00272 buff.write(_struct_14d.pack(_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_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, ``str``
00280 :param numpy: numpy python module
00281 """
00282 try:
00283 if self.header is None:
00284 self.header = std_msgs.msg.Header()
00285 if self.status is None:
00286 self.status = actionlib_msgs.msg.GoalStatus()
00287 if self.result is None:
00288 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult()
00289 end = 0
00290 _x = self
00291 start = end
00292 end += 12
00293 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00294 start = end
00295 end += 4
00296 (length,) = _struct_I.unpack(str[start:end])
00297 start = end
00298 end += length
00299 if python3:
00300 self.header.frame_id = str[start:end].decode('utf-8')
00301 else:
00302 self.header.frame_id = str[start:end]
00303 _x = self
00304 start = end
00305 end += 8
00306 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00307 start = end
00308 end += 4
00309 (length,) = _struct_I.unpack(str[start:end])
00310 start = end
00311 end += length
00312 if python3:
00313 self.status.goal_id.id = str[start:end].decode('utf-8')
00314 else:
00315 self.status.goal_id.id = str[start:end]
00316 start = end
00317 end += 1
00318 (self.status.status,) = _struct_B.unpack(str[start:end])
00319 start = end
00320 end += 4
00321 (length,) = _struct_I.unpack(str[start:end])
00322 start = end
00323 end += length
00324 if python3:
00325 self.status.text = str[start:end].decode('utf-8')
00326 else:
00327 self.status.text = str[start:end]
00328 _x = self
00329 start = end
00330 end += 112
00331 (_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end])
00332 return self
00333 except struct.error as e:
00334 raise genpy.DeserializationError(e)
00335
00336 _struct_I = genpy.struct_I
00337 _struct_3I = struct.Struct("<3I")
00338 _struct_B = struct.Struct("<B")
00339 _struct_2I = struct.Struct("<2I")
00340 _struct_14d = struct.Struct("<14d")