$search
00001 """autogenerated by genmsg_py from ReactivePlaceActionFeedback.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import object_manipulation_msgs.msg 00006 import roslib.rostime 00007 import actionlib_msgs.msg 00008 import std_msgs.msg 00009 00010 class ReactivePlaceActionFeedback(roslib.message.Message): 00011 _md5sum = "b66dacddaccf02055a978b3aeb693a24" 00012 _type = "object_manipulation_msgs/ReactivePlaceActionFeedback" 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 ReactivePlaceFeedback feedback 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: object_manipulation_msgs/ReactivePlaceFeedback 00079 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00080 00081 # which phase the place is in 00082 00083 ManipulationPhase manipulation_phase 00084 00085 00086 ================================================================================ 00087 MSG: object_manipulation_msgs/ManipulationPhase 00088 int32 CHECKING_FEASIBILITY = 0 00089 int32 MOVING_TO_PREGRASP = 1 00090 int32 MOVING_TO_GRASP = 2 00091 int32 CLOSING = 3 00092 int32 ADJUSTING_GRASP = 4 00093 int32 LIFTING = 5 00094 int32 MOVING_WITH_OBJECT = 6 00095 int32 MOVING_TO_PLACE = 7 00096 int32 PLACING = 8 00097 int32 OPENING = 9 00098 int32 RETREATING = 10 00099 int32 MOVING_WITHOUT_OBJECT = 11 00100 int32 SHAKING = 12 00101 int32 SUCCEEDED = 13 00102 int32 FAILED = 14 00103 int32 ABORTED = 15 00104 int32 HOLDING_OBJECT = 16 00105 00106 int32 phase 00107 """ 00108 __slots__ = ['header','status','feedback'] 00109 _slot_types = ['Header','actionlib_msgs/GoalStatus','object_manipulation_msgs/ReactivePlaceFeedback'] 00110 00111 def __init__(self, *args, **kwds): 00112 """ 00113 Constructor. Any message fields that are implicitly/explicitly 00114 set to None will be assigned a default value. The recommend 00115 use is keyword arguments as this is more robust to future message 00116 changes. You cannot mix in-order arguments and keyword arguments. 00117 00118 The available fields are: 00119 header,status,feedback 00120 00121 @param args: complete set of field values, in .msg order 00122 @param kwds: use keyword arguments corresponding to message field names 00123 to set specific fields. 00124 """ 00125 if args or kwds: 00126 super(ReactivePlaceActionFeedback, self).__init__(*args, **kwds) 00127 #message fields cannot be None, assign default values for those that are 00128 if self.header is None: 00129 self.header = std_msgs.msg._Header.Header() 00130 if self.status is None: 00131 self.status = actionlib_msgs.msg.GoalStatus() 00132 if self.feedback is None: 00133 self.feedback = object_manipulation_msgs.msg.ReactivePlaceFeedback() 00134 else: 00135 self.header = std_msgs.msg._Header.Header() 00136 self.status = actionlib_msgs.msg.GoalStatus() 00137 self.feedback = object_manipulation_msgs.msg.ReactivePlaceFeedback() 00138 00139 def _get_types(self): 00140 """ 00141 internal API method 00142 """ 00143 return self._slot_types 00144 00145 def serialize(self, buff): 00146 """ 00147 serialize message into buffer 00148 @param buff: buffer 00149 @type buff: StringIO 00150 """ 00151 try: 00152 _x = self 00153 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00154 _x = self.header.frame_id 00155 length = len(_x) 00156 buff.write(struct.pack('<I%ss'%length, length, _x)) 00157 _x = self 00158 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00159 _x = self.status.goal_id.id 00160 length = len(_x) 00161 buff.write(struct.pack('<I%ss'%length, length, _x)) 00162 buff.write(_struct_B.pack(self.status.status)) 00163 _x = self.status.text 00164 length = len(_x) 00165 buff.write(struct.pack('<I%ss'%length, length, _x)) 00166 buff.write(_struct_i.pack(self.feedback.manipulation_phase.phase)) 00167 except struct.error as se: self._check_types(se) 00168 except TypeError as te: self._check_types(te) 00169 00170 def deserialize(self, str): 00171 """ 00172 unpack serialized message in str into this message instance 00173 @param str: byte array of serialized message 00174 @type str: str 00175 """ 00176 try: 00177 if self.header is None: 00178 self.header = std_msgs.msg._Header.Header() 00179 if self.status is None: 00180 self.status = actionlib_msgs.msg.GoalStatus() 00181 if self.feedback is None: 00182 self.feedback = object_manipulation_msgs.msg.ReactivePlaceFeedback() 00183 end = 0 00184 _x = self 00185 start = end 00186 end += 12 00187 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.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.header.frame_id = str[start:end] 00194 _x = self 00195 start = end 00196 end += 8 00197 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00198 start = end 00199 end += 4 00200 (length,) = _struct_I.unpack(str[start:end]) 00201 start = end 00202 end += length 00203 self.status.goal_id.id = str[start:end] 00204 start = end 00205 end += 1 00206 (self.status.status,) = _struct_B.unpack(str[start:end]) 00207 start = end 00208 end += 4 00209 (length,) = _struct_I.unpack(str[start:end]) 00210 start = end 00211 end += length 00212 self.status.text = str[start:end] 00213 start = end 00214 end += 4 00215 (self.feedback.manipulation_phase.phase,) = _struct_i.unpack(str[start:end]) 00216 return self 00217 except struct.error as e: 00218 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00219 00220 00221 def serialize_numpy(self, buff, numpy): 00222 """ 00223 serialize message with numpy array types into buffer 00224 @param buff: buffer 00225 @type buff: StringIO 00226 @param numpy: numpy python module 00227 @type numpy module 00228 """ 00229 try: 00230 _x = self 00231 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00232 _x = self.header.frame_id 00233 length = len(_x) 00234 buff.write(struct.pack('<I%ss'%length, length, _x)) 00235 _x = self 00236 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00237 _x = self.status.goal_id.id 00238 length = len(_x) 00239 buff.write(struct.pack('<I%ss'%length, length, _x)) 00240 buff.write(_struct_B.pack(self.status.status)) 00241 _x = self.status.text 00242 length = len(_x) 00243 buff.write(struct.pack('<I%ss'%length, length, _x)) 00244 buff.write(_struct_i.pack(self.feedback.manipulation_phase.phase)) 00245 except struct.error as se: self._check_types(se) 00246 except TypeError as te: self._check_types(te) 00247 00248 def deserialize_numpy(self, str, numpy): 00249 """ 00250 unpack serialized message in str into this message instance using numpy for array types 00251 @param str: byte array of serialized message 00252 @type str: str 00253 @param numpy: numpy python module 00254 @type numpy: module 00255 """ 00256 try: 00257 if self.header is None: 00258 self.header = std_msgs.msg._Header.Header() 00259 if self.status is None: 00260 self.status = actionlib_msgs.msg.GoalStatus() 00261 if self.feedback is None: 00262 self.feedback = object_manipulation_msgs.msg.ReactivePlaceFeedback() 00263 end = 0 00264 _x = self 00265 start = end 00266 end += 12 00267 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00268 start = end 00269 end += 4 00270 (length,) = _struct_I.unpack(str[start:end]) 00271 start = end 00272 end += length 00273 self.header.frame_id = str[start:end] 00274 _x = self 00275 start = end 00276 end += 8 00277 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.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 self.status.goal_id.id = str[start:end] 00284 start = end 00285 end += 1 00286 (self.status.status,) = _struct_B.unpack(str[start:end]) 00287 start = end 00288 end += 4 00289 (length,) = _struct_I.unpack(str[start:end]) 00290 start = end 00291 end += length 00292 self.status.text = str[start:end] 00293 start = end 00294 end += 4 00295 (self.feedback.manipulation_phase.phase,) = _struct_i.unpack(str[start:end]) 00296 return self 00297 except struct.error as e: 00298 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00299 00300 _struct_I = roslib.message.struct_I 00301 _struct_i = struct.Struct("<i") 00302 _struct_3I = struct.Struct("<3I") 00303 _struct_B = struct.Struct("<B") 00304 _struct_2I = struct.Struct("<2I")