The invention discloses an obtaining device and obtaining method for the position of a central axis of a main shaft of a
machine tool. The obtaining device comprises a
Hexapod mobile platform, an auxiliary calibrating piece, a
laser sensor and a controller, wherein the
Hexapod mobile platform comprises an upper platform, a lower platform and six telescopic rods; the lower platform is mounted on a cutter frame; a cutter is mounted at the central position of the upper platform; the
Hexapod mobile platform has six freedom degrees; the auxiliary calibrating piece is mounted at the end part of the main shaft of the
machine tool, and comprises a flat cylindrical end plate perpendicular to the main shaft of the
machine tool; the
laser sensor is mounted on the upper platform; the controller can control the upper platform of the Hexapod mobile platform to move along one or more freedom degrees of the six freedom degrees, and control the
laser sensor to scan the flat cylindrical end plate in the moving process of the upper platform; and the controller obtains a straight line equation of the position of the central axis of the main shaft of the
machine tool in a Hexapod coordinate
system according to scanning data. According to the obtaining device and the obtaining method disclosed by the invention, the position equation of the central axis of the main shaft of the
machine tool can be quickly and accurately obtained without performing sacrificial
cutting on a work piece, so that the working efficiency is greatly improved.