$search
00001 """autogenerated by genmsg_py from ListApplicationsActionResult.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import application_msgs.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import std_msgs.msg 00009 00010 class ListApplicationsActionResult(roslib.message.Message): 00011 _md5sum = "4e3a9e8db4ddeb1bcf19a5f487ca3d40" 00012 _type = "application_msgs/ListApplicationsActionResult" 00013 _has_header = True #flag to mark the presence of a Header object 00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00015 00016 Header header 00017 actionlib_msgs/GoalStatus status 00018 ListApplicationsResult result 00019 00020 ================================================================================ 00021 MSG: std_msgs/Header 00022 # Standard metadata for higher-level stamped data types. 00023 # This is generally used to communicate timestamped data 00024 # in a particular coordinate frame. 00025 # 00026 # sequence ID: consecutively increasing ID 00027 uint32 seq 00028 #Two-integer timestamp that is expressed as: 00029 # * stamp.secs: seconds (stamp_secs) since epoch 00030 # * stamp.nsecs: nanoseconds since stamp_secs 00031 # time-handling sugar is provided by the client library 00032 time stamp 00033 #Frame this data is associated with 00034 # 0: no frame 00035 # 1: global frame 00036 string frame_id 00037 00038 ================================================================================ 00039 MSG: actionlib_msgs/GoalStatus 00040 GoalID goal_id 00041 uint8 status 00042 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00043 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00044 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00045 # and has since completed its execution (Terminal State) 00046 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00047 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00048 # to some failure (Terminal State) 00049 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00050 # because the goal was unattainable or invalid (Terminal State) 00051 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00052 # and has not yet completed execution 00053 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00054 # but the action server has not yet confirmed that the goal is canceled 00055 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00056 # and was successfully cancelled (Terminal State) 00057 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00058 # sent over the wire by an action server 00059 00060 #Allow for the user to associate a string with GoalStatus for debugging 00061 string text 00062 00063 00064 ================================================================================ 00065 MSG: actionlib_msgs/GoalID 00066 # The stamp should store the time at which this goal was requested. 00067 # It is used by an action server when it tries to preempt all 00068 # goals that were requested before a certain time 00069 time stamp 00070 00071 # The id provides a way to associate feedback and 00072 # result message with specific goal requests. The id 00073 # specified must be unique. 00074 string id 00075 00076 00077 ================================================================================ 00078 MSG: application_msgs/ListApplicationsResult 00079 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00080 string[] application_name 00081 string[] application_status 00082 bool[] daemonize 00083 00084 """ 00085 __slots__ = ['header','status','result'] 00086 _slot_types = ['Header','actionlib_msgs/GoalStatus','application_msgs/ListApplicationsResult'] 00087 00088 def __init__(self, *args, **kwds): 00089 """ 00090 Constructor. Any message fields that are implicitly/explicitly 00091 set to None will be assigned a default value. The recommend 00092 use is keyword arguments as this is more robust to future message 00093 changes. You cannot mix in-order arguments and keyword arguments. 00094 00095 The available fields are: 00096 header,status,result 00097 00098 @param args: complete set of field values, in .msg order 00099 @param kwds: use keyword arguments corresponding to message field names 00100 to set specific fields. 00101 """ 00102 if args or kwds: 00103 super(ListApplicationsActionResult, self).__init__(*args, **kwds) 00104 #message fields cannot be None, assign default values for those that are 00105 if self.header is None: 00106 self.header = std_msgs.msg._Header.Header() 00107 if self.status is None: 00108 self.status = actionlib_msgs.msg.GoalStatus() 00109 if self.result is None: 00110 self.result = application_msgs.msg.ListApplicationsResult() 00111 else: 00112 self.header = std_msgs.msg._Header.Header() 00113 self.status = actionlib_msgs.msg.GoalStatus() 00114 self.result = application_msgs.msg.ListApplicationsResult() 00115 00116 def _get_types(self): 00117 """ 00118 internal API method 00119 """ 00120 return self._slot_types 00121 00122 def serialize(self, buff): 00123 """ 00124 serialize message into buffer 00125 @param buff: buffer 00126 @type buff: StringIO 00127 """ 00128 try: 00129 _x = self 00130 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00131 _x = self.header.frame_id 00132 length = len(_x) 00133 buff.write(struct.pack('<I%ss'%length, length, _x)) 00134 _x = self 00135 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00136 _x = self.status.goal_id.id 00137 length = len(_x) 00138 buff.write(struct.pack('<I%ss'%length, length, _x)) 00139 buff.write(_struct_B.pack(self.status.status)) 00140 _x = self.status.text 00141 length = len(_x) 00142 buff.write(struct.pack('<I%ss'%length, length, _x)) 00143 length = len(self.result.application_name) 00144 buff.write(_struct_I.pack(length)) 00145 for val1 in self.result.application_name: 00146 length = len(val1) 00147 buff.write(struct.pack('<I%ss'%length, length, val1)) 00148 length = len(self.result.application_status) 00149 buff.write(_struct_I.pack(length)) 00150 for val1 in self.result.application_status: 00151 length = len(val1) 00152 buff.write(struct.pack('<I%ss'%length, length, val1)) 00153 length = len(self.result.daemonize) 00154 buff.write(_struct_I.pack(length)) 00155 pattern = '<%sB'%length 00156 buff.write(struct.pack(pattern, *self.result.daemonize)) 00157 except struct.error as se: self._check_types(se) 00158 except TypeError as te: self._check_types(te) 00159 00160 def deserialize(self, str): 00161 """ 00162 unpack serialized message in str into this message instance 00163 @param str: byte array of serialized message 00164 @type str: str 00165 """ 00166 try: 00167 if self.header is None: 00168 self.header = std_msgs.msg._Header.Header() 00169 if self.status is None: 00170 self.status = actionlib_msgs.msg.GoalStatus() 00171 if self.result is None: 00172 self.result = application_msgs.msg.ListApplicationsResult() 00173 end = 0 00174 _x = self 00175 start = end 00176 end += 12 00177 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00178 start = end 00179 end += 4 00180 (length,) = _struct_I.unpack(str[start:end]) 00181 start = end 00182 end += length 00183 self.header.frame_id = str[start:end] 00184 _x = self 00185 start = end 00186 end += 8 00187 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00188 start = end 00189 end += 4 00190 (length,) = _struct_I.unpack(str[start:end]) 00191 start = end 00192 end += length 00193 self.status.goal_id.id = str[start:end] 00194 start = end 00195 end += 1 00196 (self.status.status,) = _struct_B.unpack(str[start:end]) 00197 start = end 00198 end += 4 00199 (length,) = _struct_I.unpack(str[start:end]) 00200 start = end 00201 end += length 00202 self.status.text = str[start:end] 00203 start = end 00204 end += 4 00205 (length,) = _struct_I.unpack(str[start:end]) 00206 self.result.application_name = [] 00207 for i in range(0, length): 00208 start = end 00209 end += 4 00210 (length,) = _struct_I.unpack(str[start:end]) 00211 start = end 00212 end += length 00213 val1 = str[start:end] 00214 self.result.application_name.append(val1) 00215 start = end 00216 end += 4 00217 (length,) = _struct_I.unpack(str[start:end]) 00218 self.result.application_status = [] 00219 for i in range(0, length): 00220 start = end 00221 end += 4 00222 (length,) = _struct_I.unpack(str[start:end]) 00223 start = end 00224 end += length 00225 val1 = str[start:end] 00226 self.result.application_status.append(val1) 00227 start = end 00228 end += 4 00229 (length,) = _struct_I.unpack(str[start:end]) 00230 pattern = '<%sB'%length 00231 start = end 00232 end += struct.calcsize(pattern) 00233 self.result.daemonize = struct.unpack(pattern, str[start:end]) 00234 self.result.daemonize = map(bool, self.result.daemonize) 00235 return self 00236 except struct.error as e: 00237 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00238 00239 00240 def serialize_numpy(self, buff, numpy): 00241 """ 00242 serialize message with numpy array types into buffer 00243 @param buff: buffer 00244 @type buff: StringIO 00245 @param numpy: numpy python module 00246 @type numpy module 00247 """ 00248 try: 00249 _x = self 00250 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00251 _x = self.header.frame_id 00252 length = len(_x) 00253 buff.write(struct.pack('<I%ss'%length, length, _x)) 00254 _x = self 00255 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00256 _x = self.status.goal_id.id 00257 length = len(_x) 00258 buff.write(struct.pack('<I%ss'%length, length, _x)) 00259 buff.write(_struct_B.pack(self.status.status)) 00260 _x = self.status.text 00261 length = len(_x) 00262 buff.write(struct.pack('<I%ss'%length, length, _x)) 00263 length = len(self.result.application_name) 00264 buff.write(_struct_I.pack(length)) 00265 for val1 in self.result.application_name: 00266 length = len(val1) 00267 buff.write(struct.pack('<I%ss'%length, length, val1)) 00268 length = len(self.result.application_status) 00269 buff.write(_struct_I.pack(length)) 00270 for val1 in self.result.application_status: 00271 length = len(val1) 00272 buff.write(struct.pack('<I%ss'%length, length, val1)) 00273 length = len(self.result.daemonize) 00274 buff.write(_struct_I.pack(length)) 00275 pattern = '<%sB'%length 00276 buff.write(self.result.daemonize.tostring()) 00277 except struct.error as se: self._check_types(se) 00278 except TypeError as te: self._check_types(te) 00279 00280 def deserialize_numpy(self, str, numpy): 00281 """ 00282 unpack serialized message in str into this message instance using numpy for array types 00283 @param str: byte array of serialized message 00284 @type str: str 00285 @param numpy: numpy python module 00286 @type numpy: module 00287 """ 00288 try: 00289 if self.header is None: 00290 self.header = std_msgs.msg._Header.Header() 00291 if self.status is None: 00292 self.status = actionlib_msgs.msg.GoalStatus() 00293 if self.result is None: 00294 self.result = application_msgs.msg.ListApplicationsResult() 00295 end = 0 00296 _x = self 00297 start = end 00298 end += 12 00299 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00300 start = end 00301 end += 4 00302 (length,) = _struct_I.unpack(str[start:end]) 00303 start = end 00304 end += length 00305 self.header.frame_id = str[start:end] 00306 _x = self 00307 start = end 00308 end += 8 00309 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00310 start = end 00311 end += 4 00312 (length,) = _struct_I.unpack(str[start:end]) 00313 start = end 00314 end += length 00315 self.status.goal_id.id = str[start:end] 00316 start = end 00317 end += 1 00318 (self.status.status,) = _struct_B.unpack(str[start:end]) 00319 start = end 00320 end += 4 00321 (length,) = _struct_I.unpack(str[start:end]) 00322 start = end 00323 end += length 00324 self.status.text = str[start:end] 00325 start = end 00326 end += 4 00327 (length,) = _struct_I.unpack(str[start:end]) 00328 self.result.application_name = [] 00329 for i in range(0, length): 00330 start = end 00331 end += 4 00332 (length,) = _struct_I.unpack(str[start:end]) 00333 start = end 00334 end += length 00335 val1 = str[start:end] 00336 self.result.application_name.append(val1) 00337 start = end 00338 end += 4 00339 (length,) = _struct_I.unpack(str[start:end]) 00340 self.result.application_status = [] 00341 for i in range(0, length): 00342 start = end 00343 end += 4 00344 (length,) = _struct_I.unpack(str[start:end]) 00345 start = end 00346 end += length 00347 val1 = str[start:end] 00348 self.result.application_status.append(val1) 00349 start = end 00350 end += 4 00351 (length,) = _struct_I.unpack(str[start:end]) 00352 pattern = '<%sB'%length 00353 start = end 00354 end += struct.calcsize(pattern) 00355 self.result.daemonize = numpy.frombuffer(str[start:end], dtype=numpy.bool, count=length) 00356 self.result.daemonize = map(bool, self.result.daemonize) 00357 return self 00358 except struct.error as e: 00359 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00360 00361 _struct_I = roslib.message.struct_I 00362 _struct_3I = struct.Struct("<3I") 00363 _struct_B = struct.Struct("<B") 00364 _struct_2I = struct.Struct("<2I")