A marking block length measurement system and surgical robot system
Through the marking block length measurement system, the combination of the fixation device, the image shooting device and the measurement host is used to solve the problem of inaccurate positioning of surgical instruments caused by the length error of the marking blocks, achieve precise positioning of surgical instruments, and improve the surgical effect.
Patent Information
- Application Number
- CN202210013808.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-01-06
AI Technical Summary
In surgical operations, the length error of the marking block leads to inaccurate positioning of surgical instruments and affects the surgical effect.
A length measurement system for marking blocks is adopted, which includes a fixing device, an image capturing device and a measuring host. The marking block is fixed by the fixing device and moves in a circle around the axis. The image capturing device records the three-dimensional spatial coordinates of the marking body. The measuring host A fit is performed based on these coordinates to determine the length of the marker block.
The precise measurement of the length of the marking block is achieved, ensuring the accurate positioning of surgical instruments, and improving the accuracy and effect of surgery.
Smart Images

Figure CN114343848B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical robots, and in particular to a length measurement system of a marking block and a surgical robot system. Background Art
[0002] Robots and other automated equipment have been widely used in the industrial field, showing obvious advantages in terms of operational flexibility, stability and accuracy. In order to solve the problems of insufficient precision, excessive radiation, large incisions, and operator fatigue in surgical operations, people have begun to explore how to introduce robotic methods in surgical operations, and use the unique advantages of high-tech technologies such as robots and sensors to provide surgeons with new treatment methods and systems.
[0003] In order to support high-quality surgery, marker blocks (also known as markers) are used to position surgical instruments. In order to accurately position surgical instruments, the length of the marker blocks needs to be determined in advance. However, due to processing errors in the production process, the length of each marker block is not exactly the same. If there is an error in the measured length of the marker block, the positioning of the surgical instrument will be incorrect, and the effect of the surgery cannot be guaranteed. Summary of the invention
[0004] Embodiments of the present invention provide a marking block length measurement system and a surgical robot system, which are used to overcome or alleviate the above-mentioned problems in the prior art.
[0005] The technical solution adopted by the present invention is:
[0006] A length measurement system for a marker block, the marker block comprising a support and a marker body mounted on the top, the length of the marker block being the distance from the root of the support to the center of the marker body, the length measurement system comprising:
[0007] A fixing device, used to fix the marking block and make the marking block perform circular motion around a provided axis, wherein when the marking block is fixed on the fixing device, the root of the support member is located at the axis, so that the support member drives the center of the marking body to rotate around the axis;
[0008] An image capturing device, used to track the movement of the marker block to record a plurality of three-dimensional spatial coordinates formed by the center of the marker body during the movement;
[0009] The measuring host is used to determine the length of the marking block according to a plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the coordinates of the fitting center of the plurality of three-dimensional space coordinates.
[0010] Optionally, the fixing device includes a base, the center of mass of the base serves as the axis, and the root of the support member is fixed at the axis, so that the support member drives the center of the marking body to rotate around the center of mass of the base.
[0011] Optionally, the base is provided with a first cross section and a first longitudinal section, the first cross section is provided with a first groove downwardly, and the root is arranged in the first groove and against the first longitudinal section so that the root is arranged at the axis.
[0012] Optionally, the fixing device includes a pressing block, which is provided with a second cross-section and a second longitudinal section. When the root is arranged in the first groove and against the first longitudinal section, the pressing block is pressed against the base so that the second longitudinal section is connected to the first longitudinal section, and the second cross-section is connected to the first cross-section, so as to provide downward pressure to press the root at the center of mass of the base.
[0013] Optionally, both the pressing block and the base are provided with screw holes, and the fixing device further comprises a bolt, and the bolt passes through the screw hole of the pressing block and is screwed into the screw hole on the base to integrate the pressing block and the base.
[0014] Optionally, a second groove is provided on the structure of the base located on the first longitudinal section, and the screw hole of the base is arranged on the second groove; a boss is provided on the structure of the pressing block located on the second longitudinal section, and the screw hole of the pressing block is arranged on the boss, and when the pressing block is pressed on the base, the boss is embedded in the second groove, so that the bolt passes through the screw hole on the boss and is screwed into the screw hole on the second groove, so as to form the pressing block and the base into one body.
[0015] Optionally, the fixing device further includes a base and a bearing, wherein the bearing is arranged on the base, and the base is embedded in the bearing so that the base can rotate through the bearing.
[0016] Optionally, when determining the length of the marking block based on the multiple three-dimensional spatial coordinates formed by the center of the marking body during movement and the three-dimensional spatial coordinates of the axis, the measuring host performs curve fitting on the multiple three-dimensional spatial coordinates to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional spatial coordinate system, so as to determine the fitting center of the multiple three-dimensional spatial coordinates; and determines the length of the marking block based on the multiple three-dimensional spatial coordinates and the fitting center of the multiple three-dimensional spatial coordinates.
[0017] Optionally, when the measuring host performs curve fitting on the multiple three-dimensional space coordinates to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system.
[0018] Optionally, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation, and when obtaining the trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system, constructs fitting constraints according to the constructed coplanar curve equation; according to the fitting constraints, curve fitting is performed on the multiple three-dimensional space coordinates to determine the center of the trajectory curve, so as to use the center of the trajectory curve as the fitting center of the multiple three-dimensional space coordinates.
[0019] Optionally, the measurement host performs curve fitting on the multiple three-dimensional space coordinates according to the fitting constraints, and when determining the center of the trajectory curve, an orthogonal relationship function is constructed based on the orthogonality of the line between each two three-dimensional space coordinates and the line between the midpoint of the line and the center of the trajectory curve; and the center of the trajectory curve is determined according to the fitting constraints and the orthogonal relationship function.
[0020] Optionally, when the measurement host determines the center of the trajectory curve according to the fitting constraints and the orthogonal relationship function, it constructs a Lagrangian function according to the fitting constraints and the orthogonal relationship function; based on the Lagrangian function, a vector relationship for solving the center of the trajectory curve is established to determine the center of the trajectory curve.
[0021] Optionally, when the measuring host determines the length of the marking block based on a plurality of three-dimensional spatial coordinates formed by the center of the marking body during movement and the coordinates of the fitting center of the plurality of three-dimensional spatial coordinates, the length of the marking block is determined based on the distance between all the three-dimensional spatial coordinates and the fitting center of the plurality of three-dimensional spatial coordinates.
[0022] A surgical robot system comprises: a robotic arm, a surgical instrument fixed at the end of the robotic arm, and at least one marking block fixed on the surgical instrument, wherein the length of the marking block is determined according to the length measurement system described in any one of the embodiments of the present application, and the length of the marking block is used to determine the spatial position of the surgical instrument during surgery.
[0023] In the technical solution provided by the embodiment of the present invention, the marking block includes a support member and a marking body installed on the top, the length of the marking block is: the distance from the root of the support member to the center of the marking body, and the length measurement system of the marking block includes: a fixing device, used to fix the marking block and make the marking block perform circular motion around a provided axis, wherein when the marking block is fixed on the fixing device, the root of the support member is located at the axis, so that the support member drives the center of the marking body to rotate around the axis; an image shooting device, used to track the movement process of the marking block to record a plurality of three-dimensional space coordinates formed by the center of the marking body during movement; a measuring host, used to determine the length of the marking block according to the plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the fitted center coordinates of the plurality of three-dimensional space coordinates, thereby accurately determining the length of the marking block, thereby ensuring the effect of the surgery. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of the structure of a surgical robot system according to an embodiment of the present application.
[0025] Figure 2 It is a schematic diagram of the structure of a length measurement system of a marking block in an embodiment of the present application.
[0026] Figure 3A This is a schematic diagram of the structure of a marking block in an embodiment of the present application.
[0027] Figure 3B The structure of the fixing device for fixing the marking block on a marking block length measurement in the embodiment of the present application is shown in FIG. Figure 1 .
[0028] Figure 3C The structure of the fixing device for fixing the marking block on a marking block length measurement in the embodiment of the present application is shown in FIG. Figure 2 .
[0029] Figure 3D This is a schematic diagram of the structure of fixing the marking block on the fixing device in an embodiment of the present application.
[0030] Figure 4 A schematic diagram of a flow chart of a measurement host determining the length of the marking block in an embodiment of the present application.
[0031] Figure 5 This is a schematic diagram of a process for obtaining a trajectory curve based on a constructed coplanar curve equation according to an embodiment of the present application.
[0032] Figure 6 It is a schematic diagram of a process of determining the center of the trajectory curve based on a connecting line according to an embodiment of the present application.
[0033] Figure 7 This is a flow chart of step S4212 of an embodiment of the present application.
[0034] Figure 8 This is a schematic diagram of the specific hardware structure of a measurement host according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0036] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, devices, steps, etc. may be adopted. In other cases, well-known structures, methods, devices, implementations or operations are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0037] In addition, the terms "estimated", "second", etc. 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 "estimated" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. The symbol " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0038] In this disclosure, unless otherwise clearly specified and limited, terms such as "connection" should be understood in a broad sense, for example, it can be an electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in this disclosure can be understood according to specific circumstances.
[0039] In the technical solution provided by the embodiment of the present invention, the marking block includes a support member and a marking body installed on the top, the length of the marking block is: the distance from the root of the support member to the center of the marking body, and the length measurement system of the marking block includes: a fixing device, used to fix the marking block and make the marking block perform circular motion around a provided axis, wherein when the marking block is fixed on the fixing device, the root of the support member is located at the axis, so that the support member drives the center of the marking body to rotate around the axis; an image shooting device, used to track the movement process of the marking block to record a plurality of three-dimensional space coordinates formed by the center of the marking body during movement; a measuring host, used to determine the length of the marking block according to the plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the fitted center coordinates of the plurality of three-dimensional space coordinates, thereby accurately determining the length of the marking block, thereby ensuring the effect of the surgery.
[0040] Figure 1 Schematic diagram of the structure of a surgical robot system according to an embodiment of the present application; Figure 1 As shown, the surgical robot system includes: a robotic arm 101 , a surgical instrument 102 fixed to the end of the robotic arm 101 , and at least one marking block 103 fixed to the end of the robotic arm 101 .
[0041] After the length of the marking block is measured, it is possible to ensure that the spatial position of the surgical instrument 102 is accurately determined based on the length of the marking block during the surgery, so as to achieve smooth progress of the surgery.
[0042] Therefore, in one application scenario, the length of the marker block is measured by a contact measurement method, such as a contact measurement based on a micrometer, a vernier caliper, a feeler gauge, etc., and this measurement method will have a large measurement error, and it is necessary to contact the marker block, which makes the measurement difficult. If the structure of the marker block is complex and difficult to contact, it is impossible to implement the measurement.
[0043] To this end, in another application scenario, in order to avoid at least one defect existing in the above-mentioned contact measurement, in the following embodiment, a non-contact measurement system for measuring the length of a marker block is provided, which is mainly based on computer vision (such as a binocular camera as an image capture device), and includes: a fixing device, used to fix the marker block and make the marker block perform circular motion around a provided axis, wherein when the marker block is fixed on the fixing device, the root of the support member is located at the axis, so that the support member drives the center of the marker body to rotate around the axis; an image capture device, used to track the movement process of the marker block to record a plurality of three-dimensional space coordinates formed by the center of the marker body during movement; a measuring host, used to determine the length of the marker block according to the plurality of three-dimensional space coordinates formed by the center of the marker body during movement and the fitted center coordinates of the plurality of three-dimensional space coordinates.
[0044] In this embodiment, the image capturing device may specifically extract the three-dimensional spatial coordinates of the center of the marking body from a series of captured images for recording, and the specific implementation method is not particularly limited.
[0045] It can be seen that since it is a non-contact measurement, there is no need to use micrometers, vernier calipers, or feeler gauges, which reduces the cost of measurement, improves measurement accuracy, and reduces measurement difficulty. In addition, it can be applied to structures of any structure, thereby improving the generalization of the test solution.
[0046] In this embodiment, Figure 1 The positional relationship between the various structural components shown is only an example and is not intended to be exclusive.
[0047] For example, in some application scenarios, the marker block can also be fixed on the patient's body. Without deviating from the idea of the present application, it can also be applied to the scenario. The application scenario of the marker block can be flexibly determined according to needs, without making unique restrictions.
[0048] Figure 2 Schematic diagram of the structure of a length measurement system of a marker block in an embodiment of the present application. Figure 2 As shown, it includes: a fixing device 201, an image shooting device 202, and a measuring host 203, wherein:
[0049] The fixing device is used to fix the marking block 103 and make the marking block perform circular motion around the provided axis, wherein when the marking block is fixed on the fixing device, the root of the support member is located at the axis, so that the support member drives the center of the marking body to rotate around the axis.
[0050] The image capturing device is used to track the movement process of the marking block to record a plurality of three-dimensional space coordinates formed by the center of the marking body during the movement.
[0051] The measuring host is used to determine the length of the marking block according to a plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the coordinates of the fitting center of the plurality of three-dimensional space coordinates.
[0052] In a specific implementation process, the fixing device can be placed on a work surface.
[0053] Figure 3A Schematic diagram of the structure of a marking block in an embodiment of the present application; Figure 3A As shown, the marking block includes a support member 113 and a marking body 123 mounted on the top, and the length of the marking block 103 is: the distance from the root of the support member to the center D of the marking body. As shown in FIG3 , the center D of the marking body is the intersection of the center lines of the two pairs of diagonal marking patterns on the marking block.
[0054] Figure 3B The structure of the fixing device for fixing the marking block on a marking block length measurement in the embodiment of the present application is shown in FIG. Figure 1 . Figure 3C The structure of the fixing device for fixing the marking block on a marking block length measurement in the embodiment of the present application is shown in FIG. Figure 2 . Figure 3D Schematic diagram of the structure of fixing the marking block on the fixing device in the embodiment of the present application. Figure 3B , Figure 3D As shown, the fixing device comprises a base 301, a bearing 302, a base 303, a pressing block 304 and a bolt 305. The bearing is arranged on the base, and the base is embedded in the bearing, so that the base 303 can rotate through the bearing.
[0055] Optionally, the center of mass of the base 303 is used as the axis, and the root of the support member 113 is fixed at the axis, so that the support member drives the center of the marking body 123 to rotate around the center of mass of the base 303 .
[0056] Optionally, the base 303 is provided with a first cross section 313 and a first longitudinal section 323, the first cross section is provided with a first groove 333 downward, and the root is arranged in the first groove and against the first longitudinal section so that the root is arranged at the axis.
[0057] Optionally, the pressing block 304 is provided with a second cross-section 314 and a second longitudinal section 324. When the root is arranged in the first groove and against the first longitudinal section, the pressing block 304 is pressed onto the base 303 so that the second longitudinal section is docked with the first longitudinal section and the second cross-section is docked with the first cross-section, so as to provide downward pressure to press the root at the center of mass of the base 303.
[0058] Optionally, both the pressing block 304 and the base 303 are provided with screw holes 300 , and the bolts 305 pass through the screw holes of the pressing block 304 and are screwed into the screw holes on the base 303 , so as to integrate the pressing block 304 and the base 303 into one body.
[0059] Optionally, a second groove 343 is provided on the structure of the base 303 located on the first longitudinal section, and the screw hole of the base 303 is arranged on the second groove 343; a boss 334 is provided on the structure of the pressing block 304 located on the second longitudinal section, and the screw hole of the pressing block 304 is arranged on the boss. When the pressing block 304 is pressed onto the base 303, the boss is embedded in the second groove, so that the bolt 305 passes through the screw hole on the boss and is screwed into the screw hole on the second groove, so as to integrate the pressing block 304 and the base 303 into one.
[0060] In this embodiment, it should be noted that the above Figure 3B , Figure 3C The fixing structure provided is only an example and is not a unique limitation. In fact, for ordinary technicians in this field, without departing from the concept of the present application, the base 301, bearing 302, base 303, pressing block 304 and bolt 305 can omit some structures or be replaced by other structural parts that can achieve the same function. For example, the above fixing device can be implemented based on magnetic attraction or cylinder structure.
[0061] The following embodiment exemplifies the process of the measuring host determining the length of the marking block.
[0062] Figure 4 This is a schematic diagram of a process of measuring the length of the marking block by the host in an embodiment of the present application; Figure 4 As shown, when the measuring host determines the length of the marking block according to a plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the three-dimensional space coordinates of the axis, it includes:
[0063] S401 , performing curve fitting on the multiple three-dimensional space coordinates to obtain a trajectory curve formed by the movement of the center of the marker body in the three-dimensional space coordinate system, so as to determine the fitting center of the multiple three-dimensional space coordinates.
[0064] Optionally, when the measuring host performs curve fitting on the multiple three-dimensional space coordinates to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system.
[0065] Figure 5 FIG. 1 is a flow chart of obtaining a trajectory curve based on the constructed coplanar curve equation according to an embodiment of the present application. Figure 5 As shown, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation to obtain a trajectory curve formed by the center of the marking body moving in the three-dimensional space coordinate system, including:
[0066] S411. Construct fitting constraints based on the constructed coplanar curve equation.
[0067] Therefore, in this embodiment, the coplanar curve equation may be a circular plane equation in a three-dimensional space coordinate system.
[0068] For example, the coplanar curve equation is shown in the following formula (1):
[0069] ax+by+cz=1 (1)
[0070] In the above formula (1), a, b, c are equation parameters, and (x, y, z) are any three-dimensional space coordinates.
[0071] Specifically, if for all three-dimensional space coordinates, the coplanar curve equation is expressed in vector form according to the following formula (2):
[0072] M×A=E (2)
[0073] in, a, b, c are equation parameters (as fitting parameters), indicating that M is a three-dimensional position matrix, (x i ,y i , z i ) is the i-th three-dimensional space coordinate in M, 1≤i≤n, and n is the number of three-dimensional space coordinates.
[0074] Optionally, constructing the fitting constraint condition according to the constructed coplanar curve equation includes: constructing the fitting constraint condition according to the constructed coplanar curve equation based on the least squares method.
[0075] For the above formula (2), according to the least square method, the above formula (2) is transformed to obtain the fitting constraint condition. The specific principle is as follows: for the matrix equation in the form of AX=Y, in order to achieve fitting, the sum of squares of the residuals is minimized, that is:
[0076] minε=||AX-Y|| 2
[0077] ε=(X T A T -Y T )(AX-Y)
[0078] ε=X T A T AX-X T A T YY T AX+Y T Y
[0079] ε=X T A T AX-2X T A T Y+Y T Y
[0080] Taking the partial derivative of X in the above formula and making its partial derivative equal to 0 can get the minimum residual sum square.
[0081]
[0082] Right now:
[0083] 2A T AX-2A T Y=0
[0084] X=(A T A) -1 A T Y
[0085] Therefore, for M×A=E, that is:
[0086] A=(M T M) -1 M T E
[0087] In addition, assume that the three-dimensional space coordinates corresponding to the center of the trajectory curve are: (x C ,y C , z C );
[0088] Referring to the above formula (1), there will be the following relationship (3) as the fitting constraint condition:
[0089] A T C=1 (3)
[0090] S421. Perform curve fitting on the multiple three-dimensional space coordinates according to the fitting constraint conditions, determine the center of the trajectory curve, and use the center of the trajectory curve as the fitting circle center of the multiple three-dimensional space coordinates.
[0091] Figure 6 FIG. 1 is a flow chart of determining the center of the trajectory curve based on the connecting line according to an embodiment of the present application. Figure 6 As shown, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the fitting constraint conditions to determine the center of the trajectory curve, including:
[0092] S42111, constructing an orthogonal relationship function based on the orthogonality of a line between each two three-dimensional space coordinates and a line between a midpoint of the line and a center of the trajectory curve;
[0093] S4212: Determine the center of the trajectory curve according to the fitting constraint condition and the orthogonal relationship function.
[0094] Figure 7 This is a flow chart of step S4212 of the present application embodiment. Figure 7 As shown, optionally, in step S4212, when the measurement host determines the center of the trajectory curve according to the fitting constraint condition and the orthogonal relationship function, it includes:
[0095] S42121, constructing a Lagrangian function according to the fitting constraint condition and the orthogonal relationship function;
[0096] S42122. According to the Lagrangian function, a vector relationship for solving the center of the trajectory curve is established to determine the center of the trajectory curve.
[0097] Optionally, referring to the foregoing, since the marking block is rotated according to the above-mentioned fixing device, a series of three-dimensional space coordinates formed by the center of the marking body are actually on the same circular plane. Therefore, the line between each two three-dimensional space coordinates is orthogonal to the line between the midpoint of the line and the center of the trajectory curve.
[0098] For the sake of clarity, the present invention derives the above-mentioned Figure 6-Figure 7 The implementation is described in detail as follows:
[0099] Assume that the center of the trajectory curve C = (x c y c z c ), where any two points are P n =(x n y n z n), P n+1 =(x n+1 y n+1 z n+1 ).
[0100] The line connecting each two three-dimensional space coordinates is orthogonal to the line connecting the midpoint of the line and the center of the trajectory curve, and then there exists a relationship as shown in the following formula (4) (the orthogonal relationship function):
[0101]
[0102] Simplifying the above formula (4) yields the following formula (5):
[0103] Δx n(n+1) ·x c +Δy n(n+1) ·y c +Δz n(n+1) ·z c =L n(n+1) (5)
[0104] In formula (4), Δx n(n+1) =x n+1 -x n , Δy n(n+1) =y n+1 -y n , Δz n(n+1) =z n+1 -z n ;
[0105]
[0106] Applying the above formulas (4) and (5) to all three-dimensional space coordinates, we get the following formula (6):
[0107]
[0108] In formula (6):
[0109]
[0110] The above formula (6) is expressed as the following formula (7) according to the vector:
[0111] BC=L (7)
[0112] In the above formula (7), each element in B is obtained by referring to the above formulas (4) and (5), and is the difference between any two three-dimensional space coordinates, including the difference between the X coordinates, the difference between the Y coordinates, and the difference between the Z coordinates.
[0113] Based on the above formulas (3) and (7), the Lagrangian function is shown in formula (8):
[0114] The present invention uses ||BC-L|| 2 The objective function is to minimize the sum of squares, and the constraint condition is A T C=1, construct the Lagrangian function here:
[0115] f(c,λ)=||BC-L|| 2 +λ(A T C-1) (8)
[0116] λ is the objective function ||BC-L|| 2 and A T C-1 ratio;
[0117] To find the extreme value of the Lagrangian function f(c,λ) is to differentiate c and λ in f(c,λ) respectively. The point where the derivative is 0 is the extreme point. Let The following formula (9) is obtained (i.e., the vector relationship of the center of the trajectory curve):
[0118]
[0119] Since in the above formula (9), except for C, all other parameters are known parameters, the center of the trajectory curve can be obtained
[0120] S402: Determine the length of the marking block according to the multiple three-dimensional space coordinates and the center of the fitted circle of the multiple three-dimensional space coordinates.
[0121] Optionally, in this embodiment, when the measuring host determines the length of the marking block based on a plurality of three-dimensional spatial coordinates formed by the center of the marking body during movement and the fitting center of the plurality of three-dimensional spatial coordinates, the length of the marking block is determined based on the distance between all the three-dimensional spatial coordinates and the fitting center of the plurality of three-dimensional spatial coordinates.
[0122] If there are N three-dimensional space coordinates, then any one of the N three-dimensional space coordinates P i =(x i y i z i ), and determine the length of the marker block according to the following formula (10).
[0123]
[0124] In the above formula (10), Representing the distance between each three-dimensional space coordinate and the fitting center of the multiple three-dimensional space coordinates, the distances between all three-dimensional space coordinates and the fitting center of the multiple three-dimensional space coordinates are averaged, thereby achieving the optimization of the coordinates of the fitting center of the multiple three-dimensional space coordinates (that is, the center point optimization of the above-mentioned trajectory curve), so that the average value obtained can be directly used as the length of the marking block, which is equivalent to accurately determining the length of the marking block based on the above-mentioned measurement system and using the method of fitting the center of the circle.
[0125] It should be noted that in the above embodiments, the length of the marker block is obtained by using a specific fixing device structure, a specific rotation trajectory of the marker block, the least square method, and the Lagrangian function. However, in other embodiments, the length of the marker block can also be determined by other fixing device structures, other rotation trajectories, and functions.
[0126] [1] Figure 8 This is a schematic diagram of a specific hardware structure of a measurement host according to an embodiment of the present application; Figure 8 As shown, the measurement host may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .
[0127] [2] Among them:
[0128] [3] The processor 802, the communication interface 804, and the memory 806 communicate with each other via the communication bus 808.
[0129] [4] Communication interface 804, used to communicate with other measurement hosts or servers.
[0130] [5] Processor 802 is used to execute program 810, and specifically can execute the relevant steps in the above-mentioned verification code generation method embodiment.
[0131] [6] Specifically, program 810 may include program code, which includes computer operation instructions.
[0132] [7] The processor 802 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0133] [8] Memory 806, used to store program 810. Memory 806 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
[0134] [9] The program 810 can be specifically used to enable the processor 802 to execute the method described in any of the above embodiments of the present application.
[0135]
[10] The specific implementation of each step in program 810 can refer to the corresponding description of the corresponding steps and units in the method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiment, which will not be repeated here.
[0136]
[11] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, processor or hardware, the method described herein is implemented.
[0137]
[12] Those skilled in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of this application.
[0138]
[13] The above implementation methods are only used to illustrate the embodiments of the present application, and are not intended to limit the embodiments of the present application. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application shall be defined by the claims.
Claims
1. A length measurement system for a marker block, characterized in that: The marking block includes a support and a marking body installed on the top, the length of the marking block is: the distance from the root of the support to the center of the marking body, and the length measurement system includes: a fixing device, used to fix the marking block and make the marking block perform circular motion around a provided axis, wherein when the marking block is fixed on the fixing device, the root of the support is located at the axis, so that the support drives the center of the marking body to rotate around the axis; an image shooting device, used to track the movement process of the marking block to record a plurality of three-dimensional space coordinates formed by the center of the marking body during movement; a measuring host, used to determine the length of the marking block according to the plurality of three-dimensional space coordinates formed by the center of the marking body during movement and the coordinates of the fitted circle center of the plurality of three-dimensional space coordinates; Among them, when the measuring host determines the length of the marking block based on the multiple three-dimensional space coordinates formed by the center of the marking body during movement and the three-dimensional space coordinates of the axis, the multiple three-dimensional space coordinates are curve fitted to obtain a trajectory curve formed by the center of the marking body moving in the three-dimensional space coordinate system to determine the fitting center of the multiple three-dimensional space coordinates; and the length of the marking block is determined based on the multiple three-dimensional space coordinates and the fitting center of the multiple three-dimensional space coordinates.
2. The length measuring system according to claim 1, characterized in that: The fixing device comprises a base, the center of mass of the base is used as the axis, and the root of the support member is fixed at the axis, so that the support member drives the center of the marking body to rotate around the center of mass of the base.
3. The length measuring system according to claim 2, characterized in that: The base is provided with a first cross section and a first longitudinal section, the first cross section is provided with a first groove downwardly, and the root is arranged in the first groove and against the first longitudinal section so that the root is arranged at the axis.
4. The length measuring system according to claim 3, characterized in that: The fixing device includes a pressing block, which is provided with a second cross section and a second longitudinal section. When the root is arranged in the first groove and against the first longitudinal section, the pressing block is pressed on the base so that the second longitudinal section is connected with the first longitudinal section and the second cross section is connected with the first cross section to provide downward pressure to press the root at the center of mass of the base.
5. The length measuring system according to claim 4, characterized in that: The pressing block and the base are both provided with screw holes, and the fixing device further comprises a bolt, which passes through the screw hole of the pressing block and is screwed into the screw hole on the base to form the pressing block and the base into one body.
6. The length measuring system according to claim 5, characterized in that: The base is located on the structure of the first longitudinal section and is provided with a second groove, and the screw hole of the base is arranged on the second groove; the pressure block is located on the structure of the second longitudinal section and is provided with a boss, and the screw hole of the pressure block is arranged on the boss. When the pressure block is pressed on the base, the boss is embedded in the second groove, so that the bolt passes through the screw hole on the boss and is screwed into the screw hole on the second groove, so as to form the pressure block and the base into one body.
7. The length measuring system according to any one of claims 2 to 6, characterized in that: The fixing device further comprises a base and a bearing, wherein the bearing is arranged on the base, and the base is embedded in the bearing so that the base can rotate through the bearing.
8. The length measuring system according to claim 1, characterized in that: When the measuring host performs curve fitting on the multiple three-dimensional space coordinates to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system, the measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation to obtain a trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system.
9. The length measuring system according to claim 8, characterized in that: The measuring host performs curve fitting on the multiple three-dimensional space coordinates according to the constructed coplanar curve equation, and when obtaining the trajectory curve formed by the movement of the center of the marking body in the three-dimensional space coordinate system, constructs fitting constraints according to the constructed coplanar curve equation; according to the fitting constraints, curve fitting is performed on the multiple three-dimensional space coordinates to determine the center of the trajectory curve, so as to use the center of the trajectory curve as the fitting center of the multiple three-dimensional space coordinates.
10. The length measuring system according to claim 9, characterized in that: The measurement host performs curve fitting on the multiple three-dimensional space coordinates according to the fitting constraints. When determining the center of the trajectory curve, an orthogonal relationship function is constructed based on the line between each two three-dimensional space coordinates being orthogonal to the line between the midpoint of the line and the center of the trajectory curve; the center of the trajectory curve is determined according to the fitting constraints and the orthogonal relationship function.
11. The length measuring system according to claim 10, characterized in that: When the measurement host determines the center of the trajectory curve according to the fitting constraints and the orthogonal relationship function, a Lagrangian function is constructed according to the fitting constraints and the orthogonal relationship function; based on the Lagrangian function, a vector relationship for solving the center of the trajectory curve is established to determine the center of the trajectory curve.
12. The length measuring system according to claim 10, characterized in that: When the measuring host determines the length of the marking block based on the multiple three-dimensional spatial coordinates formed by the center of the marking body during movement and the coordinates of the fitting center of the multiple three-dimensional spatial coordinates, the length of the marking block is determined based on the distance between all the three-dimensional spatial coordinates and the fitting center of the multiple three-dimensional spatial coordinates.
13. A surgical robot system, characterized in that: include: A robotic arm, a surgical instrument fixed at the end of the robotic arm, and at least one marking block fixed on the surgical instrument, wherein the length of the marking block is determined according to the length measurement system according to any one of claims 1 to 12, and the length of the marking block is used to determine the spatial position of the surgical instrument during surgery.
