00001 """autogenerated by genpy from iri_wam_arm_navigation/SimplePoseActionGoal.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 geometry_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 SimplePoseActionGoal(genpy.Message):
00014 _md5sum = "b1d816c784e741993b38b2b8f4c2b915"
00015 _type = "iri_wam_arm_navigation/SimplePoseActionGoal"
00016 _has_header = True
00017 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00018
00019 Header header
00020 actionlib_msgs/GoalID goal_id
00021 SimplePoseGoal goal
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/GoalID
00043 # The stamp should store the time at which this goal was requested.
00044 # It is used by an action server when it tries to preempt all
00045 # goals that were requested before a certain time
00046 time stamp
00047
00048 # The id provides a way to associate feedback and
00049 # result message with specific goal requests. The id
00050 # specified must be unique.
00051 string id
00052
00053
00054 ================================================================================
00055 MSG: iri_wam_arm_navigation/SimplePoseGoal
00056 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00057 #Goal Definition
00058 geometry_msgs/PoseStamped goal
00059 string frame_id # This is the name of link to move, and not necessary is the same frame_id of PoseStamped
00060
00061 ================================================================================
00062 MSG: geometry_msgs/PoseStamped
00063 # A Pose with reference coordinate frame and timestamp
00064 Header header
00065 Pose pose
00066
00067 ================================================================================
00068 MSG: geometry_msgs/Pose
00069 # A representation of pose in free space, composed of postion and orientation.
00070 Point position
00071 Quaternion orientation
00072
00073 ================================================================================
00074 MSG: geometry_msgs/Point
00075 # This contains the position of a point in free space
00076 float64 x
00077 float64 y
00078 float64 z
00079
00080 ================================================================================
00081 MSG: geometry_msgs/Quaternion
00082 # This represents an orientation in free space in quaternion form.
00083
00084 float64 x
00085 float64 y
00086 float64 z
00087 float64 w
00088
00089 """
00090 __slots__ = ['header','goal_id','goal']
00091 _slot_types = ['std_msgs/Header','actionlib_msgs/GoalID','iri_wam_arm_navigation/SimplePoseGoal']
00092
00093 def __init__(self, *args, **kwds):
00094 """
00095 Constructor. Any message fields that are implicitly/explicitly
00096 set to None will be assigned a default value. The recommend
00097 use is keyword arguments as this is more robust to future message
00098 changes. You cannot mix in-order arguments and keyword arguments.
00099
00100 The available fields are:
00101 header,goal_id,goal
00102
00103 :param args: complete set of field values, in .msg order
00104 :param kwds: use keyword arguments corresponding to message field names
00105 to set specific fields.
00106 """
00107 if args or kwds:
00108 super(SimplePoseActionGoal, self).__init__(*args, **kwds)
00109
00110 if self.header is None:
00111 self.header = std_msgs.msg.Header()
00112 if self.goal_id is None:
00113 self.goal_id = actionlib_msgs.msg.GoalID()
00114 if self.goal is None:
00115 self.goal = iri_wam_arm_navigation.msg.SimplePoseGoal()
00116 else:
00117 self.header = std_msgs.msg.Header()
00118 self.goal_id = actionlib_msgs.msg.GoalID()
00119 self.goal = iri_wam_arm_navigation.msg.SimplePoseGoal()
00120
00121 def _get_types(self):
00122 """
00123 internal API method
00124 """
00125 return self._slot_types
00126
00127 def serialize(self, buff):
00128 """
00129 serialize message into buffer
00130 :param buff: buffer, ``StringIO``
00131 """
00132 try:
00133 _x = self
00134 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00135 _x = self.header.frame_id
00136 length = len(_x)
00137 if python3 or type(_x) == unicode:
00138 _x = _x.encode('utf-8')
00139 length = len(_x)
00140 buff.write(struct.pack('<I%ss'%length, length, _x))
00141 _x = self
00142 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00143 _x = self.goal_id.id
00144 length = len(_x)
00145 if python3 or type(_x) == unicode:
00146 _x = _x.encode('utf-8')
00147 length = len(_x)
00148 buff.write(struct.pack('<I%ss'%length, length, _x))
00149 _x = self
00150 buff.write(_struct_3I.pack(_x.goal.goal.header.seq, _x.goal.goal.header.stamp.secs, _x.goal.goal.header.stamp.nsecs))
00151 _x = self.goal.goal.header.frame_id
00152 length = len(_x)
00153 if python3 or type(_x) == unicode:
00154 _x = _x.encode('utf-8')
00155 length = len(_x)
00156 buff.write(struct.pack('<I%ss'%length, length, _x))
00157 _x = self
00158 buff.write(_struct_7d.pack(_x.goal.goal.pose.position.x, _x.goal.goal.pose.position.y, _x.goal.goal.pose.position.z, _x.goal.goal.pose.orientation.x, _x.goal.goal.pose.orientation.y, _x.goal.goal.pose.orientation.z, _x.goal.goal.pose.orientation.w))
00159 _x = self.goal.frame_id
00160 length = len(_x)
00161 if python3 or type(_x) == unicode:
00162 _x = _x.encode('utf-8')
00163 length = len(_x)
00164 buff.write(struct.pack('<I%ss'%length, length, _x))
00165 except struct.error as se: self._check_types(se)
00166 except TypeError as te: self._check_types(te)
00167
00168 def deserialize(self, str):
00169 """
00170 unpack serialized message in str into this message instance
00171 :param str: byte array of serialized message, ``str``
00172 """
00173 try:
00174 if self.header is None:
00175 self.header = std_msgs.msg.Header()
00176 if self.goal_id is None:
00177 self.goal_id = actionlib_msgs.msg.GoalID()
00178 if self.goal is None:
00179 self.goal = iri_wam_arm_navigation.msg.SimplePoseGoal()
00180 end = 0
00181 _x = self
00182 start = end
00183 end += 12
00184 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00185 start = end
00186 end += 4
00187 (length,) = _struct_I.unpack(str[start:end])
00188 start = end
00189 end += length
00190 if python3:
00191 self.header.frame_id = str[start:end].decode('utf-8')
00192 else:
00193 self.header.frame_id = str[start:end]
00194 _x = self
00195 start = end
00196 end += 8
00197 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end].decode('utf-8')
00205 else:
00206 self.goal_id.id = str[start:end]
00207 _x = self
00208 start = end
00209 end += 12
00210 (_x.goal.goal.header.seq, _x.goal.goal.header.stamp.secs, _x.goal.goal.header.stamp.nsecs,) = _struct_3I.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.goal.goal.header.frame_id = str[start:end].decode('utf-8')
00218 else:
00219 self.goal.goal.header.frame_id = str[start:end]
00220 _x = self
00221 start = end
00222 end += 56
00223 (_x.goal.goal.pose.position.x, _x.goal.goal.pose.position.y, _x.goal.goal.pose.position.z, _x.goal.goal.pose.orientation.x, _x.goal.goal.pose.orientation.y, _x.goal.goal.pose.orientation.z, _x.goal.goal.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00224 start = end
00225 end += 4
00226 (length,) = _struct_I.unpack(str[start:end])
00227 start = end
00228 end += length
00229 if python3:
00230 self.goal.frame_id = str[start:end].decode('utf-8')
00231 else:
00232 self.goal.frame_id = str[start:end]
00233 return self
00234 except struct.error as e:
00235 raise genpy.DeserializationError(e)
00236
00237
00238 def serialize_numpy(self, buff, numpy):
00239 """
00240 serialize message with numpy array types into buffer
00241 :param buff: buffer, ``StringIO``
00242 :param numpy: numpy python module
00243 """
00244 try:
00245 _x = self
00246 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
00247 _x = self.header.frame_id
00248 length = len(_x)
00249 if python3 or type(_x) == unicode:
00250 _x = _x.encode('utf-8')
00251 length = len(_x)
00252 buff.write(struct.pack('<I%ss'%length, length, _x))
00253 _x = self
00254 buff.write(_struct_2I.pack(_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs))
00255 _x = self.goal_id.id
00256 length = len(_x)
00257 if python3 or type(_x) == unicode:
00258 _x = _x.encode('utf-8')
00259 length = len(_x)
00260 buff.write(struct.pack('<I%ss'%length, length, _x))
00261 _x = self
00262 buff.write(_struct_3I.pack(_x.goal.goal.header.seq, _x.goal.goal.header.stamp.secs, _x.goal.goal.header.stamp.nsecs))
00263 _x = self.goal.goal.header.frame_id
00264 length = len(_x)
00265 if python3 or type(_x) == unicode:
00266 _x = _x.encode('utf-8')
00267 length = len(_x)
00268 buff.write(struct.pack('<I%ss'%length, length, _x))
00269 _x = self
00270 buff.write(_struct_7d.pack(_x.goal.goal.pose.position.x, _x.goal.goal.pose.position.y, _x.goal.goal.pose.position.z, _x.goal.goal.pose.orientation.x, _x.goal.goal.pose.orientation.y, _x.goal.goal.pose.orientation.z, _x.goal.goal.pose.orientation.w))
00271 _x = self.goal.frame_id
00272 length = len(_x)
00273 if python3 or type(_x) == unicode:
00274 _x = _x.encode('utf-8')
00275 length = len(_x)
00276 buff.write(struct.pack('<I%ss'%length, length, _x))
00277 except struct.error as se: self._check_types(se)
00278 except TypeError as te: self._check_types(te)
00279
00280 def deserialize_numpy(self, str, numpy):
00281 """
00282 unpack serialized message in str into this message instance using numpy for array types
00283 :param str: byte array of serialized message, ``str``
00284 :param numpy: numpy python module
00285 """
00286 try:
00287 if self.header is None:
00288 self.header = std_msgs.msg.Header()
00289 if self.goal_id is None:
00290 self.goal_id = actionlib_msgs.msg.GoalID()
00291 if self.goal is None:
00292 self.goal = iri_wam_arm_navigation.msg.SimplePoseGoal()
00293 end = 0
00294 _x = self
00295 start = end
00296 end += 12
00297 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00298 start = end
00299 end += 4
00300 (length,) = _struct_I.unpack(str[start:end])
00301 start = end
00302 end += length
00303 if python3:
00304 self.header.frame_id = str[start:end].decode('utf-8')
00305 else:
00306 self.header.frame_id = str[start:end]
00307 _x = self
00308 start = end
00309 end += 8
00310 (_x.goal_id.stamp.secs, _x.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00311 start = end
00312 end += 4
00313 (length,) = _struct_I.unpack(str[start:end])
00314 start = end
00315 end += length
00316 if python3:
00317 self.goal_id.id = str[start:end].decode('utf-8')
00318 else:
00319 self.goal_id.id = str[start:end]
00320 _x = self
00321 start = end
00322 end += 12
00323 (_x.goal.goal.header.seq, _x.goal.goal.header.stamp.secs, _x.goal.goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00324 start = end
00325 end += 4
00326 (length,) = _struct_I.unpack(str[start:end])
00327 start = end
00328 end += length
00329 if python3:
00330 self.goal.goal.header.frame_id = str[start:end].decode('utf-8')
00331 else:
00332 self.goal.goal.header.frame_id = str[start:end]
00333 _x = self
00334 start = end
00335 end += 56
00336 (_x.goal.goal.pose.position.x, _x.goal.goal.pose.position.y, _x.goal.goal.pose.position.z, _x.goal.goal.pose.orientation.x, _x.goal.goal.pose.orientation.y, _x.goal.goal.pose.orientation.z, _x.goal.goal.pose.orientation.w,) = _struct_7d.unpack(str[start:end])
00337 start = end
00338 end += 4
00339 (length,) = _struct_I.unpack(str[start:end])
00340 start = end
00341 end += length
00342 if python3:
00343 self.goal.frame_id = str[start:end].decode('utf-8')
00344 else:
00345 self.goal.frame_id = str[start:end]
00346 return self
00347 except struct.error as e:
00348 raise genpy.DeserializationError(e)
00349
00350 _struct_I = genpy.struct_I
00351 _struct_3I = struct.Struct("<3I")
00352 _struct_7d = struct.Struct("<7d")
00353 _struct_2I = struct.Struct("<2I")