Osteotomy control system, osteotomy control method and osteotomy device

By generating alternating linear and arc osteotomy boundaries and controlling the position of the end tool of the robotic arm in real time, the problem of inaccurate robotic arm operation during osteotomy surgery is solved and the safety and accuracy of the surgery are improved.

CN116889470BActive Publication Date: 2024-09-13YUANHUA ORTHOPAEDIC ROBOTICS (SHENZHEN) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311017155.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2024-09-13
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

In osteotomy surgery, it is difficult to accurately control the end tool of the robotic arm with existing technology, resulting in inaccurate surgical operations and increased surgical risks and safety hazards.

Method used

By determining multiple osteotomy boundary points, an osteotomy boundary alternately connected by straight lines and arcs is generated, and the position information of the tool at the end of the robotic arm is obtained in real time. This information is used to control the osteotomy process and prevent the tool from crossing the boundary.

Benefits of technology

It improves the accuracy and safety of osteotomy operations, reduces the difficulty of robotic arm control, and ensures that the operation is performed within a safe range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116889470B
    Figure CN116889470B
Patent Text Reader

Abstract

The embodiments of the present application are applicable to the technical field of orthopedic surgery, and provide an osteotomy control system, an osteotomy control method, and an osteotomy device. By using the above system, method, or device, the magnitude and direction of the force applied to the end of the robotic arm can be controlled. When the end tool of the robotic arm is about to cross the osteotomy boundary under the dragging of the doctor, the robot can obtain the position information of the end tool through real-time calculation, thereby applying a reverse thrust to prevent it from crossing the boundary. The above system, method, and device can be applied to various orthopedic surgeries such as tibial osteotomy, anterior condyle osteotomy, posterior condyle osteotomy, etc., which can ensure the accuracy of osteotomy and ensure the safety of the operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the technical field of orthopedic surgery, and in particular, relate to an osteotomy control system, an osteotomy control method, and an osteotomy device. Background Art

[0002] Osteotomy is one of the common orthopedic surgical procedures. With the widespread application of computer-assisted medicine, osteotomy can be performed with the help of computer equipment, which can reduce the difficulty of the surgeon's operation and improve the efficiency of the operation.

[0003] Computer-assisted osteotomy surgery usually involves installing tools at the end of a robotic arm and using the end tool to perform the osteotomy operation. Therefore, how to accurately control the robotic arm and its end tool to ensure the accuracy of the osteotomy operation has an important impact on surgical safety. Summary of the invention

[0004] In view of this, the embodiments of the present application provide an osteotomy control system, an osteotomy control method and an osteotomy device to prevent the end tool of the robotic arm from crossing the osteotomy boundary during the osteotomy process, improve the accuracy of osteotomy, and ensure the safety of the operation.

[0005] A first aspect of an embodiment of the present application provides an osteotomy control system, and the system is used to perform the following operations:

[0006] Determine multiple osteotomy boundary points;

[0007] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0008] During the osteotomy process, obtaining position information of the end tool of the robotic arm used for osteotomy;

[0009] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary.

[0010] A second aspect of an embodiment of the present application provides an osteotomy control system, comprising an osteotomy robot and a mechanical arm in communication with the osteotomy robot, wherein an end tool is installed at the end of the mechanical arm, and the end tool is used to perform an osteotomy operation under the control of the osteotomy robot; wherein the osteotomy robot is specifically used to:

[0011] Determine multiple osteotomy boundary points;

[0012] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0013] Controlling the end tool to perform osteotomy, and obtaining position information of the end tool during the osteotomy process;

[0014] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary to prevent the end tool from crossing the osteotomy boundary.

[0015] A third aspect of the embodiments of the present application provides an osteotomy control method, comprising:

[0016] Determine multiple osteotomy boundary points;

[0017] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0018] During the osteotomy process, obtaining position information of the end tool of the robotic arm used for osteotomy;

[0019] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary.

[0020] A fourth aspect of an embodiment of the present application provides an osteotomy control device, comprising:

[0021] A determination module, used for determining a plurality of osteotomy boundary points;

[0022] A generating module, used for generating an osteotomy boundary based on the plurality of osteotomy boundary points, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0023] An acquisition module is used to acquire position information of a tool at the end of a robotic arm used for osteotomy during the osteotomy process;

[0024] A control module is used to control the osteotomy process according to the position information of the end tool and the osteotomy boundary.

[0025] A fifth aspect of the embodiments of the present application provides an osteotomy device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0026] Determine multiple osteotomy boundary points;

[0027] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0028] During the osteotomy process, obtaining position information of the end tool of the robotic arm used for osteotomy;

[0029] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary.

[0030] A sixth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0031] Determine multiple osteotomy boundary points;

[0032] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0033] During the osteotomy process, obtaining position information of the end tool of the robotic arm used for osteotomy;

[0034] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary.

[0035] A seventh aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the following steps:

[0036] Determine multiple osteotomy boundary points;

[0037] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0038] During the osteotomy process, obtaining position information of the end tool of the robotic arm used for osteotomy;

[0039] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary.

[0040] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0041] In the embodiment of the present application, osteotomy is performed by applying the osteotomy control system provided in the embodiment of the present application. After determining multiple osteotomy boundary points, an osteotomy boundary consisting of multiple straight osteotomy boundaries and multiple arc osteotomy boundaries alternately connected can be formed based on the multiple osteotomy boundary points. The osteotomy process should be performed inside the generated osteotomy boundary. If the osteotomy boundary is formed only by connecting multiple straight osteotomy boundaries, when the end tool is transferred from the inside of one straight osteotomy boundary to the inside of another straight osteotomy boundary, it is necessary to apply a force that changes greatly in a direction instantaneously on the end tool, which easily causes the robot arm to shake, which is not conducive to the safety of osteotomy. In the embodiment of the present application, by using an arc transition at the intersection of two straight osteotomy boundaries, the direction of the applied force can be changed slowly along the arc, reducing the impact on the manipulation of the robot arm. In addition, in order to ensure that the end tool of the robot arm used for osteotomy is always located inside the osteotomy boundary, the position information of the end tool can be obtained during the osteotomy process, and the osteotomy process can be controlled according to the position information of the end tool and the position of the osteotomy boundary to ensure that the osteotomy process is always carried out within a safe range. The osteotomy control system provided in the embodiment of the present application can be applied to a variety of orthopedic surgeries, and can ensure the accuracy of osteotomy and the safety of the surgery. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 is a schematic diagram of an osteotomy control method provided in an embodiment of the present application;

[0044] Figure 2 is a schematic diagram of an osteotomy boundary provided in an embodiment of the present application;

[0045] Figure 3 is a schematic diagram of another osteotomy control method provided in an embodiment of the present application;

[0046] Figure 4(a) to Figure 4(n) It is a schematic diagram of various stages of an osteotomy process provided in an embodiment of the present application;

[0047] Figure 5 is a schematic diagram of an osteotomy control system provided in an embodiment of the present application;

[0048] Figure 6 is a schematic diagram of an osteotomy control device provided in an embodiment of the present application;

[0049] Figure 7It is a schematic diagram of an osteotomy device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.

[0051] The technical solution of the present application is described below through specific embodiments.

[0052] Reference Figure 1 , shows a schematic diagram of an osteotomy control method provided in an embodiment of the present application, which may specifically include the following steps:

[0053] S101. Determine multiple osteotomy boundary points.

[0054] In an embodiment of the present application, multiple osteotomy boundary points can be determined based on the examination data of the surgical patient. For example, multiple osteotomy boundary points for osteotomy surgery can be determined by obtaining a CT image of the patient for preoperative planning. These osteotomy boundary points can be a series of discontinuous points at the patient's position.

[0055] S102: Generate an osteotomy boundary based on the plurality of osteotomy boundary points, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries.

[0056] By connecting multiple osteotomy boundary points, an osteotomy boundary can be formed at the patient's position, and the osteotomy boundary defines a limit that the osteotomy tool cannot cross during the osteotomy process. For example, after the osteotomy boundary is formed, the osteotomy tool can only be operated within the area formed by the osteotomy boundary. Once the osteotomy tool crosses the boundary and moves outside the area, it may increase the risk of surgery or cause surgery failure.

[0057] In the embodiment of the present application, a plurality of osteotomy boundary points can be connected by straight line connection. In this way, the boundary formed at the patient position can be in the form of a polygon. The boundary of the polygon is composed of a plurality of straight osteotomy boundaries, and each straight osteotomy boundary can be regarded as a side of the polygon.

[0058] For example, Figure 2 The figure below is a schematic diagram of the osteotomy boundary. Figure 2 (a) shows the five osteotomy boundary points. A boundary shape.

[0059] It should be noted that Figure 2 The polygonal boundary shown in (a) is not completely closed, but a semi-closed polygon, that is, there are two osteotomy boundary points. The unconnected border opening can be used as the incision point for the osteotomy tool. That is, when preparing to start osteotomy, the robot arm can control the osteotomy tool to cut into the border from the opening, and then perform osteotomy along the osteotomy border.

[0060] If you follow Figure 2 The osteotomy tool is performed along the boundary shown in (a) in the figure. The entire osteotomy process should ensure that the osteotomy tool is always on the inside of the above boundary. At each osteotomy boundary point, the adjustment of the direction of the osteotomy tool needs to be achieved through a large force. For example, when the osteotomy tool performs osteotomy along the inside of one side of the polygon and reaches the osteotomy boundary point, the force acting on the osteotomy tool needs to change greatly in order to smoothly move the direction of the osteotomy tool from the inside of one side of the polygon to the inside of another side. Excessive instantaneous changes in the direction of the force can easily cause violent shaking of the robotic arm that controls the osteotomy tool, affecting the safety of the operation.

[0061] Therefore, in the embodiment of the present application, an arc transition method can be used at the intersection of two straight osteotomy boundaries to avoid the above-mentioned problems. The arc transition method is to use an arc connection at the intersection of two straight osteotomy boundaries. After the intersection of the two straight osteotomy boundaries is connected by an arc, the original polygonal boundary will be converted into a form of alternating connection of multiple straight osteotomy boundaries and multiple arc osteotomy boundaries. In this way, during actual osteotomy, the direction of the force can change slowly along the direction of the arc, reducing the difficulty of operating the robot arm. Figure 2 (b) is a schematic diagram of an osteotomy boundary formed by alternating multiple straight osteotomy boundaries and multiple arc osteotomy boundaries. Figure 2 The boundary shape shown in (a) is composed entirely of straight osteotomy boundaries. Figure 2 In (b), at the osteotomy boundary point All the parts are processed into arc form.

[0062] S103. During the osteotomy process, the position information of the robot arm end tool used for osteotomy is obtained.

[0063] In an embodiment of the present application, the osteotomy process can be completed under the control of a robotic arm, and the osteotomy tool can be installed at the end of the robotic arm to participate in the osteotomy in the form of a tool at the end of the robotic arm.

[0064] During the osteotomy process, the position information of the end tool of the robotic arm can be determined by acquiring the joint angle data of each joint of the robotic arm in real time. The above-mentioned robotic arm can be a robotic arm with any degree of freedom. For example, a seven-degree-of-freedom robotic arm can be used to control the end tool for osteotomy. It should be noted that the use of a robotic arm to control the end tool for osteotomy mentioned in the embodiments of the present application is actually that the doctor holds the end tool in hand during the operation to perform osteotomy, and uses the algorithm in the embodiments of the present application to control the position of the end tool at the patient's site during the entire osteotomy process to prevent the end tool from crossing the osteotomy boundary.

[0065] S104: Controlling the osteotomy process according to the position information of the end tool and the osteotomy boundary.

[0066] During the osteotomy process, the end tool should always maintain its position within the planned osteotomy boundary and cannot cross the boundary to the outside of the boundary. Therefore, the control of the osteotomy process should at least include controlling the end tool of the robot arm to always be within the osteotomy boundary.

[0067] In the embodiment of the present application, the position of the end tool can be located by acquiring the position information of the end tool in real time. Then, it can be determined whether the position is inside the osteotomy boundary. If the end tool is considered to cross the osteotomy boundary after determining the position of the end tool, a reverse thrust can be applied to the end tool to prevent the end tool from crossing the boundary, thereby ensuring that the result process is always carried out in a safe area.

[0068] By using the osteotomy control method provided in the embodiment of the present application, after determining multiple osteotomy boundary points, an osteotomy boundary consisting of multiple straight osteotomy boundaries and multiple arc osteotomy boundaries alternately connected can be formed based on the multiple osteotomy boundary points. The osteotomy process should be performed along the generated osteotomy boundary. If the osteotomy boundary is only formed by connecting multiple straight osteotomy boundaries, when the end tool is transferred from one straight osteotomy boundary to another straight osteotomy boundary, it is necessary to apply a force that changes greatly in one direction instantaneously on the end tool, which easily causes the robot arm to shake, which is not conducive to the safety of osteotomy. The embodiment of the present application uses an arc transition at the intersection of two straight osteotomy boundaries, so that the direction of the applied force can change slowly along the arc, reducing the impact on the manipulation of the robot arm. In addition, in order to ensure that the end tool of the robot arm used for osteotomy is always located inside the osteotomy boundary, the position information of the end tool can be obtained during the osteotomy process, and the osteotomy process can be controlled according to the position information of the end tool and the position of the osteotomy boundary to ensure that the osteotomy process is always carried out within a safe range. This method can be applied to a variety of orthopedic surgeries, and can ensure the accuracy of osteotomy and the safety of surgery.

[0069] Reference Figure 3, shows a schematic diagram of another osteotomy control method provided in an embodiment of the present application, which may specifically include the following steps:

[0070] S301, determining a plurality of osteotomy boundary points.

[0071] It should be noted that the method can be applied to an osteotomy control system. Specifically, it can be an osteotomy robot in an osteotomy control system, that is, the osteotomy robot in the osteotomy control system can achieve precise osteotomy by executing each step in the method, ensuring that the osteotomy process is always performed within the area within the osteotomy boundary, and ensuring the safety of osteotomy and surgery.

[0072] In an embodiment of the present application, multiple osteotomy boundary points can be determined during preoperative planning. During the preoperative planning stage, the osteotomy robot can obtain a CT image of the surgical patient and perform preoperative planning based on the CT image. The content of the preoperative planning should at least include determining multiple osteotomy boundary points, and the position of each osteotomy boundary point can be marked in the form of three-dimensional coordinates.

[0073] In a possible implementation, multiple osteotomy boundary points can be shown in the form of point sets. These point sets determined according to the CT image can be three-dimensional point sets. Taking the number of multiple osteotomy boundary points as 5 as an example, the three-dimensional point set formed by these 5 osteotomy boundary points can be expressed as: ={ }.

[0074] As shown in FIG4(a), it is a schematic diagram of multiple osteotomy boundary points. Each osteotomy boundary point shown in FIG4(a) is in the coordinate system corresponding to the CT image. The point set in Boundary points of osteotomy The coordinates of can be expressed as .

[0075] S302: Determine the first point and the last point among the plurality of osteotomy boundary points.

[0076] In the embodiment of the present application, the first point in the osteotomy boundary points can be any point in the point set, and after any point in the plurality of osteotomy boundary points is determined as the first point, the end point is determined accordingly. Specifically, the osteotomy boundary point adjacent to the first point in the first direction can be determined as the end point.

[0077] The first direction may be clockwise or counterclockwise. For example, if the first direction is clockwise, assuming that the point in FIG. 4(a) is determined is the first point, then the last point can be ; If the first direction is counterclockwise, at point If is the first point, the last point can be .

[0078] S303, starting from the first point, sequentially connecting the plurality of osteotomy boundary points to the last point to form an osteotomy boundary contour, wherein the osteotomy boundary contour is composed of a plurality of straight osteotomy boundaries.

[0079] After determining the first and last points of the osteotomy boundary points, multiple osteotomy boundary points can be sequentially connected to form an osteotomy boundary contour. Specifically, starting from the determined first point, for example, from the three-dimensional point set Points in Start by connecting each osteotomy boundary point in sequence until it is connected to the end point. , forming the osteotomy boundary outline.

[0080] In a possible implementation of the embodiment of the present application, it is possible to start from the first point At the beginning, a plurality of osteotomy boundary points in FIG. 4( a) are sequentially connected along the second direction by a straight line connection method until they are connected to the end point Stop, and the osteotomy boundary contour is formed. The second direction is opposite to the first direction used when determining the first point and the end point. For example, when determining the first point and the end point, if the counterclockwise direction is the first direction, the second direction is the clockwise direction; if the first direction is the clockwise direction, the second direction is the counterclockwise direction.

[0081] As shown in Fig. 4(b), it is an example of an osteotomy boundary contour formed by connecting multiple osteotomy boundary points. At this time, the osteotomy boundary contour is composed of multiple straight osteotomy boundaries.

[0082] It should be noted that the osteotomy boundary contour in FIG4(b) forms a semi-closed polygon, and the first point among the multiple osteotomy boundary points is and end point It is not directly connected, forming a polygonal opening, which can be used as an incision point for the tool at the end of the robotic arm during osteotomy.

[0083] S304, processing the intersection of any two straight osteotomy boundaries in the osteotomy boundary contour into an arc to form a plurality of arc osteotomy boundaries, and the plurality of arc osteotomy boundaries and the plurality of straight osteotomy boundaries remaining after processing constitute the osteotomy boundary.

[0084] In an embodiment of the present application, the intersection of any two straight osteotomy boundaries can be processed into an arc. In this way, except for the first point and the end point, the osteotomy boundaries at the locations of the other osteotomy boundary points will be processed from two straight osteotomy boundaries into arc osteotomy boundaries. Multiple arc osteotomy boundaries and multiple straight osteotomy boundaries remaining after processing together constitute the osteotomy boundary. The safety control goal when applying this method for osteotomy is to limit the end tool of the robot arm to always be within the osteotomy boundary and not to cross the boundary.

[0085] In order to accurately process the intersection of two straight osteotomy boundaries into a circular osteotomy boundary, the osteotomy robot in the embodiment of the present application can construct a target coordinate system in the patient. The target coordinate system can be established with the center point of multiple osteotomy boundary points as the origin. Among them, since the multiple osteotomy boundary points at this time are point sets under three-dimensional coordinates, the center points of the osteotomy boundary points may include multiple ones. Selecting a point from the multiple center points as the origin of the target coordinate system can be based on the standard of ensuring that the vector formed by the lines connecting the origin and each osteotomy boundary point is consistent with the target coordinate system. The angles between the unit vectors in the positive direction of the axis increase in order, and the above order can be from the first point to the last point.

[0086] When constructing the target coordinate system, you can use the coordinate system where the point set is located. Coordinate system with robot arm The coordinate transformation relationship between the point set The coordinate information of each osteotomy boundary point is converted to the robot arm coordinate system In the robot coordinate system Next, we can calculate the point set The center point The coordinates of , with the center point A new coordinate system can be established as the origin, which is the target coordinate system Target coordinate system of The unit vectors in the positive directions of the three coordinate axes are The above target coordinate system It can be used to plan various parameters of the osteotomy boundary, and its origin It can be used as the starting point for the robot arm and its end tool to enter the osteotomy mode. When controlling the osteotomy process, the force applied to the robot arm and its end tool can also be in the target coordinate system. As shown in FIG4(c), it is a schematic diagram of a target coordinate system. Specifically, FIG4(c) also shows the target coordinate system The coordinate system of the three-dimensional point set The relationship between.

[0087] Next, the process of establishing the target coordinate system is introduced in detail.

[0088] First, calculate the target coordinate system of Unit vector in the positive direction of the axis.

[0089] The three-dimensional point set defined above is the osteotomy boundary point, so each osteotomy boundary point is in the same plane. By calculating the unit normal vector of each osteotomy boundary point pointing to the bottom of the plane , which can be defined as the target coordinate system of The positive direction of the axis.

[0090] Specifically, any three points among the multiple osteotomy boundary points can be taken, and two sets of vectors can be formed according to these three points. Based on the cross product of the two sets of vectors, the normal vector of the plane formed by these three points can be determined. In the embodiment of the present application, the direction of the normal vector of the plane formed by these three points can be defined as the target coordinate system of The direction of the axis.

[0091] For example, from the point set Take three points , calculate the two sets of vectors composed of these three points , :

[0092]

[0093]

[0094] Calculating vectors , The cross product of , then the vector is the normal vector of the plane formed by the above three points.

[0095] The cross product of the two sets of vectors points downward on the plane, assuming , the vector Normalization can get the unit normal vector of the plane , the corresponding calculation formula can be expressed as follows:

[0096]

[0097]

[0098] As shown in Figure 4(d), the vector obtained by the above calculation is Schematic diagram of the target coordinate system of Schematic diagram of the axis orientation.

[0099] Then, calculate the target coordinate system of Unit vector in the positive direction of the axis.

[0100] In the embodiment of the present application, a unit vector of a vector pointing from the first point to the last point among the multiple osteotomy boundary points can be calculated, and the direction of the unit vector is defined as the target coordinate system of The direction of the axis.

[0101] For example, the point set The first point in , the end point is , take the first point Point to the end point Vector , which is the vector :

[0102]

[0103] By calculating the vector The unit vector , we can convert this unit vector The direction is defined as the target coordinate system of The direction of the axis.

[0104] As shown in Figure 4(e), the vector , which is the vector and its unit vector .

[0105] Finally, determine the target coordinate system of Unit vector in the positive direction of the axis.

[0106] In the embodiment of the present application, since the above steps have determined the target coordinate system by calculation of The direction of the axis and The direction of the axis can therefore be based on The direction of the axis The direction of the axis determines the target coordinate system of The direction of the axis is shown in Figure 4(f).

[0107] Specifically, the target coordinate system can be calculated of The unit vector in the axis direction is The cross product of the unit vectors in the axis direction, and then The unit vector in the axis direction is The direction of the vector corresponding to the cross product of the unit vectors in the axis direction is taken as the target coordinate system of The direction of the axis. That is, by calculating the vector and vector The cross product of The direction of the axis.

[0108] For example, using the vector and vector The cross product of :

[0109]

[0110] Normalize it to get the unit vector , we can convert this unit vector Defined as the target coordinate system middle The positive direction of the axis.

[0111] The unit vector obtained by the above calculation is Pairwise orthogonal, the matrix [ , , ] is the coordinate system To target coordinate system The rotation matrix :

[0112]

[0113] Target coordinate system Origin In the coordinate system The coordinates in can be expressed as:

[0114]

[0115] According to the posture of the end tool With the knowledge of inverse kinematics, the inverse solution can be obtained. It can be expressed as:

[0116]

[0117] By selecting a set of appropriate solutions from the obtained inverse solutions as the angle data of each joint of the robotic arm, for example, assuming that the robotic arm is a seven-degree-of-freedom robotic arm, the following set of data can be selected from the inverse solution as the angle data of each joint:

[0118]

[0119] During surgery, the osteotomy robot can control the robotic arm to move at the above joint angles. Enter osteotomy mode. When entering osteotomy mode, the starting position of the end tool is the above position. .

[0120] In the embodiment of the present application, a three-dimensional point set consisting of multiple osteotomy boundary points can be Convert to the target coordinate system The two-dimensional point set Specifically, first, the coordinates of each osteotomy boundary point in the robot arm coordinate system can be determined. Then, the three-dimensional coordinates of each osteotomy boundary point are placed in the robot arm coordinate system. The three-dimensional coordinates are converted to the target coordinate system By discarding each osteotomy boundary point in the target coordinate system In the three-dimensional coordinates of Axis coordinates, multiple osteotomy boundary points can be obtained in the target coordinate system The two-dimensional point set .

[0121] Among them, each osteotomy boundary point is placed in the robot arm coordinate system The three-dimensional coordinates are converted to the target coordinate system When the three-dimensional coordinates are obtained, the robot coordinate system can be used To target coordinate system First, determine the robot coordinate system To target coordinate system The rotation matrix of Then, for any osteotomy boundary point, the coordinate system of the osteotomy boundary point can be calculated. The three-dimensional coordinates and target coordinate system under The origin of the robot coordinate system The difference of the three-dimensional coordinates under the rotation matrix can be used to calculate the boundary point of the osteotomy in the target coordinate system. The three-dimensional coordinates of .

[0122] As an example of an embodiment of the present application, the coordinate system can be The three-dimensional point set Points in Recorded as , whose coordinates It can be calculated by the following formula:

[0123]

[0124] in, yes The inverse matrix is:

[0125]

[0126] Since the three-dimensional point set All osteotomy boundary points are located in the same plane in the coordinate system The plane is the coordinate system of Plane, that is The plane is composed of the target coordinate system of Axis and The plane formed by the axes. Therefore, the points obtained of The coordinates of the axes are all 0. To facilitate subsequent calculations, the three-dimensional point set can be Convert to a 2D point set , that is, a three-dimensional point set consisting of multiple osteotomy boundary points Convert to the target coordinate system The two-dimensional point set , the above two-dimensional point set Each osteotomy boundary point in the target coordinate system of Axis and Axis Points in the plane. As shown in Figure 4(g), the points obtained after transformation The coordinates of can be expressed as .

[0127] In this way, the subsequent processing and calculation process can be carried out in a two-dimensional plane, which can greatly simplify the calculation process. For example, when the intersection of any two straight osteotomy boundaries in the osteotomy boundary contour is processed into an arc to form multiple arc osteotomy boundaries, the target coordinate system can be obtained. of It is carried out in a plane, which simplifies the processing flow and reduces the amount of calculation.

[0128] In the embodiment of the present application, the osteotomy boundary points that need to be processed into arc osteotomy boundaries should not be the first point or the last point in the osteotomy boundary. For example, the osteotomy boundary points shown in FIG4(a) need to be processed into arc osteotomy boundaries except for the first point. and end point The area where other osteotomy boundary points are located.

[0129] Therefore, for any boundary point that is not the first point or the last point among the multiple osteotomy boundary points, an inscribed circle can be drawn within the angle formed by two straight osteotomy boundary lines with the boundary point as the intersection. The angle formed at this point is the straight osteotomy boundary Another straight osteotomy boundary In order to form a circular osteotomy boundary at this location, an inscribed circle can be made within this angle.

[0130] In the embodiment of the present application, an angle bisector can be drawn within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection, and then the center of the circle can be determined on the angle bisector according to a certain value, and the certain value is the distance between the center of the inscribed circle and the boundary point. In this way, an inscribed circle can be drawn within the angle based on the determined center of the circle, so that the inscribed circle is tangent to the corresponding two straight osteotomy boundaries at the first tangent point and the second tangent point respectively.

[0131] By discarding the straight line segment between the boundary point and the first tangent point, and the straight line segment between the boundary point and the second tangent point, an arc osteotomy boundary can be formed at the boundary point. The arc osteotomy boundary formed is the arc between the first tangent point and the second tangent point on the inscribed circle.

[0132] As an example of an embodiment of the present application, FIG4(h) shows a schematic diagram of forming an arc osteotomy boundary by drawing an inscribed circle at a boundary point.

[0133] As shown in Figure 4(h), at the boundary point Linear osteotomy border as well as The line segments form an angle, that is, First, you can make an angle The angle bisector of The length is a certain value , where point Located on the angle bisector, with point Make an angle at the center of the circle The radius of the inscribed circle is , the inscribed circle and the straight line osteotomy boundary The line segment is tangent to the first tangent point , and another straight osteotomy boundary The line segment is tangent to the second tangent point . Discard line segments and line segments , can be at the boundary point A circular osteotomy boundary is formed.

[0134] For each other boundary point among the multiple osteotomy boundary points that is not the first point or the last point, the boundary at the location can be processed into an arc osteotomy boundary in the above manner.

[0135] Since the plane where each osteotomy boundary point is located is different from the target coordinate system of The planes belong to the same plane, so after the osteotomy boundary point is processed as an arc osteotomy boundary, the various tangent points obtained are also located in the target coordinate system of In plane.

[0136] As shown in FIG4(i), it is a schematic diagram of the osteotomy boundary formed after the area at each osteotomy boundary point other than the first and last points is processed into an arc boundary. and end point In addition, the other three osteotomy boundary points are processed into arc osteotomy boundaries, forming an osteotomy boundary in which a straight osteotomy boundary and an arc osteotomy boundary are alternately connected as shown in FIG4(i). The osteotomy boundary point The tangent point of the two inscribed circles at The osteotomy boundary point The tangent point of the two inscribed circles at The osteotomy boundary point The tangent point of the two inscribed circles at .

[0137] By sequentially connecting the line segment endpoints of each linear osteotomy boundary and the arc endpoints of each arc osteotomy boundary with the origin of the target coordinate system, a plurality of angle regions can be obtained.

[0138] FIG4(i) also shows the osteotomy boundary points. After processing to form the arc osteotomy boundary, one of the tangent points, i.e. the second tangent point in the above example With the target coordinate system origin The angle formed by the connecting line .

[0139] It should be noted that, except for the first and last points of the osteotomy boundary point, the two tangent points formed at any osteotomy boundary point will be used as the line segment endpoints of a straight osteotomy boundary and the arc endpoints of an arc osteotomy boundary. Linear osteotomy border A line segment endpoint, which is also the arc osteotomy boundary An arc endpoint; the second tangent point Arc osteotomy boundary An arc endpoint, which is also the straight osteotomy boundary A straight line endpoint.

[0140] Based on the two-dimensional coordinates of each point, the geometric center point, that is, the target coordinate system, can be calculated. Origin The vector formed by the lines connecting each line segment endpoint or arc endpoint and the target coordinate system of Unit vector in the positive direction of the axis Angle .

[0141] Vector For example, assuming the endpoint of When the axis coordinate is greater than 0, it takes a positive value. When the axis coordinate is less than 0, it takes a negative value and calculates the angle The formula can be expressed as:

[0142]

[0143] Find the endpoints of each line segment and arc and the geometric center point The connection with After finding the angle between the two axes, you can compile the required angles into a collection according to the order of the endpoints, for example, in clockwise order. middle.

[0144] According to the calculated angle, the osteotomy area can be divided into multiple angle areas as shown in Figure 4(j):

[0145]

[0146]

[0147]

[0148]

[0149] In FIG. 4( j ), angle regions 1 , 3 , 5 , and 7 are regions corresponding to the straight osteotomy boundary segments, and angle regions 2 , 4 , and 6 are regions corresponding to the arc osteotomy boundary segments.

[0150] S305: During the osteotomy process, obtain the position information of the robot arm end tool used for osteotomy.

[0151] In the embodiment of the present application, during the formal osteotomy process, in order to ensure that the end tool of the robotic arm used for osteotomy is always located within a safe osteotomy range, it is necessary to obtain the position information of the end tool in real time.

[0152] In a specific implementation, during the osteotomy process, the joint angle data of each joint of the robotic arm can be obtained, and then the position information of the tool at the end of the robotic arm can be calculated based on the obtained joint angle data.

[0153] S306: Determine the position of the end point of the end tool according to the position information of the end tool.

[0154] After obtaining the position information of the end tool, the position of the end point of the end tool can be further determined, that is, determine which area of ​​the multiple angle areas in FIG. 4(j) the end point of the end tool is located in, and the specific position in the area.

[0155] In a specific implementation, the line connecting the end point of the end tool and the origin of the target coordinate system can be determined. of The angle between the axes is then used to determine the target area where the endpoint is located based on the angle and the angle range of each angle area.

[0156] For example, if the end point of the end tool With origin The connection between The angle formed by the axes is larger than the angle in the previous example , which is less than the angle , then according to the angle relationship, it can be determined that the endpoint is located in the angle area 2 in Figure 4(j), that is, the arc osteotomy boundary in the corresponding area.

[0157] S307: Control the osteotomy process based on the position of the endpoint.

[0158] In the embodiment of the present application, the osteotomy process is controlled based on the position of the end point of the tool at the end of the robot arm, which is to control the end point of the tool at one end to always be located within the osteotomy boundary and not exceed the boundary.

[0159] Therefore, the relative position relationship between the endpoint and the osteotomy boundary can be determined according to the position of the endpoint, and the relative position relationship can indicate whether the endpoint is located inside or outside the osteotomy boundary. If the endpoint is located outside the osteotomy boundary, the robot arm needs to be controlled to move to drive the endpoint to move inside the osteotomy boundary.

[0160] In a possible implementation of the embodiment of the present application, when determining the relative positional relationship between the endpoint and the osteotomy boundary, firstly, the target area where the endpoint is located can be determined according to the position of the endpoint.

[0161] According to the introduction of the above steps, the osteotomy area is divided into multiple angle areas, and any angle area is an area corresponding to a straight osteotomy boundary or an arc cutout boundary. Determining the target area where the endpoint is located is to determine in which of the above straight osteotomy boundaries or arc cutout boundaries the endpoint is located.

[0162] Then, it is identified that the target area where the endpoint is located is inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary.

[0163] In the embodiment of the present application, since the osteotomy boundary includes two different boundary types, namely a straight line osteotomy boundary and an arc osteotomy boundary, when identifying whether the end point is inside or outside the osteotomy boundary, it can be distinguished according to different boundary types.

[0164] In a possible implementation of an embodiment of the present application, if the region where the endpoint is located is the angle region corresponding to the straight osteotomy boundary, the expression of the straight line where the straight osteotomy boundary is located can be calculated, and the endpoint can be determined to be located inside or outside the current angle region according to the positive and negative relationship of the constant in the expression. If the region where the endpoint is located is the angle region corresponding to the arc osteotomy boundary, the first distance from the endpoint to the origin of the target coordinate system can be calculated, and the endpoint can be determined to be located inside or outside the current angle region according to the first distance. The following is a description of these two different situations.

[0165] For a straight osteotomy boundary, first solve the expression of the straight line where the straight osteotomy boundary lies. , , past these two points , The straight line The general expression of can be expressed as ( ), then there exists:

[0166]

[0167]

[0168]

[0169] As shown in FIG4(k), it is a schematic diagram of a straight line passing through two adjacent osteotomy boundary points. and The straight line It should be noted that FIG4(k) shows the contour of the osteotomy boundary without the arc transition process, which corresponds to the osteotomy boundary after the arc transition process, such as the osteotomy boundary in FIG4(i) and FIG4(j). The straight line in FIG4(k) is the straight line of the osteotomy boundary. A straight line on the line segment.

[0170] Determine endpoint Endpoints can be calculated when inside or outside the linear osteotomy boundary The corresponding straight line to this area Distance :

[0171]

[0172] If the calculated distance The value of 0 means that the endpoint Located on the osteotomy boundary. If the value is not 0, there may be two situations, and the endpoint needs to be judged Inside or outside the corresponding osteotomy boundary.

[0173] In the embodiment of the present application, the endpoint In the target coordinate system Substitute the coordinate values ​​below into the straight line In the expression of , we get the comparison number, which is If the comparison number is consistent with the straight line The constant in the expression The positive and negative relationships are the same, then it can be considered that the endpoints Currently located inside the corresponding angle area; if the comparison number is equal to the straight line The constant in the expression The positive and negative relationships are different, then the endpoints can be considered Currently located outside the corresponding angular region.

[0174] If the endpoint If the endpoint is outside the angle area corresponding to the above-mentioned linear osteotomy boundary, the normal vector of the straight line where the linear osteotomy boundary is located can be determined, and then a force is applied to the endpoint along the direction of the normal vector of the straight line where the linear osteotomy boundary is located to drive the endpoint to move toward the inside of the linear osteotomy boundary.

[0175] When calculating the normal vector of the straight line where the straight osteotomy boundary is located, it is also to calculate the endpoint of the line segment from the straight osteotomy boundary , The vector composed of The perpendicular unit normal vector , the perpendicular unit normal vector Includes two vectors with opposite directions, one pointing inside the boundary and the other pointing outside the boundary.

[0176] The line segment formed by the end points of the line segment at the straight osteotomy boundary The midpoint of the line segment can be determined Then, the target coordinate system is calculated by Origin Point to the midpoint Vector The included angle of the two perpendicular unit normal vectors with opposite directions can be such that the perpendicular unit normal vector corresponding to the obtuse included angle can be used as the normal vector of the line where the current linear osteotomy boundary is located.

[0177] For example, to solve two adjacent points , The vector composed of The perpendicular normal vector , assuming , then the following relationship exists:

[0178]

[0179] The solved vectors have two sets of solutions, which can be expressed as .

[0180] In order to select a set of vectors pointing to the interior of the boundary from the two sets of solutions, we can first find the line segment midpoint With the target coordinate system Origin The vector composed of , then the two sets of vectors Substitute them into the following formulas to calculate their relationship with the vector Angle :

[0181]

[0182] In this way, the vector corresponding to the obtuse angle can be taken as the line segment The normal vector , which is the normal vector of the line where the current straight osteotomy boundary lies.

[0183] As shown in FIG4(l), a schematic diagram of solving the normal vector of the straight line where the straight osteotomy boundary is located is shown. In FIG4(l), For line segment The midpoint of the line segment The unit normal vector of the line includes two sets of vectors, namely ; By calculating two sets of vectors and The angle can be regarded as an obtuse angle, that is, the angle is The corresponding vector is taken as a line segment As can be seen from Figure 4(l), the normal vector From the outside of the straight osteotomy boundary to the inside.

[0184] For the arc osteotomy boundary, that is, the end point of the end-of-arm tool When the target area is located at the boundary of the arc osteotomy, the endpoint can be calculated first. To target coordinate system Origin The first distance , then according to the first distance Determine the endpoint Inside or outside the current angle zone.

[0185] Specifically, the intersection of the line between the endpoint and the origin and the arc osteotomy boundary corresponding to the current angle region can be determined, and the second distance between the intersection and the origin can be calculated. If the first distance is less than the second distance, it can be considered that the endpoint is located inside the current angle region; if the first distance is greater than the second distance, it can be considered that the endpoint is located outside the current angle region.

[0186] For example, assuming that the endpoint is located at point , then the endpoint With the target coordinate system Origin The connection between , the connection With endpoint The intersection point of the arc osteotomy boundary corresponding to the current angle is , the endpoint can be calculated using the following formula To target coordinate system Origin The first distance :

[0187]

[0188] The intersection point is calculated using the following formula: With origin The second distance between :

[0189]

[0190] By comparing the above first distance and the second distance The size of the endpoint can be determined The position is inside or outside the area corresponding to the arc osteotomy boundary. Specifically, if Less than , then we can consider the endpoint is inside the current angle region if Greater than , then we can consider the endpoint Outside the current angle zone.

[0191] When the endpoint When the end point is located outside the angle area corresponding to the arc osteotomy boundary, it is necessary to control the movement of the robot arm to drive the end point to move inside the arc osteotomy boundary.

[0192] In an embodiment of the present application, controlling the movement of the robotic arm to drive the endpoint to move toward the inside of the arc osteotomy boundary can determine the normal vector of the arc where the current arc osteotomy boundary is located, and then applying a force to the end point of the tool at the end of the robotic arm along the direction of the normal vector of the arc where the above-mentioned arc osteotomy boundary is located, thereby driving the endpoint to move toward the inside of the arc osteotomy boundary.

[0193] When the end point of the end tool is located in the area corresponding to the arc osteotomy boundary, the corresponding normal vector can be from the intersection point to the center of the inscribed circle where the arc osteotomy boundary is located. The intersection point is the intersection of the line between the end point and the origin and the arc osteotomy boundary corresponding to the current angle area.

[0194] For the arc osteotomy boundary, the two arc endpoints are the tangent points of the inscribed circle and a straight osteotomy boundary in the initial osteotomy boundary contour. Therefore, if the intersection of the line between the endpoint position point and the origin and the arc osteotomy boundary corresponding to the current angle area is one of the two arc endpoints, then in this case, the direction of the normal vector is the arc endpoint pointing to the center of the inscribed circle. Since the two arc endpoints are also points on the adjacent straight osteotomy boundary, the calculation method of the normal vector in this case can refer to the calculation method of the normal vector of the straight line where the arc osteotomy boundary is located.

[0195] For example, as shown in FIG4(m), when the intersection The arc endpoints on the arc osteotomy boundary in the previous example , the normal vector that needs to be solved at this time Direction and vector The direction is consistent with that of The normal vector Correspondingly, when the intersection is a point on the arc osteotomy boundary in the previous example , the normal vector that needs to be solved at this time Direction and vector The direction is consistent with that of The normal vector The direction is consistent.

[0196] For the case where the intersection point is not the endpoint of the arc, that is, when the line connecting the endpoint and the center of the inscribed circle intersects the arc osteotomy boundary at a certain point of the arc segment, it is necessary to solve the vector formed by the intersection point and the line connecting the center of the circle, for example, it may be the vector in Figure 4(m). , At this time, point For example, we can first solve the intersection point Point to the center of the inscribed circle Vector With arc endpoint The vector pointing to the center of the inscribed circle The angle between β By solving the above angle β , we can get the two-dimensional rotation matrix , the two-dimensional rotation matrix is the robot arm coordinate system To target coordinate system The rotation matrix The inverse matrix of . Thus, at the known arc endpoints Point to the center of the inscribed circle Vector And the above two-dimensional rotation matrix In the case of Point to the center of the inscribed circle Vector .

[0197] When the end point of the end tool is outside the angle area corresponding to the arc osteotomy boundary, by calculating the corresponding normal vector in the above manner, a force with the same direction as the normal vector can be applied to the end point of the end tool to drive the end point to move toward the inside of the arc osteotomy boundary.

[0198] In a possible implementation of an embodiment of the present application, during the osteotomy process, the osteotomy robot can monitor the position of the end point of the end tool of the robotic arm in real time. When the end point of the end tool is about to cross the osteotomy boundary under the dragging of the doctor, the osteotomy robot can apply a reverse thrust to the end point, so that the end point of the end tool cannot cross the boundary, thereby ensuring the safety of the patient.

[0199] In order to accurately understand the overall solution of the embodiment of the present application, the following Figure 4(a) to Figure 4(n) , using a complete example, the osteotomy control process of this scheme is introduced.

[0200] (1) By acquiring the patient's CT image, surgical planning can be performed. The planning content at least includes determining the three-dimensional coordinates of multiple osteotomy boundary points. This example takes five osteotomy boundary points in three-dimensional space as an example. As shown in Figure 4(a), the five osteotomy boundary points determined can constitute an osteotomy boundary point set ={ }.

[0201] (2) The osteotomy robot, which is the control end of the robotic arm, can obtain the above osteotomy boundary point set Among them, Points The coordinates of , the point set The first osteotomy boundary point (first point ) to the 5th osteotomy boundary point (end point ) form a semi-closed polygon, which is the preliminarily determined osteotomy boundary contour, as shown in Figure 4(b). The opening of the semi-closed polygon boundary in Figure 4(b) can be used as the inlet of the end tool of the robot arm. The goal of using the method and system provided in the embodiment of the present application to perform osteotomy control is to limit the end tool of the robot arm from crossing this boundary.

[0202] (3) Based on point set The coordinate system Coordinate system with robot arm The coordinate transformation relationship of the point set can be The coordinate information is converted to the robot arm coordinate system In the robot arm coordinate system Next, calculate the point set The center point The coordinates of , with the center point A new coordinate system can be established as the origin, namely the target coordinate system Target coordinate system of The unit vectors in the positive directions of the three axes are Among them, the center point The selection rule can be to ensure that the target coordinate system calculated subsequently The vector formed by the origin and the lines connecting the osteotomy boundary points is consistent with the target coordinate system of The angle of the unit vector in the positive direction of the axis increases in order. It can be used to plan the parameters of the osteotomy boundary, the origin of which It can be used as the starting point for the robot to enter the osteotomy mode and the target coordinate system It can be used as a coordinate system to apply force to the end tool of the robot arm. It can be shown as Figure 4(c). Establish the target coordinate system The specific process can be combined with Figure 4(d) to Figure 4(f) , please refer to the introduction of step S304 in the above embodiment, which will not be repeated here.

[0203] Target coordinate system middle Unit vector of the axis Pairwise orthogonal, the matrix [ , , ] is the coordinate system To target coordinate system The rotation matrix :

[0204]

[0205] Target coordinate system Origin In the coordinate system The coordinates in are expressed as:

[0206]

[0207] According to the posture of the end tool With the knowledge of inverse kinematics, the inverse solution can be obtained. It can be expressed as:

[0208]

[0209] By selecting a set of appropriate solutions from the obtained inverse solutions as the angle data of each joint of the robotic arm, for example, assuming that the robotic arm is a seven-degree-of-freedom robotic arm, the following set of data can be selected from the inverse solution as the angle data of each joint:

[0210]

[0211] During surgery, the osteotomy robot can control the robotic arm to move at the above joint angles. Enter osteotomy mode. When entering osteotomy mode, the starting position of the end tool is the above position. .

[0212] (4) In the target coordinate system Next, point set Points in It can be recorded as , whose coordinates It can be calculated by the following formula:

[0213]

[0214] in, Yes The inverse matrix is:

[0215]

[0216] Because the point set All osteotomy boundary points are in the same plane, in the target coordinate system In this case, the plane is the target coordinate system. of plane. Therefore, the points The axis coordinates are all 0. In order to facilitate subsequent calculations, the three-dimensional point set can be Convert to a 2D point set , that is, discard each point of Axis coordinates. Each point Coordinates Can be converted to , the transformed point set With the target coordinate system The relationship between the corresponding planes can be shown in FIG4( g ).

[0217] (5) To avoid the shaking of the robot arm due to the large instantaneous change in the direction of the force when the force is applied at the end of the robot arm, an arc transition is used at the intersection of the midline segments of the osteotomy boundary contour. and line segments As an example, we can make an angle The angle bisector of The length is a certain value , where the point On the angle bisector, point The radius of the inscribed circle is , inscribed circle and line segment Tangent at point , and the line segment Tangent at point , the new osteotomy boundary will discard the line segment and line segments .

[0218] (6) The osteotomy boundary after processing the intersection of other two adjacent line segments in the same way can be shown in Figure 4(i). The geometric center point of the osteotomy boundary can be solved according to the two-dimensional coordinates. With each endpoint The vector composed of the connecting lines and the target coordinate system of Unit vector in the positive direction of the axis Angle .by For example, specify the endpoint of When the axis coordinate is greater than 0, it takes a positive value. When the axis coordinate is less than 0, it takes a negative value. The calculation formula can be expressed as:

[0219]

[0220] After finding the angles of all endpoints, you can compile the required angles into a collection in clockwise order. .

[0221] According to the angles of each point, the above osteotomy area can be further divided into seven angle areas as shown in Figure 4(j):

[0222]

[0223]

[0224]

[0225]

[0226] Among them, angle areas 2, 4, and 6 are arc osteotomy boundary segments, and angle areas 1, 3, 5, and 7 are linear osteotomy boundary segments.

[0227] (7) As shown in Figure 4(k), the general expression for determining the straight line where the straight osteotomy boundary segment lies is: , The straight line As a section of the boundary, let ( ),but:

[0228]

[0229]

[0230]

[0231] (8) The normal vector of each boundary can be solved for the straight osteotomy boundary segment and the arc osteotomy boundary segment respectively.

[0232] For a straight osteotomy boundary segment:

[0233] Find two adjacent points , The vector composed of The perpendicular unit normal vector Assumptions ,but:

[0234]

[0235] The requested There are two sets of solutions, namely .

[0236] To solve from two groups By selecting a set of vectors pointing to the inside of the boundary, we can first find the line segment midpoint With the target coordinate system Origin The vector composed of , then the two sets of vectors Substitute them into the following formula to calculate their Angle :

[0237]

[0238] As shown in Figure 4(l), the vector corresponding to the obtuse angle can be taken as the line segment The normal vector .

[0239] For arc osteotomy boundary segment:

[0240] At the arc osteotomy boundary, as shown in Figure 4(m), the unit vector With the above request The normal vector Consistent, unit vector Compared with the above The normal vector Assume that the end point of the end tool With the center Lines and arcs Intersects to Find the distance between this point and the center of the circle The vector composed of the lines (may be , , … ) to find the endpoints The direction of the force applied in this angular region. For example, we can first find With this vector Angle β , based on the angle β The two-dimensional rotation matrix can be obtained . Known vector With the rotation matrix , we can find the vector .

[0241] (9) Determine whether the end point of the end tool is inside or outside the osteotomy boundary. You can also make a judgment based on whether the area where the end point is located corresponds to the arc osteotomy boundary or the linear osteotomy boundary.

[0242] If the endpoint is located in the odd area in the previous step, that is, the endpoint The area corresponding to the straight osteotomy boundary can be calculated using the following formula To the area corresponding to the straight line Distance :

[0243]

[0244] Among them, the straight line The equation of can be determined by the above step (7). Then, first determine the constant If with If the positive and negative signs are the same, then the endpoints are considered Inside the boundary area, no superposition force is required to limit the end tool from crossing the boundary. and The positive and negative signs are opposite, then the endpoints are considered Outside the boundary area, an external force needs to be applied to the end tool of the robot arm to prevent the tool from crossing the boundary. The direction of the force to be applied is consistent with the direction of the normal vector of the straight osteotomy boundary segment calculated in step (8).

[0245] If the endpoint The even-numbered regions in the previous step, i.e. the endpoints The area corresponding to the arc osteotomy boundary can be calculated as the endpoint To the center of the incircle on the angle bisector Distance :

[0246]

[0247] In finding the above distance After that, determine the endpoint Is it inside or outside the arc osteotomy boundary segment? First, we can find the endpoint To target coordinate system Origin Distance :

[0248]

[0249] Then find the straight line Intersection point of the arc osteotomy segment with the current angle area To coordinate system Origin Distance :

[0250]

[0251] By comparison and If the size Less than , it can be considered that the end point is inside the arc osteotomy boundary segment, as shown in Figure 4(n), and no additional force is required on the end tool. Greater than , then it is necessary to apply force on the end tool, according to the intersection Depending on the position, the direction of the applied force can be , , … .

[0252] By using the method provided in the embodiment of the present application, the position of the end tool of the robotic arm can be monitored in real time during the osteotomy process to prevent the end tool from crossing the osteotomy boundary, thereby ensuring the safety of the operation.

[0253] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0254] Reference Figure 5 , shows a schematic diagram of an osteotomy control system provided by an embodiment of the present application, including an osteotomy robot and a mechanical arm connected to the osteotomy robot in communication, the end of the mechanical arm is equipped with an end tool, and the end tool can be used to perform osteotomy operations under the control of the osteotomy robot. Specifically, the osteotomy robot can be used for:

[0255] Determine multiple osteotomy boundary points;

[0256] Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0257] Controlling the end tool to perform osteotomy, and obtaining position information of the end tool during the osteotomy process;

[0258] The osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary to prevent the end tool from crossing the osteotomy boundary.

[0259] In the embodiment of the present application, generating an osteotomy boundary based on the plurality of osteotomy boundary points includes:

[0260] Determine the first point and the last point among the plurality of osteotomy boundary points;

[0261] Starting from the first point, sequentially connecting the plurality of osteotomy boundary points to the last point to form an osteotomy boundary contour, wherein the osteotomy boundary contour is composed of a plurality of straight osteotomy boundaries;

[0262] The intersection of any two straight osteotomy boundaries in the osteotomy boundary contour is processed into an arc to form a plurality of arc osteotomy boundaries, and the plurality of arc osteotomy boundaries and the plurality of straight osteotomy boundaries remaining after the processing constitute the osteotomy boundary.

[0263] In the embodiment of the present application, the step of determining the first point and the last point of the plurality of osteotomy boundary points comprises:

[0264] Determine any point among the plurality of osteotomy boundary points as the first point;

[0265] The osteotomy boundary point adjacent to the first point in a first direction is determined as the end point, and the first direction includes a clockwise direction or a counterclockwise direction.

[0266] In the embodiment of the present application, starting from the first point, sequentially connecting the plurality of osteotomy boundary points to the last point to form an osteotomy boundary contour includes:

[0267] Starting from the first point, a plurality of the osteotomy boundary points are sequentially connected along a second direction in a straight line connection manner until they are connected to the end point and stop to form the osteotomy boundary contour, wherein the second direction is opposite to the first direction.

[0268] In the embodiment of the present application, the intersection of any two straight osteotomy boundaries in the osteotomy boundary contour is processed into an arc to form a plurality of arc osteotomy boundaries, including:

[0269] For any boundary point among the multiple osteotomy boundary points that is not the first point or the last point, an inscribed circle is drawn within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection, the distance between the center of the inscribed circle and the boundary point is a constant, and the inscribed circle is tangent to the corresponding two straight osteotomy boundaries at a first tangent point and a second tangent point respectively;

[0270] By discarding the straight line segment between the boundary point and the first tangent point, and the straight line segment between the boundary point and the second tangent point, an arc osteotomy boundary is formed at the boundary point, and the arc osteotomy boundary is the arc between the first tangent point and the second tangent point on the inscribed circle.

[0271] In the embodiment of the present application, the step of making an inscribed circle within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection includes:

[0272] Draw an angle bisector within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection;

[0273] According to the fixed value, the center of the circle is determined on the angle bisector;

[0274] An inscribed circle is made within the angle based on the center of the circle, so that the inscribed circle is tangent to the two corresponding straight osteotomy boundaries at the first tangent point and the second tangent point respectively.

[0275] In an embodiment of the present application, during the osteotomy process, obtaining the position information of the robot arm end tool used for osteotomy includes:

[0276] During the osteotomy process, obtaining joint angle data of each joint of the robotic arm;

[0277] Based on the joint angle data, the position information of the tool at the end of the robot arm is calculated.

[0278] In an embodiment of the present application, the osteotomy process is controlled according to the position information of the end tool and the osteotomy boundary, including:

[0279] Determining the position of the end point of the end tool according to the position information of the end tool;

[0280] Based on the positions of the endpoints, the osteotomy process is controlled.

[0281] In an embodiment of the present application, the osteotomy process is controlled based on the position of the endpoint, including:

[0282] Determining the relative positional relationship between the endpoint and the osteotomy boundary according to the position of the endpoint;

[0283] If the endpoint is located outside the osteotomy boundary, the robot arm is controlled to move so as to drive the endpoint to move inside the osteotomy boundary.

[0284] In an embodiment of the present application, determining the relative positional relationship between the endpoint and the osteotomy boundary according to the position of the endpoint includes:

[0285] Dividing the osteotomy area into a plurality of angle areas, any of the angle areas being an area corresponding to a straight osteotomy boundary or a circular arc cutout boundary;

[0286] Determining a target area where the endpoint is located according to the position of the endpoint;

[0287] It is identified that the target area where the endpoint is located is located inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary.

[0288] In the embodiment of the present application, the osteotomy area is divided into a plurality of angle areas, including:

[0289] Constructing a target coordinate system, wherein the target coordinate system takes the center point of the plurality of osteotomy boundary points as the origin, and the angles between the vector formed by the lines connecting the origin and each of the osteotomy boundary points and the unit vector in the positive direction of the y-axis of the target coordinate system increase in sequence, and the sequence is from the first point to the last point;

[0290] Converting a three-dimensional point set consisting of a plurality of the osteotomy boundary points into a two-dimensional point set in the target coordinate system, wherein each of the osteotomy boundary points in the two-dimensional point set is a point in a plane formed by the y-axis and the z-axis of the target coordinate system;

[0291] The line segment endpoints of each of the linear osteotomy boundaries and the arc endpoints of each of the arc osteotomy boundaries are sequentially connected to the origin to obtain a plurality of angle regions.

[0292] In the embodiment of the present application, determining the target area where the endpoint is located according to the position of the endpoint includes:

[0293] Determine the angle between the line connecting the endpoint and the origin and the y-axis of the target coordinate system;

[0294] The target area where the endpoint is located is determined according to the size of the included angle and the angle range of each of the angle areas.

[0295] In the embodiment of the present application, the step of identifying that the target area where the endpoint is located is inside or outside the corresponding straight osteotomy boundary or arc osteotomy boundary includes:

[0296] If the region where the endpoint is located is the angle region corresponding to the straight osteotomy boundary, then calculating the expression of the straight line where the straight osteotomy boundary is located, and determining whether the endpoint is located inside or outside the angle region according to the positive and negative relationship of the constants in the expression;

[0297] If the region where the endpoint is located is an angle region corresponding to the arc osteotomy boundary, a first distance from the endpoint to the origin is calculated, and it is determined whether the endpoint is inside or outside the angle region based on the first distance.

[0298] In the embodiment of the present application, determining whether the endpoint is inside or outside the angle region according to the positive and negative relationship of the constants in the expression includes:

[0299] Substitute the coordinate value of the endpoint in the target coordinate system into the expression to obtain a comparison number;

[0300] If the comparison number and the constant have the same positive and negative relationship, it is determined that the endpoint is located inside the angle region;

[0301] If the comparison number and the constant have different positive and negative relationships, it is determined that the endpoint is located outside the angle region.

[0302] In the embodiment of the present application, if the endpoint is located outside the osteotomy boundary, controlling the robot arm to move the endpoint toward the inside of the osteotomy boundary includes:

[0303] If the endpoint is outside the angle region corresponding to the linear osteotomy boundary, determining the normal vector of the straight line where the linear osteotomy boundary is located;

[0304] A force is applied to the end point along the direction of the normal vector of the straight line where the straight osteotomy boundary is located, so as to drive the end point to move toward the inside of the straight osteotomy boundary.

[0305] In an embodiment of the present application, determining the normal vector of the straight line where the straight osteotomy boundary is located includes:

[0306] Calculating a perpendicular unit normal vector of a vector formed by the endpoints of the line segments of the straight osteotomy boundary, wherein the perpendicular unit normal vector includes two vectors with opposite directions;

[0307] Determine the midpoint of the line segment formed by the endpoints of the line segment of the straight osteotomy boundary;

[0308] Calculate the angles between the vector from the origin to the midpoint and two perpendicular unit normal vectors with opposite directions respectively;

[0309] The vertical unit normal vector corresponding to the obtuse angle is used as the normal vector of the straight line where the straight line osteotomy boundary is located.

[0310] In the embodiment of the present application, determining, according to the first distance, that the endpoint is located inside or outside the angle area includes:

[0311] Determine the intersection of a line between the endpoint and the origin and an arc osteotomy boundary corresponding to the current angle region;

[0312] Calculating a second distance between the intersection point and the origin;

[0313] If the first distance is smaller than the second distance, determining that the endpoint is located inside the angle region;

[0314] If the first distance is greater than the second distance, it is determined that the endpoint is located outside the angle area.

[0315] In the embodiment of the present application, if the endpoint is located outside the osteotomy boundary, controlling the robot arm to move the endpoint toward the inside of the osteotomy boundary includes:

[0316] If the endpoint is outside the angle region corresponding to the arc osteotomy boundary, determining the normal vector of the arc where the arc osteotomy boundary is located;

[0317] A force is applied to the end point along the direction of the normal vector of the arc where the arc osteotomy boundary is located, so as to drive the end point to move toward the inside of the arc osteotomy boundary.

[0318] In the embodiment of the present application, the normal vector points from the intersection point to the center of the inscribed circle where the arc osteotomy boundary is located.

[0319] In an embodiment of the present application, the step of constructing a target coordinate system includes:

[0320] Taking any three points from the plurality of osteotomy boundary points, and forming two sets of vectors according to the three points;

[0321] Based on the cross product of the two groups of vectors, determining a normal vector of the plane formed by the three points, and defining the direction of the normal vector of the plane formed by the three points as the direction of the x-axis of the target coordinate system;

[0322] Calculating a unit vector of a vector from a first point to an end point among the plurality of osteotomy boundary points, and defining the direction of the unit vector as the direction of the z-axis of the target coordinate system;

[0323] The direction of the y-axis of the target coordinate system is determined according to the direction of the x-axis and the direction of the z-axis of the target coordinate system.

[0324] In the embodiment of the present application, determining the direction of the y-axis of the target coordinate system according to the direction of the x-axis and the direction of the z-axis of the target coordinate system includes:

[0325] Calculate the cross product of the unit vector in the x-axis direction and the unit vector in the z-axis direction of the target coordinate system;

[0326] The direction of the vector corresponding to the cross product of the unit vector in the x-axis direction and the unit vector in the z-axis direction is used as the direction of the y-axis of the target coordinate system.

[0327] In the embodiment of the present application, converting the three-dimensional point set composed of the plurality of osteotomy boundary points into a two-dimensional point set in the target coordinate system includes:

[0328] Determine the three-dimensional coordinates of each of the osteotomy boundary points in the robot arm coordinate system;

[0329] Converting the three-dimensional coordinates of each of the osteotomy boundary points in the robot arm coordinate system into three-dimensional coordinates in the target coordinate system;

[0330] The x-axis coordinate of each osteotomy boundary point in the three-dimensional coordinates in the target coordinate system is discarded to obtain a two-dimensional point set of multiple osteotomy boundary points in the target coordinate system.

[0331] In the embodiment of the present application, the converting of the three-dimensional coordinates of each osteotomy boundary point in the robot arm coordinate system into the three-dimensional coordinates in the target coordinate system includes:

[0332] Determine the rotation matrix from the manipulator coordinate system to the target coordinate system;

[0333] For any of the osteotomy boundary points, calculate the difference between the three-dimensional coordinates of the osteotomy boundary point in the robot arm coordinate system and the three-dimensional coordinates of the origin of the target coordinate system in the robot arm coordinate system;

[0334] The three-dimensional coordinates of the osteotomy boundary point in the target coordinate system are calculated according to the inverse matrix of the rotation matrix and the difference.

[0335] Reference Figure 6 , shows a schematic diagram of an osteotomy control device provided in an embodiment of the present application, the device may include a determination module 601, a generation module 602, an acquisition module 603, and a control module 604. Among them:

[0336] A determination module 601 is used to determine a plurality of osteotomy boundary points;

[0337] A generating module 602, configured to generate an osteotomy boundary based on the plurality of osteotomy boundary points, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0338] An acquisition module 603 is used to acquire position information of a tool at the end of a robotic arm used for osteotomy during the osteotomy process;

[0339] The control module 604 is used to control the osteotomy process according to the position information of the end tool and the osteotomy boundary.

[0340] The embodiment of the present application also provides an osteotomy control device, by using the device, each step in the aforementioned method embodiments can be implemented.

[0341] As for the system embodiment and the device embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.

[0342] Reference Figure 7 , shows a schematic diagram of an osteotomy device provided in an embodiment of the present application. Figure 7As shown, the osteotomy device 700 in the embodiment of the present application includes: a processor 710, a memory 720, and a computer program 721 stored in the memory 720 and executable on the processor 710. When the processor 710 executes the computer program 721, the steps in each embodiment of the above-mentioned osteotomy control method are implemented, for example Figure 1 Alternatively, when the processor 710 executes the computer program 721, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 6 Functions of modules 601 to 604 are shown.

[0343] Exemplarily, the computer program 721 may be divided into one or more modules / units, which are stored in the memory 720 and executed by the processor 710 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which may be used to describe the execution process of the computer program 721 in the osteotomy device 700. For example, the computer program 721 may be divided into a determination module, a generation module, an acquisition module, and a control module, and the specific functions of each module are as follows:

[0344] A determination module, used for determining a plurality of osteotomy boundary points;

[0345] A generating module, used for generating an osteotomy boundary based on the plurality of osteotomy boundary points, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries;

[0346] An acquisition module is used to acquire position information of a tool at the end of a robotic arm used for osteotomy during the osteotomy process;

[0347] A control module is used to control the osteotomy process according to the position information of the end tool and the osteotomy boundary.

[0348] The osteotomy device 700 may be a device capable of implementing the steps in the above-mentioned method embodiments, and the osteotomy device 700 may be a device such as an osteotomy robot. The osteotomy device 700 may include, but is not limited to, a processor 710 and a memory 720. Those skilled in the art will understand that Figure 7 It is only an example of the osteotomy device 700 and does not constitute a limitation of the osteotomy device 700. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the osteotomy device 700 may also include input and output devices, network access devices, buses, etc.

[0349] The processor 710 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0350] The memory 720 may be an internal storage unit of the osteotomy device 700, such as a hard disk or memory of the osteotomy device 700. The memory 720 may also be an external storage device of the osteotomy device 700, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the osteotomy device 700. Further, the memory 720 may also include both an internal storage unit and an external storage device of the osteotomy device 700. The memory 720 is used to store the computer program 721 and other programs and data required by the osteotomy device 700. The memory 720 may also be used to temporarily store data that has been output or is to be output.

[0351] An embodiment of the present application further discloses an osteotomy device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the osteotomy control method as described in the above-mentioned embodiments when executing the computer program.

[0352] The embodiment of the present application further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the osteotomy control method as described in the above-mentioned embodiments is implemented.

[0353] The embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the osteotomy control method described in the above-mentioned embodiments.

[0354] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. An osteotomy control system, It is characterized in that The system is used to perform the following operations: Determine multiple osteotomy boundary points; Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries; During the osteotomy process, obtaining position information of a tool at the end of the robotic arm used for osteotomy; Determining the position of the end point of the end tool according to the position information of the end tool; Dividing the osteotomy area into a plurality of angle areas, any of the angle areas being an area corresponding to a straight osteotomy boundary or a circular osteotomy boundary; Determining a target area where the endpoint is located according to the position of the endpoint; Identify that the target area where the endpoint is located is inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary; If the endpoint is located outside the straight osteotomy boundary or the arc osteotomy boundary, the robot arm is controlled to move to drive the endpoint to move inside the straight osteotomy boundary or the arc osteotomy boundary.

2. The system according to claim 1, It is characterized in that The step of generating an osteotomy boundary based on the plurality of osteotomy boundary points comprises: Determine the first point and the last point among the plurality of osteotomy boundary points; Starting from the first point, sequentially connecting the plurality of osteotomy boundary points to the last point to form an osteotomy boundary contour, wherein the osteotomy boundary contour is composed of a plurality of straight osteotomy boundaries; For any boundary point among the multiple osteotomy boundary points that is not the first point or the last point, an inscribed circle is drawn within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection, the distance between the center of the inscribed circle and the boundary point is a constant, and the inscribed circle is tangent to the corresponding two straight osteotomy boundaries at a first tangent point and a second tangent point respectively; By discarding the straight line segment between the boundary point and the first tangent point, and the straight line segment between the boundary point and the second tangent point, an arc osteotomy boundary is formed at the boundary point, and the arc osteotomy boundary is the arc line between the first tangent point and the second tangent point on the inscribed circle. Multiple arc osteotomy boundaries and multiple straight line osteotomy boundaries remaining after processing constitute the osteotomy boundary.

3. The system according to claim 2, It is characterized in that The step of making an inscribed circle within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection includes: Draw an angle bisector within the angle formed by two straight osteotomy boundaries with the boundary point as the intersection; According to the fixed value, the center of the circle is determined on the angle bisector; An inscribed circle is made within the angle based on the center of the circle, so that the inscribed circle is tangent to the two corresponding straight osteotomy boundaries at the first tangent point and the second tangent point respectively.

4. The system according to claim 1, It is characterized in that The osteotomy area is divided into a plurality of angle areas, including: Constructing a target coordinate system, wherein the target coordinate system takes the center point of the plurality of osteotomy boundary points as the origin, and the angles between the vector formed by the lines connecting the origin and each of the osteotomy boundary points and the unit vector in the positive direction of the y-axis of the target coordinate system increase in sequence, and the sequence is from the first point to the last point among the osteotomy boundary points; Converting a three-dimensional point set consisting of a plurality of the osteotomy boundary points into a two-dimensional point set in the target coordinate system, wherein each of the osteotomy boundary points in the two-dimensional point set is a point in a plane formed by the y-axis and the z-axis of the target coordinate system; The line segment endpoints of each of the linear osteotomy boundaries and the arc endpoints of each of the arc osteotomy boundaries are sequentially connected to the origin to obtain a plurality of angle regions.

5. The system according to claim 4, It is characterized in that The step of determining the target area where the endpoint is located according to the position of the endpoint includes: Determine the angle between the line connecting the endpoint and the origin and the y-axis of the target coordinate system; The target area where the endpoint is located is determined according to the size of the included angle and the angle range of each of the angle areas.

6. The system according to claim 4, It is characterized in that The step of identifying that the target area where the endpoint is located is inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary comprises: If the region where the endpoint is located is the angle region corresponding to the straight osteotomy boundary, then calculating the expression of the straight line where the straight osteotomy boundary is located, and determining whether the endpoint is located inside or outside the angle region according to the positive and negative relationship of the constants in the expression; If the region where the endpoint is located is an angle region corresponding to the arc osteotomy boundary, a first distance from the endpoint to the origin is calculated, and it is determined whether the endpoint is inside or outside the angle region based on the first distance.

7. The system according to claim 6, It is characterized in that The determining, according to the first distance, that the endpoint is located inside or outside the angle region comprises: Determine the intersection of a line between the endpoint and the origin and an arc osteotomy boundary corresponding to the current angle region; Calculating a second distance between the intersection point and the origin; If the first distance is smaller than the second distance, determining that the endpoint is located inside the angle region; If the first distance is greater than the second distance, it is determined that the endpoint is located outside the angle region.

8. The system according to claim 7, It is characterized in that If the endpoint is located outside the osteotomy boundary, controlling the robot arm to move so as to drive the endpoint to move inside the osteotomy boundary includes: If the endpoint is outside the angle region corresponding to the arc osteotomy boundary, determining the normal vector of the arc where the arc osteotomy boundary is located; A force is applied to the end point along the direction of the normal vector of the arc where the arc osteotomy boundary is located, so as to drive the end point to move toward the inside of the arc osteotomy boundary.

9. The system according to claim 8, It is characterized in that The normal vector points from the intersection point to the center of the inscribed circle where the arc osteotomy boundary is located.

10. The system according to any one of claims 4 to 9, It is characterized in that The constructing of the target coordinate system includes: Taking any three points from the plurality of osteotomy boundary points, and forming two sets of vectors according to the three points; Based on the cross product of the two groups of vectors, determining a normal vector of the plane formed by the three points, and defining the direction of the normal vector of the plane formed by the three points as the direction of the x-axis of the target coordinate system; Calculating a unit vector of a vector from a first point to an end point among the plurality of osteotomy boundary points, and defining the direction of the unit vector as the direction of the z-axis of the target coordinate system; The direction of the y-axis of the target coordinate system is determined according to the direction of the x-axis and the direction of the z-axis of the target coordinate system.

11. The system according to claim 10, It is characterized in that Determining the direction of the y-axis of the target coordinate system according to the direction of the x-axis and the direction of the z-axis of the target coordinate system includes: Calculate the cross product of the unit vector in the x-axis direction and the unit vector in the z-axis direction of the target coordinate system; The direction of the vector corresponding to the cross product of the unit vector in the x-axis direction and the unit vector in the z-axis direction is used as the direction of the y-axis of the target coordinate system.

12. The system according to claim 10, It is characterized in that The step of converting a three-dimensional point set consisting of a plurality of osteotomy boundary points into a two-dimensional point set in the target coordinate system comprises: Determine the three-dimensional coordinates of each of the osteotomy boundary points in the robot arm coordinate system; Converting the three-dimensional coordinates of each of the osteotomy boundary points in the robot arm coordinate system into three-dimensional coordinates in the target coordinate system; The x-axis coordinate of each osteotomy boundary point in the three-dimensional coordinates in the target coordinate system is discarded to obtain a two-dimensional point set of multiple osteotomy boundary points in the target coordinate system.

13. The system according to claim 12, It is characterized in that The step of converting the three-dimensional coordinates of each osteotomy boundary point in the robot arm coordinate system into the three-dimensional coordinates in the target coordinate system includes: Determine the rotation matrix from the manipulator coordinate system to the target coordinate system; For any of the osteotomy boundary points, calculate the difference between the three-dimensional coordinates of the osteotomy boundary point in the robot arm coordinate system and the three-dimensional coordinates of the origin of the target coordinate system in the robot arm coordinate system; The three-dimensional coordinates of the osteotomy boundary point in the target coordinate system are calculated according to the inverse matrix of the rotation matrix and the difference.

14. An osteotomy control system, It is characterized in that It comprises an osteotomy robot and a mechanical arm in communication with the osteotomy robot, wherein an end tool is installed at the end of the mechanical arm, and the end tool is used to perform osteotomy operation under the control of the osteotomy robot; Wherein, the osteotomy robot is specifically used for: Determine multiple osteotomy boundary points; Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries; Controlling the end tool to perform osteotomy, and obtaining position information of the end tool during the osteotomy process; Determining the position of the end point of the end tool according to the position information of the end tool; Dividing the osteotomy area into a plurality of angle areas, any of the angle areas being an area corresponding to a straight osteotomy boundary or a circular osteotomy boundary; Determining a target area where the endpoint is located according to the position of the endpoint; Identify that the target area where the endpoint is located is inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary; If the endpoint is located outside the straight osteotomy boundary or the arc osteotomy boundary, the robot arm is controlled to move to drive the endpoint to move inside the straight osteotomy boundary or the arc osteotomy boundary to prevent the end tool from exceeding the osteotomy boundary.

15. An osteotomy device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the following steps are implemented: Determine multiple osteotomy boundary points; Based on the plurality of osteotomy boundary points, an osteotomy boundary is generated, wherein the osteotomy boundary is formed by alternatingly connecting a plurality of straight osteotomy boundaries and a plurality of arc osteotomy boundaries; During the osteotomy process, obtaining position information of a tool at the end of the robotic arm used for osteotomy; Determining the position of the end point of the end tool according to the position information of the end tool; Dividing the osteotomy area into a plurality of angle areas, any of the angle areas being an area corresponding to a straight osteotomy boundary or a circular osteotomy boundary; Determining a target area where the endpoint is located according to the position of the endpoint; Identify that the target area where the endpoint is located is inside or outside the corresponding straight line osteotomy boundary or arc osteotomy boundary; If the endpoint is located outside the straight osteotomy boundary or the arc osteotomy boundary, the robot arm is controlled to move to drive the endpoint to move inside the straight osteotomy boundary or the arc osteotomy boundary.