Hand-eye calibration method and device based on surgical robot terminal connector
By using point cloud data and regression optimization technology to calculate the center point coordinates of the end connector of the surgical robot without setting markers, the problem that the hand-eye calibration method in the existing technology is affected by illumination and image quality is solved, and the hand-eye calibration method is improved. Calibration efficiency and accuracy.
Patent Information
- Application Number
- CN202410283323.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-03-13
AI Technical Summary
The existing hand-eye calibration method without markers is easily affected by lighting conditions and image quality, resulting in insufficient accuracy and precision, and the process is complex, making it difficult to accurately achieve hand-eye calibration of surgical robots.
By moving the robotic arm of the surgical robot to multiple spatial positions without moving the three-dimensional imaging unit, the center point coordinates of the end connector are obtained, and its coordinates relative to the three-dimensional imaging unit are calculated based on point cloud data to estimate the three-dimensional imaging unit. and the position relationship matrix between the surgical robot, and perform regression optimization to simplify the data extraction process.
It effectively avoids the influence of factors such as lighting conditions and image quality, improves the efficiency and versatility of hand-eye calibration, and ensures the accuracy and precision of hand-eye calibration of surgical robots.
Smart Images

Figure CN118121307B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a hand-eye calibration method and device based on a surgical robot end connector. Background Art
[0002] Traditional calibration methods require placing physical markers or objects with predefined dimensions in the robot's workspace. The required algorithms are complex and have low accuracy. Therefore, the industry has proposed a hand-eye calibration method without setting markers to solve the above problem.
[0003] The calibration information of the hand-eye calibration method without setting markers mostly relies on sensor data and algorithms. In the prior art, visual sensors are used to obtain surgical robot and environmental image information, and image processing and analysis technology are used to extract feature points to achieve hand-eye calibration. However, this method is easily affected by factors such as lighting conditions and image quality, and requires repeated extraction of feature points. As a result, the robot's hand-eye calibration and calibration without setting markers have large errors and a complicated process, making it difficult to accurately implement the surgical robot's hand-eye calibration process, thereby affecting the efficiency of the surgical robot calibration. Summary of the invention
[0004] In view of this, the present application proposes a hand-eye calibration method and device based on the end connector of a surgical robot. On the one hand, in the case of hand-eye calibration without setting markers, it effectively avoids the problem of insufficient accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of feature values; at the same time, through the direct calculation of the center position of the end connector, it simplifies the data extraction process and improves the efficiency and versatility of the robot hand-eye calibration.
[0005] In the first aspect, the present application proposes a hand-eye calibration method based on a surgical robot end connector, comprising the following steps:
[0006] Without moving the three-dimensional imaging unit, move the robotic arm of the surgical robot to multiple spatial positions to obtain a first set of three-dimensional coordinate values of the center point of the terminal connecting piece on the robotic arm relative to the coordinate system of the surgical robot;
[0007] For the multiple spatial positions, obtaining pre-processed point cloud data of the terminal connection piece, and calculating a second set of three-dimensional coordinate values of a center point of the terminal connection piece relative to a three-dimensional imaging unit coordinate system based on the pre-processed point cloud data;
[0008] According to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, a position relationship matrix between the three-dimensional imaging unit and the surgical robot is estimated, and regression optimization is performed on the position relationship matrix based on calculation errors.
[0009] Optionally, the acquiring of preprocessed point cloud data of the terminal connector for the plurality of spatial positions, and calculating, based on the preprocessed point cloud data, a second set of three-dimensional coordinate values of a center point of the terminal connector relative to a three-dimensional imaging unit coordinate system, comprises:
[0010] Scanning the upper plane of the terminal connector by the three-dimensional imaging unit to obtain initial point cloud data of the terminal connector, and preprocessing the initial point cloud data to generate the preprocessed point cloud data;
[0011] A three-dimensional model of the terminal connector relative to the three-dimensional imaging unit coordinate system is constructed based on the preprocessed point cloud data, thereby obtaining a second set of three-dimensional coordinates of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model.
[0012] Optionally, constructing a three-dimensional model of the terminal connector relative to a three-dimensional imaging unit coordinate system based on the pre-processed point cloud data, thereby obtaining a second set of three-dimensional coordinates of a center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model, comprises:
[0013] Calculating the mean of the coordinate values of all points in the preprocessed point cloud data to obtain the center coordinates and the initial values of the inner circle radius of the terminal connector, and constructing a first inner circle based on the center coordinates and the initial values of the inner circle radius;
[0014] Extracting the feature points closest to the first inner circle from the preprocessed point cloud data, performing linear sampling on the first inner circle through a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval;
[0015] The discrete points distributed on the second inner circle are fitted, the average zero center point of the discrete points is calculated, and the average zero center point is projected onto the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinate of the second inner circle of the terminal connector.
[0016] Optionally, extracting the feature points closest to the first inner circle from the preprocessed point cloud data, linearly sampling the first inner circle at a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval includes:
[0017] The feature points closest to the first inner circle are extracted from the preprocessed point cloud data using a nearest neighbor method; wherein the discrete points on the second inner circle are evenly distributed according to the sampling angle.
[0018] Optionally, fitting the discrete points distributed on the second inner circle, calculating the average zero center point of the discrete points, and projecting them into the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinates of the second inner circle of the terminal connector, includes:
[0019] Generate the optimal fitting plane using discrete points and their average zero center point data;
[0020] Obtain the projection points of the discrete points and their average zero center points on the optimal fitting plane, and calculate the optimal values of the coordinates of the center of the circle fitted to the projection points;
[0021] The optimal value of the center coordinates of the circle fitted to the projection point is converted into three-dimensional coordinates relative to the three-dimensional imaging unit coordinate system, so as to calculate the optimal estimated value of the center coordinates of the second inner circle of the terminal connecting piece.
[0022] Optionally, estimating a position relationship matrix between the three-dimensional imaging unit and the surgical robot according to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and performing regression optimization on the position relationship matrix based on calculation errors, comprises:
[0023] According to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, respectively obtain a first dimensional transformation matrix between the surgical robot and the terminal connection piece, and a second dimensional transformation matrix between the three-dimensional imaging unit and the terminal connection piece;
[0024] The position transformation matrix between the three-dimensional imaging unit and the surgical robot is estimated according to the first dimensional transformation matrix and the second dimensional transformation matrix, and the position transformation matrix between the three-dimensional imaging unit and the surgical robot is regressively optimized with the total calculation error being minimized.
[0025] Optionally, the total calculation error represents the accumulated calculation error of the position transformation matrix estimated at each spatial position in the multiple spatial positions.
[0026] In the second aspect, the present application also proposes a hand-eye calibration device based on the end connector of a surgical robot, comprising:
[0027] A first coordinate calculation unit is used to move the mechanical arm of the surgical robot to a plurality of spatial positions without moving the three-dimensional imaging unit, and obtain a first set of three-dimensional coordinate values of the center point of the terminal connecting piece on the mechanical arm relative to the coordinate system of the surgical robot;
[0028] A second coordinate calculation unit is used to obtain pre-processed point cloud data of the terminal connection piece for the multiple spatial positions, and calculate a second set of three-dimensional coordinate values of a center point of the terminal connection piece relative to the three-dimensional imaging unit coordinate system based on the pre-processed point cloud data;
[0029] A regression optimization unit is used to estimate the position relationship matrix between the three-dimensional imaging unit and the surgical robot according to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, and to perform regression optimization on the position relationship matrix based on calculation errors.
[0030] This application can at least achieve the following beneficial effects:
[0031] The hand-eye calibration method and device based on the end connector of the surgical robot of the present application, on the one hand, effectively avoids the problem of insufficient accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of feature values when no markers are set for hand-eye calibration; at the same time, through the direct calculation of the center position of the end connector, the data extraction process is simplified, thereby improving the efficiency and versatility of the robot hand-eye calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of the present application.
[0033] Figure 1 is a structural schematic diagram of a surgical robot hand-eye calibration system according to an embodiment of the present application;
[0034] Figure 2 is a schematic structural diagram of a surgical robot hand-eye calibration terminal connection piece according to an embodiment of the present application;
[0035] Figure 3 is a flow chart of a hand-eye calibration method based on a surgical robot terminal connector according to an embodiment of the present application;
[0036] Figure 4 is a partial flow chart of a hand-eye calibration method based on a surgical robot end connector according to another embodiment of the present application;
[0037] Figure 5 is a partial flow chart of a hand-eye calibration method based on a surgical robot end connector according to another embodiment of the present application;
[0038] Figure 6 is a partial flow chart of a hand-eye calibration method based on a surgical robot end connector according to another embodiment of the present application;
[0039] Figure 7 is a structural schematic diagram of a hand-eye calibration device based on a surgical robot end connector according to an embodiment of the present application;
[0040] Figure 8 is a partial structural schematic diagram of a hand-eye calibration device based on a surgical robot end connector according to another embodiment of the present application;
[0041] Fig. 9is a partial structural schematic diagram of a hand-eye calibration device based on a surgical robot end connector according to another embodiment of the present application;
[0042] Fig.10 is a partial structural schematic diagram of a hand-eye calibration device based on a surgical robot end connector according to another embodiment of the present application;
[0043] Figure numbers: 100 - surgical robot; 101 - robot base; 102 - robotic arm; 103 - terminal operating part; 110 - three-dimensional imaging unit; 120 - computing unit; 130 - terminal connector. DETAILED DESCRIPTION
[0044] To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. However, it should be understood that the described embodiments are only some exemplary embodiments of the present application, rather than all embodiments, and therefore the following detailed description of the embodiments of the present application is not intended to limit the scope of protection claimed in the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0045] As mentioned above, in the prior art, visual sensors are used to obtain surgical robot and environmental image information, and image processing and analysis techniques are used to extract feature points to achieve hand-eye calibration. However, this method is easily affected by factors such as lighting conditions and image quality, and it is necessary to extract feature points repeatedly, resulting in large errors and complex processes in the hand-eye calibration and calibration of the robot without setting markers. It is difficult to accurately implement the hand-eye calibration process of the surgical robot, thereby affecting the efficiency of the surgical robot calibration. To this end, the present application proposes a hand-eye calibration method and device based on the terminal connector of a surgical robot, so as to effectively avoid the problem of insufficient accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of feature values in the case of hand-eye calibration without setting markers.
[0046] Figure 1 This is an exemplary surgical robot hand-eye calibration system applicable to the hand-eye calibration method and device based on the surgical robot terminal connector of this application. Figure 1As shown, the system includes: a surgical robot 100, which includes a base 101, a robotic arm 102 and an end operating part 103 connected to the robotic arm 102, wherein the end operating part 103 includes an end connector 130 and an actuator (such as a scalpel, a needle holder, a stapler, etc.), and the end connector 130 is used to connect the actuator. The actuator is not the focus of this application and is therefore not shown in the figure; it also includes a three-dimensional imaging unit 110 and a computing unit 120. The three-dimensional imaging unit 110 is used to obtain three-dimensional geometric data of the end connector 130 of the surgical robot 100, transmit the collected point cloud data to the computing unit 120 and process it, so as to obtain a complete three-dimensional data model of the end connector 130, to calculate the three-dimensional coordinates of the center point of the end connector 130 to realize the hand-eye calibration of the surgical robot 100.
[0047] Figure 2 Schematic diagram of an exemplary end connector applicable to the hand-eye calibration method and device based on the end connector of the surgical robot of the present application. Figure 2 As shown, the terminal connector 130 is composed of a central circular area and an outer annular area surrounding the central circular area, wherein the central circular area is also called the inner circle. This application mainly focuses on the upper plane of the connector and estimates the inner circle radius and center point of the terminal connector 130. According to the kinematic design principle of the robot, since the terminal connector 130 is the connection point between the actuator and the terminal operating part 103, and the position and posture of the terminal connector 130 directly determine the position and posture of the terminal operating part 103 of the surgical robot, when the actuator is not set in the terminal operating part 103, the center point of the terminal connector 130 can be regarded as the center point of the activity of the robot arm 102. In the process of hand-eye calibration of the surgical robot 100 based on the three-dimensional imaging unit 110, the terminal connector 130 can ensure that each image frame captured by the three-dimensional imaging unit 110 contains the upper surface of the terminal connector 130, thereby solving the problem of difficult calibration and low accuracy in the process of hand-eye calibration of the surgical robot. The specific implementation method of the hand-eye calibration method based on the terminal connector of the surgical robot in this application will be described in detail in subsequent embodiments.
[0048] Figure 3 FIG. 1 is a flow chart of a hand-eye calibration method based on a surgical robot terminal connector according to an embodiment of the present application. Figure 3 As shown, the method may include the following steps:
[0049] Step S1, without moving the three-dimensional imaging unit 110, moving the robotic arm 102 of the surgical robot 100 to a plurality of spatial positions, and obtaining a first set of three-dimensional coordinate values of the center point of the terminal connecting piece 130 on the robotic arm 102 relative to the coordinate system of the surgical robot;
[0050] Step S2, acquiring pre-processed point cloud data of the terminal connector 130 for the plurality of spatial positions, and calculating a second set of three-dimensional coordinate values of a center point of the terminal connector 130 relative to a three-dimensional imaging unit coordinate system based on the pre-processed point cloud data;
[0051] Step S3, estimating the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 according to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and performing regression optimization on the position relationship matrix based on the calculation error.
[0052] In this embodiment, first, without moving the three-dimensional imaging unit 110, the robot arm 102 of the surgical robot 100 is moved to a plurality of predetermined spatial positions, so that at each predetermined spatial position, the three-dimensional coordinates of the center point of the end connector 130 on the robot arm 102 relative to the surgical robot coordinate system can be determined, and the three-dimensional coordinates of the center point of the end connector 130 on the robot arm 102 at each predetermined spatial position relative to the surgical robot coordinate system can be obtained by the calculation unit 120. Thus, by moving the robot arm 102 of the surgical robot to a plurality of spatial positions, a first set of three-dimensional coordinate values GA of the center point of the end connector 130 on the robot arm 102 relative to the surgical robot coordinate system can be obtained accordingly, that is, GA={A i}; Where i is an integer greater than 0 and less than or equal to k, k is the number of images of the robot arm end connector 130 at different spatial positions acquired by the three-dimensional imaging unit 110, and A i Represents the three-dimensional coordinate value of the center point of the end connection piece 130 on the robot arm 102 at the i-th spatial position relative to the surgical robot coordinate system.
[0053] Then, in step S2, the plane on the terminal connector 130 may be scanned by the three-dimensional imaging unit 110 to obtain initial point cloud data of the terminal connector 130, and the initial point cloud data may be preprocessed to generate the preprocessed point cloud data.
[0054] In one embodiment, the three-dimensional imaging unit 110 is used to scan the plane on the terminal connector 130 to obtain the initial point cloud data of the terminal connector 130, and the initial point cloud data is preprocessed to generate the preprocessed point cloud data. The preprocessing may include: denoising the initial point cloud data, setting a threshold value according to the distribution law of the points in the initial point cloud data, and removing points that are too discrete and do not conform to the overall point cloud distribution law. Specifically, the initial point cloud data may be preprocessed by a statistical filtering method to generate the preprocessed point cloud data.
[0055] The pre-processed point cloud data is the point cloud data after the initial point cloud data on the upper surface of the terminal connecting member 130 is subjected to denoising. The pre-processed point cloud data is represented as S j =[x j ,y j ,z j ] T , where x j ,y j ,z j They are respectively the three-dimensional coordinate values of the point cloud data relative to the coordinate system of the three-dimensional imaging unit 110; j is an integer greater than 0 and less than or equal to n, and n is the number of points after the three-dimensional imaging unit 110 denoises the plane data on the terminal connector 130.
[0056] Next, in step S2, a three-dimensional model of the end connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 can be constructed based on the preprocessed point cloud data, so as to obtain a second set of three-dimensional coordinates of the center point of the end connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 based on the three-dimensional model.
[0057] Finally, after obtaining the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values in the aforementioned steps, the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 is estimated, and the calculation error of the position relationship matrix is calculated. The error reflects the accuracy of the position relationship calculation between the three-dimensional imaging unit 110 and the surgical robot 100. Based on the calculation error, the position relationship matrix is regressed and optimized to obtain the optimal solution for the calibration of the relative position relationship between the three-dimensional imaging unit 110 and the surgical robot 100, thereby achieving accurate calibration of the position transformation relationship between the coordinate systems of the three-dimensional imaging unit 110 and the surgical robot 100, thereby effectively avoiding the problem of insufficient accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of eigenvalues, simplifying the data extraction process, and improving the efficiency and versatility of the hand-eye calibration of the surgical robot 100.
[0058] To summarize, the embodiment of the present application obtains a first set of three-dimensional coordinate values of the center point of the end connector 130 on the robotic arm 102 relative to the coordinate system of the surgical robot, and a second set of three-dimensional coordinate values of the center point of the end connector 130 relative to the coordinate system of the three-dimensional imaging unit 110, and calculates the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 based on the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and then regressively optimizes the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 based on the calculation error of calculating the position relationship matrix, thereby effectively avoiding the problem of insufficient accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of eigenvalues in the case of hand-eye calibration without setting markers; at the same time, by directly calculating the center position of the end connector, the data extraction process is simplified, and the efficiency and versatility of the robot hand-eye calibration are improved.
[0059] In one embodiment, if Figure 4 As shown, the three-dimensional model of the terminal connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 is constructed based on the pre-processed point cloud data, so as to obtain a second set of three-dimensional coordinates of the center point of the terminal connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 based on the three-dimensional model, which may include:
[0060] Step S21, calculating the mean of the coordinate values of all points in the pre-processed point cloud data to obtain the center coordinates and the initial values of the inner circle radius of the terminal connector 130, and constructing a first inner circle based on the center coordinates and the initial values of the inner circle radius;
[0061] Step S22, extracting the feature points closest to the first inner circle from the pre-processed point cloud data, performing linear sampling on the first inner circle through a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval;
[0062] Step S23 , fitting the discrete points distributed on the second inner circle, calculating the average zero center point of the discrete points, and projecting them into the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinates of the second inner circle of the terminal connector 130 .
[0063] In this embodiment, first, in step S21, the coordinate values of all points in the pre-processed point cloud data can be averaged, wherein the center coordinates of the terminal connector 130 and the initial values of the inner circle radius are respectively recorded as C f and r f , C f It can be obtained by calculating the mean of all points in the preprocessed point cloud data. The specific formula is:
[0064]
[0065] Wherein f is an integer greater than 0 and less than or equal to n, and n is the number of points after the three-dimensional imaging unit 110 performs denoising on the plane data on the terminal connector 130 .
[0066] Based on the center point of the terminal connector 130 obtained by the above method, the Euclidean distance from each point in the preprocessed point cloud data to the center point is calculated, and the point with the smallest distance is found, which is the point closest to the initial center point. The distance between the point and the center point is recorded as the initial value of the inner circle radius r f A first inner circle is constructed based on the center coordinates of the end connector 130 and the initial value of the inner circle radius.
[0067] Then, in step S22, the feature point closest to the first inner circle can be extracted from the preprocessed point cloud data. In one embodiment, the feature point Q closest to the first inner circle is extracted from the preprocessed point cloud data using the nearest neighbor (NN) method, and the point set formed by the feature point Q is recorded as Q v =[x v ,y v ,z v ] T , where v is an integer greater than 0 and less than or equal to m, and m is the number of feature points closest to the first inner circle extracted from the preprocessed point cloud data using the nearest neighbor (NN) method; the first inner circle is linearly sampled by the sampling angle, and the sampling angle α v Linear sampling is performed in the range [0,2π] to obtain discrete points distributed on the second inner circle within the angle interval, where the discrete points on the second inner circle are uniformly distributed according to the sampling angle. Sampling angle α v The estimated calculation can be done according to the following formula:
[0068] α v =v×α=v×2π / m;
[0069] Wherein v is an integer greater than 0 and less than or equal to m, and m is the number of feature points closest to the first inner circle extracted from the preprocessed point cloud data using the nearest neighbor (NN) method.
[0070] Finally, in step S23, the discrete points distributed on the second inner circle can be fitted to calculate the average zero center point of the discrete points, wherein the average zero center point of the discrete points can be regarded as the "center of mass" or "center of gravity" of the discrete point cloud data, representing the average position of all measurement points, and the average zero center point is obtained relative to the coordinate system of the three-dimensional imaging unit 110. The discrete points and their average zero center points are projected into the optimal fitting plane, thereby obtaining the optimal estimate of the center coordinates of the second inner circle of the terminal connector 130.
[0071] In this embodiment, a three-dimensional model of the terminal connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 is constructed based on the pre-processed point cloud data, a first inner circle is constructed by the initial value of the center coordinate and the inner circle radius, and a nearest neighbor (NN) method is used to extract the feature points closest to the first inner circle from the pre-processed point cloud data and to obtain the feature points at a sampling angle α. v Linear fitting is performed to obtain discrete points on the second inner circle, and the discrete points are fitted to obtain the optimal estimate of the center coordinates of the second inner circle of the terminal connector 130, so that a second set of three-dimensional coordinates of the center point of the terminal connector 130 relative to the coordinate system of the three-dimensional imaging unit 110 can be obtained based on the three-dimensional model. By directly calculating the coordinates of the center position of the terminal connector, the data extraction process is simplified, so it can be used for the subsequent steps to accurately estimate the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100.
[0072] In one embodiment, if Figure 5 As shown, in step S23, the discrete points distributed on the second inner circle are fitted, the average zero center point of the discrete points is calculated, and the average zero center point of the discrete points is projected onto the optimal fitting plane, so as to obtain the optimal estimated value of the center coordinate of the second inner circle of the terminal connector, and the method may also include:
[0073] Step S231, generating the optimal fitting plane using the discrete points and their average zero center point data;
[0074] Step S232, obtaining the projection points of the discrete points and their average zero center points on the optimal fitting plane, and calculating the optimal values of the coordinates of the center of the circle fitted to the projection points;
[0075] Step S233, converting the optimal value of the center coordinates of the circle fitted to the projection point into three-dimensional coordinates relative to the three-dimensional imaging unit coordinate system, thereby calculating the optimal estimated value of the center coordinates of the second inner circle of the terminal connector.
[0076] First, in this embodiment, the covariance matrix can be constructed using discrete points and their average zero center point data, the covariance matrix is subjected to singular value decomposition to generate the optimal fit plane, and the orthogonal basis vectors of the optimal fit plane are calculated, which are denoted as h1 and h2 respectively.
[0077] Then, the projection points of the discrete points and their average zero center points on the best fitting plane are obtained, and the optimal values of the coordinates of the circle center fitted to the projection points are calculated.
[0078] The projection point of the discrete point on the optimal fitting plane is recorded as Q*, and the coordinate set formed by the projection point is The projection point of the average zero center point on the best fitting plane is recorded as Where v is an integer greater than 0 and less than or equal to m, and m is the number of feature points closest to the first inner circle extracted from the preprocessed point cloud data using the nearest neighbor (NN) method;
[0079] Assume that the coordinates of the center of the circle are (x new ,y new ), with a radius of r new The circle is fitted to the discrete points and the projection points of its average zero center point on the best fitting plane, and its coordinate value and radius can be calculated by the following formula:
[0080]
[0081]
[0082] Where, vector p = [p1, p2, p3] T It can be obtained by the following formula:
[0083]
[0084] Wherein v is an integer greater than 0 and less than or equal to m, and m is the number of feature points closest to the first inner circle extracted from the preprocessed point cloud data using the nearest neighbor (NN) method.
[0085] The least squares method is used to calculate the coordinates of the center of the circle as (x new ,y new ), radius r new The optimal solution of , we can get the following results:
[0086]
[0087]
[0088] Finally, the optimal value of the center coordinates of the circle fitted to the projection point is converted into three-dimensional coordinates relative to the coordinate system of the three-dimensional imaging unit 110, so as to calculate the optimal estimated value of the center coordinates of the second inner circle of the terminal connector 130.
[0089] In this step, the optimal coordinate value C of the center of the terminal connection member 130 can be obtained by the following formula 3D :
[0090]
[0091] Among them, C fnew is the projection point of the average zero center point on the best fitting plane; h1 and h2 are the orthogonal basis vectors of the best fitting plane.
[0092] Thus, by moving the robot arm 102 of the surgical robot 100 to each predetermined spatial position, the optimal estimated value C of the center coordinate of the second inner circle of the terminal connecting member 130 can be obtained. 3D , thereby moving the robotic arm 102 of the surgical robot 100 to a plurality of predetermined spatial positions, a set of optimal center coordinates of the center coordinates of the second inner circle of the terminal connector 130 can be obtained accordingly, that is, a second set of three-dimensional coordinate values of the center point of the terminal connector 130 relative to the coordinate system of the three-dimensional imaging unit 110, which can be expressed as GC 3D , i.e. GC 3D ={C 3D,i}; Where i is an integer greater than 0 and less than or equal to k, and k is the number of images of the robot arm end connector 130 at different spatial positions acquired by the three-dimensional imaging unit 110; C 3D,i Represents the three-dimensional coordinate value of the center point of the end connection piece 130 on the robot arm 102 at the i-th spatial position relative to the three-dimensional imaging unit coordinate system.
[0093] In summary, by calculating the average zero center point of discrete points distributed on the second inner circle and projecting the discrete points and their average zero center point onto the optimal fitting plane, the three-dimensional space coordinate calculation is converted into coordinate value calculation in a two-dimensional plane, which reduces the data calculation complexity and improves the calibration efficiency of the robot hand-eye calibration. The accuracy and precision of the system hand-eye calibration are improved by estimating the optimal value of the coordinate value.
[0094] In one embodiment, if Figure 6 As shown, in step S3, the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 is estimated according to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, and the position relationship matrix is regressively optimized based on the calculation error, which may specifically include:
[0095] Step S31, obtaining a first dimensional transformation matrix between the surgical robot 100 and the terminal connection piece 130 and a second dimensional transformation matrix between the three-dimensional imaging unit 110 and the terminal connection piece 130 according to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, respectively;
[0096] Step S32, estimate the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100 based on the first dimensional transformation matrix and the second dimensional transformation matrix, and perform regression optimization on the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100 with the total calculation error being minimized.
[0097] In this embodiment, firstly, based on the traditional hand-eye calibration mathematical model, the relationship formula of the position transformation matrix between the three-dimensional imaging unit 110, the surgical robot 100 and the terminal connection piece 130 is obtained as follows:
[0098]
[0099] Wherein, B represents the base 101 of the surgical robot, C represents the center point of the robot end connector 130, P represents the three-dimensional imaging unit 110, and the position transformation matrix is a 4×4 matrix composed of a rotation matrix and a translation vector. represents the position transformation matrix of the center point of the terminal connection piece 130 relative to the three-dimensional imaging unit 110, represents the position transformation matrix of the center point of the end connector 130 relative to the surgical robot 100, represents the position transformation matrix between the 3D imaging unit 110 and the surgical robot 100, express The inverse operation matrix of .
[0100] In the hand-eye calibration of the surgical robot, it is necessary to calculate the position transformation matrix between the 3D imaging unit 110 and the surgical robot 100. But due to The transformation matrix is a 4×4 matrix. In order to reduce the computational complexity, the present application first performs a dimensional transformation on each of the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values to obtain a first dimensional transformation matrix between the surgical robot 100 and the terminal connector 130. The second dimensional transformation matrix between the three-dimensional imaging unit 110 and the terminal connection member 130 The first dimension transformation matrix and the second dimension transformation matrix can be used to represent the position transformation matrix of the center point of the end connection piece 130 relative to the surgical robot 100, respectively. The conversion coordinate vector and the position transformation matrix of the center point of the terminal connection piece 130 relative to the three-dimensional imaging unit 110 The transformed coordinate vector.
[0101] Then, according to the relationship formula of the position transformation matrix between the three-dimensional imaging unit 110, the surgical robot 100 and the terminal connection piece 130, the matrix and C 3D,i * The relationship between can be calculated by the following formula:
[0102]
[0103] Among them, R and d are the position transformation matrices respectively The rotation matrix and translation vector, Ni Thus, the position transformation matrix can be estimated based on the first dimensional transformation matrix and the second dimensional transformation matrix. And obtain the corresponding calculation error.
[0104] The above steps may be repeated for each frame of image of the end connection member 130 obtained by the three-dimensional imaging unit 110 when the robot arm 102 is in different spatial positions.
[0105] This embodiment requires further estimation of the position transformation matrix By performing regression optimization, the estimated position transformation matrix of the robot arm 102 at different spatial positions can be The cumulative calculation error is expressed as the total calculation error, which can be calculated as:
[0106]
[0107] Wherein, i is an integer greater than 0 and less than or equal to k, and k is the number of images of the robot end connector 130 at different spatial positions acquired by the three-dimensional imaging unit 110. The total calculation error represents the position transformation matrix estimated for each spatial position in the multiple spatial positions. The accumulated calculation error.
[0108] Therefore, by repeatedly obtaining the calculation error for each frame image of the end connection obtained by the three-dimensional imaging unit when the robotic arm 102 is in different spatial positions, the optimal solution of the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100 can be obtained by using a regression optimization algorithm with the total calculation error being minimized.
[0109] Specifically, the regression optimization algorithm refers to a method of minimizing the difference between the predicted value and the true value by iterating and optimizing parameters, so that the model can be as close to the real data as possible, and the parameters finally obtained are the optimal solution or a relatively good solution. Specifically, the embodiment of the present application can use the least squares method to obtain the optimal solution of the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100 that minimizes the total calculation error, so as to obtain a relationship matrix that characterizes a more accurate relative position relationship between the three-dimensional imaging unit 110 and the surgical robot 100, thereby completing the calibration process of the hand-eye calibration between the three-dimensional imaging unit 110 and the surgical robot 100 when no marker is set.
[0110] To summarize, the first dimensional transformation matrix and the second dimensional transformation matrix are calculated based on the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, the calculation error of the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100 is estimated, and a regression algorithm is used with the minimum error as the condition to obtain a better solution of the position transformation matrix between the three-dimensional imaging unit 110 and the surgical robot 100, so that a relationship matrix that represents a more accurate relative position relationship between the three-dimensional imaging unit 110 and the surgical robot 100 can be obtained, thereby completing the calibration process of hand-eye calibration between the three-dimensional imaging unit 110 and the surgical robot 100 when no markers are set.
[0111] Figure 7 1 is a schematic diagram of the structure of a hand-eye calibration device based on a surgical robot terminal connector according to an embodiment of the present application. Figure 7 As shown, the device includes the following units:
[0112] The first coordinate calculation unit 701 is used to move the mechanical arm 102 of the surgical robot 100 to multiple spatial positions without moving the three-dimensional imaging unit, and obtain a first set of three-dimensional coordinate values of the center point of the terminal connection piece 130 on the mechanical arm 102 relative to the surgical robot coordinate system;
[0113] A second coordinate calculation unit 702 is used to obtain pre-processed point cloud data of the terminal connection member 130 for the multiple spatial positions, and calculate a second set of three-dimensional coordinate values of the center point of the terminal connection member 130 relative to the three-dimensional imaging unit coordinate system based on the pre-processed point cloud data;
[0114] The regression optimization unit 703 is used to estimate the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 according to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and to perform regression optimization on the position relationship matrix based on the calculation error.
[0115] In one embodiment, if Figure 8 As shown, the second coordinate calculation unit 702 may further include the following modules:
[0116] A first calculation module 801 is used to calculate the mean value of the coordinate values of all points in the pre-processed point cloud data, obtain the center coordinates of the terminal connector 130 and the initial values of the inner circle radius, and construct a first inner circle based on the center coordinates and the initial values of the inner circle radius;
[0117] A second calculation module 802 is used to extract the feature points closest to the first inner circle from the pre-processed point cloud data, perform linear sampling on the first inner circle through a sampling angle, and obtain discrete points distributed on the second inner circle within an angle interval;
[0118] The third calculation module 803 is used to fit the discrete points distributed on the second inner circle, calculate the average zero center point of the discrete points, and project them into the optimal fitting plane, so as to obtain the optimal estimated value of the center coordinates of the second inner circle of the terminal connector 130.
[0119] In one embodiment, if Fig. 9 As shown, the third calculation module 803 may further include the following modules:
[0120] A plane generation module 901 is used to generate the optimal fitting plane using discrete points and their average zero center point data;
[0121] The projection calculation module 902 is used to obtain the projection points of the discrete points and their average zero center points on the optimal fitting plane, and calculate the optimal values of the coordinates of the circle center fitted to the projection points;
[0122] The fourth calculation module 903 is used to convert the optimal value of the center coordinates of the circle fitted to the projection point into three-dimensional coordinates relative to the three-dimensional imaging unit coordinate system, thereby calculating the optimal estimated value of the center coordinates of the second inner circle of the terminal connector 130.
[0123] In one embodiment, if Fig.10 As shown, the regression optimization unit 703 may further include the following modules:
[0124] A dimensional transformation module 1001 is used to obtain a first dimensional transformation matrix between the surgical robot and the terminal connection piece and a second dimensional transformation matrix between the three-dimensional imaging unit and the terminal connection piece according to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values;
[0125] The regression calculation module 1002 is used to estimate the position transformation matrix between the three-dimensional imaging unit and the surgical robot based on the first dimensional transformation matrix and the second dimensional transformation matrix, and to perform regression optimization on the position transformation matrix between the three-dimensional imaging unit and the surgical robot with the total calculation error being minimized.
[0126] To summarize, the embodiment of the present application obtains a first set of three-dimensional coordinate values of the center point of the end connector 130 on the robotic arm 102 relative to the coordinate system of the surgical robot, and a second set of three-dimensional coordinate values of the center point of the end connector 130 relative to the coordinate system of the three-dimensional imaging unit 110, and calculates the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 based on the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and then regressively optimizes the position relationship matrix between the three-dimensional imaging unit 110 and the surgical robot 100 based on the calculation error of calculating the position relationship matrix, thereby effectively avoiding the problem of insufficient calibration accuracy and precision caused by factors such as lighting conditions, image quality, and repeated extraction of eigenvalues in the case of hand-eye calibration without setting markers; at the same time, by directly calculating the center position of the end connector, the data extraction process is simplified, and the calibration efficiency and versatility of the robot hand-eye calibration are improved.
[0127] It should be noted that those skilled in the art can understand that the different implementation methods described in the method embodiments of the present application and their explanations and technical effects achieved are also applicable to the device embodiments of the present application and will not be repeated here.
[0128] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0129] The above describes the exemplary embodiments of the present application. It should be understood that the above exemplary embodiments are not restrictive but illustrative, and the protection scope of the present application is not limited thereto. It should be understood that those skilled in the art can modify and vary the embodiments of the present application without departing from the spirit and scope of the present application, and these modifications and variations should be within the protection scope of the present application.
Claims
1. A hand-eye calibration method based on the end connector of a surgical robot, characterized in that: The method comprises: Without moving the three-dimensional imaging unit, move the robotic arm of the surgical robot to multiple spatial positions to obtain a first set of three-dimensional coordinate values of the center point of the terminal connecting piece on the robotic arm relative to the coordinate system of the surgical robot; For the multiple spatial positions, pre-processed point cloud data of the terminal connector is obtained, and based on the pre-processed point cloud data, a second set of three-dimensional coordinate values of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system is calculated, wherein the upper plane of the terminal connector is scanned by the three-dimensional imaging unit to obtain initial point cloud data of the terminal connector, and the initial point cloud data is pre-processed to generate the pre-processed point cloud data; a three-dimensional model of the terminal connector relative to the three-dimensional imaging unit coordinate system is constructed based on the pre-processed point cloud data, so as to obtain a second set of three-dimensional coordinates of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model; The method comprises: constructing a three-dimensional model of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the preprocessed point cloud data, thereby obtaining a second set of three-dimensional coordinates of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model, wherein the coordinate values of all points in the preprocessed point cloud data are averaged to obtain the initial values of the center coordinates and the inner circle radius of the terminal connector, and constructing a first inner circle based on the initial values of the center coordinates and the inner circle radius; extracting the feature points closest to the first inner circle from the preprocessed point cloud data, linearly sampling the first inner circle at a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval; fitting the discrete points distributed on the second inner circle, calculating the average zero center point of the discrete points, and projecting them to the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinates of the second inner circle of the terminal connector; According to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, a position relationship matrix between the three-dimensional imaging unit and the surgical robot is estimated, and regression optimization is performed on the position relationship matrix based on calculation errors.
2. The hand-eye calibration method based on the end connector of the surgical robot according to claim 1 is characterized in that: The step of extracting the feature point closest to the first inner circle from the pre-processed point cloud data, linearly sampling the first inner circle at a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval includes: The feature points closest to the first inner circle are extracted from the preprocessed point cloud data using a nearest neighbor method; wherein the discrete points on the second inner circle are evenly distributed according to the sampling angle.
3. The hand-eye calibration method based on the end connector of the surgical robot according to claim 2 is characterized in that: The step of fitting the discrete points distributed on the second inner circle, calculating the average zero center point of the discrete points, and projecting them onto the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinate of the second inner circle of the terminal connector, includes: Generate the optimal fitting plane using discrete points and their average zero center point data; Obtain the projection points of the discrete points and their average zero center points on the optimal fitting plane, and calculate the optimal values of the coordinates of the center of the circle fitted to the projection points; The optimal value of the center coordinates of the circle fitted to the projection point is converted into three-dimensional coordinates relative to the three-dimensional imaging unit coordinate system, so as to calculate the optimal estimated value of the center coordinates of the second inner circle of the terminal connecting piece.
4. The hand-eye calibration method based on the surgical robot terminal connector according to claim 1 is characterized in that: The method of estimating a position relationship matrix between the three-dimensional imaging unit and the surgical robot according to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, and performing regression optimization on the position relationship matrix based on calculation errors, comprises: According to the first set of three-dimensional coordinate values and the second set of three-dimensional coordinate values, respectively obtain a first dimensional transformation matrix between the surgical robot and the terminal connection piece, and a second dimensional transformation matrix between the three-dimensional imaging unit and the terminal connection piece; The position transformation matrix between the three-dimensional imaging unit and the surgical robot is estimated based on the first dimensional transformation matrix and the second dimensional transformation matrix, and the position transformation matrix between the three-dimensional imaging unit and the surgical robot is regressively optimized with the total calculation error minimized.
5. The hand-eye calibration method based on the end connector of the surgical robot according to claim 4 is characterized in that: The total calculation error represents the accumulated calculation error of the position transformation matrix estimated for each of the plurality of spatial positions.
6. A hand-eye calibration device based on the end connector of a surgical robot, characterized in that: The device comprises: A first coordinate calculation unit is used to move the mechanical arm of the surgical robot to a plurality of spatial positions without moving the three-dimensional imaging unit, and obtain a first set of three-dimensional coordinate values of the center point of the terminal connecting piece on the mechanical arm relative to the coordinate system of the surgical robot; a second coordinate calculation unit, configured to obtain preprocessed point cloud data of the terminal connector for the plurality of spatial positions, and calculate a second set of three-dimensional coordinate values of a center point of the terminal connector relative to a three-dimensional imaging unit coordinate system based on the preprocessed point cloud data, wherein the three-dimensional imaging unit scans an upper plane of the terminal connector to obtain initial point cloud data of the terminal connector, and preprocesses the initial point cloud data to generate the preprocessed point cloud data; and constructs a three-dimensional model of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the preprocessed point cloud data, thereby obtaining a second set of three-dimensional coordinates of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model; The method comprises: constructing a three-dimensional model of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the preprocessed point cloud data, thereby obtaining a second set of three-dimensional coordinates of the center point of the terminal connector relative to the three-dimensional imaging unit coordinate system based on the three-dimensional model, wherein the coordinate values of all points in the preprocessed point cloud data are averaged to obtain the initial values of the center coordinates and the inner circle radius of the terminal connector, and constructing a first inner circle based on the initial values of the center coordinates and the inner circle radius; extracting the feature points closest to the first inner circle from the preprocessed point cloud data, linearly sampling the first inner circle at a sampling angle, and obtaining discrete points distributed on the second inner circle within an angle interval; fitting the discrete points distributed on the second inner circle, calculating the average zero center point of the discrete points, and projecting them to the optimal fitting plane, thereby obtaining the optimal estimated value of the center coordinates of the second inner circle of the terminal connector; A regression optimization unit is used to estimate the position relationship matrix between the three-dimensional imaging unit and the surgical robot according to the first group of three-dimensional coordinate values and the second group of three-dimensional coordinate values, and to perform regression optimization on the position relationship matrix based on calculation errors.
7. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
