00001 """autogenerated by genpy from srs_assisted_arm_navigation_msgs/ManualBBEstimationAction.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 actionlib_msgs.msg
00008 import genpy
00009 import srs_assisted_arm_navigation_msgs.msg
00010 import std_msgs.msg
00011
00012 class ManualBBEstimationAction(genpy.Message):
00013 _md5sum = "94de91ff5f7162a66e81a8d6f6d3a59e"
00014 _type = "srs_assisted_arm_navigation_msgs/ManualBBEstimationAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 ManualBBEstimationActionGoal action_goal
00019 ManualBBEstimationActionResult action_result
00020 ManualBBEstimationActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 ManualBBEstimationGoal goal
00029
00030 ================================================================================
00031 MSG: std_msgs/Header
00032 # Standard metadata for higher-level stamped data types.
00033 # This is generally used to communicate timestamped data
00034 # in a particular coordinate frame.
00035 #
00036 # sequence ID: consecutively increasing ID
00037 uint32 seq
00038 #Two-integer timestamp that is expressed as:
00039 # * stamp.secs: seconds (stamp_secs) since epoch
00040 # * stamp.nsecs: nanoseconds since stamp_secs
00041 # time-handling sugar is provided by the client library
00042 time stamp
00043 #Frame this data is associated with
00044 # 0: no frame
00045 # 1: global frame
00046 string frame_id
00047
00048 ================================================================================
00049 MSG: actionlib_msgs/GoalID
00050 # The stamp should store the time at which this goal was requested.
00051 # It is used by an action server when it tries to preempt all
00052 # goals that were requested before a certain time
00053 time stamp
00054
00055 # The id provides a way to associate feedback and
00056 # result message with specific goal requests. The id
00057 # specified must be unique.
00058 string id
00059
00060
00061 ================================================================================
00062 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # Action server is implemented in RVIZ plugin which acts as bb_estimator client
00065 # goal
00066 string object_name
00067 bool disable_video # aka useless mode for RVIZ plugin
00068
00069 ================================================================================
00070 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionResult
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00072
00073 Header header
00074 actionlib_msgs/GoalStatus status
00075 ManualBBEstimationResult result
00076
00077 ================================================================================
00078 MSG: actionlib_msgs/GoalStatus
00079 GoalID goal_id
00080 uint8 status
00081 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00082 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00083 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00084 # and has since completed its execution (Terminal State)
00085 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00086 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00087 # to some failure (Terminal State)
00088 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00089 # because the goal was unattainable or invalid (Terminal State)
00090 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00091 # and has not yet completed execution
00092 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00093 # but the action server has not yet confirmed that the goal is canceled
00094 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00095 # and was successfully cancelled (Terminal State)
00096 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00097 # sent over the wire by an action server
00098
00099 #Allow for the user to associate a string with GoalStatus for debugging
00100 string text
00101
00102
00103 ================================================================================
00104 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationResult
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 # result
00107 int16[2] p1
00108 int16[2] p2
00109 #string im_primitive_name
00110
00111 ================================================================================
00112 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionFeedback
00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00114
00115 Header header
00116 actionlib_msgs/GoalStatus status
00117 ManualBBEstimationFeedback feedback
00118
00119 ================================================================================
00120 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationFeedback
00121 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00122 # feedback
00123 time timestamp
00124 int16[2] p1
00125 int16[2] p2
00126
00127
00128 """
00129 __slots__ = ['action_goal','action_result','action_feedback']
00130 _slot_types = ['srs_assisted_arm_navigation_msgs/ManualBBEstimationActionGoal','srs_assisted_arm_navigation_msgs/ManualBBEstimationActionResult','srs_assisted_arm_navigation_msgs/ManualBBEstimationActionFeedback']
00131
00132 def __init__(self, *args, **kwds):
00133 """
00134 Constructor. Any message fields that are implicitly/explicitly
00135 set to None will be assigned a default value. The recommend
00136 use is keyword arguments as this is more robust to future message
00137 changes. You cannot mix in-order arguments and keyword arguments.
00138
00139 The available fields are:
00140 action_goal,action_result,action_feedback
00141
00142 :param args: complete set of field values, in .msg order
00143 :param kwds: use keyword arguments corresponding to message field names
00144 to set specific fields.
00145 """
00146 if args or kwds:
00147 super(ManualBBEstimationAction, self).__init__(*args, **kwds)
00148
00149 if self.action_goal is None:
00150 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal()
00151 if self.action_result is None:
00152 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult()
00153 if self.action_feedback is None:
00154 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback()
00155 else:
00156 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal()
00157 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult()
00158 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback()
00159
00160 def _get_types(self):
00161 """
00162 internal API method
00163 """
00164 return self._slot_types
00165
00166 def serialize(self, buff):
00167 """
00168 serialize message into buffer
00169 :param buff: buffer, ``StringIO``
00170 """
00171 try:
00172 _x = self
00173 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00174 _x = self.action_goal.header.frame_id
00175 length = len(_x)
00176 if python3 or type(_x) == unicode:
00177 _x = _x.encode('utf-8')
00178 length = len(_x)
00179 buff.write(struct.pack('<I%ss'%length, length, _x))
00180 _x = self
00181 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00182 _x = self.action_goal.goal_id.id
00183 length = len(_x)
00184 if python3 or type(_x) == unicode:
00185 _x = _x.encode('utf-8')
00186 length = len(_x)
00187 buff.write(struct.pack('<I%ss'%length, length, _x))
00188 _x = self.action_goal.goal.object_name
00189 length = len(_x)
00190 if python3 or type(_x) == unicode:
00191 _x = _x.encode('utf-8')
00192 length = len(_x)
00193 buff.write(struct.pack('<I%ss'%length, length, _x))
00194 _x = self
00195 buff.write(_struct_B3I.pack(_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00196 _x = self.action_result.header.frame_id
00197 length = len(_x)
00198 if python3 or type(_x) == unicode:
00199 _x = _x.encode('utf-8')
00200 length = len(_x)
00201 buff.write(struct.pack('<I%ss'%length, length, _x))
00202 _x = self
00203 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00204 _x = self.action_result.status.goal_id.id
00205 length = len(_x)
00206 if python3 or type(_x) == unicode:
00207 _x = _x.encode('utf-8')
00208 length = len(_x)
00209 buff.write(struct.pack('<I%ss'%length, length, _x))
00210 buff.write(_struct_B.pack(self.action_result.status.status))
00211 _x = self.action_result.status.text
00212 length = len(_x)
00213 if python3 or type(_x) == unicode:
00214 _x = _x.encode('utf-8')
00215 length = len(_x)
00216 buff.write(struct.pack('<I%ss'%length, length, _x))
00217 buff.write(_struct_2h.pack(*self.action_result.result.p1))
00218 buff.write(_struct_2h.pack(*self.action_result.result.p2))
00219 _x = self
00220 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00221 _x = self.action_feedback.header.frame_id
00222 length = len(_x)
00223 if python3 or type(_x) == unicode:
00224 _x = _x.encode('utf-8')
00225 length = len(_x)
00226 buff.write(struct.pack('<I%ss'%length, length, _x))
00227 _x = self
00228 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00229 _x = self.action_feedback.status.goal_id.id
00230 length = len(_x)
00231 if python3 or type(_x) == unicode:
00232 _x = _x.encode('utf-8')
00233 length = len(_x)
00234 buff.write(struct.pack('<I%ss'%length, length, _x))
00235 buff.write(_struct_B.pack(self.action_feedback.status.status))
00236 _x = self.action_feedback.status.text
00237 length = len(_x)
00238 if python3 or type(_x) == unicode:
00239 _x = _x.encode('utf-8')
00240 length = len(_x)
00241 buff.write(struct.pack('<I%ss'%length, length, _x))
00242 _x = self
00243 buff.write(_struct_2I.pack(_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs))
00244 buff.write(_struct_2h.pack(*self.action_feedback.feedback.p1))
00245 buff.write(_struct_2h.pack(*self.action_feedback.feedback.p2))
00246 except struct.error as se: self._check_types(se)
00247 except TypeError as te: self._check_types(te)
00248
00249 def deserialize(self, str):
00250 """
00251 unpack serialized message in str into this message instance
00252 :param str: byte array of serialized message, ``str``
00253 """
00254 try:
00255 if self.action_goal is None:
00256 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal()
00257 if self.action_result is None:
00258 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult()
00259 if self.action_feedback is None:
00260 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback()
00261 end = 0
00262 _x = self
00263 start = end
00264 end += 12
00265 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00266 start = end
00267 end += 4
00268 (length,) = _struct_I.unpack(str[start:end])
00269 start = end
00270 end += length
00271 if python3:
00272 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00273 else:
00274 self.action_goal.header.frame_id = str[start:end]
00275 _x = self
00276 start = end
00277 end += 8
00278 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00279 start = end
00280 end += 4
00281 (length,) = _struct_I.unpack(str[start:end])
00282 start = end
00283 end += length
00284 if python3:
00285 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00286 else:
00287 self.action_goal.goal_id.id = str[start:end]
00288 start = end
00289 end += 4
00290 (length,) = _struct_I.unpack(str[start:end])
00291 start = end
00292 end += length
00293 if python3:
00294 self.action_goal.goal.object_name = str[start:end].decode('utf-8')
00295 else:
00296 self.action_goal.goal.object_name = str[start:end]
00297 _x = self
00298 start = end
00299 end += 13
00300 (_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00301 self.action_goal.goal.disable_video = bool(self.action_goal.goal.disable_video)
00302 start = end
00303 end += 4
00304 (length,) = _struct_I.unpack(str[start:end])
00305 start = end
00306 end += length
00307 if python3:
00308 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00309 else:
00310 self.action_result.header.frame_id = str[start:end]
00311 _x = self
00312 start = end
00313 end += 8
00314 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.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 if python3:
00321 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00322 else:
00323 self.action_result.status.goal_id.id = str[start:end]
00324 start = end
00325 end += 1
00326 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00327 start = end
00328 end += 4
00329 (length,) = _struct_I.unpack(str[start:end])
00330 start = end
00331 end += length
00332 if python3:
00333 self.action_result.status.text = str[start:end].decode('utf-8')
00334 else:
00335 self.action_result.status.text = str[start:end]
00336 start = end
00337 end += 4
00338 self.action_result.result.p1 = _struct_2h.unpack(str[start:end])
00339 start = end
00340 end += 4
00341 self.action_result.result.p2 = _struct_2h.unpack(str[start:end])
00342 _x = self
00343 start = end
00344 end += 12
00345 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00346 start = end
00347 end += 4
00348 (length,) = _struct_I.unpack(str[start:end])
00349 start = end
00350 end += length
00351 if python3:
00352 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00353 else:
00354 self.action_feedback.header.frame_id = str[start:end]
00355 _x = self
00356 start = end
00357 end += 8
00358 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00359 start = end
00360 end += 4
00361 (length,) = _struct_I.unpack(str[start:end])
00362 start = end
00363 end += length
00364 if python3:
00365 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00366 else:
00367 self.action_feedback.status.goal_id.id = str[start:end]
00368 start = end
00369 end += 1
00370 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00371 start = end
00372 end += 4
00373 (length,) = _struct_I.unpack(str[start:end])
00374 start = end
00375 end += length
00376 if python3:
00377 self.action_feedback.status.text = str[start:end].decode('utf-8')
00378 else:
00379 self.action_feedback.status.text = str[start:end]
00380 _x = self
00381 start = end
00382 end += 8
00383 (_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs,) = _struct_2I.unpack(str[start:end])
00384 start = end
00385 end += 4
00386 self.action_feedback.feedback.p1 = _struct_2h.unpack(str[start:end])
00387 start = end
00388 end += 4
00389 self.action_feedback.feedback.p2 = _struct_2h.unpack(str[start:end])
00390 return self
00391 except struct.error as e:
00392 raise genpy.DeserializationError(e)
00393
00394
00395 def serialize_numpy(self, buff, numpy):
00396 """
00397 serialize message with numpy array types into buffer
00398 :param buff: buffer, ``StringIO``
00399 :param numpy: numpy python module
00400 """
00401 try:
00402 _x = self
00403 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00404 _x = self.action_goal.header.frame_id
00405 length = len(_x)
00406 if python3 or type(_x) == unicode:
00407 _x = _x.encode('utf-8')
00408 length = len(_x)
00409 buff.write(struct.pack('<I%ss'%length, length, _x))
00410 _x = self
00411 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00412 _x = self.action_goal.goal_id.id
00413 length = len(_x)
00414 if python3 or type(_x) == unicode:
00415 _x = _x.encode('utf-8')
00416 length = len(_x)
00417 buff.write(struct.pack('<I%ss'%length, length, _x))
00418 _x = self.action_goal.goal.object_name
00419 length = len(_x)
00420 if python3 or type(_x) == unicode:
00421 _x = _x.encode('utf-8')
00422 length = len(_x)
00423 buff.write(struct.pack('<I%ss'%length, length, _x))
00424 _x = self
00425 buff.write(_struct_B3I.pack(_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00426 _x = self.action_result.header.frame_id
00427 length = len(_x)
00428 if python3 or type(_x) == unicode:
00429 _x = _x.encode('utf-8')
00430 length = len(_x)
00431 buff.write(struct.pack('<I%ss'%length, length, _x))
00432 _x = self
00433 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00434 _x = self.action_result.status.goal_id.id
00435 length = len(_x)
00436 if python3 or type(_x) == unicode:
00437 _x = _x.encode('utf-8')
00438 length = len(_x)
00439 buff.write(struct.pack('<I%ss'%length, length, _x))
00440 buff.write(_struct_B.pack(self.action_result.status.status))
00441 _x = self.action_result.status.text
00442 length = len(_x)
00443 if python3 or type(_x) == unicode:
00444 _x = _x.encode('utf-8')
00445 length = len(_x)
00446 buff.write(struct.pack('<I%ss'%length, length, _x))
00447 buff.write(self.action_result.result.p1.tostring())
00448 buff.write(self.action_result.result.p2.tostring())
00449 _x = self
00450 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00451 _x = self.action_feedback.header.frame_id
00452 length = len(_x)
00453 if python3 or type(_x) == unicode:
00454 _x = _x.encode('utf-8')
00455 length = len(_x)
00456 buff.write(struct.pack('<I%ss'%length, length, _x))
00457 _x = self
00458 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00459 _x = self.action_feedback.status.goal_id.id
00460 length = len(_x)
00461 if python3 or type(_x) == unicode:
00462 _x = _x.encode('utf-8')
00463 length = len(_x)
00464 buff.write(struct.pack('<I%ss'%length, length, _x))
00465 buff.write(_struct_B.pack(self.action_feedback.status.status))
00466 _x = self.action_feedback.status.text
00467 length = len(_x)
00468 if python3 or type(_x) == unicode:
00469 _x = _x.encode('utf-8')
00470 length = len(_x)
00471 buff.write(struct.pack('<I%ss'%length, length, _x))
00472 _x = self
00473 buff.write(_struct_2I.pack(_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs))
00474 buff.write(self.action_feedback.feedback.p1.tostring())
00475 buff.write(self.action_feedback.feedback.p2.tostring())
00476 except struct.error as se: self._check_types(se)
00477 except TypeError as te: self._check_types(te)
00478
00479 def deserialize_numpy(self, str, numpy):
00480 """
00481 unpack serialized message in str into this message instance using numpy for array types
00482 :param str: byte array of serialized message, ``str``
00483 :param numpy: numpy python module
00484 """
00485 try:
00486 if self.action_goal is None:
00487 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal()
00488 if self.action_result is None:
00489 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult()
00490 if self.action_feedback is None:
00491 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback()
00492 end = 0
00493 _x = self
00494 start = end
00495 end += 12
00496 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00497 start = end
00498 end += 4
00499 (length,) = _struct_I.unpack(str[start:end])
00500 start = end
00501 end += length
00502 if python3:
00503 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00504 else:
00505 self.action_goal.header.frame_id = str[start:end]
00506 _x = self
00507 start = end
00508 end += 8
00509 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00510 start = end
00511 end += 4
00512 (length,) = _struct_I.unpack(str[start:end])
00513 start = end
00514 end += length
00515 if python3:
00516 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00517 else:
00518 self.action_goal.goal_id.id = str[start:end]
00519 start = end
00520 end += 4
00521 (length,) = _struct_I.unpack(str[start:end])
00522 start = end
00523 end += length
00524 if python3:
00525 self.action_goal.goal.object_name = str[start:end].decode('utf-8')
00526 else:
00527 self.action_goal.goal.object_name = str[start:end]
00528 _x = self
00529 start = end
00530 end += 13
00531 (_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end])
00532 self.action_goal.goal.disable_video = bool(self.action_goal.goal.disable_video)
00533 start = end
00534 end += 4
00535 (length,) = _struct_I.unpack(str[start:end])
00536 start = end
00537 end += length
00538 if python3:
00539 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00540 else:
00541 self.action_result.header.frame_id = str[start:end]
00542 _x = self
00543 start = end
00544 end += 8
00545 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00546 start = end
00547 end += 4
00548 (length,) = _struct_I.unpack(str[start:end])
00549 start = end
00550 end += length
00551 if python3:
00552 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00553 else:
00554 self.action_result.status.goal_id.id = str[start:end]
00555 start = end
00556 end += 1
00557 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00558 start = end
00559 end += 4
00560 (length,) = _struct_I.unpack(str[start:end])
00561 start = end
00562 end += length
00563 if python3:
00564 self.action_result.status.text = str[start:end].decode('utf-8')
00565 else:
00566 self.action_result.status.text = str[start:end]
00567 start = end
00568 end += 4
00569 self.action_result.result.p1 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2)
00570 start = end
00571 end += 4
00572 self.action_result.result.p2 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2)
00573 _x = self
00574 start = end
00575 end += 12
00576 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00577 start = end
00578 end += 4
00579 (length,) = _struct_I.unpack(str[start:end])
00580 start = end
00581 end += length
00582 if python3:
00583 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00584 else:
00585 self.action_feedback.header.frame_id = str[start:end]
00586 _x = self
00587 start = end
00588 end += 8
00589 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00590 start = end
00591 end += 4
00592 (length,) = _struct_I.unpack(str[start:end])
00593 start = end
00594 end += length
00595 if python3:
00596 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00597 else:
00598 self.action_feedback.status.goal_id.id = str[start:end]
00599 start = end
00600 end += 1
00601 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00602 start = end
00603 end += 4
00604 (length,) = _struct_I.unpack(str[start:end])
00605 start = end
00606 end += length
00607 if python3:
00608 self.action_feedback.status.text = str[start:end].decode('utf-8')
00609 else:
00610 self.action_feedback.status.text = str[start:end]
00611 _x = self
00612 start = end
00613 end += 8
00614 (_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs,) = _struct_2I.unpack(str[start:end])
00615 start = end
00616 end += 4
00617 self.action_feedback.feedback.p1 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2)
00618 start = end
00619 end += 4
00620 self.action_feedback.feedback.p2 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2)
00621 return self
00622 except struct.error as e:
00623 raise genpy.DeserializationError(e)
00624
00625 _struct_I = genpy.struct_I
00626 _struct_3I = struct.Struct("<3I")
00627 _struct_B = struct.Struct("<B")
00628 _struct_2h = struct.Struct("<2h")
00629 _struct_2I = struct.Struct("<2I")
00630 _struct_B3I = struct.Struct("<B3I")