00001 """autogenerated by genpy from cob_light/SetLightModeAction.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 std_msgs.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import cob_light.msg
00011
00012 class SetLightModeAction(genpy.Message):
00013 _md5sum = "1848f463649f84d5f3aa969db7b4a4fb"
00014 _type = "cob_light/SetLightModeAction"
00015 _has_header = False
00016 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017
00018 SetLightModeActionGoal action_goal
00019 SetLightModeActionResult action_result
00020 SetLightModeActionFeedback action_feedback
00021
00022 ================================================================================
00023 MSG: cob_light/SetLightModeActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 SetLightModeGoal 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: cob_light/SetLightModeGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # The goal
00065 cob_light/LightMode mode
00066
00067 ================================================================================
00068 MSG: cob_light/LightMode
00069 uint8 mode
00070 uint8 NONE = 0 # will turn everything off
00071 uint8 STATIC = 1 # will change the LEDs to "color"
00072 uint8 FLASH = 2 # will change the LEDs frequently with "frequency" from "color" to black
00073 uint8 BREATH = 3 # will change the LEDs smoothly with "frequency" from "color" to black
00074 uint8 BREATH_COLOR = 4 # will change the LEDs smoothly with "frequency" from "color" to black
00075 # and flips color in time
00076 uint8 FADE_COLOR = 5 # will fade the colors in rainbow
00077
00078 std_msgs/ColorRGBA color #the color which will be used
00079 float32 frequency # in Hz
00080 float32 timeout # in s, requested mode will be executed for max timout s.
00081 # default is 0 and meens no timeout.
00082 int32 pulses # spezifies the amount of pulses which will be executed.
00083 # eg: mode = flash, pulses = 2. Meens the light will flash two times
00084 int8 priority # priority [-20,20] default = 0. Modes with same or higher priorities will
00085 # be executed.
00086 ================================================================================
00087 MSG: std_msgs/ColorRGBA
00088 float32 r
00089 float32 g
00090 float32 b
00091 float32 a
00092
00093 ================================================================================
00094 MSG: cob_light/SetLightModeActionResult
00095 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00096
00097 Header header
00098 actionlib_msgs/GoalStatus status
00099 SetLightModeResult result
00100
00101 ================================================================================
00102 MSG: actionlib_msgs/GoalStatus
00103 GoalID goal_id
00104 uint8 status
00105 uint8 PENDING = 0 # The goal has yet to be processed by the action server
00106 uint8 ACTIVE = 1 # The goal is currently being processed by the action server
00107 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
00108 # and has since completed its execution (Terminal State)
00109 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
00110 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
00111 # to some failure (Terminal State)
00112 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
00113 # because the goal was unattainable or invalid (Terminal State)
00114 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
00115 # and has not yet completed execution
00116 uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
00117 # but the action server has not yet confirmed that the goal is canceled
00118 uint8 RECALLED = 8 # The goal received a cancel request before it started executing
00119 # and was successfully cancelled (Terminal State)
00120 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
00121 # sent over the wire by an action server
00122
00123 #Allow for the user to associate a string with GoalStatus for debugging
00124 string text
00125
00126
00127 ================================================================================
00128 MSG: cob_light/SetLightModeResult
00129 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00130 # The results
00131 uint8 active_mode
00132 uint8 active_priority
00133
00134 ================================================================================
00135 MSG: cob_light/SetLightModeActionFeedback
00136 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00137
00138 Header header
00139 actionlib_msgs/GoalStatus status
00140 SetLightModeFeedback feedback
00141
00142 ================================================================================
00143 MSG: cob_light/SetLightModeFeedback
00144 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00145 # The feedback
00146 uint8 active_mode
00147 uint8 active_priority
00148
00149
00150 """
00151 __slots__ = ['action_goal','action_result','action_feedback']
00152 _slot_types = ['cob_light/SetLightModeActionGoal','cob_light/SetLightModeActionResult','cob_light/SetLightModeActionFeedback']
00153
00154 def __init__(self, *args, **kwds):
00155 """
00156 Constructor. Any message fields that are implicitly/explicitly
00157 set to None will be assigned a default value. The recommend
00158 use is keyword arguments as this is more robust to future message
00159 changes. You cannot mix in-order arguments and keyword arguments.
00160
00161 The available fields are:
00162 action_goal,action_result,action_feedback
00163
00164 :param args: complete set of field values, in .msg order
00165 :param kwds: use keyword arguments corresponding to message field names
00166 to set specific fields.
00167 """
00168 if args or kwds:
00169 super(SetLightModeAction, self).__init__(*args, **kwds)
00170
00171 if self.action_goal is None:
00172 self.action_goal = cob_light.msg.SetLightModeActionGoal()
00173 if self.action_result is None:
00174 self.action_result = cob_light.msg.SetLightModeActionResult()
00175 if self.action_feedback is None:
00176 self.action_feedback = cob_light.msg.SetLightModeActionFeedback()
00177 else:
00178 self.action_goal = cob_light.msg.SetLightModeActionGoal()
00179 self.action_result = cob_light.msg.SetLightModeActionResult()
00180 self.action_feedback = cob_light.msg.SetLightModeActionFeedback()
00181
00182 def _get_types(self):
00183 """
00184 internal API method
00185 """
00186 return self._slot_types
00187
00188 def serialize(self, buff):
00189 """
00190 serialize message into buffer
00191 :param buff: buffer, ``StringIO``
00192 """
00193 try:
00194 _x = self
00195 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00196 _x = self.action_goal.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_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00204 _x = self.action_goal.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 _x = self
00211 buff.write(_struct_B6fib3I.pack(_x.action_goal.goal.mode.mode, _x.action_goal.goal.mode.color.r, _x.action_goal.goal.mode.color.g, _x.action_goal.goal.mode.color.b, _x.action_goal.goal.mode.color.a, _x.action_goal.goal.mode.frequency, _x.action_goal.goal.mode.timeout, _x.action_goal.goal.mode.pulses, _x.action_goal.goal.mode.priority, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00212 _x = self.action_result.header.frame_id
00213 length = len(_x)
00214 if python3 or type(_x) == unicode:
00215 _x = _x.encode('utf-8')
00216 length = len(_x)
00217 buff.write(struct.pack('<I%ss'%length, length, _x))
00218 _x = self
00219 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00220 _x = self.action_result.status.goal_id.id
00221 length = len(_x)
00222 if python3 or type(_x) == unicode:
00223 _x = _x.encode('utf-8')
00224 length = len(_x)
00225 buff.write(struct.pack('<I%ss'%length, length, _x))
00226 buff.write(_struct_B.pack(self.action_result.status.status))
00227 _x = self.action_result.status.text
00228 length = len(_x)
00229 if python3 or type(_x) == unicode:
00230 _x = _x.encode('utf-8')
00231 length = len(_x)
00232 buff.write(struct.pack('<I%ss'%length, length, _x))
00233 _x = self
00234 buff.write(_struct_2B3I.pack(_x.action_result.result.active_mode, _x.action_result.result.active_priority, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00235 _x = self.action_feedback.header.frame_id
00236 length = len(_x)
00237 if python3 or type(_x) == unicode:
00238 _x = _x.encode('utf-8')
00239 length = len(_x)
00240 buff.write(struct.pack('<I%ss'%length, length, _x))
00241 _x = self
00242 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00243 _x = self.action_feedback.status.goal_id.id
00244 length = len(_x)
00245 if python3 or type(_x) == unicode:
00246 _x = _x.encode('utf-8')
00247 length = len(_x)
00248 buff.write(struct.pack('<I%ss'%length, length, _x))
00249 buff.write(_struct_B.pack(self.action_feedback.status.status))
00250 _x = self.action_feedback.status.text
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_2B.pack(_x.action_feedback.feedback.active_mode, _x.action_feedback.feedback.active_priority))
00258 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00259 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00260
00261 def deserialize(self, str):
00262 """
00263 unpack serialized message in str into this message instance
00264 :param str: byte array of serialized message, ``str``
00265 """
00266 try:
00267 if self.action_goal is None:
00268 self.action_goal = cob_light.msg.SetLightModeActionGoal()
00269 if self.action_result is None:
00270 self.action_result = cob_light.msg.SetLightModeActionResult()
00271 if self.action_feedback is None:
00272 self.action_feedback = cob_light.msg.SetLightModeActionFeedback()
00273 end = 0
00274 _x = self
00275 start = end
00276 end += 12
00277 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00278 start = end
00279 end += 4
00280 (length,) = _struct_I.unpack(str[start:end])
00281 start = end
00282 end += length
00283 if python3:
00284 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00285 else:
00286 self.action_goal.header.frame_id = str[start:end]
00287 _x = self
00288 start = end
00289 end += 8
00290 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00291 start = end
00292 end += 4
00293 (length,) = _struct_I.unpack(str[start:end])
00294 start = end
00295 end += length
00296 if python3:
00297 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00298 else:
00299 self.action_goal.goal_id.id = str[start:end]
00300 _x = self
00301 start = end
00302 end += 42
00303 (_x.action_goal.goal.mode.mode, _x.action_goal.goal.mode.color.r, _x.action_goal.goal.mode.color.g, _x.action_goal.goal.mode.color.b, _x.action_goal.goal.mode.color.a, _x.action_goal.goal.mode.frequency, _x.action_goal.goal.mode.timeout, _x.action_goal.goal.mode.pulses, _x.action_goal.goal.mode.priority, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B6fib3I.unpack(str[start:end])
00304 start = end
00305 end += 4
00306 (length,) = _struct_I.unpack(str[start:end])
00307 start = end
00308 end += length
00309 if python3:
00310 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00311 else:
00312 self.action_result.header.frame_id = str[start:end]
00313 _x = self
00314 start = end
00315 end += 8
00316 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00317 start = end
00318 end += 4
00319 (length,) = _struct_I.unpack(str[start:end])
00320 start = end
00321 end += length
00322 if python3:
00323 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00324 else:
00325 self.action_result.status.goal_id.id = str[start:end]
00326 start = end
00327 end += 1
00328 (self.action_result.status.status,) = _struct_B.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.action_result.status.text = str[start:end].decode('utf-8')
00336 else:
00337 self.action_result.status.text = str[start:end]
00338 _x = self
00339 start = end
00340 end += 14
00341 (_x.action_result.result.active_mode, _x.action_result.result.active_priority, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2B3I.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.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00349 else:
00350 self.action_feedback.header.frame_id = str[start:end]
00351 _x = self
00352 start = end
00353 end += 8
00354 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00355 start = end
00356 end += 4
00357 (length,) = _struct_I.unpack(str[start:end])
00358 start = end
00359 end += length
00360 if python3:
00361 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00362 else:
00363 self.action_feedback.status.goal_id.id = str[start:end]
00364 start = end
00365 end += 1
00366 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00367 start = end
00368 end += 4
00369 (length,) = _struct_I.unpack(str[start:end])
00370 start = end
00371 end += length
00372 if python3:
00373 self.action_feedback.status.text = str[start:end].decode('utf-8')
00374 else:
00375 self.action_feedback.status.text = str[start:end]
00376 _x = self
00377 start = end
00378 end += 2
00379 (_x.action_feedback.feedback.active_mode, _x.action_feedback.feedback.active_priority,) = _struct_2B.unpack(str[start:end])
00380 return self
00381 except struct.error as e:
00382 raise genpy.DeserializationError(e)
00383
00384
00385 def serialize_numpy(self, buff, numpy):
00386 """
00387 serialize message with numpy array types into buffer
00388 :param buff: buffer, ``StringIO``
00389 :param numpy: numpy python module
00390 """
00391 try:
00392 _x = self
00393 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00394 _x = self.action_goal.header.frame_id
00395 length = len(_x)
00396 if python3 or type(_x) == unicode:
00397 _x = _x.encode('utf-8')
00398 length = len(_x)
00399 buff.write(struct.pack('<I%ss'%length, length, _x))
00400 _x = self
00401 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00402 _x = self.action_goal.goal_id.id
00403 length = len(_x)
00404 if python3 or type(_x) == unicode:
00405 _x = _x.encode('utf-8')
00406 length = len(_x)
00407 buff.write(struct.pack('<I%ss'%length, length, _x))
00408 _x = self
00409 buff.write(_struct_B6fib3I.pack(_x.action_goal.goal.mode.mode, _x.action_goal.goal.mode.color.r, _x.action_goal.goal.mode.color.g, _x.action_goal.goal.mode.color.b, _x.action_goal.goal.mode.color.a, _x.action_goal.goal.mode.frequency, _x.action_goal.goal.mode.timeout, _x.action_goal.goal.mode.pulses, _x.action_goal.goal.mode.priority, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00410 _x = self.action_result.header.frame_id
00411 length = len(_x)
00412 if python3 or type(_x) == unicode:
00413 _x = _x.encode('utf-8')
00414 length = len(_x)
00415 buff.write(struct.pack('<I%ss'%length, length, _x))
00416 _x = self
00417 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00418 _x = self.action_result.status.goal_id.id
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 buff.write(_struct_B.pack(self.action_result.status.status))
00425 _x = self.action_result.status.text
00426 length = len(_x)
00427 if python3 or type(_x) == unicode:
00428 _x = _x.encode('utf-8')
00429 length = len(_x)
00430 buff.write(struct.pack('<I%ss'%length, length, _x))
00431 _x = self
00432 buff.write(_struct_2B3I.pack(_x.action_result.result.active_mode, _x.action_result.result.active_priority, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00433 _x = self.action_feedback.header.frame_id
00434 length = len(_x)
00435 if python3 or type(_x) == unicode:
00436 _x = _x.encode('utf-8')
00437 length = len(_x)
00438 buff.write(struct.pack('<I%ss'%length, length, _x))
00439 _x = self
00440 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00441 _x = self.action_feedback.status.goal_id.id
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(_struct_B.pack(self.action_feedback.status.status))
00448 _x = self.action_feedback.status.text
00449 length = len(_x)
00450 if python3 or type(_x) == unicode:
00451 _x = _x.encode('utf-8')
00452 length = len(_x)
00453 buff.write(struct.pack('<I%ss'%length, length, _x))
00454 _x = self
00455 buff.write(_struct_2B.pack(_x.action_feedback.feedback.active_mode, _x.action_feedback.feedback.active_priority))
00456 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00457 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00458
00459 def deserialize_numpy(self, str, numpy):
00460 """
00461 unpack serialized message in str into this message instance using numpy for array types
00462 :param str: byte array of serialized message, ``str``
00463 :param numpy: numpy python module
00464 """
00465 try:
00466 if self.action_goal is None:
00467 self.action_goal = cob_light.msg.SetLightModeActionGoal()
00468 if self.action_result is None:
00469 self.action_result = cob_light.msg.SetLightModeActionResult()
00470 if self.action_feedback is None:
00471 self.action_feedback = cob_light.msg.SetLightModeActionFeedback()
00472 end = 0
00473 _x = self
00474 start = end
00475 end += 12
00476 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00477 start = end
00478 end += 4
00479 (length,) = _struct_I.unpack(str[start:end])
00480 start = end
00481 end += length
00482 if python3:
00483 self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00484 else:
00485 self.action_goal.header.frame_id = str[start:end]
00486 _x = self
00487 start = end
00488 end += 8
00489 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00490 start = end
00491 end += 4
00492 (length,) = _struct_I.unpack(str[start:end])
00493 start = end
00494 end += length
00495 if python3:
00496 self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00497 else:
00498 self.action_goal.goal_id.id = str[start:end]
00499 _x = self
00500 start = end
00501 end += 42
00502 (_x.action_goal.goal.mode.mode, _x.action_goal.goal.mode.color.r, _x.action_goal.goal.mode.color.g, _x.action_goal.goal.mode.color.b, _x.action_goal.goal.mode.color.a, _x.action_goal.goal.mode.frequency, _x.action_goal.goal.mode.timeout, _x.action_goal.goal.mode.pulses, _x.action_goal.goal.mode.priority, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B6fib3I.unpack(str[start:end])
00503 start = end
00504 end += 4
00505 (length,) = _struct_I.unpack(str[start:end])
00506 start = end
00507 end += length
00508 if python3:
00509 self.action_result.header.frame_id = str[start:end].decode('utf-8')
00510 else:
00511 self.action_result.header.frame_id = str[start:end]
00512 _x = self
00513 start = end
00514 end += 8
00515 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00516 start = end
00517 end += 4
00518 (length,) = _struct_I.unpack(str[start:end])
00519 start = end
00520 end += length
00521 if python3:
00522 self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00523 else:
00524 self.action_result.status.goal_id.id = str[start:end]
00525 start = end
00526 end += 1
00527 (self.action_result.status.status,) = _struct_B.unpack(str[start:end])
00528 start = end
00529 end += 4
00530 (length,) = _struct_I.unpack(str[start:end])
00531 start = end
00532 end += length
00533 if python3:
00534 self.action_result.status.text = str[start:end].decode('utf-8')
00535 else:
00536 self.action_result.status.text = str[start:end]
00537 _x = self
00538 start = end
00539 end += 14
00540 (_x.action_result.result.active_mode, _x.action_result.result.active_priority, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2B3I.unpack(str[start:end])
00541 start = end
00542 end += 4
00543 (length,) = _struct_I.unpack(str[start:end])
00544 start = end
00545 end += length
00546 if python3:
00547 self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00548 else:
00549 self.action_feedback.header.frame_id = str[start:end]
00550 _x = self
00551 start = end
00552 end += 8
00553 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00554 start = end
00555 end += 4
00556 (length,) = _struct_I.unpack(str[start:end])
00557 start = end
00558 end += length
00559 if python3:
00560 self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00561 else:
00562 self.action_feedback.status.goal_id.id = str[start:end]
00563 start = end
00564 end += 1
00565 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00566 start = end
00567 end += 4
00568 (length,) = _struct_I.unpack(str[start:end])
00569 start = end
00570 end += length
00571 if python3:
00572 self.action_feedback.status.text = str[start:end].decode('utf-8')
00573 else:
00574 self.action_feedback.status.text = str[start:end]
00575 _x = self
00576 start = end
00577 end += 2
00578 (_x.action_feedback.feedback.active_mode, _x.action_feedback.feedback.active_priority,) = _struct_2B.unpack(str[start:end])
00579 return self
00580 except struct.error as e:
00581 raise genpy.DeserializationError(e)
00582
00583 _struct_I = genpy.struct_I
00584 _struct_B6fib3I = struct.Struct("<B6fib3I")
00585 _struct_2B3I = struct.Struct("<2B3I")
00586 _struct_B = struct.Struct("<B")
00587 _struct_3I = struct.Struct("<3I")
00588 _struct_2B = struct.Struct("<2B")
00589 _struct_2I = struct.Struct("<2I")