_PanoCaptureAction.py
Go to the documentation of this file.
00001 """autogenerated by genpy from pano_ros/PanoCaptureAction.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 pano_ros.msg
00008 import genpy
00009 import actionlib_msgs.msg
00010 import std_msgs.msg
00011 
00012 class PanoCaptureAction(genpy.Message):
00013   _md5sum = "29aaf854ae11bc4f1d21580cf870cfb6"
00014   _type = "pano_ros/PanoCaptureAction"
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 PanoCaptureActionGoal action_goal
00019 PanoCaptureActionResult action_result
00020 PanoCaptureActionFeedback action_feedback
00021 
00022 ================================================================================
00023 MSG: pano_ros/PanoCaptureActionGoal
00024 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00025 
00026 Header header
00027 actionlib_msgs/GoalID goal_id
00028 PanoCaptureGoal 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: pano_ros/PanoCaptureGoal
00063 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00064 # Define the goal
00065 # TODO: tf frame 
00066 string camera_topic
00067 string bag_filename
00068 
00069 ================================================================================
00070 MSG: pano_ros/PanoCaptureActionResult
00071 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00072 
00073 Header header
00074 actionlib_msgs/GoalStatus status
00075 PanoCaptureResult 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: pano_ros/PanoCaptureResult
00105 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00106 # Define the result
00107 uint32 pano_id
00108 uint32 n_captures
00109 string bag_filename
00110 
00111 ================================================================================
00112 MSG: pano_ros/PanoCaptureActionFeedback
00113 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00114 
00115 Header header
00116 actionlib_msgs/GoalStatus status
00117 PanoCaptureFeedback feedback
00118 
00119 ================================================================================
00120 MSG: pano_ros/PanoCaptureFeedback
00121 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
00122 # Define a feedback message
00123 float32 n_captures
00124 
00125 
00126 """
00127   __slots__ = ['action_goal','action_result','action_feedback']
00128   _slot_types = ['pano_ros/PanoCaptureActionGoal','pano_ros/PanoCaptureActionResult','pano_ros/PanoCaptureActionFeedback']
00129 
00130   def __init__(self, *args, **kwds):
00131     """
00132     Constructor. Any message fields that are implicitly/explicitly
00133     set to None will be assigned a default value. The recommend
00134     use is keyword arguments as this is more robust to future message
00135     changes.  You cannot mix in-order arguments and keyword arguments.
00136 
00137     The available fields are:
00138        action_goal,action_result,action_feedback
00139 
00140     :param args: complete set of field values, in .msg order
00141     :param kwds: use keyword arguments corresponding to message field names
00142     to set specific fields.
00143     """
00144     if args or kwds:
00145       super(PanoCaptureAction, self).__init__(*args, **kwds)
00146       #message fields cannot be None, assign default values for those that are
00147       if self.action_goal is None:
00148         self.action_goal = pano_ros.msg.PanoCaptureActionGoal()
00149       if self.action_result is None:
00150         self.action_result = pano_ros.msg.PanoCaptureActionResult()
00151       if self.action_feedback is None:
00152         self.action_feedback = pano_ros.msg.PanoCaptureActionFeedback()
00153     else:
00154       self.action_goal = pano_ros.msg.PanoCaptureActionGoal()
00155       self.action_result = pano_ros.msg.PanoCaptureActionResult()
00156       self.action_feedback = pano_ros.msg.PanoCaptureActionFeedback()
00157 
00158   def _get_types(self):
00159     """
00160     internal API method
00161     """
00162     return self._slot_types
00163 
00164   def serialize(self, buff):
00165     """
00166     serialize message into buffer
00167     :param buff: buffer, ``StringIO``
00168     """
00169     try:
00170       _x = self
00171       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00172       _x = self.action_goal.header.frame_id
00173       length = len(_x)
00174       if python3 or type(_x) == unicode:
00175         _x = _x.encode('utf-8')
00176         length = len(_x)
00177       buff.write(struct.pack('<I%ss'%length, length, _x))
00178       _x = self
00179       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00180       _x = self.action_goal.goal_id.id
00181       length = len(_x)
00182       if python3 or type(_x) == unicode:
00183         _x = _x.encode('utf-8')
00184         length = len(_x)
00185       buff.write(struct.pack('<I%ss'%length, length, _x))
00186       _x = self.action_goal.goal.camera_topic
00187       length = len(_x)
00188       if python3 or type(_x) == unicode:
00189         _x = _x.encode('utf-8')
00190         length = len(_x)
00191       buff.write(struct.pack('<I%ss'%length, length, _x))
00192       _x = self.action_goal.goal.bag_filename
00193       length = len(_x)
00194       if python3 or type(_x) == unicode:
00195         _x = _x.encode('utf-8')
00196         length = len(_x)
00197       buff.write(struct.pack('<I%ss'%length, length, _x))
00198       _x = self
00199       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00200       _x = self.action_result.header.frame_id
00201       length = len(_x)
00202       if python3 or type(_x) == unicode:
00203         _x = _x.encode('utf-8')
00204         length = len(_x)
00205       buff.write(struct.pack('<I%ss'%length, length, _x))
00206       _x = self
00207       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00208       _x = self.action_result.status.goal_id.id
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_B.pack(self.action_result.status.status))
00215       _x = self.action_result.status.text
00216       length = len(_x)
00217       if python3 or type(_x) == unicode:
00218         _x = _x.encode('utf-8')
00219         length = len(_x)
00220       buff.write(struct.pack('<I%ss'%length, length, _x))
00221       _x = self
00222       buff.write(_struct_2I.pack(_x.action_result.result.pano_id, _x.action_result.result.n_captures))
00223       _x = self.action_result.result.bag_filename
00224       length = len(_x)
00225       if python3 or type(_x) == unicode:
00226         _x = _x.encode('utf-8')
00227         length = len(_x)
00228       buff.write(struct.pack('<I%ss'%length, length, _x))
00229       _x = self
00230       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00231       _x = self.action_feedback.header.frame_id
00232       length = len(_x)
00233       if python3 or type(_x) == unicode:
00234         _x = _x.encode('utf-8')
00235         length = len(_x)
00236       buff.write(struct.pack('<I%ss'%length, length, _x))
00237       _x = self
00238       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00239       _x = self.action_feedback.status.goal_id.id
00240       length = len(_x)
00241       if python3 or type(_x) == unicode:
00242         _x = _x.encode('utf-8')
00243         length = len(_x)
00244       buff.write(struct.pack('<I%ss'%length, length, _x))
00245       buff.write(_struct_B.pack(self.action_feedback.status.status))
00246       _x = self.action_feedback.status.text
00247       length = len(_x)
00248       if python3 or type(_x) == unicode:
00249         _x = _x.encode('utf-8')
00250         length = len(_x)
00251       buff.write(struct.pack('<I%ss'%length, length, _x))
00252       buff.write(_struct_f.pack(self.action_feedback.feedback.n_captures))
00253     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00254     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00255 
00256   def deserialize(self, str):
00257     """
00258     unpack serialized message in str into this message instance
00259     :param str: byte array of serialized message, ``str``
00260     """
00261     try:
00262       if self.action_goal is None:
00263         self.action_goal = pano_ros.msg.PanoCaptureActionGoal()
00264       if self.action_result is None:
00265         self.action_result = pano_ros.msg.PanoCaptureActionResult()
00266       if self.action_feedback is None:
00267         self.action_feedback = pano_ros.msg.PanoCaptureActionFeedback()
00268       end = 0
00269       _x = self
00270       start = end
00271       end += 12
00272       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00273       start = end
00274       end += 4
00275       (length,) = _struct_I.unpack(str[start:end])
00276       start = end
00277       end += length
00278       if python3:
00279         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00280       else:
00281         self.action_goal.header.frame_id = str[start:end]
00282       _x = self
00283       start = end
00284       end += 8
00285       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00286       start = end
00287       end += 4
00288       (length,) = _struct_I.unpack(str[start:end])
00289       start = end
00290       end += length
00291       if python3:
00292         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00293       else:
00294         self.action_goal.goal_id.id = str[start:end]
00295       start = end
00296       end += 4
00297       (length,) = _struct_I.unpack(str[start:end])
00298       start = end
00299       end += length
00300       if python3:
00301         self.action_goal.goal.camera_topic = str[start:end].decode('utf-8')
00302       else:
00303         self.action_goal.goal.camera_topic = 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_goal.goal.bag_filename = str[start:end].decode('utf-8')
00311       else:
00312         self.action_goal.goal.bag_filename = str[start:end]
00313       _x = self
00314       start = end
00315       end += 12
00316       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end].decode('utf-8')
00324       else:
00325         self.action_result.header.frame_id = str[start:end]
00326       _x = self
00327       start = end
00328       end += 8
00329       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.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_result.status.goal_id.id = str[start:end].decode('utf-8')
00337       else:
00338         self.action_result.status.goal_id.id = str[start:end]
00339       start = end
00340       end += 1
00341       (self.action_result.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_result.status.text = str[start:end].decode('utf-8')
00349       else:
00350         self.action_result.status.text = str[start:end]
00351       _x = self
00352       start = end
00353       end += 8
00354       (_x.action_result.result.pano_id, _x.action_result.result.n_captures,) = _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_result.result.bag_filename = str[start:end].decode('utf-8')
00362       else:
00363         self.action_result.result.bag_filename = str[start:end]
00364       _x = self
00365       start = end
00366       end += 12
00367       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00368       start = end
00369       end += 4
00370       (length,) = _struct_I.unpack(str[start:end])
00371       start = end
00372       end += length
00373       if python3:
00374         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00375       else:
00376         self.action_feedback.header.frame_id = str[start:end]
00377       _x = self
00378       start = end
00379       end += 8
00380       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00381       start = end
00382       end += 4
00383       (length,) = _struct_I.unpack(str[start:end])
00384       start = end
00385       end += length
00386       if python3:
00387         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00388       else:
00389         self.action_feedback.status.goal_id.id = str[start:end]
00390       start = end
00391       end += 1
00392       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00393       start = end
00394       end += 4
00395       (length,) = _struct_I.unpack(str[start:end])
00396       start = end
00397       end += length
00398       if python3:
00399         self.action_feedback.status.text = str[start:end].decode('utf-8')
00400       else:
00401         self.action_feedback.status.text = str[start:end]
00402       start = end
00403       end += 4
00404       (self.action_feedback.feedback.n_captures,) = _struct_f.unpack(str[start:end])
00405       return self
00406     except struct.error as e:
00407       raise genpy.DeserializationError(e) #most likely buffer underfill
00408 
00409 
00410   def serialize_numpy(self, buff, numpy):
00411     """
00412     serialize message with numpy array types into buffer
00413     :param buff: buffer, ``StringIO``
00414     :param numpy: numpy python module
00415     """
00416     try:
00417       _x = self
00418       buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
00419       _x = self.action_goal.header.frame_id
00420       length = len(_x)
00421       if python3 or type(_x) == unicode:
00422         _x = _x.encode('utf-8')
00423         length = len(_x)
00424       buff.write(struct.pack('<I%ss'%length, length, _x))
00425       _x = self
00426       buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
00427       _x = self.action_goal.goal_id.id
00428       length = len(_x)
00429       if python3 or type(_x) == unicode:
00430         _x = _x.encode('utf-8')
00431         length = len(_x)
00432       buff.write(struct.pack('<I%ss'%length, length, _x))
00433       _x = self.action_goal.goal.camera_topic
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.action_goal.goal.bag_filename
00440       length = len(_x)
00441       if python3 or type(_x) == unicode:
00442         _x = _x.encode('utf-8')
00443         length = len(_x)
00444       buff.write(struct.pack('<I%ss'%length, length, _x))
00445       _x = self
00446       buff.write(_struct_3I.pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
00447       _x = self.action_result.header.frame_id
00448       length = len(_x)
00449       if python3 or type(_x) == unicode:
00450         _x = _x.encode('utf-8')
00451         length = len(_x)
00452       buff.write(struct.pack('<I%ss'%length, length, _x))
00453       _x = self
00454       buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
00455       _x = self.action_result.status.goal_id.id
00456       length = len(_x)
00457       if python3 or type(_x) == unicode:
00458         _x = _x.encode('utf-8')
00459         length = len(_x)
00460       buff.write(struct.pack('<I%ss'%length, length, _x))
00461       buff.write(_struct_B.pack(self.action_result.status.status))
00462       _x = self.action_result.status.text
00463       length = len(_x)
00464       if python3 or type(_x) == unicode:
00465         _x = _x.encode('utf-8')
00466         length = len(_x)
00467       buff.write(struct.pack('<I%ss'%length, length, _x))
00468       _x = self
00469       buff.write(_struct_2I.pack(_x.action_result.result.pano_id, _x.action_result.result.n_captures))
00470       _x = self.action_result.result.bag_filename
00471       length = len(_x)
00472       if python3 or type(_x) == unicode:
00473         _x = _x.encode('utf-8')
00474         length = len(_x)
00475       buff.write(struct.pack('<I%ss'%length, length, _x))
00476       _x = self
00477       buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
00478       _x = self.action_feedback.header.frame_id
00479       length = len(_x)
00480       if python3 or type(_x) == unicode:
00481         _x = _x.encode('utf-8')
00482         length = len(_x)
00483       buff.write(struct.pack('<I%ss'%length, length, _x))
00484       _x = self
00485       buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
00486       _x = self.action_feedback.status.goal_id.id
00487       length = len(_x)
00488       if python3 or type(_x) == unicode:
00489         _x = _x.encode('utf-8')
00490         length = len(_x)
00491       buff.write(struct.pack('<I%ss'%length, length, _x))
00492       buff.write(_struct_B.pack(self.action_feedback.status.status))
00493       _x = self.action_feedback.status.text
00494       length = len(_x)
00495       if python3 or type(_x) == unicode:
00496         _x = _x.encode('utf-8')
00497         length = len(_x)
00498       buff.write(struct.pack('<I%ss'%length, length, _x))
00499       buff.write(_struct_f.pack(self.action_feedback.feedback.n_captures))
00500     except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00501     except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00502 
00503   def deserialize_numpy(self, str, numpy):
00504     """
00505     unpack serialized message in str into this message instance using numpy for array types
00506     :param str: byte array of serialized message, ``str``
00507     :param numpy: numpy python module
00508     """
00509     try:
00510       if self.action_goal is None:
00511         self.action_goal = pano_ros.msg.PanoCaptureActionGoal()
00512       if self.action_result is None:
00513         self.action_result = pano_ros.msg.PanoCaptureActionResult()
00514       if self.action_feedback is None:
00515         self.action_feedback = pano_ros.msg.PanoCaptureActionFeedback()
00516       end = 0
00517       _x = self
00518       start = end
00519       end += 12
00520       (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00521       start = end
00522       end += 4
00523       (length,) = _struct_I.unpack(str[start:end])
00524       start = end
00525       end += length
00526       if python3:
00527         self.action_goal.header.frame_id = str[start:end].decode('utf-8')
00528       else:
00529         self.action_goal.header.frame_id = str[start:end]
00530       _x = self
00531       start = end
00532       end += 8
00533       (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00534       start = end
00535       end += 4
00536       (length,) = _struct_I.unpack(str[start:end])
00537       start = end
00538       end += length
00539       if python3:
00540         self.action_goal.goal_id.id = str[start:end].decode('utf-8')
00541       else:
00542         self.action_goal.goal_id.id = str[start:end]
00543       start = end
00544       end += 4
00545       (length,) = _struct_I.unpack(str[start:end])
00546       start = end
00547       end += length
00548       if python3:
00549         self.action_goal.goal.camera_topic = str[start:end].decode('utf-8')
00550       else:
00551         self.action_goal.goal.camera_topic = str[start:end]
00552       start = end
00553       end += 4
00554       (length,) = _struct_I.unpack(str[start:end])
00555       start = end
00556       end += length
00557       if python3:
00558         self.action_goal.goal.bag_filename = str[start:end].decode('utf-8')
00559       else:
00560         self.action_goal.goal.bag_filename = str[start:end]
00561       _x = self
00562       start = end
00563       end += 12
00564       (_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00565       start = end
00566       end += 4
00567       (length,) = _struct_I.unpack(str[start:end])
00568       start = end
00569       end += length
00570       if python3:
00571         self.action_result.header.frame_id = str[start:end].decode('utf-8')
00572       else:
00573         self.action_result.header.frame_id = str[start:end]
00574       _x = self
00575       start = end
00576       end += 8
00577       (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00578       start = end
00579       end += 4
00580       (length,) = _struct_I.unpack(str[start:end])
00581       start = end
00582       end += length
00583       if python3:
00584         self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
00585       else:
00586         self.action_result.status.goal_id.id = str[start:end]
00587       start = end
00588       end += 1
00589       (self.action_result.status.status,) = _struct_B.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_result.status.text = str[start:end].decode('utf-8')
00597       else:
00598         self.action_result.status.text = str[start:end]
00599       _x = self
00600       start = end
00601       end += 8
00602       (_x.action_result.result.pano_id, _x.action_result.result.n_captures,) = _struct_2I.unpack(str[start:end])
00603       start = end
00604       end += 4
00605       (length,) = _struct_I.unpack(str[start:end])
00606       start = end
00607       end += length
00608       if python3:
00609         self.action_result.result.bag_filename = str[start:end].decode('utf-8')
00610       else:
00611         self.action_result.result.bag_filename = str[start:end]
00612       _x = self
00613       start = end
00614       end += 12
00615       (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00616       start = end
00617       end += 4
00618       (length,) = _struct_I.unpack(str[start:end])
00619       start = end
00620       end += length
00621       if python3:
00622         self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
00623       else:
00624         self.action_feedback.header.frame_id = str[start:end]
00625       _x = self
00626       start = end
00627       end += 8
00628       (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end])
00629       start = end
00630       end += 4
00631       (length,) = _struct_I.unpack(str[start:end])
00632       start = end
00633       end += length
00634       if python3:
00635         self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
00636       else:
00637         self.action_feedback.status.goal_id.id = str[start:end]
00638       start = end
00639       end += 1
00640       (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end])
00641       start = end
00642       end += 4
00643       (length,) = _struct_I.unpack(str[start:end])
00644       start = end
00645       end += length
00646       if python3:
00647         self.action_feedback.status.text = str[start:end].decode('utf-8')
00648       else:
00649         self.action_feedback.status.text = str[start:end]
00650       start = end
00651       end += 4
00652       (self.action_feedback.feedback.n_captures,) = _struct_f.unpack(str[start:end])
00653       return self
00654     except struct.error as e:
00655       raise genpy.DeserializationError(e) #most likely buffer underfill
00656 
00657 _struct_I = genpy.struct_I
00658 _struct_3I = struct.Struct("<3I")
00659 _struct_B = struct.Struct("<B")
00660 _struct_2I = struct.Struct("<2I")
00661 _struct_f = struct.Struct("<f")


pano_ros
Author(s): Ethan Rublee, Ken Conley
autogenerated on Mon Oct 6 2014 08:06:11