Surgical robot far field motion and human-machine interaction admittance control method and system based on quadratic programming and robot
By constructing a telecentric motion constraint model and designing an admittance control law based on quadratic programming, the problem of telecentric motion and force interaction control in robot-assisted minimally invasive surgery was solved, realizing high-precision and fast-solving robotic arm motion control, ensuring the safety and accuracy of the surgery.
Patent Information
- Application Number
- CN202310614061.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-05-29
AI Technical Summary
In existing robot-assisted minimally invasive surgeries, it is difficult to achieve high-precision force interaction control while satisfying telecentric motion constraints, and existing methods are often computationally complex and difficult to solve quickly.
A quadratic programming-based approach is used to construct a telecentric motion-constrained kinematic model. Through kinematic decoupling and admittance modeling, an admittance control law is designed. The OSQP solver is used to solve the QP problem, thereby achieving compliant motion of the robotic arm during force interaction.
It achieves high-precision force interaction control while satisfying the centrifugal motion constraint, and has a fast solution speed. It can effectively prevent the endoscope from deviating from the expected puncture point, thus improving the accuracy and safety of the operation.
Smart Images

Figure CN116869654B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of robot-assisted minimally invasive surgery, specifically to a method, system, and robot for controlling the telecentric motion and human-machine interaction admittance of a surgical robot based on quadratic programming. Background Technology
[0002] The application of robotics in the medical field is increasing. Among the various applications of robotic systems for medical purposes, surgical robots have attracted particular attention in the robotics community. One of the most promising applications of surgical robots is in minimally invasive surgery. In minimally invasive surgery, slender surgical instruments are inserted through a puncture site in the patient's abdominal wall, and the surgeon manipulates the instruments from outside the abdominal cavity to complete the surgery. Compared with traditional surgery, minimally invasive surgery has advantages such as less trauma, faster recovery, and no scarring. By introducing robotics technology, the problem of surgeon fatigue and decreased performance caused by prolonged surgery in minimally invasive procedures can be mitigated. Robot-assisted minimally invasive surgery involves mounting slender surgical instruments on the end effector of a robot, which is controlled by the surgeon through manual operation or remote control settings. The advantage of the manual operation method is that the surgeon can directly sense the contact forces and torques between the robot and the environment through the surgical instruments, and therefore it is more popular in some cases.
[0003] In robot-assisted minimally invasive surgery, the movement of surgical instruments must conform to telecentric motion constraints to avoid harming the patient. Telecentric motion constraints refer to setting a fixed puncture point or a point on a given trajectory for the robotic arm in the workspace, and designing a motion control scheme so that the tool axis mounted at the end of the robotic arm passes through this point, rotates around this point, or translates along the axis during movement.
[0004] Designing robot control schemes involves kinematic inverse problems. The corresponding joint variables of the robot controller need to be designed based on the desired state of the end effector in the task space. Existing kinematic control laws typically employ two design methods. One method is to optimize robot motion in the null space of the Jacobian matrix by calculating the pseudo-inverse of the Jacobian matrix. The other method represents the control system as an optimization problem, such as the QP problem, which can combine the robot's optimization objective and motion constraints. Generally, it is difficult to concretely express the optimization objective and motion constraints in methods based on the Jacobian pseudo-inverse, while the QP method can explicitly represent the optimization objective and motion constraints. Therefore, the QP method is often more intuitive than the Jacobian pseudo-inverse-based method. Based on this, this paper focuses on a QP-based scheme, which includes a telecentric motion constraint method and a force interaction control method.
[0005] To achieve better human-computer interaction, this invention designs a surgical robot telecentric motion and human-computer interaction admittance control method based on quadratic programming. This scheme enables the robotic arm to output joint angular velocity to drive the robotic arm during force interaction, thereby achieving compliant motion and configuration transformation of the robot while satisfying the telecentric motion constraint. Summary of the Invention
[0006] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, system and robot for controlling the telecentric motion and human-computer interaction admittance of a surgical robot based on quadratic programming. This invention can output joint velocities to the robotic arm according to the force applied by the user and the telecentric motion constraints, and has high positioning accuracy, fast solution speed and no training required.
[0007] To achieve the above-mentioned objectives, the technical solution adopted is as follows:
[0008] In a first aspect, the present invention provides a method for controlling the telecentric motion and human-computer interaction admittance of a surgical robot based on quadratic programming, comprising the following steps:
[0009] Step 1: Construct a telecentric motion-constrained kinematic model, specifically based on the telecentric motion point p. rcm Point, robotic arm flange position p r Point and tool axis end p t The three points are collinear, therefore the point of centrocentric motion is determined by p. rcm =p r +λ(p t -p r The value is determined, where λ is the scaling factor; the error is defined as e = p. rcm -p c Design a first-order system Where p c The location of the puncture point is γ, and the error gain is γ. This represents the error derivative. By adjusting the error gain, the first-order system converges to the equilibrium point, i.e. When e = 0; transforming the formula for the centroidal motion point, we obtain the centroidal motion velocity must satisfy... Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we obtain Expressions for joint angular velocity and extension / contraction velocity J rcm Jacobi represents the point of centripetal motion. This represents the joint angular velocity and the extension / contraction velocity, where Indicates joint angular velocity, Indicates the speed of expansion and contraction; combine the above two... The expression yields the final expression for the telecentric motion constraint as follows:
[0010]
[0011] Step 2: Kinematically decouple the velocities in the constrained space and free space. Specifically, construct a free motion space decoupled from the telecentric motion constrained space, and map the six-dimensional force applied by the user into the free motion space; the attitude of the robotic arm flange relative to the base coordinate system is represented as R. r =[a t o r n r ], where a r ,n r ,o r Let B represent the coordinate axes of the flange coordinate system, and let B represent the basis vectors of the flange plane. c =[a r o r This indicates that the flange plane is aligned with the tool axis n. r Vertical, that is The velocity of the constrained space is defined as in The Jacobian of the constraint space and the joint space is represented; the Jacobian of the free space is defined by finding the null basis matrix of the constraint space Jacobian A, and the two have...
[0012] AZ T The relationship of 0 is used to calculate the free space velocity by mapping the joint angular velocity through Z. Where W is the expected inertia matrix in the joint space;
[0013] Step 3: Based on the kinematic decoupling method in Step 2, construct an admittance model for force interaction. When an external force is applied to the tool axis, it is expected that the robotic arm can achieve motion following the external force within the free space velocity. Therefore, for the free space velocity... The designed admittance control law is:
[0014]
[0015] in D represents free space acceleration. f It is the admittance coefficient, J T F represents the transpose of the joint space Jacobi. h It is the applied external force;
[0016] Step 4: Design a force interaction optimization scheme based on quadratic programming under telecentric motion constraints. Through equivalent transformation, the above formula is transformed into equality constraints and a minimization objective function, as shown below:
[0017]
[0018]
[0019]
[0020] In free space, the difference between the expected velocity of the admittance model and the current velocity is used as the objective function, i.e., the optimization objective is to minimize the function. Where C = [ZW 0], The desired free-space velocity is calculated based on the admittance model; it is constrained by the equality constraints derived from the telecentric motion constraints.
[0021] Step 5: Solve the optimal solution to the QP problem in Step 3. This allows us to obtain the joint speed of the robotic arm.
[0022] Step Six: Apply the solution results from Step Five. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under force interaction.
[0023] As a preferred technical solution, in step one, under the condition of strictly satisfying the telecentric motion constraint, the position of the telecentric motion point and the puncture point completely coincide, i.e., p rcm =p c .
[0024] As a preferred technical solution, in step three, considering the joint speed limit constraint and the joint limit constraint, a control scheme for the telecentric motion and human-machine interaction admittance of the surgical robot based on quadratic programming is established, so that the robotic arm can achieve compliant motion according to the force applied by the user and satisfy the telecentric motion constraint.
[0025] As a preferred technical solution, in step four, the double-ended constraint x considering the joint speed limit and the extension / retraction limit is considered. - < in:
[0026]
[0027]
[0028] in Indicates joint velocity. Indicates the expansion / contraction rate, η + and η - These represent the upper and lower limits of joint position and range of motion, respectively. and These represent the upper and lower limits of joint velocity and extension / retraction velocity, respectively:
[0029] h1(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ1) / ξ3)) 2 ))2
[0030] h2(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ2) / ξ4)) 2 )) 2
[0031] ξ1=η - +β1(η + -η - ), ξ2=η + -β2(η + -η - ), ξ3=η - -ξ1,ξ4=η + -ξ2, β1, β2 ∈ [0, 1].
[0032] As a preferred technical solution, in step five, the OSQP quadratic programming solver is used to solve the optimal solution of the QP problem in step three.
[0033] Secondly, the present invention provides a control system for the telecentric motion and human-machine interaction admittance of a surgical robot based on quadratic programming, which is applied to the control method for the telecentric motion and human-machine interaction admittance of a surgical robot based on quadratic programming, including a telecentric motion constraint module, a kinematic decoupling module, an admittance model module, an optimal control transformation module, a quadratic programming problem solving module, and a robotic arm drive module.
[0034] The telecentric motion setting module is used to construct a telecentric motion-constrained kinematic model, specifically: based on the telecentric motion point p rcm Point, robotic arm flange position p r Point and tool axis end p t The three points are collinear, therefore the point of centrocentric motion is determined by p. rcm =p r +λ(p t -p r The value is determined, where λ is the scaling factor; the error is defined as e = p. rcm -p c Design a first-order system Where p c The location of the puncture point is γ, and the error gain is γ. This represents the error derivative. By adjusting the error gain, the first-order system converges to the equilibrium point, i.e. When e = 0; transforming the formula for the point of centripetal motion, we obtain the centripetal velocity which must satisfy... Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we obtain Expressions for joint angular velocity and extension / contraction velocity J rcm Jacobi represents the point of centripetal motion. This represents the joint angular velocity and the extension / contraction velocity, where Indicates joint angular velocity, Indicates the speed of expansion and contraction; combine the above two... The expression yields the final expression for the telecentric motion constraint as follows:
[0035]
[0036] The kinematic decoupling module is used to kinematically decouple the velocities in the constrained space and the free space. Specifically, it constructs a free motion space that is kinematically decoupled from the telecentric motion constrained space, and maps the six-dimensional force applied by the user to the free motion space. The attitude of the robotic arm flange relative to the base coordinate system is represented by E. r =[a r o r n r ], where a r ,n r ,o r Let B represent the coordinate axes of the flange coordinate system, and let B represent the basis vectors of the flange plane. c =[a r o r This indicates that the flange plane is aligned with the tool axis n. r Vertical, that is The velocity of the constrained space is defined as in The Jacobian of the constraint space and the joint space is represented; the Jacobian of the free space is defined by finding the null basis matrix of the constraint space Jacobian A, and the two have AZ. T The relationship of 0 is used to calculate the free space velocity by mapping the joint angular velocity through Z. Where W is the expected inertia matrix in the joint space;
[0037] The admittance model module is used to construct a force interaction admittance model based on the kinematic decoupling method. When an external force is applied to the tool axis, it is expected that the robotic arm can achieve motion following the external force within the free space velocity. Therefore, for the free space velocity... The designed admittance control law is:
[0038]
[0039] in D represents free space acceleration. f It is the admittance coefficient, J T F represents the transpose of the joint space Jacobi. h It is the applied external force;
[0040] The optimal control transformation module is used to design a force interaction optimization scheme based on quadratic programming under telecentric motion constraints. Through equivalent transformation, the above formula is transformed into equality constraints and a minimization objective function, as shown below:
[0041]
[0042]
[0043]
[0044] In free space, the difference between the expected velocity of the admittance model and the current velocity is used as the objective function, i.e., the optimization objective is to minimize the function. Where C = [ZW 0], The desired free-space velocity is calculated based on the admittance model; it is constrained by the equality constraints derived from the telecentric motion constraints.
[0045] The quadratic programming problem-solving module is used to find the optimal solution to the QP problem. This allows us to obtain the joint speed of the robotic arm.
[0046] The robotic arm drive module is used to process the solution results from the quadratic programming problem solving module. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under the interaction of forces.
[0047] Thirdly, the present invention provides a robot, the robot comprising:
[0048] At least one processor; and,
[0049] A memory communicatively connected to the at least one processor; wherein,
[0050] The memory stores computer program instructions that can be executed by the at least one processor, which are executed by the at least one processor to enable the at least one processor to execute the described quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control method.
[0051] Compared with the prior art, the present invention has the following advantages:
[0052] This invention effectively overcomes the shortcomings of conventional techniques by constructing a telecentric motion-constrained kinematic model and considering the admittance model of force interaction between the user and the robotic arm. It establishes a quadratic programming-based control scheme for the telecentric motion and human-machine interaction admittance of a surgical robot. Mathematically, this scheme can be represented as a QP problem with a general form, including equations and double-ended constraints. Based on the telecentric motion constraints, equation constraints can be obtained; based on the admittance model, a minimization optimization objective can be obtained; considering joint limits, double-ended constraints can be obtained; and using an OSQP solver, the optimal solution to the QP problem can be obtained. This optimal solution is then used to drive the robotic arm's motion. This invention enables the robotic arm to achieve human-machine interaction admittance control at the velocity level while satisfying telecentric motion requirements, and it also prevents the endoscope held by the robot from deviating from the expected puncture point and the expected surgical area during interaction. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 This is a flowchart of a surgical robot telecentric motion and human-computer interaction admittance control method based on quadratic programming, according to an embodiment of the present invention.
[0055] Figure 2 This is a model diagram of the simulated Franka Emika Panda robotic arm according to an embodiment of the present invention.
[0056] Figure 3 This is a simulation of the telecentric motion constraint scenario of the Franka Emika Panda robotic arm in an embodiment of the present invention.
[0057] Figure 4 This is a force change diagram illustrating the simulated Franka Emika Panda robotic arm interacting with the user, as shown in this embodiment of the invention.
[0058] Figure 5 This is a diagram showing the torque variation during the force interaction between the simulated Franka Emika Panda robotic arm and the user, as described in an embodiment of the present invention.
[0059] Figure 6 This is a simulation diagram of the actual trajectory of the end effector of the Franka Emika Panda robotic arm under constrained joint angular velocities, as described in this embodiment of the invention. The telecentric motion point p... c The point remains unchanged.
[0060] Figure 7This is a diagram showing the telecentric motion error of the simulated Franka Emika Panda robotic arm under constrained joint angular velocities, according to an embodiment of the present invention, where the telecentric motion point p... c The point remains unchanged.
[0061] Figure 8 This is a simulation diagram of the Franka Emika Panda robotic arm in an embodiment of the present invention, showing the change in the angular position of the driven joint under constrained joint angular velocities, where the distal motion point p... c The point remains unchanged.
[0062] Figure 9 This is a simulation diagram of the Franka Emika Panda robotic arm in an embodiment of the present invention, showing the change in joint angular velocity under constrained joint angular velocity conditions, where the distal motion point p... c The point remains unchanged.
[0063] Figure 10 This is a simulation diagram of the actual trajectory of the end effector of the Franka Emika Panda robotic arm under constrained joint angular velocities, as described in this embodiment of the invention. The telecentric motion point p... c The point is time-varying.
[0064] Figure 11 This is a diagram showing the telecentric motion error of the simulated Franka Emika Panda robotic arm under constrained joint angular velocities, according to an embodiment of the present invention, where the telecentric motion point p... c The point is time-varying.
[0065] Figure 12 This is a simulation diagram of the Franka Emika Panda robotic arm in an embodiment of the present invention, showing the change in the angular position of the driven joint under constrained joint angular velocities, where the distal motion point p... c The point is time-varying.
[0066] Figure 13 This is a simulation diagram of the Franka Emika Panda robotic arm in an embodiment of the present invention, showing the change in joint angular velocity under constrained joint angular velocity conditions, where the distal motion point p... c The point is time-varying.
[0067] Figure 14 This is a schematic diagram of the structure of the surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming according to an embodiment of the present invention.
[0068] Figure 15 This is a schematic diagram of the robot according to an embodiment of the present invention. Detailed Implementation
[0069] To enable those skilled in the art to better understand the present application, the technical solution of the present invention will be clearly and completely described below with reference to the embodiments and accompanying drawings. It should be understood that the accompanying drawings are for illustrative purposes only and should not be construed as limiting the present patent. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.
[0070] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.
[0071] Example
[0072] like Figure 1 As shown, this embodiment is a method for controlling the telecentric motion and human-machine interaction admittance of a surgical robot based on quadratic programming. The method includes the following steps:
[0073] Step 1: Construct a centripetal motion-constrained kinematic model. During surgery, medical instruments such as endoscopes need to be inserted into the body through puncture points to perform surgical procedures. The position of this puncture point changes according to the rise and fall caused by the patient's breathing during the procedure. Therefore, the position and velocity of the puncture point can be represented as time-varying variables p. c (t) and The following is abbreviated as p c and The force sensor and endoscope are fixed in series on the robotic arm flange, and the position of the robotic arm flange relative to the base coordinate system is denoted as p. r Let p be a point on the tool axis. Assume there exists a virtual translation joint and its corresponding extension λ. The position of this joint relative to the base coordinate system is denoted as p. rcm The point, referred to below as the centroidal motion point. Because the centroidal motion point p... rcm Point, robotic arm flange position p r Point and tool axis end p t The three points are collinear, therefore the point of centrocentric motion can be determined by p. rcm =p r +λ(p t -p r ) is determined, where λ is the scaling factor.
[0074] Under strict conditions of centripetal motion constraint, the position of the centripetal motion point and the puncture point should completely coincide, i.e., p rcm =p c However, these two points cannot remain aligned at all times during the movement of the robotic arm. The error is defined as e = p. rcm -p c Design a first-order system Where γ is the error gain, and by using an appropriate gain, the system can converge to the equilibrium point, i.e. When e = 0. Transforming the above formula, we can obtain the requirement that the centripetal velocity must satisfy... Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we can obtain Expressions for joint angular velocity and extension / contraction velocity in The above two The final expression for the telecentric motion constraint can be obtained from the expression as follows:
[0075]
[0076] Step 2: Kinematically decouple the velocities in the constrained space and free space. To ensure the robotic arm can perform telecentric motion according to the external force applied by the user, a free motion space decoupled from the constrained telecentric motion space is constructed, mapping the six-dimensional force applied by the user to the free motion space. The attitude of the robotic arm flange relative to the base coordinate system is represented by R. r =[a r o r n r ], where a r ,n r ,o r Let B represent the coordinate axes of the flange coordinate system. The flange plane can be represented by the basis vector B. c =[a r o r This indicates that the flange plane is aligned with the tool axis n. r Vertical, that is The velocity of the constrained space is defined as in Let A denote the Jacobian of the constraint space and the joint space. The free space Jacobian Z can be defined by finding the null basis matrix of the constraint space Jacobian A, and the two have A and Z. T = 0. By mapping the joint angular velocity through Z, the free space velocity can be calculated. Where W is the desired inertia matrix in the joint space.
[0077] Step 3: Construct the admittance model module for force interaction. When an external force is applied to the tool axis, it is expected that the robotic arm can achieve motion following the external force within the free space velocity. Therefore, for the free space velocity... The designed admittance control law is:
[0078]
[0079] Where D f It is the admittance coefficient, F h It is the applied external force.
[0080] Step 4: Design a force interaction optimization scheme based on quadratic programming under telecentric motion constraints. Through equivalent transformation, the above formula can be transformed into equality constraints and minimization of the objective function, as shown below.
[0081]
[0082]
[0083]
[0084] In free space, the difference between the expected velocity of the admittance model and the current velocity is used as the objective function, i.e., the optimization objective is to minimize the function. Where C = [ZW 0], This represents the desired free-space velocity calculated based on the admittance model. It is constrained by the equality constraints derived from the telecentric motion constraints. Considering the dual constraints of joint velocity limit and extension / extension limit in
[0085]
[0086]
[0087] in Indicates joint velocity. Indicates the expansion / contraction rate, η + and η - These represent the upper and lower limits of joint position and range of motion, respectively. and These represent the upper and lower limits of joint velocity and extension / retraction velocity, respectively:
[0088] h1(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ1) / ξ3)) 2 )) 2
[0089] h2(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ2) / ξ4)) 2 )) 2
[0090] ξ1=η - +β1(η + -η - ), ξ2=η + -β2(η + -η - ), ξ3=η - -ξ1,ξ4=η + -ξ2, β1, β2 ∈ [0, 1]
[0091] Step 5: Use the quadratic programming solver OSQP to find the optimal solution to the QP problem in Step 3. This allows us to obtain the joint speed of the robotic arm.
[0092] Step Six: Apply the solution results from Step Five. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under force interaction.
[0093] like Figure 2 As shown, the robotic arm model consists of a first drive rod 1, a second drive rod 2, a third drive rod 3, a fourth drive rod 4, a fifth drive rod 5, a sixth drive rod 6, a seventh drive rod 7, a force sensor 8, and an endoscope 9.
[0094] like Figure 3 As shown, the scenario with telecentric motion constraints is described as follows, where the telecentric motion point p... rcm Point P is the insertion point of the robotic arm tool axis. r Point p represents the location of the robotic arm flange. t Point p is the end point of the tool axis. c The point is the puncture point.
[0095] like Figure 4 As shown, the dashed line F x dotted line F y solid line F z These represent the virtual forces acting on the simulated Franka Emika Panda robotic arm end effector in the X, Y, and Z directions, respectively.
[0096] like Figure 5 As shown, the dashed line τ x Point line τ y solid line τ z These represent the virtual torques experienced by the simulated Franka Emika Panda robotic arm end effector in the X, Y, and Z directions, respectively.
[0097] like Figure 6 As shown, the dashed line represents the actual trajectory of the simulated Franka Emika Panda robotic arm's end effector, and the black circle represents the telecentric motion point, which remains constant. The figure shows that the actual trajectory satisfies the telecentric motion constraint, indicating that this scheme can achieve precise control of the robotic arm's motion with minimal error.
[0098] like Figure 7 As shown, the curve illustrates the distance between the end effector axis and the puncture point of the simulated Franka Emika Panda robotic arm, with the telecentric motion point remaining constant. During the end effector's task execution, the telecentric motion error was less than 8 × 10⁻⁶. -6 The meter indicates that the robotic arm is able to meet the telecentric motion constraints during its movement.
[0099] like Figure 8 As shown, q1, q2, q3, q4, q5, q6, and q7 represent the joint angle positions of the first drive link 1, second drive link 2, third drive link 3, fourth drive link 4, fifth drive link 5, sixth drive link 6, and seventh drive link 7 of the simulated Franka Emika Panda robotic arm, respectively, while keeping the telecentric motion point unchanged. The upper limit of the joint angle is set to q. + =[166,101,166,-4,166,215,166] T Degrees, the lower limit of the joint angle is set to q. - = [-166,-101,-166,-176,-166,-1,-166] T During task execution, the joint angles of each drive rod can be guaranteed to change within a set range, demonstrating the effectiveness of this invention in handling inequality constraints in QP problems.
[0100] like Figure 9 As shown, where These represent the joint angular velocities of the first drive link 1, second drive link 2, third drive link 3, fourth drive link 4, fifth drive link 5, sixth drive link 6, and seventh drive link 7 of the simulated Franka Emika Panda robotic arm, with the telecentric motion point remaining constant. The upper limit of the joint angular velocity is set to... Radius / second, lower limit of joint angular velocity set to Radius per second. During task execution, the joint angular velocity of each drive link can be guaranteed to vary within a set range, demonstrating the effectiveness of this invention in handling inequality constraints in QP problems.
[0101] like Figure 10As shown, the dashed line represents the actual trajectory of the simulated Franka Emika Panda robotic arm's end effector, and the black circle represents the telecentric motion point, which is time-varying. The figure shows that the actual trajectory satisfies the telecentric motion constraint, indicating that this scheme can achieve precise control of the robotic arm's motion with minimal error.
[0102] like Figure 11 As shown, the curve illustrates the distance between the end effector axis and the puncture point of the simulated Franka Emika Panda robotic arm under time-varying conditions at the telecentric motion point. The telecentric motion error is less than 1 × 10⁻⁶ throughout the end effector's task execution. -5 The meter indicates that the robotic arm is able to meet the telecentric motion constraints during its movement.
[0103] like Figure 12 As shown, q1, q2, q3, q4, q5, q6, and q7 represent the joint angle positions of the first drive link 1, second drive link 2, third drive link 3, fourth drive link 4, fifth drive link 5, sixth drive link 6, and seventh drive link 7 of the simulated Franka Emika Panda robotic arm under time-varying conditions at the telecentric motion point. The upper limit of the joint angle is set to q. + =[166,101,166,-4,166,215,166] T Degrees, the lower limit of the joint angle is set to q. - = [-166,-101,-166,-176,-166,-1,-166] T During task execution, the joint angles of each drive rod can be guaranteed to change within a set range, demonstrating the effectiveness of this invention in handling inequality constraints in QP problems.
[0104] like Figure 13 As shown, where Let $\mathbf$ represent the joint angular velocities of the first drive link 1, second drive link 2, third drive link 3, fourth drive link 4, fifth drive link 5, sixth drive link 6, and seventh drive link 7 of the simulated Franka Emika Panda robotic arm under time-varying conditions at the telecentric motion point. The upper limit of the joint angular velocity is set to $\mathbf$. Radius / second, lower limit of joint angular velocity set to Radius per second. During task execution, the joint angular velocity of each drive link can be guaranteed to vary within a set range, demonstrating the effectiveness of this invention in handling inequality constraints in QP problems.
[0105] This invention establishes a novel quadratic programming-based scheme for the control of the telecentric motion and human-machine interaction admittance of a surgical robot by minimizing admittance control error and considering telecentric motion constraints and joint limit constraints. Mathematically, this scheme can be characterized as a QP problem with a general form and constraints containing equality and inequality equations. The optimal solution to the QP problem is obtained using an OSQP solver, and this optimal solution is ultimately used to drive the movement of the robotic arm.
[0106] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously.
[0107] Based on the same idea as the quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control method in the above embodiments, this invention also provides a quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control system. This system can be used to execute the above-described quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control method. For ease of explanation, the structural diagram of the embodiment of the quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control system only shows the parts related to the embodiments of this invention. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0108] like Figure 14 As shown, in another embodiment of this application, a surgical robot telecentric motion and human-computer interaction admittance control system 100 based on quadratic programming is provided, including a telecentric motion constraint module 101, a kinematic decoupling module 102, an admittance model module 103, an optimal control transformation module 104, a quadratic programming problem solving module 105, and a robotic arm drive module 106.
[0109] The telecentric motion setting module 101 is used to ensure that the tool axis of the robotic arm passes through the telecentric motion point p. c Under strict conditions of centripetal motion constraint, the position of the centripetal motion point and the puncture point should completely coincide, i.e., p rcm =p c However, these two points cannot remain aligned at all times during the movement of the robotic arm. The error is defined as e = p. rcm -p c Design a first-order system Where γ is the error gain, and by using an appropriate gain, the system can converge to the equilibrium point, i.e. When e = 0. Transforming the above formula, we can obtain the requirement that the centripetal velocity must satisfy... Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we can obtain Expressions for joint angular velocity and extension / contraction velocity in The above two The final expression for the telecentric motion constraint can be obtained from the expression as follows:
[0110]
[0111] The kinematic decoupling module 102 ensures that the robotic arm can perform telecentric motion based on the external force applied by the user, constructing a free motion space decoupled from the telecentric motion constraint space, and mapping the six-dimensional force applied by the user to the free motion space. The attitude of the robotic arm flange relative to the base coordinate system is represented by R. r =[a r o r n r ], where a r ,n r ,o r Let B represent the coordinate axes of the flange coordinate system. The flange plane can be represented by the basis vector B. c =[a r o r This indicates that the flange plane is aligned with the tool axis n. r Vertical, that is The velocity of the constrained space is defined as in Let A denote the Jacobian of the constraint space and the joint space. The free space Jacobian Z can be defined by finding the null basis matrix of the constraint space Jacobian A, and the two have A and Z. T = 0. By mapping the joint angular velocity through Z, the free space velocity can be calculated. Where W is the desired inertia matrix in the joint space.
[0112] The admittance model module 103 can obtain the dynamic model of the space of free motion as follows: in and Let D be the acceleration and velocity of free motion in space. f It is the admittance coefficient, F h It is the applied external force.
[0113] The optimal control conversion module 104 is used to construct a multi-task optimization scheme based on the velocity-force interaction motion and telecentric motion constraints of a specific robotic arm, which consists of an end effector and seven drive joints q1…q7. The designed QP optimization scheme is as follows:
[0114]
[0115]
[0116]
[0117] in Indicates joint velocity. Indicates the expansion / contraction rate, η + and η - These represent the upper and lower limits of joint position and extension / retraction, respectively, where λ is the extension / retraction of the tool axis, and p... c Point p is the point of centripetal motion. rcm Point P represents the three-dimensional coordinates of the point through which the tool axis passes. Under strict conditions of centripetal motion constraints, these two points should completely coincide, i.e., p rcm =p c However, in the actual movement of the robotic arm, these two points cannot be completely coincident. Therefore, the goal of the constraint is to make these two points coincide as much as possible.
[0118] The quadratic programming problem-solving module 105 is used to find the optimal solution to the QP problem. The optimal solution to the QP problem is obtained through the OSQP solver, thereby obtaining the joint angular velocities of the robotic arm.
[0119] The robotic arm drive module 106 is used to process the solution results from the quadratic programming problem solving module. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under the interaction of forces.
[0120] It should be noted that the surgical robot telecentric motion and human-machine interaction admittance control system based on quadratic programming of the present invention corresponds one-to-one with the surgical robot telecentric motion and human-machine interaction admittance control method based on quadratic programming of the present invention. The technical features and beneficial effects described in the embodiments of the surgical robot telecentric motion and human-machine interaction admittance control method based on quadratic programming are applicable to the embodiments of the surgical robot telecentric motion and human-machine interaction admittance control based on quadratic programming. For details, please refer to the description in the embodiments of the method of the present invention, which will not be repeated here.
[0121] Furthermore, in the above embodiments of the surgical robot telecentric motion and human-machine interaction admittance control system based on quadratic programming, the logical division of each program module is only an example. In actual applications, the above functions can be assigned to different program modules as needed, for example, for the sake of corresponding hardware configuration requirements or software implementation convenience. That is, the internal structure of the surgical robot telecentric motion and human-machine interaction admittance control system based on quadratic programming is divided into different program modules to complete all or part of the functions described above.
[0122] Please see Figure 15 In one embodiment, a robot is provided that implements a quadratic programming-based method for controlling the telecentric motion and human-machine interaction of a surgical robot. The robot 200 may include a first processor 201, a first memory 202, and a bus. It may also include a computer program stored in the first memory 202 and executable on the first processor 201, such as a quadratic programming-based method for controlling the telecentric motion and human-machine interaction of a surgical robot.
[0123] The first memory 202 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the first memory 202 can be an internal storage unit of the robot 200, such as the robot 200's portable hard drive. In other embodiments, the first memory 202 can also be an external storage device of the robot 200, such as a plug-in portable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the robot 200. Furthermore, the first memory 202 can include both internal storage units and external storage devices of the robot 200. The first memory 202 can be used not only to store application software and various types of data installed on the robot 200, such as the code of the motion planning and force interaction program 203 of the minimally invasive surgical robot under puncture point constraint, but also to temporarily store data that has been output or will be output.
[0124] In some embodiments, the first processor 201 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The first processor 201 is the control unit of the robot, connecting various components of the robot through various interfaces and lines. It executes programs or modules stored in the first memory 202 and calls data stored in the first memory 202 to perform various functions of the robot 200 and process data.
[0125] Figure 15 Only a robot with parts is shown; those skilled in the art will understand that... Figure 15 The structure shown does not constitute a limitation on the robot 200, and may include fewer or more parts than shown, or combine certain parts, or have different part arrangements.
[0126] The first memory 202 in the robot 200 stores a surgical robot telecentric motion and human-machine interaction admittance control program 203 based on quadratic programming, which is a combination of multiple instructions. When run in the first processor 201, it can achieve the following:
[0127] Step 1: Construct a centripetal motion-constrained kinematic model. During surgery, medical instruments such as endoscopes need to be inserted into the body through puncture points to perform surgical procedures. The position of this puncture point changes according to the rise and fall caused by the patient's breathing during the procedure. Therefore, the position and velocity of the puncture point can be represented as time-varying variables p. c (t) and The following is abbreviated as p c and The force sensor and endoscope are fixed in series on the robotic arm flange, and the position of the robotic arm flange relative to the base coordinate system is denoted as p. r Point, on the tool axis, assume there exists a virtual translation joint and its corresponding extension λ, the position of which relative to the base coordinate system is represented as p. rcm The point, referred to below as the centroidal motion point. Because the centroidal motion point p... rcm Point, robotic arm flange position p r Point and tool axis end p t The three points are collinear, therefore the point of centrocentric motion can be determined by p. rcm =p r +λ(p t -p r ) is determined, where λ is the scaling factor.
[0128] Under strict conditions of centripetal motion constraint, the position of the centripetal motion point and the puncture point should completely coincide, i.e., p rcm =p c However, these two points cannot remain aligned at all times during the movement of the robotic arm. The error is defined as e = p. rcm -p c Design a first-order system Where γ is the error gain, and by using an appropriate gain, the system can converge to the equilibrium point, i.e. When e = 0. Transforming the above formula, we can obtain the requirement that the centripetal velocity must satisfy... Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we can obtain Expressions for joint angular velocity and extension / contraction velocity in The above two The final expression for the telecentric motion constraint can be obtained from the expression as follows:
[0129]
[0130] Step 2: Kinematically decouple the velocities in the constrained space and free space. To ensure the robotic arm can perform telecentric motion according to the external force applied by the user, a free motion space decoupled from the constrained telecentric motion space is constructed, mapping the six-dimensional force applied by the user to the free motion space. The attitude of the robotic arm flange relative to the base coordinate system is represented by R. r =[a r o r n r ], where a r ,n r ,o r Let B represent the coordinate axes of the flange coordinate system. The flange plane can be represented by the basis vector B. c =[a r o r This indicates that the flange plane is aligned with the tool axis n. r Vertical, that is The velocity of the constrained space is defined as in Let A denote the Jacobian of the constraint space and the joint space. The free space Jacobian Z can be defined by finding the null basis matrix of the constraint space Jacobian A, and the two have A and Z. T = 0. By mapping the joint angular velocity through Z, the free space velocity can be calculated. Where W is the desired inertia matrix in the joint space.
[0131] Step 3: Construct the admittance model module for force interaction. When an external force is applied to the tool axis, it is expected that the robotic arm can achieve motion following the external force within the free space velocity. Therefore, for the free space velocity... The designed admittance control law is:
[0132]
[0133] Where D f It is the admittance coefficient, F h It is the applied external force.
[0134] Step 4: Design a force interaction optimization scheme based on quadratic programming under telecentric motion constraints. Through equivalent transformation, the above formula can be transformed into equality constraints and minimization of the objective function, as shown below.
[0135]
[0136]
[0137]
[0138] In free space, the difference between the expected velocity of the admittance model and the current velocity is used as the objective function, i.e., the optimization objective is to minimize the function. Where C = [ZW 0], This represents the desired free-space velocity calculated based on the admittance model. It is constrained by the equality constraints derived from the telecentric motion constraints. Considering the dual constraints of joint velocity limit and extension / extension limit in
[0139]
[0140]
[0141] in Indicates joint velocity. Indicates the expansion / contraction rate, η + and η - These represent the upper and lower limits of joint position and range of motion, respectively. and These represent the upper and lower limits of joint velocity and extension / retraction velocity, respectively:
[0142] h1(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ1) / ξ3)) 2 )) 2
[0143] h2(η(t))=(sin(0.5π(sin(0.5π(η(t)-ξ2) / ξ4)) 2 )) 2
[0144] ξ1=η - +β1(η + -η - ), ξ2=η + -β2(η + -η - ), ξ3=η - -ξ1,ξ4=η + -ξ2, β1, β2 ∈ [0, 1]
[0145] Step 5: Use the quadratic programming solver OSQP to find the optimal solution to the QP problem in Step 3. This allows us to obtain the joint speed of the robotic arm.
[0146] Step Six: Apply the solution results from Step Five. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under force interaction.
[0147] like Figure 2 As shown, the robotic arm model consists of a first drive rod 1, a second drive rod 2, a third drive rod 3, a fourth drive rod 4, a fifth drive rod 5, a sixth drive rod 6, and a seventh drive rod 7.
[0148] Furthermore, if the modules / units integrated into the robot 200 are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0149] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0150] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0151] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. A surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming, characterized in that, It includes a telecentric motion constraint module, a kinematic decoupling module, an admittance model module, an optimal control transformation module, a quadratic programming problem solving module, and a robotic arm drive module; The telecentric motion constraint module is used to construct a telecentric motion constraint kinematic model, specifically: based on the telecentric motion point Point, robotic arm flange position Points and tool shaft ends The three points are collinear, therefore the point of centrocentric motion is determined by... Confirmed, among which For scaling; define error Design a first-order system ,in Location of the puncture point. For error gain, This represents the error derivative. By adjusting the error gain, the first-order system converges to the equilibrium point, i.e. hour Transforming the formula for the centroidal motion point, we obtain the centroidal motion velocity that must satisfy... ; Considering the kinematic relationship between all joints and virtual joints of the robotic arm and the centripetal motion, we obtain Expressions for joint angular velocity and extension / contraction velocity ,in Jacobi represents the point of centripetal motion. This represents a vector containing joint angular velocity and extension / twist velocity, where , Indicates joint angular velocity, Indicates the speed of expansion and contraction; combine the above two... The expression yields the final formula for the telecentric motion constraint as follows: ; in, Speed at the puncture point; The kinematic decoupling module is used to kinematically decouple the velocities in the constrained space and the free space. Specifically, it constructs a free motion space decoupled from the telecentric motion constrained space and maps the six-dimensional force applied by the user to the free motion space. The attitude of the robotic arm flange relative to the base coordinate system is represented as follows: ,in These represent the coordinate axes of the flange coordinate system, and the flange plane is defined by the basis vectors. This indicates that the flange plane is aligned with the tool shaft. Vertical, that is The velocity of the constrained space is defined as... ,in , representing the Jacobian between the constraint space and the joint space; by finding the Jacobian of the constraint space The null basis matrix defines the free space Jacobi. Both have The relationship between the joint angular velocity and the joint angular velocity is transmitted through... Mapping to calculate free space velocity ,in It is the expected inertia matrix in joint space; The admittance model module is used to ensure that when an external force is applied to the tool axis, the robotic arm can follow the movement of the external force within the free space velocity range. Therefore, for the free space velocity... The formula for the design admittance control law is: in Represents free space acceleration. It is the admittance coefficient. This represents the transpose of the joint space Jacobi. It is the applied external force; The optimal control transformation module is used to design a force interaction optimization scheme based on quadratic programming under telecentric motion constraints. Through equivalent transformation, the above telecentric motion constraints and admittance control formulas are converted into equality constraints and a minimization objective function, as shown below: minimize: subject to: In free space, the difference between the expected velocity of the admittance model and the current velocity is used as the objective function, i.e., the optimization objective is to minimize the function. ,in , The desired free-space velocity is calculated based on the admittance model; it is constrained by the equality constraints derived from the telecentric motion constraints. ; The quadratic programming problem-solving module is used to find the optimal solution to the QP problem. This allows us to obtain the joint speed of the robotic arm. ; The robotic arm drive module is used to process the solution results from the quadratic programming problem solving module. The data is transmitted to the lower-level controller, which drives the robotic arm to complete the configuration transformation under the interaction of forces.
2. The surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming according to claim 1, characterized in that, In the telecentric motion constraint module, under strict telecentric motion constraints, the positions of the telecentric motion point and the puncture point completely coincide, i.e. .
3. The surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming according to claim 1, characterized in that, In the admittance model module, considering the joint velocity limit constraint and the joint limit constraint, a control scheme for the telecentric motion and human-machine interaction of the surgical robot based on quadratic programming is established, so that the robotic arm can achieve compliant motion according to the force applied by the user and satisfy the telecentric motion constraint.
4. The surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming according to claim 1, characterized in that, The optimal control conversion module considers both the joint speed limit and the extension / twist limit as constraints. ,in: in , Indicates joint velocity. Indicates the speed of expansion and contraction. and These represent the upper and lower limits of joint position and range of motion, respectively. and These represent the upper and lower limits of joint velocity and extension / retraction velocity, respectively: , , , , 。 5. The surgical robot telecentric motion and human-computer interaction admittance control system based on quadratic programming according to claim 1, characterized in that, In the quadratic programming problem-solving module, the OSQP quadratic programming solver is used to find the optimal solution to the QP problem. .
6. A robot, characterized in that, The robot includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to run the quadratic programming-based surgical robot telecentric motion and human-machine interaction admittance control system as described in any one of claims 1-5.
