$search
00001 """autogenerated by genmsg_py from InteractiveBlockManipulationActionResult.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import turtlebot_block_manipulation.msg 00006 import geometry_msgs.msg 00007 import roslib.rostime 00008 import actionlib_msgs.msg 00009 import std_msgs.msg 00010 00011 class InteractiveBlockManipulationActionResult(roslib.message.Message): 00012 _md5sum = "3d3e4da50890d607335059cdebae3e1d" 00013 _type = "turtlebot_block_manipulation/InteractiveBlockManipulationActionResult" 00014 _has_header = True #flag to mark the presence of a Header object 00015 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00016 00017 Header header 00018 actionlib_msgs/GoalStatus status 00019 InteractiveBlockManipulationResult result 00020 00021 ================================================================================ 00022 MSG: std_msgs/Header 00023 # Standard metadata for higher-level stamped data types. 00024 # This is generally used to communicate timestamped data 00025 # in a particular coordinate frame. 00026 # 00027 # sequence ID: consecutively increasing ID 00028 uint32 seq 00029 #Two-integer timestamp that is expressed as: 00030 # * stamp.secs: seconds (stamp_secs) since epoch 00031 # * stamp.nsecs: nanoseconds since stamp_secs 00032 # time-handling sugar is provided by the client library 00033 time stamp 00034 #Frame this data is associated with 00035 # 0: no frame 00036 # 1: global frame 00037 string frame_id 00038 00039 ================================================================================ 00040 MSG: actionlib_msgs/GoalStatus 00041 GoalID goal_id 00042 uint8 status 00043 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00044 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00045 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00046 # and has since completed its execution (Terminal State) 00047 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00048 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00049 # to some failure (Terminal State) 00050 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00051 # because the goal was unattainable or invalid (Terminal State) 00052 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00053 # and has not yet completed execution 00054 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00055 # but the action server has not yet confirmed that the goal is canceled 00056 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00057 # and was successfully cancelled (Terminal State) 00058 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00059 # sent over the wire by an action server 00060 00061 #Allow for the user to associate a string with GoalStatus for debugging 00062 string text 00063 00064 00065 ================================================================================ 00066 MSG: actionlib_msgs/GoalID 00067 # The stamp should store the time at which this goal was requested. 00068 # It is used by an action server when it tries to preempt all 00069 # goals that were requested before a certain time 00070 time stamp 00071 00072 # The id provides a way to associate feedback and 00073 # result message with specific goal requests. The id 00074 # specified must be unique. 00075 string id 00076 00077 00078 ================================================================================ 00079 MSG: turtlebot_block_manipulation/InteractiveBlockManipulationResult 00080 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00081 #result definition 00082 geometry_msgs/Pose pickup_pose 00083 geometry_msgs/Pose place_pose 00084 00085 ================================================================================ 00086 MSG: geometry_msgs/Pose 00087 # A representation of pose in free space, composed of postion and orientation. 00088 Point position 00089 Quaternion orientation 00090 00091 ================================================================================ 00092 MSG: geometry_msgs/Point 00093 # This contains the position of a point in free space 00094 float64 x 00095 float64 y 00096 float64 z 00097 00098 ================================================================================ 00099 MSG: geometry_msgs/Quaternion 00100 # This represents an orientation in free space in quaternion form. 00101 00102 float64 x 00103 float64 y 00104 float64 z 00105 float64 w 00106 00107 """ 00108 __slots__ = ['header','status','result'] 00109 _slot_types = ['Header','actionlib_msgs/GoalStatus','turtlebot_block_manipulation/InteractiveBlockManipulationResult'] 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,result 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(InteractiveBlockManipulationActionResult, 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.result is None: 00133 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult() 00134 else: 00135 self.header = std_msgs.msg._Header.Header() 00136 self.status = actionlib_msgs.msg.GoalStatus() 00137 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult() 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 _x = self 00167 buff.write(_struct_14d.pack(_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w)) 00168 except struct.error as se: self._check_types(se) 00169 except TypeError as te: self._check_types(te) 00170 00171 def deserialize(self, str): 00172 """ 00173 unpack serialized message in str into this message instance 00174 @param str: byte array of serialized message 00175 @type str: str 00176 """ 00177 try: 00178 if self.header is None: 00179 self.header = std_msgs.msg._Header.Header() 00180 if self.status is None: 00181 self.status = actionlib_msgs.msg.GoalStatus() 00182 if self.result is None: 00183 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult() 00184 end = 0 00185 _x = self 00186 start = end 00187 end += 12 00188 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00189 start = end 00190 end += 4 00191 (length,) = _struct_I.unpack(str[start:end]) 00192 start = end 00193 end += length 00194 self.header.frame_id = str[start:end] 00195 _x = self 00196 start = end 00197 end += 8 00198 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00199 start = end 00200 end += 4 00201 (length,) = _struct_I.unpack(str[start:end]) 00202 start = end 00203 end += length 00204 self.status.goal_id.id = str[start:end] 00205 start = end 00206 end += 1 00207 (self.status.status,) = _struct_B.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.status.text = str[start:end] 00214 _x = self 00215 start = end 00216 end += 112 00217 (_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end]) 00218 return self 00219 except struct.error as e: 00220 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00221 00222 00223 def serialize_numpy(self, buff, numpy): 00224 """ 00225 serialize message with numpy array types into buffer 00226 @param buff: buffer 00227 @type buff: StringIO 00228 @param numpy: numpy python module 00229 @type numpy module 00230 """ 00231 try: 00232 _x = self 00233 buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) 00234 _x = self.header.frame_id 00235 length = len(_x) 00236 buff.write(struct.pack('<I%ss'%length, length, _x)) 00237 _x = self 00238 buff.write(_struct_2I.pack(_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs)) 00239 _x = self.status.goal_id.id 00240 length = len(_x) 00241 buff.write(struct.pack('<I%ss'%length, length, _x)) 00242 buff.write(_struct_B.pack(self.status.status)) 00243 _x = self.status.text 00244 length = len(_x) 00245 buff.write(struct.pack('<I%ss'%length, length, _x)) 00246 _x = self 00247 buff.write(_struct_14d.pack(_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w)) 00248 except struct.error as se: self._check_types(se) 00249 except TypeError as te: self._check_types(te) 00250 00251 def deserialize_numpy(self, str, numpy): 00252 """ 00253 unpack serialized message in str into this message instance using numpy for array types 00254 @param str: byte array of serialized message 00255 @type str: str 00256 @param numpy: numpy python module 00257 @type numpy: module 00258 """ 00259 try: 00260 if self.header is None: 00261 self.header = std_msgs.msg._Header.Header() 00262 if self.status is None: 00263 self.status = actionlib_msgs.msg.GoalStatus() 00264 if self.result is None: 00265 self.result = turtlebot_block_manipulation.msg.InteractiveBlockManipulationResult() 00266 end = 0 00267 _x = self 00268 start = end 00269 end += 12 00270 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00271 start = end 00272 end += 4 00273 (length,) = _struct_I.unpack(str[start:end]) 00274 start = end 00275 end += length 00276 self.header.frame_id = str[start:end] 00277 _x = self 00278 start = end 00279 end += 8 00280 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00281 start = end 00282 end += 4 00283 (length,) = _struct_I.unpack(str[start:end]) 00284 start = end 00285 end += length 00286 self.status.goal_id.id = str[start:end] 00287 start = end 00288 end += 1 00289 (self.status.status,) = _struct_B.unpack(str[start:end]) 00290 start = end 00291 end += 4 00292 (length,) = _struct_I.unpack(str[start:end]) 00293 start = end 00294 end += length 00295 self.status.text = str[start:end] 00296 _x = self 00297 start = end 00298 end += 112 00299 (_x.result.pickup_pose.position.x, _x.result.pickup_pose.position.y, _x.result.pickup_pose.position.z, _x.result.pickup_pose.orientation.x, _x.result.pickup_pose.orientation.y, _x.result.pickup_pose.orientation.z, _x.result.pickup_pose.orientation.w, _x.result.place_pose.position.x, _x.result.place_pose.position.y, _x.result.place_pose.position.z, _x.result.place_pose.orientation.x, _x.result.place_pose.orientation.y, _x.result.place_pose.orientation.z, _x.result.place_pose.orientation.w,) = _struct_14d.unpack(str[start:end]) 00300 return self 00301 except struct.error as e: 00302 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00303 00304 _struct_I = roslib.message.struct_I 00305 _struct_3I = struct.Struct("<3I") 00306 _struct_B = struct.Struct("<B") 00307 _struct_2I = struct.Struct("<2I") 00308 _struct_14d = struct.Struct("<14d")