A noise-resistant and dynamics-constrained robot real-time motion planning method and device
By reading joint feedback data in the robot system, deriving the upper and lower limits of angular acceleration, and updating the angular acceleration instructions based on the acceleration equation constraints, the efficiency and accuracy problems of robot online motion planning in the existing technology are solved, and high-precision trajectory tracking is achieved and satisfaction of dynamic constraints.
Patent Information
- Application Number
- CN202110125245.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-01-29
AI Technical Summary
Existing technology is difficult to achieve efficient online motion planning under the influence of multi-level physical constraints and noise in the robot system, resulting in difficulty in satisfying the robot trajectory tracking accuracy and dynamic constraints.
By reading the robot joint angle and angular velocity feedback, the upper and lower limits of angular acceleration are derived, and the change rate of the robot's angular acceleration and auxiliary variables is calculated based on the desired trajectory and acceleration equation constraints, the angular acceleration instructions are updated, and a comprehensive physical inequality model is established to optimize the trajectory. track.
It achieves high-precision trajectory tracking of the desired trajectory by the robot in the presence of noise, avoids excessive joint angles and angular velocities, effectively controls acceleration and driving torque, and improves the accuracy of robot motion control.
Smart Images

Figure CN112873208B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a noise-resistant and dynamically constrained robot real-time motion planning method and device. Background Art
[0002] Robot motion planning is an important prerequisite for high-precision robot motion control. The core issue is to plan the corresponding motion instructions from the robot joint space for the desired motion of the robot end effector, so that the robot end effector can follow the preset trajectory while ensuring the inherent constraints of the robot itself.
[0003] At present, the motion planning of robots can be divided into two categories: offline motion planning and online motion planning. As the name implies, offline planning cannot be planned simultaneously during the operation of the robot, and its efficiency is slightly lower. The current online motion planning is mainly based on the Jacobi matrix inversion method, and its approach is basically to describe the solution of the problem as a minimum norm solution plus a similar solution, that is, in the form of an analytical solution. For actual robot systems, the physical constraints of the robot are multi-faceted. These constraints include not only angles and angular velocities, but also angular acceleration and driving torque, which are determined by the nature of the robot's electromechanical system. In addition, the robot system is inevitably affected by external measurement noise. How to design an efficient online motion planning method for the robot under the influence of many constraints and noise is an important problem to be solved. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a noise-resistant and dynamically constrained robot real-time motion planning method and device, which can achieve high-precision trajectory tracking of the robot terminal on the desired trajectory when there is noise in the control system.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a real-time motion planning method for a robot with noise immunity and dynamic constraints, the method comprising:
[0006] Read the feedback of the robot's joint angle and joint angular velocity at the current moment to obtain the robot's joint angle and joint angular acceleration;
[0007] The upper and lower limits of the current angular acceleration are derived based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot; at the same time,
[0008] Obtaining a desired trajectory of the robot, and calculating a tracking error of the robot and its corresponding derivative based on the desired trajectory;
[0009] In the case where there is noise in the control system of the robot, setting an acceleration equation constraint condition of the robot when achieving trajectory tracking based on the tracking error and its corresponding derivative;
[0010] Calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint;
[0011] The angular acceleration command of the robot is updated based on the robot angular acceleration and the rate of change of the auxiliary variable.
[0012] Optionally, the method further includes:
[0013] Establish a mathematical model of the robot, and establish a physical constraint model of the robot based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques;
[0014] A comprehensive physical inequality model related to angular acceleration is established based on the robot mathematical model and the physical constraint model.
[0015] Optionally, the robot mathematical model is as follows:
[0016]
[0017] The physical constraint model is as follows:
[0018]
[0019] Where r is the coordinate of the robot end effector; θ is the robot joint angle; f(θ) is the forward kinematic model of the robot; is the first-order derivative of r, is the second-order derivative of r; is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; τ is the joint torque of the robot; M, C, G are the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot respectively; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
[0020] Optionally, the comprehensive physical inequality model is as follows:
[0021]
[0022] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; τ is the robot joint torque; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
[0023] Optionally, the acceleration equation constraint is as follows:
[0024]
[0025] Where θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0026] Optionally, the calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition further includes:
[0027] Establishing the acceleration equation constraint condition and the problem description model of the comprehensive physical inequality model and acceleration optimization index;
[0028] Based on the problem description model, a solution is solved in an iterative robot controller solution model to obtain the robot angular acceleration and the rate of change of the auxiliary variable.
[0029] Optionally, the problem description model is as follows:
[0030]
[0031]
[0032]
[0033]
[0034]
[0035] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, for is the transpose of; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0036] Optionally, the iterative robot controller solution model is as follows:
[0037]
[0038]
[0039]
[0040]
[0041] Among them, ∈>0, λ1, λ2, λ3 are auxiliary variables, P Ω is a saturation function, and its upper limit is The lower limit is are the first-order derivatives of λ1, λ2, and λ3 respectively; M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, is the third-order derivative of θ; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J, J T is the transpose of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0042] Optionally, updating the angular acceleration instruction of the robot based on the angular acceleration of the robot and the rate of change of the auxiliary variable includes:
[0043] The change rate of the robot angular acceleration and the auxiliary variable is fed back to the control system of the robot, and the angular acceleration instruction of the robot is updated in the control system of the robot according to the change rate of the robot angular acceleration and the auxiliary variable.
[0044] In addition, an embodiment of the present invention further provides a noise-resistant and dynamically constrained robot real-time motion planning device, the device comprising:
[0045] Reading module: used to read the feedback of the robot's joint angle and joint angular velocity at the current moment, and obtain the robot's joint angle and joint angular acceleration;
[0046] Derivation module: used to derive the upper and lower limits of the current angular acceleration based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot; at the same time,
[0047] A first calculation module: used for obtaining the desired trajectory of the robot, and calculating the tracking error of the robot and its corresponding derivative based on the desired trajectory;
[0048] A setting module: used for setting the acceleration equation constraint condition of the robot when implementing trajectory tracking based on the tracking error and its corresponding derivative when there is noise in the control system of the robot;
[0049] A second calculation module: used for calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition;
[0050] Update module: used to update the angular acceleration instruction of the robot based on the robot angular acceleration and the rate of change of the auxiliary variable.
[0051] In the embodiments of the present invention, the real-time planning of the robot's real-time acceleration instructions is solved when the control system has joint angle constraints, joint angular velocity constraints, joint acceleration constraints, torque constraints and is affected by noise, so as to achieve high-precision tracking of the robot's given end-effector operation trajectory; and in the presence of noise in the control system, high-precision trajectory tracking of the robot's end effector for the desired trajectory can be achieved; the robot's joint angles and angular velocities can be prevented from exceeding the limit, and the robot's acceleration and driving torque can be effectively prevented from being excessive, which is of great significance for achieving high-precision control of the robot throughout the entire process. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 is a flow chart of a method for real-time motion planning of a robot with noise resistance and dynamic constraints in an embodiment of the present invention;
[0054] Figure 2It is a schematic diagram of the structural composition of a noise-resistant and dynamically constrained robot real-time motion planning device in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] Example
[0057] See also Figure 1 , Figure 1 It is a flow chart of a noise-resistant and dynamically constrained robot real-time motion planning method in an embodiment of the present invention.
[0058] like Figure 1 A method for real-time motion planning of a robot with noise resistance and dynamic constraints, the method comprising:
[0059] S11: Establishing a mathematical model of the robot, and establishing a physical constraint model of the robot based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques;
[0060] Specifically, it is necessary to establish a mathematical model of the robot, which is established based on the robot's joint angles, the coordinates of the robot's end effector, the robot's forward kinematics model, the robot's Jacobian matrix, the robot's joint torque, the robot's inertia matrix, the G-vector force and centrifugal force matrix, and the gravity matrix, as follows:
[0061]
[0062] After establishing the mathematical model of the robot, a physical constraint model is also established based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques, as follows:
[0063]
[0064] Where r is the coordinate of the robot end effector; θ is the robot joint angle; f(θ) is the forward kinematic model of the robot; is the first-order derivative of r, is the second-order derivative of r; is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; τ is the joint torque of the robot; M, C, G are the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot respectively; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, v + represents the upper limit of τ.
[0065] S12: establishing a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model;
[0066] Specifically, it is necessary to establish a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model. The comprehensive physical inequality model is as follows:
[0067]
[0068] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; τ is the robot joint torque; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
[0069] S13: Read the feedback of the robot's joint angle and joint angular velocity at the current moment to obtain the robot's joint angle and joint angular acceleration;
[0070] In the specific implementation process of the present invention, the sensor equipment arranged on each joint of the robot is used to read the feedback of the joint angle and joint angular velocity of the robot at the current moment, so as to obtain the joint angle and joint angular acceleration of the robot.
[0071] S14: deriving upper and lower limits of the current angular acceleration based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot;
[0072] In the specific implementation process of the present invention, after obtaining the current joint angle and joint angular acceleration, the upper and lower limits of the current angular acceleration can be derived by combining the robot's inertia matrix, the G-vector force and centrifugal force matrix and the gravity matrix.
[0073] S15: Obtaining a desired trajectory of the robot, and calculating a tracking error of the robot and its corresponding derivative based on the desired trajectory;
[0074] In the specific implementation process of the present invention, the expected trajectory of the robot is generally set by the user, and the current motion trajectory of the robot can be obtained based on the real-time state of the current robot. That is, the tracking error is obtained by calculating and comparing the current motion trajectory of the robot with the expected trajectory, and then the tracking error is differentiated to obtain the derivative of the tracking error.
[0075] S16: When there is noise in the control system of the robot, setting an acceleration equation constraint condition of the robot when implementing trajectory tracking based on the tracking error and its corresponding derivative;
[0076] Specifically, when setting the tracking condition of the robot with anti-noise capability, it is necessary to set the acceleration equation constraint condition of the robot when implementing trajectory tracking according to the tracking error and its corresponding derivative when there is noise in the robot control system; the acceleration equation constraint condition is as follows:
[0077]
[0078] Where θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0079] S17: Calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint;
[0080] In the specific implementation process of the present invention, the calculation of the robot's angular acceleration and the rate of change of auxiliary variables based on the upper and lower limits of the current angular acceleration and the acceleration equation constraints also includes: establishing a problem description model of the acceleration equation constraints and a comprehensive physical inequality model and acceleration optimization indicators; based on the problem description model, performing solution solving in an iterative robot controller solution model to obtain the robot's angular acceleration and the rate of change of auxiliary variables.
[0081] Specifically, after obtaining the acceleration equation constraint conditions and the comprehensive physical inequality model, it is necessary to establish a problem description model based on the acceleration equation constraint conditions, the comprehensive physical inequality model and the acceleration optimization index. The problem description model is as follows:
[0082]
[0083]
[0084]
[0085]
[0086]
[0087] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, for is the transpose of; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r dis the desired trajectory of the robot; t represents time.
[0088] Then, the problem description model is used to solve the solution in the iterative robot controller solution model to obtain the robot angular acceleration and the rate of change of the auxiliary variables; the iterative robot controller solution model is as follows:
[0089]
[0090]
[0091]
[0092]
[0093] Among them, ∈>0, λ1, λ2, λ3 are auxiliary variables, P Ω is a saturation function, and its upper limit is The lower limit is are the first-order derivatives of λ1, λ2, and λ3 respectively; M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, is the third-order derivative of θ; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J, J T is the transpose of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0094] S18: Update the angular acceleration instruction of the robot based on the robot angular acceleration and the rate of change of the auxiliary variable.
[0095] In the specific implementation process of the present invention, the updating of the angular acceleration instruction of the robot based on the change rate of the robot's angular acceleration and auxiliary variables includes: feeding back the change rate of the robot's angular acceleration and auxiliary variables to the control system of the robot, and updating the angular acceleration instruction of the robot according to the change rate of the robot's angular acceleration and auxiliary variables in the control system of the robot.
[0096] Specifically, by feeding back the change rate of the robot's angular acceleration and auxiliary variables to the control system of the robot, after the robot control system receives the change rate of the robot's angular acceleration and auxiliary variables, the robot's angular acceleration instruction is updated according to the change rate of the robot's angular acceleration and auxiliary variables, and finally the robot is controlled by the angular acceleration instruction.
[0097] In the embodiments of the present invention, the real-time planning of the robot's real-time acceleration instructions is solved when the control system has joint angle constraints, joint angular velocity constraints, joint acceleration constraints, torque constraints and is affected by noise, so as to achieve high-precision tracking of the robot's given end-effector operation trajectory; and in the presence of noise in the control system, high-precision trajectory tracking of the robot's end effector for the desired trajectory can be achieved; the robot's joint angles and angular velocities can be prevented from exceeding the limit, and the robot's acceleration and driving torque can be effectively prevented from being excessive, which is of great significance for achieving high-precision control of the robot throughout the entire process.
[0098] Example
[0099] See also Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a noise-resistant and dynamically constrained robot real-time motion planning device in an embodiment of the present invention.
[0100] like Figure 2 As shown, a noise-resistant and dynamically constrained robot real-time motion planning device comprises:
[0101] The first building module 21 is used to build a mathematical model of the robot, and to build a physical constraint model of the robot based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques;
[0102] Specifically, it is necessary to establish a mathematical model of the robot, which is established based on the robot's joint angles, the coordinates of the robot's end effector, the robot's forward kinematics model, the robot's Jacobian matrix, the robot's joint torque, the robot's inertia matrix, the G-vector force and centrifugal force matrix, and the gravity matrix, as follows:
[0103]
[0104] After establishing the mathematical model of the robot, a physical constraint model is also established based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques, as follows:
[0105]
[0106] Where r is the coordinate of the robot end effector; θ is the robot joint angle; f(θ) is the forward kinematic model of the robot; is the first-order derivative of r, is the second-order derivative of r; is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; τ is the joint torque of the robot; M, C, G are the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot respectively; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, v + represents the upper limit of τ.
[0107] A second establishing module 22: used for establishing a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model;
[0108] Specifically, it is necessary to establish a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model. The comprehensive physical inequality model is as follows:
[0109]
[0110] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; τ is the robot joint torque; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
[0111] Reading module 23: used to read the feedback of the joint angle and joint angular velocity of the robot at the current moment, and obtain the joint angle and joint angular acceleration of the robot;
[0112] In the specific implementation process of the present invention, the sensor equipment arranged on each joint of the robot is used to read the feedback of the joint angle and joint angular velocity of the robot at the current moment, so as to obtain the joint angle and joint angular acceleration of the robot.
[0113] Derivation module 24: used to derive the upper and lower limits of the current angular acceleration based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot;
[0114] In the specific implementation process of the present invention, after obtaining the current joint angle and joint angular acceleration, the upper and lower limits of the current angular acceleration can be derived by combining the robot's inertia matrix, the G-vector force and centrifugal force matrix and the gravity matrix.
[0115] A first calculation module 25 is used to obtain the desired trajectory of the robot, and calculate the tracking error of the robot and its corresponding derivative based on the desired trajectory;
[0116] In the specific implementation process of the present invention, the expected trajectory of the robot is generally set by the user, and the current motion trajectory of the robot can be obtained based on the real-time state of the current robot. That is, the tracking error is obtained by calculating and comparing the current motion trajectory of the robot with the expected trajectory, and then the tracking error is differentiated to obtain the derivative of the tracking error.
[0117] Setting module 26: used for setting the acceleration equation constraint condition of the robot when implementing trajectory tracking based on the tracking error and its corresponding derivative when the control system of the robot has noise;
[0118] Specifically, when setting the tracking condition of the robot with anti-noise capability, it is necessary to set the acceleration equation constraint condition of the robot when implementing trajectory tracking according to the tracking error and its corresponding derivative when there is noise in the robot control system; the acceleration equation constraint condition is as follows:
[0119]
[0120] Where θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0121] The second calculation module 27 is used to calculate the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition;
[0122] In the specific implementation process of the present invention, the calculation of the robot's angular acceleration and the rate of change of auxiliary variables based on the upper and lower limits of the current angular acceleration and the acceleration equation constraints also includes: establishing a problem description model of the acceleration equation constraints and a comprehensive physical inequality model and acceleration optimization indicators; based on the problem description model, performing solution solving in an iterative robot controller solution model to obtain the robot's angular acceleration and the rate of change of auxiliary variables.
[0123] Specifically, after obtaining the acceleration equation constraint conditions and the comprehensive physical inequality model, it is necessary to establish a problem description model based on the acceleration equation constraint conditions, the comprehensive physical inequality model and the acceleration optimization index. The problem description model is as follows:
[0124]
[0125]
[0126]
[0127]
[0128]
[0129] Among them, M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; k1, k2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, for is the transpose of; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0130] Then, the problem description model is used to solve the solution in the iterative robot controller solution model to obtain the robot angular acceleration and the rate of change of the auxiliary variables; the iterative robot controller solution model is as follows:
[0131]
[0132]
[0133]
[0134]
[0135] Among them, ∈>0, λ1, λ2, λ3 are auxiliary variables, P Ω is a saturation function, and its upper limit is The lower limit is are the first-order derivatives of λ1, λ2, and λ3 respectively; M, C, and G are the robot's inertia matrix, centrifugal force matrix, and gravity matrix respectively; κ1, κ2, are all positive control constants; θ is the robot joint angle, is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration, is the third-order derivative of θ; τ is the joint torque of the robot; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ; J represents the Jacobian matrix of the robot; is the first-order derivative of J, J T is the transpose of J; α, β, γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the desired trajectory of the robot; t represents time.
[0136] Update module 28: used for updating the angular acceleration instruction of the robot based on the angular acceleration of the robot and the change rate of the auxiliary variable.
[0137] In the specific implementation process of the present invention, the updating of the angular acceleration instruction of the robot based on the change rate of the robot's angular acceleration and auxiliary variables includes: feeding back the change rate of the robot's angular acceleration and auxiliary variables to the control system of the robot, and updating the angular acceleration instruction of the robot according to the change rate of the robot's angular acceleration and auxiliary variables in the control system of the robot.
[0138] In the embodiments of the present invention, the real-time planning of the robot's real-time acceleration instructions is solved when the control system has joint angle constraints, joint angular velocity constraints, joint acceleration constraints, torque constraints and is affected by noise, so as to achieve high-precision tracking of the robot's given end-effector operation trajectory; and in the presence of noise in the control system, high-precision trajectory tracking of the robot's end effector for the desired trajectory can be achieved; the robot's joint angles and angular velocities can be prevented from exceeding the limit, and the robot's acceleration and driving torque can be effectively prevented from being excessive, which is of great significance for achieving high-precision control of the robot throughout the entire process.
[0139] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0140] In addition, the above is a detailed introduction to a noise-resistant and dynamically constrained robot real-time motion planning method and device provided in an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A noise-resistant and dynamically constrained robot real-time motion planning method, characterized in that: The method comprises: Read the feedback of the robot's joint angle and joint angular velocity at the current moment to obtain the robot's joint angle and joint angular acceleration; The upper and lower limits of the current angular acceleration are derived based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot; at the same time, Obtaining a desired trajectory of the robot, and calculating a tracking error of the robot and its corresponding derivative based on the desired trajectory; In the case where there is noise in the control system of the robot, setting an acceleration equation constraint condition of the robot when achieving trajectory tracking based on the tracking error and its corresponding derivative; Calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint; updating an angular acceleration command of the robot based on the angular acceleration of the robot and the rate of change of the auxiliary variable; The method further comprises: Establish a mathematical model of the robot, and establish a physical constraint model of the robot based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques; Establishing a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model; The robot mathematical model is as follows: The physical constraint model is as follows: The comprehensive physical inequality model is as follows: where k1, k2, All are positive control constants; The acceleration equality constraints are as follows: Among them, α, β, and γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the expected trajectory of the robot; t represents time; The calculating of the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition also includes: Establishing the acceleration equation constraint condition and the problem description model of the comprehensive physical inequality model and acceleration optimization index; Based on the problem description model, a solution is solved in an iterative robot controller solution model to obtain the robot angular acceleration and the rate of change of the auxiliary variable; The problem description model is as follows: in, for The transpose of ; θ is the robot joint angle; f(θ) is the forward kinematics model of the robot; is the first-order derivative of r, is the second-order derivative of r; is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; τ is the joint torque of the robot; M, C, G are the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot respectively; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
2. The robot real-time motion planning method according to claim 1, characterized in that: The iterative robot controller solution model is as follows: Among them, ∈>0, λ1, λ2, λ3 are auxiliary variables, P Ω is a saturation function, and its upper limit is The lower limit is are the first-order derivatives of λ1, λ2, and λ3 respectively.
3. The robot real-time motion planning method according to claim 1, characterized in that: The updating of the angular acceleration instruction of the robot based on the angular acceleration of the robot and the rate of change of the auxiliary variable comprises: The change rate of the robot angular acceleration and the auxiliary variable is fed back to the control system of the robot, and the angular acceleration instruction of the robot is updated in the control system of the robot according to the change rate of the robot angular acceleration and the auxiliary variable.
4. A noise-resistant and dynamically constrained robot real-time motion planning device, characterized in that: The device comprises: Reading module: used to read the feedback of the robot's joint angle and joint angular velocity at the current moment, and obtain the robot's joint angle and joint angular acceleration; Derivation module: used to derive the upper and lower limits of the current angular acceleration based on the current joint angle and joint angular acceleration and the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot; at the same time, A first calculation module: used for obtaining the desired trajectory of the robot, and calculating the tracking error of the robot and its corresponding derivative based on the desired trajectory; A setting module: used for setting the acceleration equation constraint condition of the robot when implementing trajectory tracking based on the tracking error and its corresponding derivative when there is noise in the control system of the robot; A second calculation module: used for calculating the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition; An updating module: used for updating the angular acceleration instruction of the robot based on the angular acceleration of the robot and the rate of change of the auxiliary variable; The device also includes: Establish a mathematical model of the robot, and establish a physical constraint model of the robot based on the constraints of the robot's current joint angles, joint angular velocities, joint angular accelerations, and joint torques; Establishing a comprehensive physical inequality model related to angular acceleration based on the robot mathematical model and the physical constraint model; The robot mathematical model is as follows: The physical constraint model is as follows: The comprehensive physical inequality model is as follows: Among them, κ1, κ2, All are positive control constants; The acceleration equality constraints are as follows: Among them, α, β, and γ are all positive control constants; e is the tracking error of the robot to the desired trajectory, e = rr d , is the first-order derivative of e, r is the actual trajectory of the robot, r d is the expected trajectory of the robot; t represents time; The calculating of the robot angular acceleration and the rate of change of the auxiliary variable based on the upper and lower limits of the current angular acceleration and the acceleration equation constraint condition also includes: Establishing the acceleration equation constraint condition and the problem description model of the comprehensive physical inequality model and acceleration optimization index; Based on the problem description model, a solution is solved in an iterative robot controller solution model to obtain the robot angular acceleration and the rate of change of the auxiliary variable; The problem description model is as follows: in, for The transpose of ; θ is the robot joint angle; f(θ) is the forward kinematics model of the robot; is the first-order derivative of r, is the second-order derivative of r; is the first-order derivative of θ, representing the angular velocity of the robot joint, is the second-order derivative of θ, representing the robot joint angular acceleration; J represents the Jacobian matrix of the robot; is the first-order derivative of J; τ is the joint torque of the robot; M, C, G are the inertia matrix, the vector force and centrifugal force matrix and the gravity matrix of the robot respectively; θ - represents the lower limit of θ, θ + represents the upper limit of θ; express Lower limit, express Upper limit; express Lower limit, express Upper limit; τ - represents the lower limit of τ, τ + represents the upper limit of τ.
Citation Information
Patent Citations
Redundancy dual-mechanical-arm multi-index coordinate exercise planning method
CN106426164A
Redundant manipulator acceleration layer noise-tolerant control method
CN106625680A
Repetitive motion planning method for redundant manipulator with anti-noise characteristics
CN106737670A
Dynamical method for solving mutual collision of dual redundancy mechanical arm
CN108714894A
Motion planning and real-time obstacle avoidance method and system of collaborative robot
CN110977989A
