Method, device and equipment for controlling movement of end tool and storage medium
By determining the planned control position of the end effector and selecting the nearest neighbor position of the target on the outer surface of the motion constraint model for control, the problem of frequent power failure of the end effector outside the motion constraint model is solved, thus improving the smoothness and efficiency of surgical operations.
Patent Information
- Application Number
- CN202310477219.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-27
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-04-27
AI Technical Summary
In existing technologies, robotic end-effectors frequently lose power when outside of motion-restricted models, leading to unsmooth surgical procedures and low efficiency.
By obtaining the planned control position of the end effector, it is determined whether it is outside the motion constraint model. If it is outside, the target nearest neighbor position of the pixel on the outer surface of the motion constraint model is selected, and motion control is performed based on that position to prevent the end effector from going beyond the model.
This effectively prevents the end-effector from being pushed out of the motion-restricted model, improving the smoothness and efficiency of surgical procedures and reducing the problem of frequent power outages.
Smart Images

Figure CN116712169B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of robot motion control, and more particularly to a motion control method, apparatus, device, and storage medium for an end effector. Background Technology
[0002] When using robots for joint replacement surgery, the safety requirements for the robots are extremely high. The robot's end effector must always move within a motion-limited model. For example, in single ankle replacement surgery, when grinding the distal femoral face, the end effector needs to be confined to a three-dimensional fan-shaped area to prevent it from exceeding this area and causing additional harm to the patient.
[0003] To ensure the end-effector remains within the motion constraint model, its position needs to be controlled in real time. In existing technologies, when the robot detects the end-effector has exceeded the motion constraint model, it first de-energizes the end-effector. Once the robot manually guides it back within the model, it re-energizes the end-effector to resume movement. However, this method only prevents the end-effector from moving outside the model when it has already exceeded it, leading to frequent power-on / off cycles. This inconveniences the user and reduces the smoothness and efficiency of the surgery. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a motion control method, apparatus, device, and storage medium for an end effector.
[0005] In a first aspect, this disclosure provides a motion control method for an end-effector tool, the method comprising:
[0006] Obtain the planning and control position of the end-point tool in the current cycle;
[0007] If it is determined that the planned control position is outside the motion constraint model of the bone to be ground, then the target nearest neighbor position of the planned control position is selected from the outer surface pixels of the motion constraint model, wherein the distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0008] The motion control of the end effector is performed based on the target's nearest neighbor location.
[0009] Secondly, this disclosure provides a motion control device for an end-effector, the device comprising:
[0010] The acquisition module is used to acquire the planning and control position of the end-point tool in the current cycle;
[0011] The selection module is used to select a target nearest neighbor position of the planned control position from the outer surface pixels of the motion restriction model if it is determined that the planned control position is outside the motion restriction model of the bone to be ground. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0012] A motion control module is used to control the motion of the end effector based on the target's nearest neighbor position.
[0013] Thirdly, embodiments of this disclosure also provide an electronic device, the device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When one or more programs are executed by one or more processors, the one or more processors implement the methods provided in the first aspect.
[0017] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method provided in the first aspect.
[0018] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0019] This disclosure discloses a method, apparatus, device, and storage medium for controlling the motion of an end-effector tool. The method involves acquiring the planned control position of the end-effector tool in the current cycle. If the planned control position is determined to be outside the motion constraint model of the bone to be ground, a target nearest neighbor position is selected from the outer surface pixels of the motion constraint model. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position. Motion control of the end-effector tool is then performed based on the target nearest neighbor position. Therefore, during the movement of the end-effector tool, if the planned control position is outside the motion constraint model, the pixel closest to the planned control position is selected from the outer surface pixels of the motion constraint model, and the end-effector tool's movement is controlled based on this closest pixel. This prevents the end-effector tool from being pushed out of the motion constraint model, thus avoiding frequent power interruptions and improving the smoothness and efficiency of the surgical operation. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A schematic flowchart illustrating a motion control method for an end-effector provided in this embodiment of the present disclosure;
[0023] Figure 2 This is a schematic diagram of the positional state of an end effector provided in an embodiment of the present disclosure;
[0024] Figure 3 This is a schematic diagram illustrating the positional state of another end-effector provided in an embodiment of the present disclosure;
[0025] Figure 4 A flowchart illustrating another motion control method for an end-effector provided in this embodiment of the present disclosure;
[0026] Figure 5 A flowchart illustrating another motion control method for an end-effector provided in this disclosure embodiment;
[0027] Figure 6 A geometrical schematic diagram provided for an embodiment of this disclosure;
[0028] Figure 7 A schematic diagram of the structure of a motion control device for an end-effector provided in an embodiment of this disclosure;
[0029] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0030] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0031] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0032] To ensure the smoothness and efficiency of the surgical procedure, the following will be combined with... Figures 1 to 6The motion control method for an end-effector provided in this disclosure is described. In this disclosure, the motion control method for the end-effector can be executed by an electronic device. The electronic device may include devices with communication capabilities such as tablet computers, desktop computers, and laptop computers, or it may include devices simulated by virtual machines or simulators.
[0033] Figure 1 A schematic flowchart of a motion control method for an end-effector provided in an embodiment of this disclosure is shown.
[0034] like Figure 1 As shown, the motion control method for this end-effector may include the following steps.
[0035] S110. Obtain the planning and control position of the end tool in the current cycle.
[0036] In this embodiment, when using the target robot for single ankle replacement surgery, the controller of the robot containing the end effector pre-sets the planned control position for the end effector for each cycle. When the controller controls the movement of the end effector in the current cycle, it obtains the planned control position of the end effector in the current cycle, so as to directly control the movement of the end effector based on the planned control position, or, based on the planned control position, determines the actual position that will not exceed the movement limit model of the femur, and controls the movement of the end effector based on the actual position, so that the end effector grinds the femur during the movement, thus advancing the surgical progress.
[0037] The end tool can be a saw or grinding head that can grind bones.
[0038] The planned control position is determined based on the external forces and torques acting on the end effector. Specifically, the external forces and torques acting on the end effector are used as input data for the admittance force control algorithm, which calculates the position of these forces and torques to obtain the planned control position.
[0039] S120. If it is determined that the planned control position is outside the motion constraint model of the bone to be ground, then select the target nearest neighbor position of the planned control position from the outer surface pixels of the motion constraint model. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0040] Understandably, if it is determined that the planned control position is outside the motion constraint model, it means that when the end tool is controlled according to the planned control position, there is a risk that the end tool will exceed the motion constraint model. Therefore, it is necessary to correct the planned control position and determine the nearest pixel of the planned control position among the pixels on the outer surface of the motion constraint model, thereby obtaining the target nearest neighbor position of the planned control position.
[0041] In this context, the bone to be ground can be the bone being ground by the end effector, and the motion restriction model is a three-dimensional model of the prosthetic joint. For example, in a single ankle replacement surgery, the bone to be ground is the femur, and the motion restriction model is a three-dimensional model of the femoral prosthesis.
[0042] Among them, the outer surface pixels refer to the pixels located on the outer surface triangular facets of the motion-constrained model.
[0043] In some embodiments, the process of determining whether the planned control position is located within the motion constraint model of the bone to be ground involves determining the spatial distribution range of the motion constraint model based on the coordinates of each pixel on the motion constraint model, and determining whether the planned control position is located outside the motion constraint model of the bone to be ground based on the planned control position and the spatial distribution range.
[0044] In some embodiments, for the process of determining whether the planned control position is located within the motion constraint model of the bone to be ground, an arbitrary ray is determined where the planned control position is located, and multiple triangles on the motion constraint model are obtained. Based on the number of intersections between the arbitrary ray and the multiple triangles, it is determined whether the planned control position is located outside the motion constraint model of the bone to be ground.
[0045] In some embodiments, the process of determining the target nearest neighbor position involves first determining the first coordinate data corresponding to the planned control position and the second coordinate data corresponding to each outer surface pixel in the coordinate system of the motion constraint model; then, based on the first and second coordinate data, calculating the distance between the planned control position and each outer surface pixel; next, obtaining the outer surface pixel with the smallest distance and using it as the target nearest neighbor position of the planned control position.
[0046] In some embodiments, the process of determining the target nearest neighbor location involves first obtaining predetermined nearest point selection conditions; then, based on the planned control position and the nearest point selection conditions, determining the target nearest neighbor pixels from the outer surface pixels of the motion constraint model, and taking the position corresponding to the target nearest neighbor pixel as the target nearest neighbor location.
[0047] For ease of understanding, Figure 2 A schematic diagram illustrating the positional state of an end effector is shown. For example... Figure 2As shown, the planned control position is located outside the motion restriction model. When the end effector performs motion control according to the planned control position, it will move outside the motion restriction model. Since the end effector has a grinding function, an end effector outside the motion restriction model will grind other bone or soft tissues besides the bone to be ground, thus causing additional harm to the patient. Therefore, when the planned control position is outside the motion restriction model, the planned control position needs to be corrected to determine the target nearest neighbor position.
[0048] Therefore, when the planned control position is determined to be outside the motion constraint model, the target nearest neighbor position corresponding to the planned control position can be determined, that is, the actual control position of the control end tool movement can be obtained, so as to realize the verification and correction of the planned control position. Furthermore, since the distance between the target nearest neighbor position and the planned control position is the minimum distance, the correction force is minimized to the greatest extent, ensuring the smoothness when changing from the planned control position to the target nearest neighbor position.
[0049] S130. Perform motion control on the end-effector based on the target's nearest neighbor location.
[0050] Understandably, since the target's nearest neighbor is a pixel on the outer surface of the motion-constrained model, the end effector can move along the outer surface of the motion-constrained model according to the target's nearest neighbor, without causing the end effector to be pushed out of the motion-constrained model.
[0051] This disclosure discloses a method for motion control of an end effector. The method involves obtaining the planned control position of the end effector in the current cycle. If the planned control position is determined to be outside the motion constraint model of the bone to be ground, a target nearest neighbor position is selected from the outer surface pixels of the motion constraint model. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel (excluding the pixel corresponding to the target nearest neighbor position) and the planned control position. Motion control of the end effector is then performed based on the target nearest neighbor position. Therefore, during the movement of the end effector, if the planned control position is outside the motion constraint model, the pixel closest to the planned control position is selected from the outer surface pixels of the motion constraint model, and the end effector movement is controlled based on this closest pixel. This prevents the end effector from being pushed out of the motion constraint model, thus avoiding frequent power interruptions and improving the smoothness and efficiency of the surgical procedure.
[0052] In other embodiments, after performing S110, the method further includes:
[0053] S140. If the planned control position is located within the motion constraint model, then the end tool is motion controlled based on the planned control position.
[0054] Understandably, if the planned control position is determined to be within the motion limitation model, it means that when the end-effector is controlled according to the planned control position, the end-effector will not exceed the motion limitation model. Therefore, there is no need to modify the planned control position, and the end-effector can be directly controlled based on the planned control position without causing additional harm to the patient.
[0055] For ease of understanding, Figure 3 A schematic diagram illustrating the positional status of another end effector is shown. For example... Figure 3 As shown, the planned control position is located within the motion restriction model. When the end tool performs motion control according to the planned control position, the end tool will move within the motion restriction model. Since the end tool has a grinding function, the end tool within the motion restriction model will grind the bone to be ground, thereby advancing the progress of the joint replacement surgery.
[0056] In another embodiment of this disclosure, the following examples provide a specific explanation of determining whether the planned control position is outside the motion restriction model.
[0057] Figure 4 A flowchart illustrating another motion control method for an end-effector provided in an embodiment of this disclosure is shown.
[0058] like Figure 4 As shown, the motion control method for this end-effector may include the following steps.
[0059] S410. Obtain the planning and control position of the end tool in the current cycle.
[0060] S410 is similar to S110, so it will not be described in detail here.
[0061] S420. Determine any current ray that has passed through the planned control position and obtain all triangles in the motion constraint model.
[0062] Specifically, for the current ray, in the coordinate system where the planned control position and motion constraint model are located, starting from an arbitrary starting point O, the current ray is drawn along an arbitrary direction D. Assuming the current ray passes through the planned control position P, the expression for determining the current ray based on the starting point O, direction D, and planned control position P is:
[0063] P = O + tD Formula (1)
[0064] Where t is the step size corresponding to the current ray.
[0065] Specifically, for any triangle in the motion constraint model, assuming the three vertices of the triangle are V1, V2, and V3, the weight of V2 is u, the weight of V3 is v, and the weight of V1 is 1-uv, assuming the planned control position P is in any triangle V1 V2 V3, then the parametric equation of the triangle is:
[0066] P=(1-uv)×V1+u×V2+v×V3 Formula (2)
[0067] S430. Determine whether the current ray intersects with at least one triangle.
[0068] In practice, each triangle in the motion constraint model is traversed, and the intersection of the current ray with each triangle is determined, thereby obtaining at least one triangle that intersects with the current ray.
[0069] In this embodiment of the disclosure, optionally, S430 specifically includes: determining the step size corresponding to the current ray and the weight corresponding to each vertex of the triangle based on the planned control position, the starting point and direction of the current ray, and the vertices of each triangle; and determining whether the current ray intersects with at least one triangle based on the step size corresponding to the current ray and the weight corresponding to each vertex of the triangle.
[0070] Specifically, by combining the formula (1) corresponding to the current ray and the formula (2) corresponding to the triangle parametric equation, we obtain the following formula:
[0071]
[0072] Furthermore, given E1 = V2 - V1, E2 = V3 - V1, and T = O - V1, then according to Cramer's rule and the vector product formula, we can obtain the following formula:
[0073]
[0074] Based on formula (4), if we solve for u>=0, v>=0, u+v<=1, then we determine that the current ray intersects with at least one triangle. Furthermore, we determine the position of the intersection point based on the value of t, and then determine the number of intersection points. This gives us the number of intersection points between the current ray and at least one triangle.
[0075] Furthermore, if the current ray intersects with at least one triangle, then execute S440; otherwise, terminate.
[0076] S440. Based on the number of intersections between the current ray and at least one triangle, determine whether the planned control position is outside the motion constraint model.
[0077] In this embodiment, optionally, S440 specifically includes: if the number of intersection points is even, then the planning control position is determined to be outside the motion restriction model; if the number of intersection points is odd, then the planning control position is determined to be inside the motion restriction model.
[0078] Understandably, since rays are unidirectional, if the planned control position is outside the motion constraint model, the number of intersections between the current ray passing through the planned control position and at least one triangle is even. Conversely, if the number of intersections is even, it can be directly determined that the planned control position is outside the motion constraint model. Similarly, since rays are unidirectional, if the planned control position is inside the motion constraint model, the number of intersections between the current ray passing through the planned control position and at least one triangle is odd. Conversely, if the number of intersections is odd, it can be directly determined that the planned control position is inside the motion constraint model.
[0079] Furthermore, if the planned control location is outside the motion constraint model, then execute S450; otherwise, execute S470.
[0080] S450. Select the target nearest neighbor position of the planned control position from the outer surface pixels of the motion constraint model, wherein the distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0081] S460: Motion control of the end-effector based on the target's nearest neighbor location.
[0082] S470, Motion control of the end-effector based on the planned control position.
[0083] The specific implementation of S450 to S470 can be referred to the description of the foregoing embodiments.
[0084] In yet another embodiment of this disclosure, the method for determining the location of the target's nearest neighbors is explained in detail through the following examples.
[0085] Figure 5 A flowchart illustrating another motion control method for an end-effector provided in this disclosure is shown.
[0086] like Figure 5 As shown, the motion control method for this end-effector may include the following steps.
[0087] S510, Obtain the planning and control position of the end tool in the current cycle.
[0088] S510 is similar to S110, so it will not be described in detail here.
[0089] S520. If it is determined that the planned control position is outside the motion constraint model of the bone to be ground, then determine any target triangle from multiple triangles and determine the selection conditions for the nearest points of the target triangle.
[0090] The outer surface pixels of the motion-constrained model include pixels on multiple triangles.
[0091] Here, the target triangle refers to any one of multiple triangles. Optionally, the target triangle can be the triangle closest to the planned control position, or it can be the triangle containing the planned control position.
[0092] The nearest point selection criterion refers to the filtering criteria used to determine the nearest neighbor pixels of the target from the target triangle to determine the planning control position.
[0093] Optionally, the nearest neighbor selection criteria include one of the following: vertex domain selection criteria, edge domain selection criteria, and center domain selection criteria.
[0094] S530. Based on the nearest point selection conditions and the planned control position, determine the target nearest neighbor pixels from the pixels on the target triangle, and take the position corresponding to the target nearest neighbor pixel as the target nearest neighbor position.
[0095] Among them, the distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0096] In some embodiments, S530 specifically includes: if the planned control position satisfies the vertex domain selection condition in the nearest point selection condition, then the target vertex among the pixels on the target triangle is taken as the target nearest neighbor pixel.
[0097] The process of determining whether the planned control position meets the vertex domain selection criteria specifically includes: selecting a target vertex from the target triangle, determining the first and second sides containing the target vertex; determining a first line segment based on the target vertex and the planned control position; if the first angle between the first line segment and the first side is greater than a first preset angle, and the second angle between the first line segment and the second side is greater than the first preset angle, then the planned control position is determined to meet the vertex domain selection criteria. Further, the target vertex is considered as the target's nearest neighbor pixel. Optionally, the first preset angle is 90°.
[0098] For ease of understanding, see Figure 6The geometric diagram shows the process of selecting a target vertex a from the target triangle abc, determining the first side ab and the second side ac containing vertex a; determining the first line segment Pa based on vertex a and the planned control position P; if the first angle between the first line segment Pa and the first side ab is greater than 90°, and the second angle between the first line segment Pa and the second side ac is greater than 90°, then the planned control position P satisfies the vertex domain selection condition. Furthermore, vertex a is considered as the target's nearest neighbor pixel.
[0099] In some other embodiments, S530 specifically includes: if the planned control position satisfies the boundary selection condition in the nearest point selection condition, then the edge projection point of the pixel point on the target triangle is taken as the target nearest neighbor pixel, wherein the edge projection point is the projection point of the planned control position on the nearest edge of the target triangle.
[0100] The process of determining whether the planned control position meets the boundary selection criteria includes: selecting a neighboring edge from the target triangle; constructing a current triangle based on the neighboring edge and the planned control position; and determining that the planned control position meets the boundary selection criteria if the angle between the first normal of the current triangle and the second normal of the target triangle is greater than a second preset angle. Further, the planned control position is projected onto the neighboring edge of the target triangle, and the resulting projection point is used as the edge projection point, which is then used as the target's nearest neighbor pixel. Optionally, the second preset angle is 90°.
[0101] For better understanding, please continue to refer to [link / reference]. Figure 6 First, select a neighboring edge ab from the target triangle abc. Then, construct the current triangle Pab based on the neighboring edge ab and the planned control position P. If the angle between the first normal n1 of the current triangle Pab and the second normal n2 of the target triangle abc is greater than 90°, then the planned control position P is determined to satisfy the boundary selection condition. Further, project the planned control position P onto the neighboring edge ab of the target triangle to obtain the edge projection point r1, and use the edge projection point r1 as the target's nearest neighbor pixel.
[0102] In some other embodiments, S530 specifically includes: if the planned control position satisfies the center domain selection condition in the neighbor point selection condition, then the center projection point among the pixels on the target triangle is taken as the target nearest neighbor pixel, wherein the center projection point is the projection point of the planned control position within the target triangle.
[0103] Specifically, determining whether the planned control position meets the center domain selection criteria includes: drawing a perpendicular line from the planned control position to the target triangle; if the perpendicular point is located inside the target triangle, it indicates that the planned control position meets the center domain selection criteria, and the perpendicular point is taken as the target's nearest neighbor pixel.
[0104] For better understanding, please continue to refer to [link / reference]. Figure 6Draw a normal line n3 from the planned control position P to the target triangle abc. If the perpendicular point r2 is located inside the target triangle, it means that the planned control position P satisfies the central region selection condition, and the perpendicular point r2 is taken as the target nearest neighbor pixel.
[0105] Therefore, based on the planned control position and the nearby point selection conditions, the target nearest neighbor pixels of any target triangle in the motion constraint model can be accurately determined from the vertex domain, edge domain, or center domain of the planned control position, thus ensuring the accuracy of the target nearest neighbor pixels.
[0106] S540: Motion control of the end-effector based on the target's nearest neighbor location.
[0107] S540 is similar to S130, so it will not be described in detail here.
[0108] This disclosure also provides a motion control device for an end-effector tool to implement the above-described motion control method, which is described below in conjunction with... Figure 7 The following description is provided. In this embodiment, the motion control device of the end effector can be an electronic device. This electronic device can include devices with communication capabilities such as tablet computers, desktop computers, and laptop computers, or it can include devices simulated by virtual machines or simulators.
[0109] Figure 7 A schematic diagram of the structure of a motion control device for an end-effector provided in an embodiment of this disclosure is shown.
[0110] like Figure 7 As shown, the motion control device 700 for the end tool may include:
[0111] The acquisition module 710 is used to acquire the planning and control position of the end tool in the current cycle;
[0112] The selection module 720 is used to select a target nearest neighbor position of the planned control position from the outer surface pixels of the motion restriction model if it is determined that the planned control position is outside the motion restriction model of the bone to be ground. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position.
[0113] The motion control module 730 is used to control the motion of the end tool based on the target's nearest neighbor position.
[0114] This disclosure discloses a motion control device for an end effector. The device acquires the planned control position of the end effector in the current cycle. If the planned control position is determined to be outside the motion constraint model of the bone to be ground, a target nearest neighbor position is selected from the outer surface pixels of the motion constraint model. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel (excluding the pixel corresponding to the target nearest neighbor position) and the planned control position. Motion control of the end effector is then performed based on the target nearest neighbor position. Therefore, during the movement of the end effector, if the planned control position is outside the motion constraint model, the pixel closest to the planned control position is selected from the outer surface pixels of the motion constraint model, and the end effector movement is controlled based on this closest pixel. This prevents the end effector from being pushed out of the motion constraint model, thus avoiding frequent power interruptions and improving the smoothness and efficiency of the surgical operation.
[0115] In some embodiments of this disclosure, the device further includes:
[0116] The determination module is used to determine any current ray passing through the planned control position and to obtain all triangles in the motion constraint model;
[0117] The first judgment module is used to determine whether the current ray intersects with at least one triangle;
[0118] The second judgment module is used to determine whether the planned control position is outside the motion restriction model based on the number of intersection points between the current ray and at least one triangle if the current ray intersects with at least one triangle.
[0119] In some embodiments of this disclosure, the first determination module includes:
[0120] The first determining unit is used to determine the step size corresponding to the current ray and the weight corresponding to each vertex of the triangle based on the planning control position, the starting point and direction of the current ray, and the vertices of each triangle.
[0121] The second determining unit is used to determine whether the current ray intersects with at least one triangle based on the step size corresponding to the current ray and the weights corresponding to the vertices of each triangle.
[0122] In some embodiments of this disclosure, the second determination module includes:
[0123] The third determining unit is used to determine that the planning control position is outside the motion restriction model if the number of intersection points is even.
[0124] The fourth determining unit is used to determine that the planning control position is located within the motion restriction model if the number of intersection points is odd.
[0125] In some embodiments of this disclosure, the outer surface pixels of the motion-limiting model include pixels on a plurality of triangles; the selection module 720 includes:
[0126] The fifth determining unit is used to determine any one target triangle from the plurality of triangles and to determine the selection conditions for the nearest points of the target triangle;
[0127] The sixth determining unit is used to determine the target nearest neighbor pixel from the pixels on the target triangle based on the nearest point selection conditions and the planning control position, and to take the position corresponding to the target nearest neighbor pixel as the target nearest neighbor position.
[0128] In some embodiments of this disclosure, the sixth determining unit is specifically used for:
[0129] If the planned control position satisfies the vertex domain selection condition in the nearest point selection condition, then the target vertex among the pixels on the target triangle is taken as the target nearest neighbor pixel;
[0130] If the planned control position satisfies the boundary selection condition in the nearest point selection condition, then the edge projection point of the pixel in the target triangle is taken as the target nearest neighbor pixel, wherein the edge projection point is the projection point of the planned control position on the adjacent edge of the target triangle;
[0131] If the planned control position satisfies the center domain selection condition in the nearest point selection condition, then the center projection point of the pixels on the target triangle is taken as the target nearest neighbor pixel, wherein the center projection point is the projection point of the planned control position within the target triangle.
[0132] In some embodiments of this disclosure, the device further includes:
[0133] The control module is used to perform motion control on the end effector based on the planned control position if it is determined that the planned control position is within the motion restriction model.
[0134] It should be noted that, Figure 7 The motion control device 700 of the end tool shown can perform... Figures 1 to 6 The various steps in the method embodiment shown are implemented. Figures 1 to 6 The processes and effects in the method embodiments shown are not described in detail here.
[0135] Figure 8A schematic diagram of an electronic device provided in an embodiment of this disclosure is shown. This electronic device can be a controller for the target robot mentioned in the above embodiments.
[0136] like Figure 8 As shown, the electronic device may include a processor 801 and a memory 802 storing computer program instructions.
[0137] Specifically, the processor 801 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0138] Memory 802 may include a mass storage device for information or instructions. For example, and not limitingly, memory 802 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 802 may include removable or non-removable (or fixed) media. Where appropriate, memory 802 may be internal or external to the integrated gateway device. In a particular embodiment, memory 802 is a non-volatile solid-state memory. In a particular embodiment, memory 802 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0139] The processor 801 reads and executes computer program instructions stored in the memory 802 to perform the steps of the motion control method for the end-effector provided in this embodiment of the present disclosure.
[0140] In one example, the electronic device may also include a transceiver 803 and a bus 804. Wherein, as... Figure 8 As shown, the processor 801, memory 802 and transceiver 803 are connected via bus 804 and communicate with each other.
[0141] Bus 804 includes hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 804 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0142] The following are embodiments of a computer-readable storage medium provided in this disclosure. This computer-readable storage medium and the motion control methods for end-effectors in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the computer-readable storage medium, please refer to the embodiments of the motion control methods for end-effectors described above.
[0143] This embodiment provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a motion control method for an end effector, the method comprising:
[0144] Obtain the planning and control position of the end-point tool in the current cycle;
[0145] If it is determined that the planned control position is outside the motion constraint model of the bone to be ground, then the target nearest neighbor position of the planned control position is selected from the outer surface pixels of the motion constraint model, wherein the distance between the target nearest neighbor position and the planned control position is less than the distance between any other outer surface pixel and the planned control position;
[0146] The motion control of the end effector is performed based on the target's nearest neighbor location.
[0147] Of course, the computer-executable instructions provided in the embodiments of this disclosure are not limited to the above-described method operations, but can also execute related operations in the motion control method of the end-effector provided in any embodiment of this disclosure.
[0148] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this disclosure can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer cloud platform (which may be a personal computer, server, or network cloud platform, etc.) to execute the motion control method of the end-effector provided in the various embodiments of this disclosure.
[0149] Note that the above description is merely a preferred embodiment and the technical principles employed in this disclosure. Those skilled in the art will understand that this disclosure is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this disclosure. Therefore, although this disclosure has been described in detail through the above embodiments, it is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this disclosure, and the scope of this disclosure is determined by the scope of the appended claims.
Claims
1. A motion control device for an end-effector, characterized in that, include: The acquisition module is used to acquire the planning and control position of the end-point tool in the current cycle; The selection module is used to select a target nearest neighbor position of the planned control position from the outer surface pixels of the motion restriction model if it is determined that the planned control position is outside the motion restriction model of the bone to be ground. The distance between the target nearest neighbor position and the planned control position is less than the distance between any outer surface pixel other than the pixel corresponding to the target nearest neighbor position and the planned control position. The outer surface pixels of the motion-limiting model include pixels on multiple triangles. Determine any one target triangle from the plurality of triangles, and determine the selection criteria for the nearest points of the target triangle; Based on the nearest point selection criteria and the planning control position, target nearest neighbor pixels are determined from the pixels on the target triangle, and the position corresponding to the target nearest neighbor pixel is taken as the target nearest neighbor position. If the planned control position satisfies the vertex domain selection condition in the nearest point selection condition, then the target vertex among the pixels on the target triangle is taken as the target nearest neighbor pixel; If the planned control position satisfies the boundary selection condition in the nearest point selection condition, then the edge projection point of the pixel in the target triangle is taken as the target nearest neighbor pixel, wherein the edge projection point is the projection point of the planned control position on the adjacent edge of the target triangle; If the planned control position satisfies the center domain selection condition in the nearest point selection condition, then the center projection point of the pixel points on the target triangle is taken as the target nearest neighbor pixel, wherein the center projection point is the projection point of the planned control position within the target triangle; Determining whether the planned control position satisfies the vertex domain selection condition includes: selecting the target vertex from the target triangle, determining the first side and the second side where the target vertex is located; determining a first line segment based on the target vertex and the planned control position; if the first angle between the first line segment and the first side is greater than a first preset angle, and the second angle between the first line segment and the second side is greater than the first preset angle, then it is determined that the planned control position satisfies the vertex domain selection condition. Determining whether the planned control position satisfies the boundary selection condition includes: selecting a neighboring edge from the target triangle; determining the current triangle based on the neighboring edge and the planned control position; if the angle between the first normal of the current triangle and the second normal of the target triangle is greater than a second preset angle, then determining that the planned control position satisfies the boundary selection condition. Determining whether the planned control position satisfies the center domain selection condition includes: drawing a perpendicular line from the planned control position to the target triangle; if the perpendicular point is located inside the target triangle, then the planned control position satisfies the center domain selection condition, and the perpendicular point is taken as the target nearest neighbor pixel; A motion control module is used to control the motion of the end effector based on the target's nearest neighbor position.
2. The apparatus according to claim 1, characterized in that, Also includes: The determination module is used to determine any current ray passing through the planned control position and to obtain all triangles in the motion constraint model; The first judgment module is used to determine whether the current ray intersects with at least one triangle; The second judgment module is used to determine whether the planned control position is outside the motion restriction model based on the number of intersection points between the current ray and the at least one triangle if the current ray intersects with the at least one triangle.
3. The apparatus according to claim 2, characterized in that, The step of determining whether the current ray intersects with at least one triangle includes: Based on the planned control position, the starting point and direction of the current ray, and the vertices of each triangle, determine the step size corresponding to the current ray and the weight corresponding to each vertex of the triangle. Based on the step size corresponding to the current ray and the weights corresponding to the vertices of each triangle, determine whether the current ray intersects with at least one triangle.
4. The apparatus according to claim 2, characterized in that, The step of determining whether the planned control position is outside the motion constraint model based on the number of intersections between the current ray and the at least one triangle includes: If the number of intersection points is even, then the planning control position is determined to be outside the motion restriction model; If the number of intersection points is odd, then the planning control position is determined to be within the motion constraint model.
5. The apparatus according to any one of claims 1 to 4, characterized in that, Also includes: The control module is used to perform motion control on the end effector based on the planned control position if it is determined that the planned control position is within the motion restriction model.
6. An electronic device, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the functions of the apparatus according to any one of claims 1-5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, The storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the functions of the device according to any one of claims 1-5.
Citation Information
Patent Citations
Track planning method and device for mechanical arm
CN106041941A
Plane cutting control method and device and storage medium
CN115153734A
