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