$search
00001 """autogenerated by genmsg_py from ManualBBEstimationAction.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import actionlib_msgs.msg 00006 import roslib.rostime 00007 import srs_assisted_arm_navigation_msgs.msg 00008 import std_msgs.msg 00009 00010 class ManualBBEstimationAction(roslib.message.Message): 00011 _md5sum = "94de91ff5f7162a66e81a8d6f6d3a59e" 00012 _type = "srs_assisted_arm_navigation_msgs/ManualBBEstimationAction" 00013 _has_header = False #flag to mark the presence of a Header object 00014 _full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00015 00016 ManualBBEstimationActionGoal action_goal 00017 ManualBBEstimationActionResult action_result 00018 ManualBBEstimationActionFeedback action_feedback 00019 00020 ================================================================================ 00021 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionGoal 00022 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00023 00024 Header header 00025 actionlib_msgs/GoalID goal_id 00026 ManualBBEstimationGoal goal 00027 00028 ================================================================================ 00029 MSG: std_msgs/Header 00030 # Standard metadata for higher-level stamped data types. 00031 # This is generally used to communicate timestamped data 00032 # in a particular coordinate frame. 00033 # 00034 # sequence ID: consecutively increasing ID 00035 uint32 seq 00036 #Two-integer timestamp that is expressed as: 00037 # * stamp.secs: seconds (stamp_secs) since epoch 00038 # * stamp.nsecs: nanoseconds since stamp_secs 00039 # time-handling sugar is provided by the client library 00040 time stamp 00041 #Frame this data is associated with 00042 # 0: no frame 00043 # 1: global frame 00044 string frame_id 00045 00046 ================================================================================ 00047 MSG: actionlib_msgs/GoalID 00048 # The stamp should store the time at which this goal was requested. 00049 # It is used by an action server when it tries to preempt all 00050 # goals that were requested before a certain time 00051 time stamp 00052 00053 # The id provides a way to associate feedback and 00054 # result message with specific goal requests. The id 00055 # specified must be unique. 00056 string id 00057 00058 00059 ================================================================================ 00060 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationGoal 00061 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00062 # Action server is implemented in RVIZ plugin which acts as bb_estimator client 00063 # goal 00064 string object_name 00065 bool disable_video # aka useless mode for RVIZ plugin 00066 00067 ================================================================================ 00068 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionResult 00069 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00070 00071 Header header 00072 actionlib_msgs/GoalStatus status 00073 ManualBBEstimationResult result 00074 00075 ================================================================================ 00076 MSG: actionlib_msgs/GoalStatus 00077 GoalID goal_id 00078 uint8 status 00079 uint8 PENDING = 0 # The goal has yet to be processed by the action server 00080 uint8 ACTIVE = 1 # The goal is currently being processed by the action server 00081 uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing 00082 # and has since completed its execution (Terminal State) 00083 uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State) 00084 uint8 ABORTED = 4 # The goal was aborted during execution by the action server due 00085 # to some failure (Terminal State) 00086 uint8 REJECTED = 5 # The goal was rejected by the action server without being processed, 00087 # because the goal was unattainable or invalid (Terminal State) 00088 uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing 00089 # and has not yet completed execution 00090 uint8 RECALLING = 7 # The goal received a cancel request before it started executing, 00091 # but the action server has not yet confirmed that the goal is canceled 00092 uint8 RECALLED = 8 # The goal received a cancel request before it started executing 00093 # and was successfully cancelled (Terminal State) 00094 uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be 00095 # sent over the wire by an action server 00096 00097 #Allow for the user to associate a string with GoalStatus for debugging 00098 string text 00099 00100 00101 ================================================================================ 00102 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationResult 00103 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00104 # result 00105 int16[2] p1 00106 int16[2] p2 00107 #string im_primitive_name 00108 00109 ================================================================================ 00110 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationActionFeedback 00111 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00112 00113 Header header 00114 actionlib_msgs/GoalStatus status 00115 ManualBBEstimationFeedback feedback 00116 00117 ================================================================================ 00118 MSG: srs_assisted_arm_navigation_msgs/ManualBBEstimationFeedback 00119 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ====== 00120 # feedback 00121 time timestamp 00122 int16[2] p1 00123 int16[2] p2 00124 00125 00126 """ 00127 __slots__ = ['action_goal','action_result','action_feedback'] 00128 _slot_types = ['srs_assisted_arm_navigation_msgs/ManualBBEstimationActionGoal','srs_assisted_arm_navigation_msgs/ManualBBEstimationActionResult','srs_assisted_arm_navigation_msgs/ManualBBEstimationActionFeedback'] 00129 00130 def __init__(self, *args, **kwds): 00131 """ 00132 Constructor. Any message fields that are implicitly/explicitly 00133 set to None will be assigned a default value. The recommend 00134 use is keyword arguments as this is more robust to future message 00135 changes. You cannot mix in-order arguments and keyword arguments. 00136 00137 The available fields are: 00138 action_goal,action_result,action_feedback 00139 00140 @param args: complete set of field values, in .msg order 00141 @param kwds: use keyword arguments corresponding to message field names 00142 to set specific fields. 00143 """ 00144 if args or kwds: 00145 super(ManualBBEstimationAction, self).__init__(*args, **kwds) 00146 #message fields cannot be None, assign default values for those that are 00147 if self.action_goal is None: 00148 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal() 00149 if self.action_result is None: 00150 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult() 00151 if self.action_feedback is None: 00152 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback() 00153 else: 00154 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal() 00155 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult() 00156 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback() 00157 00158 def _get_types(self): 00159 """ 00160 internal API method 00161 """ 00162 return self._slot_types 00163 00164 def serialize(self, buff): 00165 """ 00166 serialize message into buffer 00167 @param buff: buffer 00168 @type buff: StringIO 00169 """ 00170 try: 00171 _x = self 00172 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00173 _x = self.action_goal.header.frame_id 00174 length = len(_x) 00175 buff.write(struct.pack('<I%ss'%length, length, _x)) 00176 _x = self 00177 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00178 _x = self.action_goal.goal_id.id 00179 length = len(_x) 00180 buff.write(struct.pack('<I%ss'%length, length, _x)) 00181 _x = self.action_goal.goal.object_name 00182 length = len(_x) 00183 buff.write(struct.pack('<I%ss'%length, length, _x)) 00184 _x = self 00185 buff.write(_struct_B3I.pack(_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00186 _x = self.action_result.header.frame_id 00187 length = len(_x) 00188 buff.write(struct.pack('<I%ss'%length, length, _x)) 00189 _x = self 00190 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00191 _x = self.action_result.status.goal_id.id 00192 length = len(_x) 00193 buff.write(struct.pack('<I%ss'%length, length, _x)) 00194 buff.write(_struct_B.pack(self.action_result.status.status)) 00195 _x = self.action_result.status.text 00196 length = len(_x) 00197 buff.write(struct.pack('<I%ss'%length, length, _x)) 00198 buff.write(_struct_2h.pack(*self.action_result.result.p1)) 00199 buff.write(_struct_2h.pack(*self.action_result.result.p2)) 00200 _x = self 00201 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00202 _x = self.action_feedback.header.frame_id 00203 length = len(_x) 00204 buff.write(struct.pack('<I%ss'%length, length, _x)) 00205 _x = self 00206 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00207 _x = self.action_feedback.status.goal_id.id 00208 length = len(_x) 00209 buff.write(struct.pack('<I%ss'%length, length, _x)) 00210 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00211 _x = self.action_feedback.status.text 00212 length = len(_x) 00213 buff.write(struct.pack('<I%ss'%length, length, _x)) 00214 _x = self 00215 buff.write(_struct_2I.pack(_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs)) 00216 buff.write(_struct_2h.pack(*self.action_feedback.feedback.p1)) 00217 buff.write(_struct_2h.pack(*self.action_feedback.feedback.p2)) 00218 except struct.error as se: self._check_types(se) 00219 except TypeError as te: self._check_types(te) 00220 00221 def deserialize(self, str): 00222 """ 00223 unpack serialized message in str into this message instance 00224 @param str: byte array of serialized message 00225 @type str: str 00226 """ 00227 try: 00228 if self.action_goal is None: 00229 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal() 00230 if self.action_result is None: 00231 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult() 00232 if self.action_feedback is None: 00233 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback() 00234 end = 0 00235 _x = self 00236 start = end 00237 end += 12 00238 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00239 start = end 00240 end += 4 00241 (length,) = _struct_I.unpack(str[start:end]) 00242 start = end 00243 end += length 00244 self.action_goal.header.frame_id = str[start:end] 00245 _x = self 00246 start = end 00247 end += 8 00248 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00249 start = end 00250 end += 4 00251 (length,) = _struct_I.unpack(str[start:end]) 00252 start = end 00253 end += length 00254 self.action_goal.goal_id.id = 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.action_goal.goal.object_name = str[start:end] 00261 _x = self 00262 start = end 00263 end += 13 00264 (_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00265 self.action_goal.goal.disable_video = bool(self.action_goal.goal.disable_video) 00266 start = end 00267 end += 4 00268 (length,) = _struct_I.unpack(str[start:end]) 00269 start = end 00270 end += length 00271 self.action_result.header.frame_id = str[start:end] 00272 _x = self 00273 start = end 00274 end += 8 00275 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00276 start = end 00277 end += 4 00278 (length,) = _struct_I.unpack(str[start:end]) 00279 start = end 00280 end += length 00281 self.action_result.status.goal_id.id = str[start:end] 00282 start = end 00283 end += 1 00284 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00285 start = end 00286 end += 4 00287 (length,) = _struct_I.unpack(str[start:end]) 00288 start = end 00289 end += length 00290 self.action_result.status.text = str[start:end] 00291 start = end 00292 end += 4 00293 self.action_result.result.p1 = _struct_2h.unpack(str[start:end]) 00294 start = end 00295 end += 4 00296 self.action_result.result.p2 = _struct_2h.unpack(str[start:end]) 00297 _x = self 00298 start = end 00299 end += 12 00300 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00301 start = end 00302 end += 4 00303 (length,) = _struct_I.unpack(str[start:end]) 00304 start = end 00305 end += length 00306 self.action_feedback.header.frame_id = str[start:end] 00307 _x = self 00308 start = end 00309 end += 8 00310 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00311 start = end 00312 end += 4 00313 (length,) = _struct_I.unpack(str[start:end]) 00314 start = end 00315 end += length 00316 self.action_feedback.status.goal_id.id = str[start:end] 00317 start = end 00318 end += 1 00319 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00320 start = end 00321 end += 4 00322 (length,) = _struct_I.unpack(str[start:end]) 00323 start = end 00324 end += length 00325 self.action_feedback.status.text = str[start:end] 00326 _x = self 00327 start = end 00328 end += 8 00329 (_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00330 start = end 00331 end += 4 00332 self.action_feedback.feedback.p1 = _struct_2h.unpack(str[start:end]) 00333 start = end 00334 end += 4 00335 self.action_feedback.feedback.p2 = _struct_2h.unpack(str[start:end]) 00336 return self 00337 except struct.error as e: 00338 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00339 00340 00341 def serialize_numpy(self, buff, numpy): 00342 """ 00343 serialize message with numpy array types into buffer 00344 @param buff: buffer 00345 @type buff: StringIO 00346 @param numpy: numpy python module 00347 @type numpy module 00348 """ 00349 try: 00350 _x = self 00351 buff.write(_struct_3I.pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs)) 00352 _x = self.action_goal.header.frame_id 00353 length = len(_x) 00354 buff.write(struct.pack('<I%ss'%length, length, _x)) 00355 _x = self 00356 buff.write(_struct_2I.pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs)) 00357 _x = self.action_goal.goal_id.id 00358 length = len(_x) 00359 buff.write(struct.pack('<I%ss'%length, length, _x)) 00360 _x = self.action_goal.goal.object_name 00361 length = len(_x) 00362 buff.write(struct.pack('<I%ss'%length, length, _x)) 00363 _x = self 00364 buff.write(_struct_B3I.pack(_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs)) 00365 _x = self.action_result.header.frame_id 00366 length = len(_x) 00367 buff.write(struct.pack('<I%ss'%length, length, _x)) 00368 _x = self 00369 buff.write(_struct_2I.pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs)) 00370 _x = self.action_result.status.goal_id.id 00371 length = len(_x) 00372 buff.write(struct.pack('<I%ss'%length, length, _x)) 00373 buff.write(_struct_B.pack(self.action_result.status.status)) 00374 _x = self.action_result.status.text 00375 length = len(_x) 00376 buff.write(struct.pack('<I%ss'%length, length, _x)) 00377 buff.write(self.action_result.result.p1.tostring()) 00378 buff.write(self.action_result.result.p2.tostring()) 00379 _x = self 00380 buff.write(_struct_3I.pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs)) 00381 _x = self.action_feedback.header.frame_id 00382 length = len(_x) 00383 buff.write(struct.pack('<I%ss'%length, length, _x)) 00384 _x = self 00385 buff.write(_struct_2I.pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs)) 00386 _x = self.action_feedback.status.goal_id.id 00387 length = len(_x) 00388 buff.write(struct.pack('<I%ss'%length, length, _x)) 00389 buff.write(_struct_B.pack(self.action_feedback.status.status)) 00390 _x = self.action_feedback.status.text 00391 length = len(_x) 00392 buff.write(struct.pack('<I%ss'%length, length, _x)) 00393 _x = self 00394 buff.write(_struct_2I.pack(_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs)) 00395 buff.write(self.action_feedback.feedback.p1.tostring()) 00396 buff.write(self.action_feedback.feedback.p2.tostring()) 00397 except struct.error as se: self._check_types(se) 00398 except TypeError as te: self._check_types(te) 00399 00400 def deserialize_numpy(self, str, numpy): 00401 """ 00402 unpack serialized message in str into this message instance using numpy for array types 00403 @param str: byte array of serialized message 00404 @type str: str 00405 @param numpy: numpy python module 00406 @type numpy: module 00407 """ 00408 try: 00409 if self.action_goal is None: 00410 self.action_goal = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionGoal() 00411 if self.action_result is None: 00412 self.action_result = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionResult() 00413 if self.action_feedback is None: 00414 self.action_feedback = srs_assisted_arm_navigation_msgs.msg.ManualBBEstimationActionFeedback() 00415 end = 0 00416 _x = self 00417 start = end 00418 end += 12 00419 (_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00420 start = end 00421 end += 4 00422 (length,) = _struct_I.unpack(str[start:end]) 00423 start = end 00424 end += length 00425 self.action_goal.header.frame_id = str[start:end] 00426 _x = self 00427 start = end 00428 end += 8 00429 (_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00430 start = end 00431 end += 4 00432 (length,) = _struct_I.unpack(str[start:end]) 00433 start = end 00434 end += length 00435 self.action_goal.goal_id.id = str[start:end] 00436 start = end 00437 end += 4 00438 (length,) = _struct_I.unpack(str[start:end]) 00439 start = end 00440 end += length 00441 self.action_goal.goal.object_name = str[start:end] 00442 _x = self 00443 start = end 00444 end += 13 00445 (_x.action_goal.goal.disable_video, _x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _struct_B3I.unpack(str[start:end]) 00446 self.action_goal.goal.disable_video = bool(self.action_goal.goal.disable_video) 00447 start = end 00448 end += 4 00449 (length,) = _struct_I.unpack(str[start:end]) 00450 start = end 00451 end += length 00452 self.action_result.header.frame_id = str[start:end] 00453 _x = self 00454 start = end 00455 end += 8 00456 (_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00457 start = end 00458 end += 4 00459 (length,) = _struct_I.unpack(str[start:end]) 00460 start = end 00461 end += length 00462 self.action_result.status.goal_id.id = str[start:end] 00463 start = end 00464 end += 1 00465 (self.action_result.status.status,) = _struct_B.unpack(str[start:end]) 00466 start = end 00467 end += 4 00468 (length,) = _struct_I.unpack(str[start:end]) 00469 start = end 00470 end += length 00471 self.action_result.status.text = str[start:end] 00472 start = end 00473 end += 4 00474 self.action_result.result.p1 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2) 00475 start = end 00476 end += 4 00477 self.action_result.result.p2 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2) 00478 _x = self 00479 start = end 00480 end += 12 00481 (_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00482 start = end 00483 end += 4 00484 (length,) = _struct_I.unpack(str[start:end]) 00485 start = end 00486 end += length 00487 self.action_feedback.header.frame_id = str[start:end] 00488 _x = self 00489 start = end 00490 end += 8 00491 (_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00492 start = end 00493 end += 4 00494 (length,) = _struct_I.unpack(str[start:end]) 00495 start = end 00496 end += length 00497 self.action_feedback.status.goal_id.id = str[start:end] 00498 start = end 00499 end += 1 00500 (self.action_feedback.status.status,) = _struct_B.unpack(str[start:end]) 00501 start = end 00502 end += 4 00503 (length,) = _struct_I.unpack(str[start:end]) 00504 start = end 00505 end += length 00506 self.action_feedback.status.text = str[start:end] 00507 _x = self 00508 start = end 00509 end += 8 00510 (_x.action_feedback.feedback.timestamp.secs, _x.action_feedback.feedback.timestamp.nsecs,) = _struct_2I.unpack(str[start:end]) 00511 start = end 00512 end += 4 00513 self.action_feedback.feedback.p1 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2) 00514 start = end 00515 end += 4 00516 self.action_feedback.feedback.p2 = numpy.frombuffer(str[start:end], dtype=numpy.int16, count=2) 00517 return self 00518 except struct.error as e: 00519 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00520 00521 _struct_I = roslib.message.struct_I 00522 _struct_3I = struct.Struct("<3I") 00523 _struct_B = struct.Struct("<B") 00524 _struct_2h = struct.Struct("<2h") 00525 _struct_2I = struct.Struct("<2I") 00526 _struct_B3I = struct.Struct("<B3I")