00001 """autogenerated by genpy from iri_wam_arm_navigation/SimplePoseActionResult.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 arm_navigation_msgs.msg
00008 import iri_wam_arm_navigation.msg
00009 import genpy
00010 import actionlib_msgs.msg
00011 import std_msgs.msg
00012
00013 class SimplePoseActionResult(genpy.Message):
00014 _md5sum = "d43fb67b6bf1520790c2cfb2202fac8e"
00015 _type = "iri_wam_arm_navigation/SimplePoseActionResult"
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 SimplePoseResult 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: iri_wam_arm_navigation/SimplePoseResult
00082 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00083 #Result Definition
00084 # An error code reflecting what went wrong
00085 arm_navigation_msgs/ArmNavigationErrorCodes error_code
00086
00087 ================================================================================
00088 MSG: arm_navigation_msgs/ArmNavigationErrorCodes
00089 int32 val
00090
00091 # overall behavior
00092 int32 PLANNING_FAILED=-1
00093 int32 SUCCESS=1
00094 int32 TIMED_OUT=-2
00095
00096 # start state errors
00097 int32 START_STATE_IN_COLLISION=-3
00098 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
00099
00100 # goal errors
00101 int32 GOAL_IN_COLLISION=-5
00102 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6
00103
00104 # robot state
00105 int32 INVALID_ROBOT_STATE=-7
00106 int32 INCOMPLETE_ROBOT_STATE=-8
00107
00108 # planning request errors
00109 int32 INVALID_PLANNER_ID=-9
00110 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10
00111 int32 INVALID_ALLOWED_PLANNING_TIME=-11
00112 int32 INVALID_GROUP_NAME=-12
00113 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13
00114 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14
00115 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15
00116 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16
00117 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17
00118 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18
00119
00120 # state/trajectory monitor errors
00121 int32 INVALID_TRAJECTORY=-19
00122 int32 INVALID_INDEX=-20
00123 int32 JOINT_LIMITS_VIOLATED=-21
00124 int32 PATH_CONSTRAINTS_VIOLATED=-22
00125 int32 COLLISION_CONSTRAINTS_VIOLATED=-23
00126 int32 GOAL_CONSTRAINTS_VIOLATED=-24
00127 int32 JOINTS_NOT_MOVING=-25
00128 int32 TRAJECTORY_CONTROLLER_FAILED=-26
00129
00130 # system errors
00131 int32 FRAME_TRANSFORM_FAILURE=-27
00132 int32 COLLISION_CHECKING_UNAVAILABLE=-28
00133 int32 ROBOT_STATE_STALE=-29
00134 int32 SENSOR_INFO_STALE=-30
00135
00136 # kinematics errors
00137 int32 NO_IK_SOLUTION=-31
00138 int32 INVALID_LINK_NAME=-32
00139 int32 IK_LINK_IN_COLLISION=-33
00140 int32 NO_FK_SOLUTION=-34
00141 int32 KINEMATICS_STATE_IN_COLLISION=-35
00142
00143 # general errors
00144 int32 INVALID_TIMEOUT=-36
00145
00146
00147 """
00148 __slots__ = ['header','status','result']
00149 _slot_types = ['std_msgs/Header','actionlib_msgs/GoalStatus','iri_wam_arm_navigation/SimplePoseResult']
00150
00151 def __init__(self, *args, **kwds):
00152 """
00153 Constructor. Any message fields that are implicitly/explicitly
00154 set to None will be assigned a default value. The recommend
00155 use is keyword arguments as this is more robust to future message
00156 changes. You cannot mix in-order arguments and keyword arguments.
00157
00158 The available fields are:
00159 header,status,result
00160
00161 :param args: complete set of field values, in .msg order
00162 :param kwds: use keyword arguments corresponding to message field names
00163 to set specific fields.
00164 """
00165 if args or kwds:
00166 super(SimplePoseActionResult, self).__init__(*args, **kwds)
00167
00168 if self.header is None:
00169 self.header = std_msgs.msg.Header()
00170 if self.status is None:
00171 self.status = actionlib_msgs.msg.GoalStatus()
00172 if self.result is None:
00173 self.result = iri_wam_arm_navigation.msg.SimplePoseResult()
00174 else:
00175 self.header = std_msgs.msg.Header()
00176 self.status = actionlib_msgs.msg.GoalStatus()
00177 self.result = iri_wam_arm_navigation.msg.SimplePoseResult()
00178
00179 def _get_types(self):
00180 """
00181 internal API method
00182 """
00183 return self._slot_types
00184
00185 def serialize(self, buff):
00186 """
00187 serialize message into buffer
00188 :param buff: buffer, ``StringIO``
00189 """
00190 try:
00191 _x = self
00192 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00193 _x = self.header.frame_id
00194 length = len(_x)
00195 if python3 or type(_x) == unicode:
00196 _x = _x.encode('utf-8')
00197 length = len(_x)
00198 buff.write(struct.pack('<I%ss'%length, length, _x))
00199 _x = self
00200 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00201 _x = self.status.goal_id.id
00202 length = len(_x)
00203 if python3 or type(_x) == unicode:
00204 _x = _x.encode('utf-8')
00205 length = len(_x)
00206 buff.write(struct.pack('<I%ss'%length, length, _x))
00207 buff.write(_struct_B.pack(self.status.status))
00208 _x = self.status.text
00209 length = len(_x)
00210 if python3 or type(_x) == unicode:
00211 _x = _x.encode('utf-8')
00212 length = len(_x)
00213 buff.write(struct.pack('<I%ss'%length, length, _x))
00214 buff.write(_struct_i.pack(self.result.error_code.val))
00215 except struct.error as se: self._check_types(se)
00216 except TypeError as te: self._check_types(te)
00217
00218 def deserialize(self, str):
00219 """
00220 unpack serialized message in str into this message instance
00221 :param str: byte array of serialized message, ``str``
00222 """
00223 try:
00224 if self.header is None:
00225 self.header = std_msgs.msg.Header()
00226 if self.status is None:
00227 self.status = actionlib_msgs.msg.GoalStatus()
00228 if self.result is None:
00229 self.result = iri_wam_arm_navigation.msg.SimplePoseResult()
00230 end = 0
00231 _x = self
00232 start = end
00233 end += 12
00234 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00235 start = end
00236 end += 4
00237 (length,) = _struct_I.unpack(str[start:end])
00238 start = end
00239 end += length
00240 if python3:
00241 self.header.frame_id = str[start:end].decode('utf-8')
00242 else:
00243 self.header.frame_id = str[start:end]
00244 _x = self
00245 start = end
00246 end += 8
00247 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00248 start = end
00249 end += 4
00250 (length,) = _struct_I.unpack(str[start:end])
00251 start = end
00252 end += length
00253 if python3:
00254 self.status.goal_id.id = str[start:end].decode('utf-8')
00255 else:
00256 self.status.goal_id.id = str[start:end]
00257 start = end
00258 end += 1
00259 (self.status.status,) = _struct_B.unpack(str[start:end])
00260 start = end
00261 end += 4
00262 (length,) = _struct_I.unpack(str[start:end])
00263 start = end
00264 end += length
00265 if python3:
00266 self.status.text = str[start:end].decode('utf-8')
00267 else:
00268 self.status.text = str[start:end]
00269 start = end
00270 end += 4
00271 (self.result.error_code.val,) = _struct_i.unpack(str[start:end])
00272 return self
00273 except struct.error as e:
00274 raise genpy.DeserializationError(e)
00275
00276
00277 def serialize_numpy(self, buff, numpy):
00278 """
00279 serialize message with numpy array types into buffer
00280 :param buff: buffer, ``StringIO``
00281 :param numpy: numpy python module
00282 """
00283 try:
00284 _x = self
00285 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00286 _x = self.header.frame_id
00287 length = len(_x)
00288 if python3 or type(_x) == unicode:
00289 _x = _x.encode('utf-8')
00290 length = len(_x)
00291 buff.write(struct.pack('<I%ss'%length, length, _x))
00292 _x = self
00293 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs))
00294 _x = self.status.goal_id.id
00295 length = len(_x)
00296 if python3 or type(_x) == unicode:
00297 _x = _x.encode('utf-8')
00298 length = len(_x)
00299 buff.write(struct.pack('<I%ss'%length, length, _x))
00300 buff.write(_struct_B.pack(self.status.status))
00301 _x = self.status.text
00302 length = len(_x)
00303 if python3 or type(_x) == unicode:
00304 _x = _x.encode('utf-8')
00305 length = len(_x)
00306 buff.write(struct.pack('<I%ss'%length, length, _x))
00307 buff.write(_struct_i.pack(self.result.error_code.val))
00308 except struct.error as se: self._check_types(se)
00309 except TypeError as te: self._check_types(te)
00310
00311 def deserialize_numpy(self, str, numpy):
00312 """
00313 unpack serialized message in str into this message instance using numpy for array types
00314 :param str: byte array of serialized message, ``str``
00315 :param numpy: numpy python module
00316 """
00317 try:
00318 if self.header is None:
00319 self.header = std_msgs.msg.Header()
00320 if self.status is None:
00321 self.status = actionlib_msgs.msg.GoalStatus()
00322 if self.result is None:
00323 self.result = iri_wam_arm_navigation.msg.SimplePoseResult()
00324 end = 0
00325 _x = self
00326 start = end
00327 end += 12
00328 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00329 start = end
00330 end += 4
00331 (length,) = _struct_I.unpack(str[start:end])
00332 start = end
00333 end += length
00334 if python3:
00335 self.header.frame_id = str[start:end].decode('utf-8')
00336 else:
00337 self.header.frame_id = str[start:end]
00338 _x = self
00339 start = end
00340 end += 8
00341 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00342 start = end
00343 end += 4
00344 (length,) = _struct_I.unpack(str[start:end])
00345 start = end
00346 end += length
00347 if python3:
00348 self.status.goal_id.id = str[start:end].decode('utf-8')
00349 else:
00350 self.status.goal_id.id = str[start:end]
00351 start = end
00352 end += 1
00353 (self.status.status,) = _struct_B.unpack(str[start:end])
00354 start = end
00355 end += 4
00356 (length,) = _struct_I.unpack(str[start:end])
00357 start = end
00358 end += length
00359 if python3:
00360 self.status.text = str[start:end].decode('utf-8')
00361 else:
00362 self.status.text = str[start:end]
00363 start = end
00364 end += 4
00365 (self.result.error_code.val,) = _struct_i.unpack(str[start:end])
00366 return self
00367 except struct.error as e:
00368 raise genpy.DeserializationError(e)
00369
00370 _struct_I = genpy.struct_I
00371 _struct_i = struct.Struct("<i")
00372 _struct_3I = struct.Struct("<3I")
00373 _struct_B = struct.Struct("<B")
00374 _struct_2I = struct.Struct("<2I")