$search
00001 """autogenerated by genmsg_py from ArmNavMovePalmLinkRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 00008 class ArmNavMovePalmLinkRequest(roslib.message.Message): 00009 _md5sum = "2a9b3a744872de70e87ced880bb13ac5" 00010 _type = "srs_assisted_arm_navigation_msgs/ArmNavMovePalmLinkRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """geometry_msgs/PoseStamped sdh_palm_link_pose 00013 00014 ================================================================================ 00015 MSG: geometry_msgs/PoseStamped 00016 # A Pose with reference coordinate frame and timestamp 00017 Header header 00018 Pose pose 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: geometry_msgs/Pose 00040 # A representation of pose in free space, composed of postion and orientation. 00041 Point position 00042 Quaternion orientation 00043 00044 ================================================================================ 00045 MSG: geometry_msgs/Point 00046 # This contains the position of a point in free space 00047 float64 x 00048 float64 y 00049 float64 z 00050 00051 ================================================================================ 00052 MSG: geometry_msgs/Quaternion 00053 # This represents an orientation in free space in quaternion form. 00054 00055 float64 x 00056 float64 y 00057 float64 z 00058 float64 w 00059 00060 """ 00061 __slots__ = ['sdh_palm_link_pose'] 00062 _slot_types = ['geometry_msgs/PoseStamped'] 00063 00064 def __init__(self, *args, **kwds): 00065 """ 00066 Constructor. Any message fields that are implicitly/explicitly 00067 set to None will be assigned a default value. The recommend 00068 use is keyword arguments as this is more robust to future message 00069 changes. You cannot mix in-order arguments and keyword arguments. 00070 00071 The available fields are: 00072 sdh_palm_link_pose 00073 00074 @param args: complete set of field values, in .msg order 00075 @param kwds: use keyword arguments corresponding to message field names 00076 to set specific fields. 00077 """ 00078 if args or kwds: 00079 super(ArmNavMovePalmLinkRequest, self).__init__(*args, **kwds) 00080 #message fields cannot be None, assign default values for those that are 00081 if self.sdh_palm_link_pose is None: 00082 self.sdh_palm_link_pose = geometry_msgs.msg.PoseStamped() 00083 else: 00084 self.sdh_palm_link_pose = geometry_msgs.msg.PoseStamped() 00085 00086 def _get_types(self): 00087 """ 00088 internal API method 00089 """ 00090 return self._slot_types 00091 00092 def serialize(self, buff): 00093 """ 00094 serialize message into buffer 00095 @param buff: buffer 00096 @type buff: StringIO 00097 """ 00098 try: 00099 _x = self 00100 buff.write(_struct_3I.pack(_x.sdh_palm_link_pose.header.seq, _x.sdh_palm_link_pose.header.stamp.secs, _x.sdh_palm_link_pose.header.stamp.nsecs)) 00101 _x = self.sdh_palm_link_pose.header.frame_id 00102 length = len(_x) 00103 buff.write(struct.pack('<I%ss'%length, length, _x)) 00104 _x = self 00105 buff.write(_struct_7d.pack(_x.sdh_palm_link_pose.pose.position.x, _x.sdh_palm_link_pose.pose.position.y, _x.sdh_palm_link_pose.pose.position.z, _x.sdh_palm_link_pose.pose.orientation.x, _x.sdh_palm_link_pose.pose.orientation.y, _x.sdh_palm_link_pose.pose.orientation.z, _x.sdh_palm_link_pose.pose.orientation.w)) 00106 except struct.error as se: self._check_types(se) 00107 except TypeError as te: self._check_types(te) 00108 00109 def deserialize(self, str): 00110 """ 00111 unpack serialized message in str into this message instance 00112 @param str: byte array of serialized message 00113 @type str: str 00114 """ 00115 try: 00116 if self.sdh_palm_link_pose is None: 00117 self.sdh_palm_link_pose = geometry_msgs.msg.PoseStamped() 00118 end = 0 00119 _x = self 00120 start = end 00121 end += 12 00122 (_x.sdh_palm_link_pose.header.seq, _x.sdh_palm_link_pose.header.stamp.secs, _x.sdh_palm_link_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00123 start = end 00124 end += 4 00125 (length,) = _struct_I.unpack(str[start:end]) 00126 start = end 00127 end += length 00128 self.sdh_palm_link_pose.header.frame_id = str[start:end] 00129 _x = self 00130 start = end 00131 end += 56 00132 (_x.sdh_palm_link_pose.pose.position.x, _x.sdh_palm_link_pose.pose.position.y, _x.sdh_palm_link_pose.pose.position.z, _x.sdh_palm_link_pose.pose.orientation.x, _x.sdh_palm_link_pose.pose.orientation.y, _x.sdh_palm_link_pose.pose.orientation.z, _x.sdh_palm_link_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00133 return self 00134 except struct.error as e: 00135 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00136 00137 00138 def serialize_numpy(self, buff, numpy): 00139 """ 00140 serialize message with numpy array types into buffer 00141 @param buff: buffer 00142 @type buff: StringIO 00143 @param numpy: numpy python module 00144 @type numpy module 00145 """ 00146 try: 00147 _x = self 00148 buff.write(_struct_3I.pack(_x.sdh_palm_link_pose.header.seq, _x.sdh_palm_link_pose.header.stamp.secs, _x.sdh_palm_link_pose.header.stamp.nsecs)) 00149 _x = self.sdh_palm_link_pose.header.frame_id 00150 length = len(_x) 00151 buff.write(struct.pack('<I%ss'%length, length, _x)) 00152 _x = self 00153 buff.write(_struct_7d.pack(_x.sdh_palm_link_pose.pose.position.x, _x.sdh_palm_link_pose.pose.position.y, _x.sdh_palm_link_pose.pose.position.z, _x.sdh_palm_link_pose.pose.orientation.x, _x.sdh_palm_link_pose.pose.orientation.y, _x.sdh_palm_link_pose.pose.orientation.z, _x.sdh_palm_link_pose.pose.orientation.w)) 00154 except struct.error as se: self._check_types(se) 00155 except TypeError as te: self._check_types(te) 00156 00157 def deserialize_numpy(self, str, numpy): 00158 """ 00159 unpack serialized message in str into this message instance using numpy for array types 00160 @param str: byte array of serialized message 00161 @type str: str 00162 @param numpy: numpy python module 00163 @type numpy: module 00164 """ 00165 try: 00166 if self.sdh_palm_link_pose is None: 00167 self.sdh_palm_link_pose = geometry_msgs.msg.PoseStamped() 00168 end = 0 00169 _x = self 00170 start = end 00171 end += 12 00172 (_x.sdh_palm_link_pose.header.seq, _x.sdh_palm_link_pose.header.stamp.secs, _x.sdh_palm_link_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) 00173 start = end 00174 end += 4 00175 (length,) = _struct_I.unpack(str[start:end]) 00176 start = end 00177 end += length 00178 self.sdh_palm_link_pose.header.frame_id = str[start:end] 00179 _x = self 00180 start = end 00181 end += 56 00182 (_x.sdh_palm_link_pose.pose.position.x, _x.sdh_palm_link_pose.pose.position.y, _x.sdh_palm_link_pose.pose.position.z, _x.sdh_palm_link_pose.pose.orientation.x, _x.sdh_palm_link_pose.pose.orientation.y, _x.sdh_palm_link_pose.pose.orientation.z, _x.sdh_palm_link_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00183 return self 00184 except struct.error as e: 00185 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00186 00187 _struct_I = roslib.message.struct_I 00188 _struct_3I = struct.Struct("<3I") 00189 _struct_7d = struct.Struct("<7d") 00190 """autogenerated by genmsg_py from ArmNavMovePalmLinkResponse.msg. Do not edit.""" 00191 import roslib.message 00192 import struct 00193 00194 00195 class ArmNavMovePalmLinkResponse(roslib.message.Message): 00196 _md5sum = "7de7f4695a268566c2ce9ae9e3a34e73" 00197 _type = "srs_assisted_arm_navigation_msgs/ArmNavMovePalmLinkResponse" 00198 _has_header = False #flag to mark the presence of a Header object 00199 _full_text = """bool completed 00200 string msg 00201 00202 """ 00203 __slots__ = ['completed','msg'] 00204 _slot_types = ['bool','string'] 00205 00206 def __init__(self, *args, **kwds): 00207 """ 00208 Constructor. Any message fields that are implicitly/explicitly 00209 set to None will be assigned a default value. The recommend 00210 use is keyword arguments as this is more robust to future message 00211 changes. You cannot mix in-order arguments and keyword arguments. 00212 00213 The available fields are: 00214 completed,msg 00215 00216 @param args: complete set of field values, in .msg order 00217 @param kwds: use keyword arguments corresponding to message field names 00218 to set specific fields. 00219 """ 00220 if args or kwds: 00221 super(ArmNavMovePalmLinkResponse, self).__init__(*args, **kwds) 00222 #message fields cannot be None, assign default values for those that are 00223 if self.completed is None: 00224 self.completed = False 00225 if self.msg is None: 00226 self.msg = '' 00227 else: 00228 self.completed = False 00229 self.msg = '' 00230 00231 def _get_types(self): 00232 """ 00233 internal API method 00234 """ 00235 return self._slot_types 00236 00237 def serialize(self, buff): 00238 """ 00239 serialize message into buffer 00240 @param buff: buffer 00241 @type buff: StringIO 00242 """ 00243 try: 00244 buff.write(_struct_B.pack(self.completed)) 00245 _x = self.msg 00246 length = len(_x) 00247 buff.write(struct.pack('<I%ss'%length, length, _x)) 00248 except struct.error as se: self._check_types(se) 00249 except TypeError as te: self._check_types(te) 00250 00251 def deserialize(self, str): 00252 """ 00253 unpack serialized message in str into this message instance 00254 @param str: byte array of serialized message 00255 @type str: str 00256 """ 00257 try: 00258 end = 0 00259 start = end 00260 end += 1 00261 (self.completed,) = _struct_B.unpack(str[start:end]) 00262 self.completed = bool(self.completed) 00263 start = end 00264 end += 4 00265 (length,) = _struct_I.unpack(str[start:end]) 00266 start = end 00267 end += length 00268 self.msg = str[start:end] 00269 return self 00270 except struct.error as e: 00271 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00272 00273 00274 def serialize_numpy(self, buff, numpy): 00275 """ 00276 serialize message with numpy array types into buffer 00277 @param buff: buffer 00278 @type buff: StringIO 00279 @param numpy: numpy python module 00280 @type numpy module 00281 """ 00282 try: 00283 buff.write(_struct_B.pack(self.completed)) 00284 _x = self.msg 00285 length = len(_x) 00286 buff.write(struct.pack('<I%ss'%length, length, _x)) 00287 except struct.error as se: self._check_types(se) 00288 except TypeError as te: self._check_types(te) 00289 00290 def deserialize_numpy(self, str, numpy): 00291 """ 00292 unpack serialized message in str into this message instance using numpy for array types 00293 @param str: byte array of serialized message 00294 @type str: str 00295 @param numpy: numpy python module 00296 @type numpy: module 00297 """ 00298 try: 00299 end = 0 00300 start = end 00301 end += 1 00302 (self.completed,) = _struct_B.unpack(str[start:end]) 00303 self.completed = bool(self.completed) 00304 start = end 00305 end += 4 00306 (length,) = _struct_I.unpack(str[start:end]) 00307 start = end 00308 end += length 00309 self.msg = str[start:end] 00310 return self 00311 except struct.error as e: 00312 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00313 00314 _struct_I = roslib.message.struct_I 00315 _struct_B = struct.Struct("<B") 00316 class ArmNavMovePalmLink(roslib.message.ServiceDefinition): 00317 _type = 'srs_assisted_arm_navigation_msgs/ArmNavMovePalmLink' 00318 _md5sum = '6a1d50effcfcd3d7e03d54f96528de75' 00319 _request_class = ArmNavMovePalmLinkRequest 00320 _response_class = ArmNavMovePalmLinkResponse