_TurtlebotMoveAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from turtlebot_actions/TurtlebotMoveAction.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 turtlebot_actions.msg
00011 
00012 class TurtlebotMoveAction(genpy.Message):
00013   _md5sum = "339929f411dcfd188670046028b412ee"
00014   _type = "turtlebot_actions/TurtlebotMoveAction"
00015   _has_header = False #flag to mark the presence of a Header object
00016   _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00017 
00018 TurtlebotMoveActionGoal action_goal
00019 TurtlebotMoveActionResult action_result
00020 TurtlebotMoveActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: turtlebot_actions/TurtlebotMoveActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 TurtlebotMoveGoal 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: turtlebot_actions/TurtlebotMoveGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 #goal definition
00065 float32 turn_distance     # in radians, ccw = +, cw = -
00066 float32 forward_distance  # in meters, forward = +, backward = -
00067 
00068 ================================================================================
00069 MSG: turtlebot_actions/TurtlebotMoveActionResult
00070 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00071 
00072 Header header
00073 actionlib_msgs/GoalStatus status
00074 TurtlebotMoveResult result
00075 
00076 ================================================================================
00077 MSG: actionlib_msgs/GoalStatus
00078 GoalID goal_id
00079 uint8 status
00080 uint8 PENDING         = 0   # The goal has yet to be processed by the action server
00081 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server
00082 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing
00083                             #   and has since completed its execution (Terminal State)
00084 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)
00085 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due
00086                             #    to some failure (Terminal State)
00087 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,
00088                             #    because the goal was unattainable or invalid (Terminal State)
00089 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing
00090                             #    and has not yet completed execution
00091 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,
00092                             #    but the action server has not yet confirmed that the goal is canceled
00093 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing
00094                             #    and was successfully cancelled (Terminal State)
00095 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be
00096                             #    sent over the wire by an action server
00097 
00098 #Allow for the user to associate a string with GoalStatus for debugging
00099 string text
00100 
00101 
00102 ================================================================================
00103 MSG: turtlebot_actions/TurtlebotMoveResult
00104 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00105 #result definition
00106 float32 turn_distance
00107 float32 forward_distance
00108 
00109 ================================================================================
00110 MSG: turtlebot_actions/TurtlebotMoveActionFeedback
00111 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00112 
00113 Header header
00114 actionlib_msgs/GoalStatus status
00115 TurtlebotMoveFeedback feedback
00116 
00117 ================================================================================
00118 MSG: turtlebot_actions/TurtlebotMoveFeedback
00119 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00120 #feedback
00121 float32 turn_distance
00122 float32 forward_distance
00123 
00124 
00125 """
00126   __slots__ = ['action_goal','action_result','action_feedback']
00127   _slot_types = ['turtlebot_actions/TurtlebotMoveActionGoal','turtlebot_actions/TurtlebotMoveActionResult','turtlebot_actions/TurtlebotMoveActionFeedback']
00128 
00129   def __init__(self, *args, **kwds):
00130     """
00131     Constructor. Any message fields that are implicitly/explicitly
00132     set to None will be assigned a default value. The recommend
00133     use is keyword arguments as this is more robust to future message
00134     changes.  You cannot mix in-order arguments and keyword arguments.
00135 
00136     The available fields are:
00137        action_goal,action_result,action_feedback
00138 
00139     :param args: complete set of field values, in .msg order
00140     :param kwds: use keyword arguments corresponding to message field names
00141     to set specific fields.
00142     """
00143     if args or kwds:
00144       super(TurtlebotMoveAction, self).__init__(*args, **kwds)
00145       #message fields cannot be None, assign default values for those that are
00146       if self.action_goal is None:
00147         self.action_goal = turtlebot_actions.msg.TurtlebotMoveActionGoal()
00148       if self.action_result is None:
00149         self.action_result = turtlebot_actions.msg.TurtlebotMoveActionResult()
00150       if self.action_feedback is None:
00151         self.action_feedback = turtlebot_actions.msg.TurtlebotMoveActionFeedback()
00152     else:
00153       self.action_goal = turtlebot_actions.msg.TurtlebotMoveActionGoal()
00154       self.action_result = turtlebot_actions.msg.TurtlebotMoveActionResult()
00155       self.action_feedback = turtlebot_actions.msg.TurtlebotMoveActionFeedback()
00156 
00157   def _get_types(self):
00158     """
00159     internal API method
00160     """
00161     return self._slot_types
00162 
00163   def serialize(self, buff):
00164     """
00165     serialize message into buffer
00166     :param buff: buffer, ``StringIO``
00167     """
00168     try:
00169       _x = self
00170       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00171       _x = self.action_goal.header.frame_id
00172       length = len(_x)
00173       if python3 or type(_x) == unicode:
00174         _x = _x.encode('utf-8')
00175         length = len(_x)
00176       buff.write(struct.pack('<I%ss'%length, length, _x))
00177       _x = self
00178       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00179       _x = self.action_goal.goal_id.id
00180       length = len(_x)
00181       if python3 or type(_x) == unicode:
00182         _x = _x.encode('utf-8')
00183         length = len(_x)
00184       buff.write(struct.pack('<I%ss'%length, length, _x))
00185       _x = self
00186       buff.write(_struct_2f3I.pack(_x.action_goal.goal.turn_distance, _x.action_goal.goal.forward_distance, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00187       _x = self.action_result.header.frame_id
00188       length = len(_x)
00189       if python3 or type(_x) == unicode:
00190         _x = _x.encode('utf-8')
00191         length = len(_x)
00192       buff.write(struct.pack('<I%ss'%length, length, _x))
00193       _x = self
00194       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00195       _x = self.action_result.status.goal_id.id
00196       length = len(_x)
00197       if python3 or type(_x) == unicode:
00198         _x = _x.encode('utf-8')
00199         length = len(_x)
00200       buff.write(struct.pack('<I%ss'%length, length, _x))
00201       buff.write(_struct_B.pack(self.action_result.status.status))
00202       _x = self.action_result.status.text
00203       length = len(_x)
00204       if python3 or type(_x) == unicode:
00205         _x = _x.encode('utf-8')
00206         length = len(_x)
00207       buff.write(struct.pack('<I%ss'%length, length, _x))
00208       _x = self
00209       buff.write(_struct_2f3I.pack(_x.action_result.result.turn_distance, _x.action_result.result.forward_distance, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00210       _x = self.action_feedback.header.frame_id
00211       length = len(_x)
00212       if python3 or type(_x) == unicode:
00213         _x = _x.encode('utf-8')
00214         length = len(_x)
00215       buff.write(struct.pack('<I%ss'%length, length, _x))
00216       _x = self
00217       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00218       _x = self.action_feedback.status.goal_id.id
00219       length = len(_x)
00220       if python3 or type(_x) == unicode:
00221         _x = _x.encode('utf-8')
00222         length = len(_x)
00223       buff.write(struct.pack('<I%ss'%length, length, _x))
00224       buff.write(_struct_B.pack(self.action_feedback.status.status))
00225       _x = self.action_feedback.status.text
00226       length = len(_x)
00227       if python3 or type(_x) == unicode:
00228         _x = _x.encode('utf-8')
00229         length = len(_x)
00230       buff.write(struct.pack('<I%ss'%length, length, _x))
00231       _x = self
00232       buff.write(_struct_2f.pack(_x.action_feedback.feedback.turn_distance, _x.action_feedback.feedback.forward_distance))
00233     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00234     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00235 
00236   def deserialize(self, str):
00237     """
00238     unpack serialized message in str into this message instance
00239     :param str: byte array of serialized message, ``str``
00240     """
00241     try:
00242       if self.action_goal is None:
00243         self.action_goal = turtlebot_actions.msg.TurtlebotMoveActionGoal()
00244       if self.action_result is None:
00245         self.action_result = turtlebot_actions.msg.TurtlebotMoveActionResult()
00246       if self.action_feedback is None:
00247         self.action_feedback = turtlebot_actions.msg.TurtlebotMoveActionFeedback()
00248       end = 0
00249       _x = self
00250       start = end
00251       end += 12
00252       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00253       start = end
00254       end += 4
00255       (length,) = _struct_I.unpack(str[start:end])
00256       start = end
00257       end += length
00258       if python3:
00259         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00260       else:
00261         self.action_goal.header.frame_id = str[start:end]
00262       _x = self
00263       start = end
00264       end += 8
00265       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.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.goal_id.id = str[start:end].decode('utf-8')
00273       else:
00274         self.action_goal.goal_id.id = str[start:end]
00275       _x = self
00276       start = end
00277       end += 20
00278       (_x.action_goal.goal.turn_distance, _x.action_goal.goal.forward_distance, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2f3I.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_result.header.frame_id = str[start:end].decode('utf-8')
00286       else:
00287         self.action_result.header.frame_id = str[start:end]
00288       _x = self
00289       start = end
00290       end += 8
00291       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00292       start = end
00293       end += 4
00294       (length,) = _struct_I.unpack(str[start:end])
00295       start = end
00296       end += length
00297       if python3:
00298         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00299       else:
00300         self.action_result.status.goal_id.id = str[start:end]
00301       start = end
00302       end += 1
00303       (self.action_result.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00311       else:
00312         self.action_result.status.text = str[start:end]
00313       _x = self
00314       start = end
00315       end += 20
00316       (_x.action_result.result.turn_distance, _x.action_result.result.forward_distance, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2f3I.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_feedback.header.frame_id = str[start:end].decode('utf-8')
00324       else:
00325         self.action_feedback.header.frame_id = str[start:end]
00326       _x = self
00327       start = end
00328       end += 8
00329       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00330       start = end
00331       end += 4
00332       (length,) = _struct_I.unpack(str[start:end])
00333       start = end
00334       end += length
00335       if python3:
00336         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00337       else:
00338         self.action_feedback.status.goal_id.id = str[start:end]
00339       start = end
00340       end += 1
00341       (self.action_feedback.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00349       else:
00350         self.action_feedback.status.text = str[start:end]
00351       _x = self
00352       start = end
00353       end += 8
00354       (_x.action_feedback.feedback.turn_distance, _x.action_feedback.feedback.forward_distance,) = _struct_2f.unpack(str[start:end])
00355       return self
00356     except struct.error as e:
00357       raise genpy.DeserializationError(e) #most likely buffer underfill
00358 
00359 
00360   def serialize_numpy(self, buff, numpy):
00361     """
00362     serialize message with numpy array types into buffer
00363     :param buff: buffer, ``StringIO``
00364     :param numpy: numpy python module
00365     """
00366     try:
00367       _x = self
00368       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00369       _x = self.action_goal.header.frame_id
00370       length = len(_x)
00371       if python3 or type(_x) == unicode:
00372         _x = _x.encode('utf-8')
00373         length = len(_x)
00374       buff.write(struct.pack('<I%ss'%length, length, _x))
00375       _x = self
00376       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00377       _x = self.action_goal.goal_id.id
00378       length = len(_x)
00379       if python3 or type(_x) == unicode:
00380         _x = _x.encode('utf-8')
00381         length = len(_x)
00382       buff.write(struct.pack('<I%ss'%length, length, _x))
00383       _x = self
00384       buff.write(_struct_2f3I.pack(_x.action_goal.goal.turn_distance, _x.action_goal.goal.forward_distance, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00385       _x = self.action_result.header.frame_id
00386       length = len(_x)
00387       if python3 or type(_x) == unicode:
00388         _x = _x.encode('utf-8')
00389         length = len(_x)
00390       buff.write(struct.pack('<I%ss'%length, length, _x))
00391       _x = self
00392       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00393       _x = self.action_result.status.goal_id.id
00394       length = len(_x)
00395       if python3 or type(_x) == unicode:
00396         _x = _x.encode('utf-8')
00397         length = len(_x)
00398       buff.write(struct.pack('<I%ss'%length, length, _x))
00399       buff.write(_struct_B.pack(self.action_result.status.status))
00400       _x = self.action_result.status.text
00401       length = len(_x)
00402       if python3 or type(_x) == unicode:
00403         _x = _x.encode('utf-8')
00404         length = len(_x)
00405       buff.write(struct.pack('<I%ss'%length, length, _x))
00406       _x = self
00407       buff.write(_struct_2f3I.pack(_x.action_result.result.turn_distance, _x.action_result.result.forward_distance, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00408       _x = self.action_feedback.header.frame_id
00409       length = len(_x)
00410       if python3 or type(_x) == unicode:
00411         _x = _x.encode('utf-8')
00412         length = len(_x)
00413       buff.write(struct.pack('<I%ss'%length, length, _x))
00414       _x = self
00415       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00416       _x = self.action_feedback.status.goal_id.id
00417       length = len(_x)
00418       if python3 or type(_x) == unicode:
00419         _x = _x.encode('utf-8')
00420         length = len(_x)
00421       buff.write(struct.pack('<I%ss'%length, length, _x))
00422       buff.write(_struct_B.pack(self.action_feedback.status.status))
00423       _x = self.action_feedback.status.text
00424       length = len(_x)
00425       if python3 or type(_x) == unicode:
00426         _x = _x.encode('utf-8')
00427         length = len(_x)
00428       buff.write(struct.pack('<I%ss'%length, length, _x))
00429       _x = self
00430       buff.write(_struct_2f.pack(_x.action_feedback.feedback.turn_distance, _x.action_feedback.feedback.forward_distance))
00431     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00432     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00433 
00434   def deserialize_numpy(self, str, numpy):
00435     """
00436     unpack serialized message in str into this message instance using numpy for array types
00437     :param str: byte array of serialized message, ``str``
00438     :param numpy: numpy python module
00439     """
00440     try:
00441       if self.action_goal is None:
00442         self.action_goal = turtlebot_actions.msg.TurtlebotMoveActionGoal()
00443       if self.action_result is None:
00444         self.action_result = turtlebot_actions.msg.TurtlebotMoveActionResult()
00445       if self.action_feedback is None:
00446         self.action_feedback = turtlebot_actions.msg.TurtlebotMoveActionFeedback()
00447       end = 0
00448       _x = self
00449       start = end
00450       end += 12
00451       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00452       start = end
00453       end += 4
00454       (length,) = _struct_I.unpack(str[start:end])
00455       start = end
00456       end += length
00457       if python3:
00458         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00459       else:
00460         self.action_goal.header.frame_id = str[start:end]
00461       _x = self
00462       start = end
00463       end += 8
00464       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00465       start = end
00466       end += 4
00467       (length,) = _struct_I.unpack(str[start:end])
00468       start = end
00469       end += length
00470       if python3:
00471         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00472       else:
00473         self.action_goal.goal_id.id = str[start:end]
00474       _x = self
00475       start = end
00476       end += 20
00477       (_x.action_goal.goal.turn_distance, _x.action_goal.goal.forward_distance, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_2f3I.unpack(str[start:end])
00478       start = end
00479       end += 4
00480       (length,) = _struct_I.unpack(str[start:end])
00481       start = end
00482       end += length
00483       if python3:
00484         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00485       else:
00486         self.action_result.header.frame_id = str[start:end]
00487       _x = self
00488       start = end
00489       end += 8
00490       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00491       start = end
00492       end += 4
00493       (length,) = _struct_I.unpack(str[start:end])
00494       start = end
00495       end += length
00496       if python3:
00497         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00498       else:
00499         self.action_result.status.goal_id.id = str[start:end]
00500       start = end
00501       end += 1
00502       (self.action_result.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00510       else:
00511         self.action_result.status.text = str[start:end]
00512       _x = self
00513       start = end
00514       end += 20
00515       (_x.action_result.result.turn_distance, _x.action_result.result.forward_distance, _x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_2f3I.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_feedback.header.frame_id = str[start:end].decode('utf-8')
00523       else:
00524         self.action_feedback.header.frame_id = str[start:end]
00525       _x = self
00526       start = end
00527       end += 8
00528       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00529       start = end
00530       end += 4
00531       (length,) = _struct_I.unpack(str[start:end])
00532       start = end
00533       end += length
00534       if python3:
00535         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00536       else:
00537         self.action_feedback.status.goal_id.id = str[start:end]
00538       start = end
00539       end += 1
00540       (self.action_feedback.status.status,) = _struct_B.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.status.text = str[start:end].decode('utf-8')
00548       else:
00549         self.action_feedback.status.text = str[start:end]
00550       _x = self
00551       start = end
00552       end += 8
00553       (_x.action_feedback.feedback.turn_distance, _x.action_feedback.feedback.forward_distance,) = _struct_2f.unpack(str[start:end])
00554       return self
00555     except struct.error as e:
00556       raise genpy.DeserializationError(e) #most likely buffer underfill
00557 
00558 _struct_I = genpy.struct_I
00559 _struct_3I = struct.Struct("<3I")
00560 _struct_B = struct.Struct("<B")
00561 _struct_2f3I = struct.Struct("<2f3I")
00562 _struct_2I = struct.Struct("<2I")
00563 _struct_2f = struct.Struct("<2f")


turtlebot_actions
Author(s): Helen Oleynikova, Melonee Wise
autogenerated on Mon Oct 6 2014 08:09:39