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