00001 """autogenerated by genpy from kinect_depth_calibration/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 = "kinect_depth_calibration/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 kinect_depth_calibration/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 = "f2e4d5e733b7a98672707e8a53a68cd4"
00126 _type = "kinect_depth_calibration/GetCheckerboardPoseResponse"
00127 _has_header = False
00128 _full_text = """geometry_msgs/PoseStamped board_pose
00129 float32 min_x
00130 float32 max_x
00131 float32 min_y
00132 float32 max_y
00133 float32 noise_vel
00134 float32 noise_rot
00135
00136 ================================================================================
00137 MSG: geometry_msgs/PoseStamped
00138 # A Pose with reference coordinate frame and timestamp
00139 Header header
00140 Pose pose
00141
00142 ================================================================================
00143 MSG: std_msgs/Header
00144 # Standard metadata for higher-level stamped data types.
00145 # This is generally used to communicate timestamped data
00146 # in a particular coordinate frame.
00147 #
00148 # sequence ID: consecutively increasing ID
00149 uint32 seq
00150 #Two-integer timestamp that is expressed as:
00151 # * stamp.secs: seconds (stamp_secs) since epoch
00152 # * stamp.nsecs: nanoseconds since stamp_secs
00153 # time-handling sugar is provided by the client library
00154 time stamp
00155 #Frame this data is associated with
00156 # 0: no frame
00157 # 1: global frame
00158 string frame_id
00159
00160 ================================================================================
00161 MSG: geometry_msgs/Pose
00162 # A representation of pose in free space, composed of postion and orientation.
00163 Point position
00164 Quaternion orientation
00165
00166 ================================================================================
00167 MSG: geometry_msgs/Point
00168 # This contains the position of a point in free space
00169 float64 x
00170 float64 y
00171 float64 z
00172
00173 ================================================================================
00174 MSG: geometry_msgs/Quaternion
00175 # This represents an orientation in free space in quaternion form.
00176
00177 float64 x
00178 float64 y
00179 float64 z
00180 float64 w
00181
00182 """
00183 __slots__ = ['board_pose','min_x','max_x','min_y','max_y','noise_vel','noise_rot']
00184 _slot_types = ['geometry_msgs/PoseStamped','float32','float32','float32','float32','float32','float32']
00185
00186 def __init__(self, *args, **kwds):
00187 """
00188 Constructor. Any message fields that are implicitly/explicitly
00189 set to None will be assigned a default value. The recommend
00190 use is keyword arguments as this is more robust to future message
00191 changes. You cannot mix in-order arguments and keyword arguments.
00192
00193 The available fields are:
00194 board_pose,min_x,max_x,min_y,max_y,noise_vel,noise_rot
00195
00196 :param args: complete set of field values, in .msg order
00197 :param kwds: use keyword arguments corresponding to message field names
00198 to set specific fields.
00199 """
00200 if args or kwds:
00201 super(GetCheckerboardPoseResponse, self).__init__(*args, **kwds)
00202
00203 if self.board_pose is None:
00204 self.board_pose = geometry_msgs.msg.PoseStamped()
00205 if self.min_x is None:
00206 self.min_x = 0.
00207 if self.max_x is None:
00208 self.max_x = 0.
00209 if self.min_y is None:
00210 self.min_y = 0.
00211 if self.max_y is None:
00212 self.max_y = 0.
00213 if self.noise_vel is None:
00214 self.noise_vel = 0.
00215 if self.noise_rot is None:
00216 self.noise_rot = 0.
00217 else:
00218 self.board_pose = geometry_msgs.msg.PoseStamped()
00219 self.min_x = 0.
00220 self.max_x = 0.
00221 self.min_y = 0.
00222 self.max_y = 0.
00223 self.noise_vel = 0.
00224 self.noise_rot = 0.
00225
00226 def _get_types(self):
00227 """
00228 internal API method
00229 """
00230 return self._slot_types
00231
00232 def serialize(self, buff):
00233 """
00234 serialize message into buffer
00235 :param buff: buffer, ``StringIO``
00236 """
00237 try:
00238 _x = self
00239 buff.write(_struct_3I.pack(_x.board_pose.header.seq, _x.board_pose.header.stamp.secs, _x.board_pose.header.stamp.nsecs))
00240 _x = self.board_pose.header.frame_id
00241 length = len(_x)
00242 if python3 or type(_x) == unicode:
00243 _x = _x.encode('utf-8')
00244 length = len(_x)
00245 buff.write(struct.pack('<I%ss'%length, length, _x))
00246 _x = self
00247 buff.write(_struct_7d6f.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, _x.min_x, _x.max_x, _x.min_y, _x.max_y, _x.noise_vel, _x.noise_rot))
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, ``str``
00255 """
00256 try:
00257 if self.board_pose is None:
00258 self.board_pose = geometry_msgs.msg.PoseStamped()
00259 end = 0
00260 _x = self
00261 start = end
00262 end += 12
00263 (_x.board_pose.header.seq, _x.board_pose.header.stamp.secs, _x.board_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00264 start = end
00265 end += 4
00266 (length,) = _struct_I.unpack(str[start:end])
00267 start = end
00268 end += length
00269 if python3:
00270 self.board_pose.header.frame_id = str[start:end].decode('utf-8')
00271 else:
00272 self.board_pose.header.frame_id = str[start:end]
00273 _x = self
00274 start = end
00275 end += 80
00276 (_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, _x.min_x, _x.max_x, _x.min_y, _x.max_y, _x.noise_vel, _x.noise_rot,) = _struct_7d6f.unpack(str[start:end])
00277 return self
00278 except struct.error as e:
00279 raise genpy.DeserializationError(e)
00280
00281
00282 def serialize_numpy(self, buff, numpy):
00283 """
00284 serialize message with numpy array types into buffer
00285 :param buff: buffer, ``StringIO``
00286 :param numpy: numpy python module
00287 """
00288 try:
00289 _x = self
00290 buff.write(_struct_3I.pack(_x.board_pose.header.seq, _x.board_pose.header.stamp.secs, _x.board_pose.header.stamp.nsecs))
00291 _x = self.board_pose.header.frame_id
00292 length = len(_x)
00293 if python3 or type(_x) == unicode:
00294 _x = _x.encode('utf-8')
00295 length = len(_x)
00296 buff.write(struct.pack('<I%ss'%length, length, _x))
00297 _x = self
00298 buff.write(_struct_7d6f.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, _x.min_x, _x.max_x, _x.min_y, _x.max_y, _x.noise_vel, _x.noise_rot))
00299 except struct.error as se: self._check_types(se)
00300 except TypeError as te: self._check_types(te)
00301
00302 def deserialize_numpy(self, str, numpy):
00303 """
00304 unpack serialized message in str into this message instance using numpy for array types
00305 :param str: byte array of serialized message, ``str``
00306 :param numpy: numpy python module
00307 """
00308 try:
00309 if self.board_pose is None:
00310 self.board_pose = geometry_msgs.msg.PoseStamped()
00311 end = 0
00312 _x = self
00313 start = end
00314 end += 12
00315 (_x.board_pose.header.seq, _x.board_pose.header.stamp.secs, _x.board_pose.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00316 start = end
00317 end += 4
00318 (length,) = _struct_I.unpack(str[start:end])
00319 start = end
00320 end += length
00321 if python3:
00322 self.board_pose.header.frame_id = str[start:end].decode('utf-8')
00323 else:
00324 self.board_pose.header.frame_id = str[start:end]
00325 _x = self
00326 start = end
00327 end += 80
00328 (_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, _x.min_x, _x.max_x, _x.min_y, _x.max_y, _x.noise_vel, _x.noise_rot,) = _struct_7d6f.unpack(str[start:end])
00329 return self
00330 except struct.error as e:
00331 raise genpy.DeserializationError(e)
00332
00333 _struct_I = genpy.struct_I
00334 _struct_3I = struct.Struct("<3I")
00335 _struct_7d6f = struct.Struct("<7d6f")
00336 class GetCheckerboardPose(object):
00337 _type = 'kinect_depth_calibration/GetCheckerboardPose'
00338 _md5sum = 'f515725e9bae2b07fb95aab5c6865589'
00339 _request_class = GetCheckerboardPoseRequest
00340 _response_class = GetCheckerboardPoseResponse