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