Disclosure of Invention
The invention provides a hand-eye calibration method, a hand-eye calibration device, electronic equipment and a storage medium, which are used for solving the defects of large hand-eye calibration calculated amount and complicated calibration process in the prior art.
The invention provides a hand-eye calibration method, which comprises the following steps:
acquiring a rotation posture set of each terminal tool coordinate axis, wherein the rotation posture set comprises position posture information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding terminal tool coordinate axis, and the visual mark is arranged at the tail end of the robot;
determining coordinate axis straight lines of the coordinate axes of the end tools under a visual marking coordinate system based on the rotation posture set of the coordinate axes of the end tools;
and determining a transformation relation between the coordinate system of the end tool and the coordinate system of the visual mark based on the coordinate axis straight lines of the coordinate axes of the end tools under the coordinate system of the visual mark.
According to the hand-eye calibration method provided by the invention, the coordinate axis straight line of each terminal tool coordinate axis under the visual marking coordinate system is determined based on the rotation gesture set of each terminal tool coordinate axis, and the method comprises the following steps:
determining a plurality of groups of rotation posture pairs based on a rotation posture set of any terminal tool coordinate axis, wherein each group of rotation posture pairs comprises position posture information of two different rotation angles;
determining the rotating shaft direction of each group of rotating posture pairs and determining the rotating shaft projection point position of each group of rotating posture pairs based on the relative position relation of each group of rotating posture pairs;
and determining a coordinate axis straight line of any terminal tool coordinate axis under the visual marking coordinate system based on the rotating axis direction and the rotating axis projection point position of each group of rotating posture pairs.
According to the hand-eye calibration method provided by the invention, the determining of the rotating shaft direction of each group of rotating posture pairs based on the relative position relationship of each group of rotating posture pairs comprises the following steps:
determining the direction of the axis of rotation of the respective set of rotational attitude pairs based on the following formula:
where v is a rotation axis direction vector of the pair of rotational orientations, θ is a rotation angle of the pair of rotational orientations, and θ is 2arccos (q)w),(qw,qx,qy,qz) Is a quaternion representing the relative positional relationship of the pair of rotational orientations.
According to the hand-eye calibration method provided by the invention, the determining of the positions of the rotating shaft projection points of each group of rotating posture pairs comprises the following steps:
determining the original point distance of two position posture information in each group of rotation posture pair based on the translation relation in the relative position relation of each group of rotation posture pair;
determining the distance between each group of rotation attitude pairs and the rotation axis based on the original point distance of two pieces of position attitude information in each group of rotation attitude pairs and the rotation angle of each group of rotation attitude pairs;
determining the direction from each group of rotation attitude pairs to the rotation axis based on the rotation direction of each group of rotation attitude pairs and the rotation axis direction;
and determining the position of the rotating shaft projection point of each group of rotating posture pairs based on the distance and the direction from each group of rotating posture pairs to the rotating shaft.
According to the hand-eye calibration method provided by the invention, the transformation relation between the terminal tool coordinate system and the visual mark coordinate system is determined based on the coordinate axis straight line of each terminal tool coordinate axis under the visual mark coordinate system, and the method comprises the following steps:
performing orthogonalization on a matrix formed by direction vectors of straight lines of all coordinate axes to obtain a rotation matrix;
determining an origin coordinate based on the midpoints of the common perpendicular lines between the straight lines of the coordinate axes;
based on the rotation matrix and the origin coordinates, a transformation relationship between the end tool coordinate system and the visual marker coordinate system is determined.
According to the hand-eye calibration method provided by the invention, the transformation relation between the terminal tool coordinate system and the visual mark coordinate system is determined based on the coordinate axis straight line of each terminal tool coordinate axis under the visual mark coordinate system, and then the method further comprises the following steps:
determining current pose information of the visual marker;
and determining the relative position relation between the visual navigation instrument and the robot base coordinate system based on the transformation relation between the end tool coordinate system and the visual mark coordinate system, the transformation relation between the end tool coordinate system and the robot base coordinate system and the current posture information of the visual mark.
The invention also provides a hand-eye calibration device, which comprises
The system comprises an attitude acquisition unit, a display unit and a control unit, wherein the attitude acquisition unit is used for acquiring a rotation attitude set of each terminal tool coordinate axis, the rotation attitude set comprises position attitude information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding terminal tool coordinate axis, and the visual mark is arranged at the tail end of the robot;
the coordinate axis determining unit is used for determining coordinate axis straight lines of the coordinate axes of the terminal tools under the visual marking coordinate system based on the rotating posture set of the coordinate axes of the terminal tools;
and the calibration unit is used for determining the transformation relation between the terminal tool coordinate system and the visual mark coordinate system based on the coordinate axis straight line of each terminal tool coordinate axis under the visual mark coordinate system.
The invention further provides an electronic device, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned hand-eye calibration methods when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the hand-eye calibration method as described in any one of the above.
According to the hand-eye calibration method, the hand-eye calibration device, the electronic equipment and the storage medium, the transformation relation between the terminal tool coordinate system and the visual mark coordinate system can be calibrated only according to the position and posture information of the visual mark at each rotation angle in the process that the robot rotates around each terminal tool coordinate axis, the calibration process is simple to operate, complex calculation is not needed, and reliable terminal mark tracking is facilitated.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of the surgical navigation system provided by the present invention, as shown in fig. 1, thevisual marker 2 may be firmly and stably fixed on the end of therobot 3 by means of screw connection, and the visual navigation instrument 1 may acquire and track the position and posture information of the visual marker in real time, so as to display the position of the surgical instrument mounted on the end of therobot 3 on the virtual image by coordinate transformation. The hand-eye calibration performed by the present invention is to determine a coordinate system corresponding to thevisual marker 2, i.e., a visual marker coordinate system, and a coordinate system corresponding to the end tool mounting position of therobot 3, i.e., an end tool coordinate system, which are transformation relations therebetween.
Fig. 2 is a schematic flow chart of a hand-eye calibration method provided by the present invention, and as shown in fig. 2, the method includes:
step 210, collecting a rotation attitude set of each end tool coordinate axis, wherein the rotation attitude set comprises position attitude information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding end tool coordinate axis, and the visual mark is arranged at the tail end of the robot.
In particular, the end tool coordinate axis, i.e., the coordinate axis in the end tool coordinate system, may be divided into X, Y and Z axes in the end tool coordinate system, typically in a three-dimensional space. When the hand and eye calibration is carried out, the robot can be controlled to rotate around the X axis, the Y axis and the Z axis under the terminal tool coordinate system by a certain angle, for example, 30 degrees, in the process, the visual navigation instrument can stably and accurately capture the visual mark at the terminal of the robot, and therefore the position and posture information of the visual mark under each rotation angle when the X axis, the Y axis and the Z axis under the terminal tool coordinate system are respectively used as rotation axes is obtained.
Taking the rotation of the robot around the X axis of the end tool coordinate system as an example, FIG. 3 is a schematic diagram of the set of rotational poses provided by the present invention, as shown in FIG. 3, which can be taken from an appropriate initial positionStarting from the starting position, the robot is controlled to rotate about the X axis by-15 degrees to reach the set starting position, then starting from the position, rotating about the X axis by 30 degrees to reach the end position, and finally returning to the initial position. During the period of time from the starting position to the end position of the robot, the visual navigation instrument records the position and posture information of the robot end visual marker for n times (n is an even number, and when the recording times are odd numbers, the last data is discarded to ensure that n is an even number) at set time intervals (such as 20ms), so that a series of positions and postures acquired by the visual navigation instrument, namely a rotating posture set forming an X axis, can be expressed in the form of a homogeneous matrix, namely { T } TiI 1 … n, i representing the order of acquisition. It should be noted that the starting position and the ending position are set on the premise that the visual navigation instrument can capture the whole rotation process without occlusion.
Andstep 220, determining coordinate axis straight lines of the coordinate axes of the end tools under the visual marking coordinate system based on the rotation posture set of the coordinate axes of the end tools.
Andstep 230, determining a transformation relation between the terminal tool coordinate system and the visual mark coordinate system based on the coordinate axis straight lines of the terminal tool coordinate axes under the visual mark coordinate system.
Specifically, for any end tool coordinate axis, a coordinate axis straight line of the end tool coordinate axis in the visual marker coordinate system may be calculated based on the rotation posture set of the end tool coordinate axis, that is, the position posture information of each rotation angle during the rotation with the end tool coordinate axis as the rotation axis, the direction of the rotation axis, and the distance between the visual marker and the rotation axis. And determining the transformation relation between the coordinate system of the end tool and the coordinate system of the visual mark after obtaining the coordinate axis straight line of each coordinate axis of the end tool under the coordinate system of the visual mark.
According to the method provided by the embodiment of the invention, the transformation relation between the terminal tool coordinate system and the visual mark coordinate system can be calibrated only according to the position and posture information of the visual mark at each rotation angle in the process that the robot rotates around each terminal tool coordinate axis, the calibration process is simple to operate, complex calculation is not needed, and reliable terminal mark tracking is facilitated.
Based on the above embodiment, step 120 includes:
determining a plurality of groups of rotation posture pairs based on a rotation posture set of any terminal tool coordinate axis, wherein each group of rotation posture pairs comprises position posture information of two different rotation angles;
determining the rotating shaft direction of each group of rotating posture pairs and determining the rotating shaft projection point position of each group of rotating posture pairs based on the relative position relation of each group of rotating posture pairs;
and determining coordinate axis straight lines of the terminal tool coordinate axes under the visual marking coordinate system based on the rotating axis direction and the rotating axis projection point position of each group of rotating posture pairs.
Specifically, for a rotation posture set of any end tool coordinate axis, which includes position posture information of the visual marker at each rotation angle, the position posture information at each rotation angle may be combined to form a rotation posture pair, so as to represent a relative position relationship between the two rotation angles of the visual marker during the dynamic rotation process. The relative positional relationship here may be embodied as a rotation and translation process that needs to be passed to change from one positional attitude information to another positional attitude information.
After the position posture information under each rotation angle is grouped, a plurality of groups of rotation posture pairs can be obtained, the corresponding rotation axis direction and the rotation axis projection point position can be determined based on the relative position relation of each group of rotation posture pairs, and the straight line where the corresponding rotation axis is located can be obtained by combining the direction and the point. Because the robot rotates around the end tool coordinate axis, the rotating axis here is the end tool coordinate axis, and therefore the straight line where the end tool coordinate axis is located can be directly obtained.
Based on any of the above embodiments, in step 120, determining a plurality of sets of rotational orientation pairs based on the rotational orientation set of any of the end tool coordinate axes includes:
when the two position posture information are too close, the robot motion and other factors may introduce larger errors, so the center can be integrated according to the rotation postureAnd determining the number of the attitude information, determining the pairing interval, and selecting the position attitude information according to the pairing interval to form a rotation attitude pair. Assuming that the number of position and posture information in the rotation posture set is n, n/2 can be used as a pairing interval, and rotation posture pairs are selected from the rotation posture set in the form of a homogeneous matrix at an interval of n/2, namely T is selected from the rotation posture setskAnd Tk+n/2As a set of rotational attitude pairs, k here is 1,2, …, n/2. For example, if data is collected 10 times during the rotation, 5 sets of rotation attitude pairs, each T, can be determined1And T6、T2And T7、…、T5And T10。
Based on any of the above embodiments, in step 120, determining the rotation axis direction of each group of rotation posture pairs based on the relative position relationship of each group of rotation posture pairs includes:
the direction of the axis of rotation of each set of pairs of rotational poses is determined based on the following formula:
where v is a rotation axis direction vector of the rotation attitude pair, θ is a rotation angle of the rotation attitude pair, and θ is 2arccos (q)w),(qw,qx,qy,qz) Is a quaternion representing the relative positional relationship of the pair of rotational orientations.
Further, for a set of rotational pose pairs TkAnd Tk+n/2The relative positional relationship of the pair of rotational postures can be obtained by the following formula:
wherein M represents the relative positional relationship between the two acquired coordinate systems of the visual marker, i.e. M represents the relative positional relationship between the two acquired coordinate systems of the visual marker
On the basis of the above, a machine can be adoptedA method for correlation calculation in anthropology converts a homogeneous matrix M into a quaternion (q)w,qx,qy,qz) And then the rotation angle theta and the rotation axis direction v of the rotation attitude pair are calculated.
Based on any of the above embodiments, in step 120, determining the positions of the rotation axis projection points of each group of rotation attitude pairs includes:
determining the original point distance of two position posture information in each group of rotation posture pair based on the translation relation in the relative position relation of each group of rotation posture pair;
determining the distance between each group of rotation attitude pairs and the rotation axis based on the original point distance of two pieces of position attitude information in each group of rotation attitude pairs and the rotation angle of each group of rotation attitude pairs;
determining the direction from each group of rotation attitude pairs to the rotation axis based on the rotation direction of each group of rotation attitude pairs and the rotation axis direction;
and determining the position of the rotating shaft projection point of each group of rotating posture pairs based on the distance and the direction from each group of rotating posture pairs to the rotating shaft.
Specifically, for any group of rotation posture pairs, the relative position relationship of the rotation posture pairs can be further divided into a translation relationship and a rotation relationship, specifically, the fourth column of the relative position relationship M matrix includes the translation relationships Δ x, Δ y, and Δ z, and the origin distance of the two pieces of position posture information in the rotation posture pairs can be calculated based on Δ x, Δ y, and Δ z in the M matrix. The origin distance here is a distance between the origins of the visual marker coordinate systems corresponding to the two pieces of position and orientation information in the rotation orientation pair, respectively.
FIG. 4 is a schematic diagram of the pivot projection point position calculation provided by the present invention, as shown in FIG. 4, a set of rotational attitude pairs T
kAnd T
k+n/2Can be expressed as s, i.e. T in the figure
kAnd T
k+n/2The straight line connecting the two parts is a straight line,
on the basis, the rotation attitude pair T which is known in advance is combinedkAnd Tk+n/2Is rotatedAngle θ, i.e. the distance of the rotation attitude pair to the rotation axis, i.e. distance d in the figure, can be calculated in combination with trigonometric function:
the direction of the rotation position pair to the axis of rotation is understood to be the direction of the line on which the distance d lies, and can be determined by the direction of rotation of the rotation position pair, i.e. the direction of rotation
Is calculated by cross-multiplication with the rotation axis direction v.
After the direction from the rotating posture pair to the rotating shaft and the distance d from the rotating posture pair to the rotating shaft are obtained, the position of the rotating shaft projection point of the rotating posture pair can be calculated, which is equivalent to a coordinate system TkAnd Tk+n/2And the projection point of the middle point of the coordinate origin connecting line on the rotating shaft.
Based on any of the above embodiments, in step 120, determining a coordinate axis straight line of the coordinate axis of the end tool in the visual marker coordinate system based on the rotation axis direction and the rotation axis projection point position of each set of rotation attitude pairs includes:
and aiming at the rotating shaft direction and the rotating shaft projection point position of any group of rotating posture pairs, obtaining a rotating shaft straight line determined based on the rotating posture pairs. In order to reduce random calibration errors, the determined rotation axis lines based on each set of rotation postures can be averaged to determine coordinate axis lines of the coordinate axis of the end tool in the visual mark coordinate system, taking the X axis as an example, which can be expressed as a direction vector vxAnd point p thereonx。
Based on the same way, the direction vector v of the Y axis can be obtainedyAnd point p thereonyAnd a direction vector v of the Z axiszAnd point p thereonz。
Based on any of the above embodiments, step 130 includes:
performing orthogonalization on a matrix formed by direction vectors of straight lines of all coordinate axes to obtain a rotation matrix;
determining an origin coordinate based on the midpoints of the common perpendicular lines between the straight lines of the coordinate axes;
based on the rotation matrix and the origin coordinates, a transformation relationship between the end tool coordinate system and the visual marker coordinate system is determined.
Specifically, the direction vector v of each coordinate axis straight linex、vy、vzThe matrix R' may be constructed and may not be orthogonal due to the presence of errors. In consideration of this situation, it is necessary to orthogonalize the matrix R', and here the orthogonalization may be realized by QR decomposition or singular value decomposition of the matrix.
In addition, although the origin position of the end tool coordinate system under the visual marker coordinate system can be theoretically determined by calculating the intersection point of the coordinate axis straight lines, due to the existence of various errors, the three coordinate axis straight lines may not intersect, i.e., straight lines with different planes exist. For this case, the origin coordinates may be determined based on the midpoints of the common vertical lines between the straight lines of the coordinate axes.
FIG. 5 is a schematic diagram of the origin calibration provided by the present invention, as shown in FIG. 5, with the line l along the X-axis and the Y-axisx、lyFor example, the midpoint o of the common perpendicular to the two out-of-plane straight lines can be calculatedxyThe midpoint o of the common perpendicular line of the X axis and the Z axis can be calculated in the same wayxzMidpoint o of common perpendicular line of Y-axis and Z-axisyzTaking the average value o ═ o (o)xy+oxz+oyz) And/3 as the origin of the end tool coordinate system with reference to the visual marker coordinate system.
After the rotation matrix and the origin coordinates are obtained, the transformation relationship T between the end tool coordinate system and the visual marker coordinate system can be determined as follows:
wherein R is a rotation matrix obtained by orthogonalizing R'; o is the origin of coordinates.
Based on any of the above embodiments, step 130 further includes:
determining current pose information of the visual marker;
and determining the relative position relation between the visual navigation instrument and the robot base coordinate system based on the transformation relation between the end tool coordinate system and the visual mark coordinate system, the transformation relation between the end tool coordinate system and the robot base coordinate system and the current posture information of the visual mark.
Specifically, the transformation relationship between the end tool coordinate system and the visual marker coordinate system is obtained based on step 110-
The transformation relationship between the end tool coordinate system and the robot base coordinate system can be obtained from the positive kinematics of robotics and is noted as
In the operation navigation process, the attitude information of the visual marker at the current moment under the visual navigation instrument, namely the current attitude information can be acquired in real time
The relative position relationship between the visual navigation instrument and the robot base coordinate system can be calculated in real time:
in the above-mentioned formula,
is a matrix that can be determined from positive kinematics in robotics; the visual marker is typically secured to the robot tip securely and stably by a threaded connection or the like, thereby representing a matrix of relative positions of the visual marker and the tip tool coordinate system
Is also fixed and unchangeable; the visual navigation instrument is often mounted on a movable base and is placed in the operation area during useIn proper position, the position and the posture of the visual navigation instrument can be adjusted when the visual mark moves beyond the visual field range, so that the position and the posture of the visual navigation instrument relative to the robot base coordinate system can be changed, and the matrix is calculated in real time
The mapping relation between the visual coordinate system and the robot coordinate system can be accurately obtained, and the influence caused by adjusting the visual navigation instrument can be avoided.
In addition, another problem in the navigation operation is that the visual navigation instrument is fixed, and the visual mark at the tail end of the robot is not tracked by the navigation instrument due to the posture or the shielding, and the like, and then the matrix calculated according to the calibration can be used
And a matrix obtained from positive kinematics of robotics
The position and the attitude of the visual mark relative to the robot base coordinate system are calculated and are transformed by a transformation matrix
The visual markers are unified within the robot base coordinate system and the visual coordinate system.
Based on any of the above embodiments, fig. 6 is a schematic structural diagram of the hand-eye calibration device provided by the present invention, as shown in fig. 6, the device includes:
theattitude acquisition unit 610 is used for acquiring a rotation attitude set of each end tool coordinate axis, wherein the rotation attitude set comprises position attitude information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding end tool coordinate axis, and the visual mark is arranged at the tail end of the robot;
a coordinateaxis determining unit 620, configured to determine, based on the rotation posture set of each end tool coordinate axis, a coordinate axis straight line of each end tool coordinate axis in the visual marker coordinate system;
and acalibration unit 630, configured to determine a transformation relationship between the end tool coordinate system and the visual marker coordinate system based on coordinate axis straight lines of each end tool coordinate axis under the visual marker coordinate system.
According to the device provided by the embodiment of the invention, the transformation relation between the terminal tool coordinate system and the visual mark coordinate system can be calibrated only according to the position and posture information of the visual mark at each rotation angle in the process that the robot rotates around each terminal tool coordinate axis, the calibration process is simple to operate, complex calculation is not needed, and reliable terminal mark tracking is facilitated.
Based on any one of the above embodiments, the coordinate axis determination unit includes:
the grouping subunit is used for determining a plurality of groups of rotation posture pairs based on the rotation posture set of any terminal tool coordinate axis, and each group of rotation posture pairs comprises position posture information of two different rotation angles;
the calculating subunit is used for determining the rotating shaft direction of each group of rotating posture pairs and determining the rotating shaft projection point position of each group of rotating posture pairs based on the relative position relation of each group of rotating posture pairs;
and the axis determining subunit is used for determining a coordinate axis straight line of any terminal tool coordinate axis under the visual marking coordinate system based on the rotating axis direction and the rotating axis projection point position of each group of rotating posture pairs.
Based on any of the above embodiments, the calculation subunit is configured to:
determining the direction of the axis of rotation of the respective set of rotational attitude pairs based on the following formula:
where v is a rotation axis direction vector of the pair of rotational orientations, θ is a rotation angle of the pair of rotational orientations, and θ is 2arccos (q)w),(qw,qx,qy,qz) Is a quaternion representing the relative positional relationship of the pair of rotational orientations.
Based on any of the above embodiments, the calculation subunit is further configured to:
determining the original point distance of two position posture information in each group of rotation posture pair based on the translation relation in the relative position relation of each group of rotation posture pair;
determining the distance between each group of rotation attitude pairs and the rotation axis based on the original point distance of two pieces of position attitude information in each group of rotation attitude pairs and the rotation angle of each group of rotation attitude pairs;
determining the direction from each group of rotation attitude pairs to the rotation axis based on the rotation direction of each group of rotation attitude pairs and the rotation axis direction;
and determining the position of the rotating shaft projection point of each group of rotating posture pairs based on the distance and the direction from each group of rotating posture pairs to the rotating shaft.
Based on any of the above embodiments, the calibration unit is configured to:
performing orthogonalization on a matrix formed by direction vectors of straight lines of all coordinate axes to obtain a rotation matrix;
determining an origin coordinate based on the midpoints of the common perpendicular lines between the straight lines of the coordinate axes;
based on the rotation matrix and the origin coordinates, a transformation relationship between the end tool coordinate system and the visual marker coordinate system is determined.
Based on any of the above embodiments, the apparatus further comprises a base coordinate calibration unit, configured to:
determining current pose information of the visual marker;
and determining the relative position relation between the visual navigation instrument and the robot base coordinate system based on the transformation relation between the end tool coordinate system and the visual mark coordinate system, the transformation relation between the end tool coordinate system and the robot base coordinate system and the current posture information of the visual mark.
Fig. 7 is a schematic structural diagram of an electronic device provided in the present invention, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and acommunication bus 740, wherein theprocessor 710, thecommunication Interface 720, and thememory 730 communicate with each other via thecommunication bus 740.Processor 710 may call logical commands inmemory 730 to perform the following method: acquiring a rotation posture set of each terminal tool coordinate axis, wherein the rotation posture set comprises position posture information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding terminal tool coordinate axis, and the visual mark is arranged at the tail end of the robot; determining coordinate axis straight lines of the coordinate axes of the end tools under a visual marking coordinate system based on the rotation posture set of the coordinate axes of the end tools; and determining a transformation relation between the coordinate system of the end tool and the coordinate system of the visual mark based on the coordinate axis straight lines of the coordinate axes of the end tools under the coordinate system of the visual mark.
In addition, the logic commands in thememory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic commands are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of commands for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the method provided in the foregoing embodiments when executed by a processor, and the method includes: acquiring a rotation posture set of each terminal tool coordinate axis, wherein the rotation posture set comprises position posture information of a visual mark at each rotation angle in the process that the robot rotates around the corresponding terminal tool coordinate axis, and the visual mark is arranged at the tail end of the robot; determining coordinate axis straight lines of the coordinate axes of the end tools under a visual marking coordinate system based on the rotation posture set of the coordinate axes of the end tools; and determining a transformation relation between the coordinate system of the end tool and the coordinate system of the visual mark based on the coordinate axis straight lines of the coordinate axes of the end tools under the coordinate system of the visual mark.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes commands for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.