$search
00001 """autogenerated by genmsg_py from ReactiveLiftActionResult.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 ReactiveLiftActionResult(roslib.message.Message): 00011 _md5sum = "1d0d051ec44b5b01ea719228a077e443" 00012 _type = "object_manipulation_msgs/ReactiveLiftActionResult" 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 ReactiveLiftResult 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: object_manipulation_msgs/ReactiveLiftResult 00079 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00080 00081 # The result of the lift attempt 00082 ManipulationResult manipulation_result 00083 00084 00085 ================================================================================ 00086 MSG: object_manipulation_msgs/ManipulationResult 00087 # Result codes for manipulation tasks 00088 00089 # task completed as expected 00090 # generally means you can proceed as planned 00091 int32 SUCCESS = 1 00092 00093 # task not possible (e.g. out of reach or obstacles in the way) 00094 # generally means that the world was not disturbed, so you can try another task 00095 int32 UNFEASIBLE = -1 00096 00097 # task was thought possible, but failed due to unexpected events during execution 00098 # it is likely that the world was disturbed, so you are encouraged to refresh 00099 # your sensed world model before proceeding to another task 00100 int32 FAILED = -2 00101 00102 # a lower level error prevented task completion (e.g. joint controller not responding) 00103 # generally requires human attention 00104 int32 ERROR = -3 00105 00106 # means that at some point during execution we ended up in a state that the collision-aware 00107 # arm navigation module will not move out of. The world was likely not disturbed, but you 00108 # probably need a new collision map to move the arm out of the stuck position 00109 int32 ARM_MOVEMENT_PREVENTED = -4 00110 00111 # specific to grasp actions 00112 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested 00113 # it is likely that the collision environment will see collisions between the hand/object and the support surface 00114 int32 LIFT_FAILED = -5 00115 00116 # specific to place actions 00117 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested 00118 # it is likely that the collision environment will see collisions between the hand and the object 00119 int32 RETREAT_FAILED = -6 00120 00121 # indicates that somewhere along the line a human said "wait, stop, this is bad, go back and do something else" 00122 int32 CANCELLED = -7 00123 00124 # the actual value of this error code 00125 int32 value 00126 00127 """ 00128 __slots__ = ['header','status','result'] 00129 _slot_types = ['Header','actionlib_msgs/GoalStatus','object_manipulation_msgs/ReactiveLiftResult'] 00130 00131 def __init__(self, *args, **kwds): 00132 """ 00133 Constructor. Any message fields that are implicitly/explicitly 00134 set to None will be assigned a default value. The recommend 00135 use is keyword arguments as this is more robust to future message 00136 changes. You cannot mix in-order arguments and keyword arguments. 00137 00138 The available fields are: 00139 header,status,result 00140 00141 @param args: complete set of field values, in .msg order 00142 @param kwds: use keyword arguments corresponding to message field names 00143 to set specific fields. 00144 """ 00145 if args or kwds: 00146 super(ReactiveLiftActionResult, self).__init__(*args, **kwds) 00147 #message fields cannot be None, assign default values for those that are 00148 if self.header is None: 00149 self.header = std_msgs.msg._Header.Header() 00150 if self.status is None: 00151 self.status = actionlib_msgs.msg.GoalStatus() 00152 if self.result is None: 00153 self.result = object_manipulation_msgs.msg.ReactiveLiftResult() 00154 else: 00155 self.header = std_msgs.msg._Header.Header() 00156 self.status = actionlib_msgs.msg.GoalStatus() 00157 self.result = object_manipulation_msgs.msg.ReactiveLiftResult() 00158 00159 def _get_types(self): 00160 """ 00161 internal API method 00162 """ 00163 return self._slot_types 00164 00165 def serialize(self, buff): 00166 """ 00167 serialize message into buffer 00168 @param buff: buffer 00169 @type buff: StringIO 00170 """ 00171 try: 00172 _x = self 00173 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00174 _x = self.header.frame_id 00175 length = len(_x) 00176 buff.write(struct.pack('<I%ss'%length, length, _x)) 00177 _x = self 00178 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00179 _x = self.status.goal_id.id 00180 length = len(_x) 00181 buff.write(struct.pack('<I%ss'%length, length, _x)) 00182 buff.write(_struct_B.pack(self.status.status)) 00183 _x = self.status.text 00184 length = len(_x) 00185 buff.write(struct.pack('<I%ss'%length, length, _x)) 00186 buff.write(_struct_i.pack(self.result.manipulation_result.value)) 00187 except struct.error as se: self._check_types(se) 00188 except TypeError as te: self._check_types(te) 00189 00190 def deserialize(self, str): 00191 """ 00192 unpack serialized message in str into this message instance 00193 @param str: byte array of serialized message 00194 @type str: str 00195 """ 00196 try: 00197 if self.header is None: 00198 self.header = std_msgs.msg._Header.Header() 00199 if self.status is None: 00200 self.status = actionlib_msgs.msg.GoalStatus() 00201 if self.result is None: 00202 self.result = object_manipulation_msgs.msg.ReactiveLiftResult() 00203 end = 0 00204 _x = self 00205 start = end 00206 end += 12 00207 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00208 start = end 00209 end += 4 00210 (length,) = _struct_I.unpack(str[start:end]) 00211 start = end 00212 end += length 00213 self.header.frame_id = str[start:end] 00214 _x = self 00215 start = end 00216 end += 8 00217 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00218 start = end 00219 end += 4 00220 (length,) = _struct_I.unpack(str[start:end]) 00221 start = end 00222 end += length 00223 self.status.goal_id.id = str[start:end] 00224 start = end 00225 end += 1 00226 (self.status.status,) = _struct_B.unpack(str[start:end]) 00227 start = end 00228 end += 4 00229 (length,) = _struct_I.unpack(str[start:end]) 00230 start = end 00231 end += length 00232 self.status.text = str[start:end] 00233 start = end 00234 end += 4 00235 (self.result.manipulation_result.value,) = _struct_i.unpack(str[start:end]) 00236 return self 00237 except struct.error as e: 00238 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00239 00240 00241 def serialize_numpy(self, buff, numpy): 00242 """ 00243 serialize message with numpy array types into buffer 00244 @param buff: buffer 00245 @type buff: StringIO 00246 @param numpy: numpy python module 00247 @type numpy module 00248 """ 00249 try: 00250 _x = self 00251 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00252 _x = self.header.frame_id 00253 length = len(_x) 00254 buff.write(struct.pack('<I%ss'%length, length, _x)) 00255 _x = self 00256 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00257 _x = self.status.goal_id.id 00258 length = len(_x) 00259 buff.write(struct.pack('<I%ss'%length, length, _x)) 00260 buff.write(_struct_B.pack(self.status.status)) 00261 _x = self.status.text 00262 length = len(_x) 00263 buff.write(struct.pack('<I%ss'%length, length, _x)) 00264 buff.write(_struct_i.pack(self.result.manipulation_result.value)) 00265 except struct.error as se: self._check_types(se) 00266 except TypeError as te: self._check_types(te) 00267 00268 def deserialize_numpy(self, str, numpy): 00269 """ 00270 unpack serialized message in str into this message instance using numpy for array types 00271 @param str: byte array of serialized message 00272 @type str: str 00273 @param numpy: numpy python module 00274 @type numpy: module 00275 """ 00276 try: 00277 if self.header is None: 00278 self.header = std_msgs.msg._Header.Header() 00279 if self.status is None: 00280 self.status = actionlib_msgs.msg.GoalStatus() 00281 if self.result is None: 00282 self.result = object_manipulation_msgs.msg.ReactiveLiftResult() 00283 end = 0 00284 _x = self 00285 start = end 00286 end += 12 00287 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00288 start = end 00289 end += 4 00290 (length,) = _struct_I.unpack(str[start:end]) 00291 start = end 00292 end += length 00293 self.header.frame_id = str[start:end] 00294 _x = self 00295 start = end 00296 end += 8 00297 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00298 start = end 00299 end += 4 00300 (length,) = _struct_I.unpack(str[start:end]) 00301 start = end 00302 end += length 00303 self.status.goal_id.id = str[start:end] 00304 start = end 00305 end += 1 00306 (self.status.status,) = _struct_B.unpack(str[start:end]) 00307 start = end 00308 end += 4 00309 (length,) = _struct_I.unpack(str[start:end]) 00310 start = end 00311 end += length 00312 self.status.text = str[start:end] 00313 start = end 00314 end += 4 00315 (self.result.manipulation_result.value,) = _struct_i.unpack(str[start:end]) 00316 return self 00317 except struct.error as e: 00318 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00319 00320 _struct_I = roslib.message.struct_I 00321 _struct_i = struct.Struct("<i") 00322 _struct_3I = struct.Struct("<3I") 00323 _struct_B = struct.Struct("<B") 00324 _struct_2I = struct.Struct("<2I")