Robot control method, device, controller and storage medium

By constructing a quadratic programming problem with constraints and solving for the optimal control parameters, the problem of limited output torque of each joint of the robot is solved, enabling the robot to better track the desired posture.

CN114147716BActive Publication Date: 2024-11-01LEJU (SHENZHEN) ROBOTICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111497644.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2024-11-01
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

The actual output torque of each joint of a robot is limited, and directly controlling the robot based on the angle values ​​of each joint results in poor tracking of the desired posture.

Method used

Based on the robot's control model and the preset dynamic system stability function, a quadratic programming problem with constraints is constructed, and the optimal control parameters of each joint are obtained by solving the problem. The robot's motion is then controlled by the optimal control parameters.

Benefits of technology

This improves the robot's ability to track the desired pose and ensures that the robot can better track pre-planned control parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114147716B_ABST
    Figure CN114147716B_ABST
Patent Text Reader

Abstract

The present invention provides a control method, device, controller and storage medium for a robot, and relates to the technical field of intelligent robots. The control method of the robot includes: based on the control model of the robot and the preset power system stability function, constructing a quadratic programming problem containing constraints for the robot, wherein the control model includes: pre-planned control parameters of each joint in the robot; solving the quadratic programming problem to obtain the optimal control parameters of each joint; and controlling the robot to move according to the optimal control parameters. Based on the control model containing the pre-planned control parameters of each joint and the preset power system stability function, a quadratic programming problem is constructed, the quadratic programming problem is solved to obtain the optimal control parameters, and the robot movement is controlled based on the obtained optimal control parameters, so that the robot can better track the desired posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent robots, and in particular to a control method, device, controller and storage medium of a robot. Background Art

[0002] With the development of science and technology, robots play an increasingly important role in the production and life of human society. Robots are used in many reasonable fields such as manufacturing, services, and medical care. Controlling robots has also become a hot topic of research.

[0003] In the related art, the desired angle values ​​of each joint of the robot, that is, the desired posture of the robot, can be obtained by using a trajectory planning algorithm and an inverse kinematics solution algorithm.

[0004] However, in the related art, the actual output torque of each joint of the robot is limited, and directly controlling the robot according to the angle value of each joint results in poor effect of the robot tracking the desired posture. Summary of the invention

[0005] The purpose of the present invention is to provide a robot control method, device, controller and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem in the related art that the actual output torque of each joint of the robot is limited, and the robot is controlled directly according to the angle value of each joint, resulting in poor effect of the robot tracking the desired posture.

[0006] To achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a robot control method, comprising:

[0008] Based on the control model of the robot and the preset power system stability function, a quadratic programming problem with constraints for the robot is constructed, wherein the control model includes: pre-planned control parameters of each joint in the robot;

[0009] Solving the quadratic programming problem to obtain the optimal control parameters of each joint;

[0010] The robot is controlled to move according to the optimal control parameters.

[0011] Optionally, the control model is a control model obtained in advance based on a dynamic model of the robot with an external contact force model; the quadratic programming problem with constraints for the robot based on the control model of the robot and a preset power system stability function comprises:

[0012] Using the preset power system stability function, a control law is obtained;

[0013] Calculating the actual output torque of each joint according to the control model of the robot and the control law;

[0014] The quadratic programming problem is constructed according to the actual output torque of each joint and the maximum torque allowed by each joint.

[0015] Optionally, before constructing the quadratic programming problem according to the actual output torque of each joint and the maximum torque allowed by each joint, the method further includes:

[0016] Determining mass data and moment of inertia data of the robot;

[0017] The quadratic programming problem is constructed according to the actual output torque of each joint, the maximum torque allowed by each joint, the mass data and the moment of inertia data.

[0018] Optionally, constructing the quadratic programming problem according to the actual output torque of each joint and the maximum torque allowed by each joint includes:

[0019] The quadratic programming problem is constructed according to the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the under-actuated system of the robot, and the preset nonlinear coefficient of the control model, wherein the preset nonlinear coefficient is used to control the degree of influence of nonlinearity on system stability.

[0020] Optionally, solving the quadratic programming problem to obtain the optimal control parameters of each joint includes:

[0021] The preset first-order alternating direction multiplier method is used to solve the quadratic programming problem and obtain the optimal control parameters of each joint.

[0022] Optionally, the using a preset first-order alternating direction multiplier method to solve the quadratic programming problem to obtain the optimal control parameters of each joint includes:

[0023] Decomposing the matrix in the quadratic programming problem by using a preset first-order alternating direction multiplier method to obtain a decomposed matrix;

[0024] The quadratic programming problem is solved according to the decomposed matrix to obtain the optimal control parameters of each joint.

[0025] Optionally, solving the quadratic programming problem according to the decomposed matrix to obtain the optimal control parameters of each joint includes:

[0026] If the matrix is ​​a sparse matrix, the quadratic programming problem is solved according to the decomposed matrix and the data structure of the optimal control parameters to obtain the optimal control parameters of each joint.

[0027] In a second aspect, an embodiment of the present invention further provides a robot control device, comprising:

[0028] A construction module is used to construct a quadratic programming problem with constraints for the robot based on a control model of the robot and a preset power system stability function, wherein the control model includes: pre-planned control parameters of each joint in the robot;

[0029] A solution module, used for solving the quadratic programming problem to obtain the optimal control parameters of each joint;

[0030] A control module is used to control the robot to move according to the optimal control parameters.

[0031] Optionally, the control model is a control model obtained in advance based on a dynamic model of the robot with an external contact force model;

[0032] The construction module is also used to adopt the preset power system stability function to obtain the control law; calculate the actual output torque of each joint according to the control model of the robot and the control law; and construct the quadratic programming problem according to the actual output torque of each joint and the maximum torque allowed by each joint.

[0033] Optionally, the device further comprises:

[0034] A determination module, used to determine mass data and moment of inertia data of the robot;

[0035] The first construction module is used to construct the quadratic programming problem according to the actual output torque of each joint, the maximum torque allowed by each joint, the mass data and the moment of inertia data.

[0036] Optionally, the construction module is also used to construct the quadratic programming problem based on the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the under-actuated system of the robot, and the preset nonlinear coefficient of the control model, wherein the preset nonlinear coefficient is used to control the degree of influence of nonlinearity on system stability.

[0037] Optionally, the solution module is further used to adopt a preset first-order alternating direction multiplier method to solve the quadratic programming problem and obtain the optimal control parameters of each joint.

[0038] Optionally, the solution module is also used to use a preset first-order alternating direction multiplier method to decompose the matrix in the quadratic programming problem to obtain a decomposed matrix; solve the quadratic programming problem based on the decomposed matrix to obtain the optimal control parameters of each joint.

[0039] Optionally, the solving module is also used to solve the quadratic programming problem according to the decomposed matrix and the data structure of the optimal control parameters if the matrix is ​​a sparse matrix, so as to obtain the optimal control parameters of each joint.

[0040] In a third aspect, an embodiment of the present invention further provides a controller, comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the robot control method described in any one of the first aspects above is implemented.

[0041] In a fourth aspect, an embodiment of the present invention further provides a storage medium having a computer program stored thereon, and when the computer program is read and executed, the robot control method described in any one of the above-mentioned first aspects is implemented.

[0042] The beneficial effects of the present invention are as follows: The embodiment of the present application provides a control method for a robot, including: constructing a quadratic programming problem containing constraints for the robot based on the control model of the robot and a preset power system stability function, wherein the control model includes: pre-planned control parameters of each joint in the robot; solving the quadratic programming problem to obtain the optimal control parameters of each joint; and controlling the robot to move according to the optimal control parameters. Based on the control model containing the pre-planned control parameters of each joint and the preset power system stability function, a quadratic programming problem is constructed, the quadratic programming problem is solved to obtain the optimal control parameters, and the robot movement is controlled based on the obtained optimal control parameters, so that the robot can better track the desired posture. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A schematic flow chart of a robot control method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic flow chart of a robot control method provided by an embodiment of the present invention;

[0046] Figure 3 A schematic flow chart of a robot control method provided by an embodiment of the present invention;

[0047] Figure 4 A schematic flow chart of a robot control method provided by an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of the structure of a robot control device provided by an embodiment of the present invention;

[0049] Figure 6 A schematic diagram of the structure of a controller provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0051] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0052] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0053] In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0054] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0055] The robot control method provided in the embodiment of the present application may be executed by a controller, which may be an independent device capable of communicating with various components of the robot; the controller may also be a controller provided in the robot, which is not specifically limited in the embodiment of the present application. The following explanation of the robot control method provided in the embodiment of the present application is given by taking the controller as the execution subject.

[0056] Figure 1 A schematic diagram of a flow chart of a robot control method provided by an embodiment of the present invention, such as Figure 1 As shown, the method may include:

[0057] S101. Based on the control model of the robot and the preset power system stability function, a quadratic programming problem including constraints for the robot is constructed.

[0058] The control model includes: pre-planned control parameters of each joint in the robot. Optionally, the pre-planned control parameters of each joint can be pre-planned angle control parameters of each joint.

[0059] In some embodiments, the controller may perform derivation processing based on a first expression corresponding to a control model of the robot and a second expression corresponding to a preset power system stability function to construct a quadratic programming problem containing constraints for the robot.

[0060] It should be noted that the preset power system stability function may be a Lyapunov function. Of course, the preset power system stability function may also be other functions that prove the stability of the power system at an equilibrium point. The embodiment of the present application does not impose specific restrictions on this.

[0061] S102, solving the quadratic programming problem to obtain the optimal control parameters of each joint.

[0062] In some embodiments, the controller may use a preset solver to solve the quadratic programming problem to obtain the optimal control parameters of each joint. The preset solver may be an open source solver, for example, an open source OSQP (Operator Split Quadratic Program) solver.

[0063] S103: Control the robot to move according to the optimal control parameters.

[0064] In an embodiment of the present application, the controller can control the robot to move according to the optimal control parameters of each joint, so that the robot can better track the pre-planned control parameters and improve the effect of tracking the desired posture.

[0065] In summary, the embodiment of the present application provides a control method for a robot, including: constructing a quadratic programming problem containing constraints for the robot based on the control model of the robot and the preset power system stability function, wherein the control model includes: pre-planned control parameters of each joint in the robot; solving the quadratic programming problem to obtain the optimal control parameters of each joint; and controlling the robot to move according to the optimal control parameters. Based on the control model containing the pre-planned control parameters of each joint and the preset power system stability function, a quadratic programming problem is constructed, the quadratic programming problem is solved to obtain the optimal control parameters, and the robot movement is controlled based on the obtained optimal control parameters, so that the robot can better track the desired posture.

[0066] Optionally, the control model may be a control model obtained in advance based on a dynamic model of the robot with an external contact force model.

[0067] The robot can be a biped robot. The control model of the biped robot is different from the general robot power system. In order to make the general controller control the biped robot, the controller needs to be designed according to the dynamic model with an external contact force model and its stability must be proved. The control model can be expressed as:

[0068]

[0069] Figure 2 A schematic diagram of a flow chart of a robot control method provided by an embodiment of the present invention, such as Figure 2 As shown, the process of constructing a quadratic programming problem with constraints for the robot based on the control model of the robot and the preset power system stability function in the above S101 may include:

[0070] S201. Using a preset power system stability function, obtain a control law.

[0071] Among them, the control law can be obtained by presetting the stability function of the power system, and the control law can ensure that the asymptotic stability is satisfied near the equilibrium point.

[0072] S202. Calculate the actual output torque of each joint according to the control model and control law of the robot.

[0073] In some embodiments, the controller can determine the relationship between the control law and the actual output torque of each joint based on the control model of the robot, and then when the control law is determined, the actual output torque of each joint can be calculated.

[0074] S203: Construct a quadratic programming problem based on the actual output torque of each joint and the maximum torque allowed by each joint.

[0075] The maximum torque allowed by each joint may be a set of multiple torque values.

[0076] For example, the maximum torque allowed for each joint can be [80 120 120 310 80 120] T Of course, the maximum torque allowed by each joint can also be specifically determined according to different robots, and the embodiments of the present application do not impose specific restrictions on this.

[0077] It should be noted that the controller can construct an expression for the quadratic programming problem based on the actual output torque of each joint and the maximum torque allowed by each joint.

[0078] Optional, Figure 3 A schematic diagram of a flow chart of a robot control method provided by an embodiment of the present invention, such as Figure 3 As shown, before constructing the quadratic programming problem in the above S203 according to the actual output torque of each joint and the maximum torque allowed by each joint, the method may also include:

[0079] S301, determining the mass data and moment of inertia data of the robot.

[0080] In some embodiments, the controller may determine the mass data and the moment of inertia data of the robot based on a CAD model of the robot (a robot model obtained based on a drawing software).

[0081] S302: Construct a quadratic programming problem according to the actual output torque of each joint, the maximum torque allowed by each joint, the mass data and the moment of inertia data.

[0082] In an embodiment of the present application, the controller can construct an expression for the quadratic programming problem based on the actual output torque of each joint, the maximum torque allowed by each joint, mass data, moment of inertia data, and the characteristic of following the trajectory corresponding to the pre-planned angle control parameters.

[0083] Optionally, in S203 above, a quadratic programming problem is constructed according to the actual output torque of each joint and the maximum torque allowed by each joint, including:

[0084] A quadratic programming problem is constructed according to the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the robot's underactuated system, and the preset nonlinear coefficients of the control model.

[0085] An underactuated system is one in which the number of actuators is less than the number of degrees of freedom.

[0086] It should be noted that the preset nonlinear coefficient is used to control the influence of nonlinearity on system stability. It is necessary to reasonably select the preset nonlinear coefficient to avoid the influence of nonlinearity on system stability and minimize the influence of nonlinearity on system stability.

[0087] The following is an explanation of the control model and the construction of the control Lyapunov function:

[0088] Define a control Lyapunov function and a quadratic programming problem for an affine nonlinear system, define the state And input have:

[0089]

[0090] in, is a local Lipschitz continuity condition. The control system obtains the control law through CLF (Control Lyapunov Function), which ensures that the system satisfies asymptotic stability near the equilibrium point. The problem of finding CLF can be transformed into the problem of finding Lyapunov function to reduce the difficulty of proving stability.

[0091] Because the QP control problem constructed by CLF is optimal, the CLF-QP method is widely used. After obtaining CLF through the stable control law, the QP problem with linear constraints is constructed as follows:

[0092]

[0093]

[0094] in, is a semi-positive definite matrix with respect to t, x, and is a linear cost function; L is the corresponding constant V is the Lyapunov function, is the Lie derivative of the Lyapunov function V with respect to fe, is the Lie derivative of the Lyapunov function V with respect to ge. The cost function of QP is related to the energy of the actuator, and the corresponding inequality constraint can ensure the stability of the system at equilibrium, that is, the control set that satisfies the inequality constraint is:

[0095] K(t,x)={u∈U:ψ0(t,x)+ψ1(t,x)u≤0}

[0096] Consider a robot system with n degrees of freedom on a construction manifold Q, let is the rate of change of configuration q, then the state of the system can be defined as Where TQ is the tangent bundle of manifold Q, and the Euler-Lagrangian form of the general robot dynamics system can be expressed as:

[0097]

[0098] Among them, the kinetic expression can be rewritten in a spatial form f and g can be approximately calculated. Reasonably selecting q can make the mapping from the control input to the output coordinate system one-to-one, that is, only one value in each row of matrix B is non-zero, and the other values are zero, then the following characteristics can be obtained.

[0099] Characteristic 1 D is positive definite and symmetric is skew-symmetric;

[0100] Characteristic 2 There exist positive constants c l and c u such that for any there is:

[0101] c l ≤|D(q)|≤c u c l ≤||D -1 (q)||≤c u

[0102]

[0103] The following explains the analysis of the whole-body kinematic error of the robot.

[0104] For a fully actuated robot system (m = n), the control index is the tracking time of the target state: Assume that the target state qd to be tracked is smooth and bounded, and its first derivative and second derivative are uniformly bounded, then the tracking error in the state space is:

[0105] e(t, q): = q - q d (t, q)

[0106] The derivative with respect to time is:

[0107]

[0108] Among them, Je is an n*n Jacobian matrix, which is invertible and bounded. Therefore, only qd needs to be concerned about. Rewriting the above formula, we can get:

[0109]

[0110] Among them, u represents the joint torque.

[0111] For an underactuated robot system (m < n), the error is defined from the perspective of the system output:

[0112] y(t,q)=y a (q)-y d (t,q)

[0113] in, is m-dimensional and is defined as the actual output and the actual output The time derivative of the difference is:

[0114]

[0115] Among them, the dynamic expression is rewritten into the form of space: J y is the m*n Jacobian matrix, considering J to be bounded and full row rank y , then the output dynamics is:

[0116]

[0117] The following is an explanation of the quadratic trajectory optimal control that does not rely on the dynamics model:

[0118] For all-wheel drive systems

[0119] For a fully driven system, in order to achieve a model-independent quadratic programming optimal controller, a different form of dynamic model is required to avoid using system dynamic parameters. Therefore, the following form of constraints are considered:

[0120]

[0121]

[0122] Among them, the stability of QP (quadratic programming) can be verified by the following control rate:

[0123]

[0124] The above formula can satisfy the corresponding ψ0, ψ1 constraints. It can be proved that for a dynamic system, the control input set is K, and for the control rate The final closed-loop system is uniformly bounded, as shown below:

[0125] For a given uniformly bounded exist:

[0126]

[0127]

[0128] For c q >0, V is rewritten as:

[0129]

[0130]

[0131] Consider the corresponding inequality:

[0132]

[0133] Among them, k1 = 5Cq, k2 = 6Cq, k3 = 2Cq. For convenience, the diagonal matrices Kp and Kd of the scalar gain are selected to be represented by kp and kd, and the inequality in the above formula is used. have:

[0134]

[0135] Observe the first half of the above formula, by selecting k0:

[0136]

[0137] It can be obtained that Λ>0, and the selection of α satisfies:

[0138]

[0139] k is calculated as follows p , k d 、k0:

[0140] k p =ε 2 , k d =ε+k1,

[0141] Where ε>1 is an adjustable gain and v can be selected so that Λ>0, we have:

[0142]

[0143] The corresponding initial state given And the corresponding set V, select the maximum value of |e| in the subset of V, and by selecting a sufficiently large ε, the constant term in the above formula can be Adjust to a sufficiently small size.

[0144] For underactuated systems

[0145] For an underactuated system, only the time-varying trajectory is considered, and the output is in the form of:

[0146]

[0147] Among them, the actual value of the state variable is q a , tracking target value Only related to the time variable, and the full drive system q d Similar, assuming are bounded, and their upper bound is c q >0, according to the output form, the corresponding QP constraint condition is:

[0148]

[0149]

[0150] Due to the coupling between controllable and uncontrollable states, the convergence of the output cannot be guaranteed.

[0151] The following is an explanation of the quadratic trajectory optimal control based on the dynamic model:

[0152] When the model is not relied on, the system output cannot be guaranteed to converge due to the coupling between the various states of the system. The actual robot dynamics model can be established through methods such as system identification, and a controller based on the dynamics model needs to be designed to ensure output convergence.

[0153] For all-wheel drive systems

[0154] The error dynamics of the full-drive robot system is as follows, where the matrices De and Ce have similar properties to the matrices D and C, and a Lyapunov function based on PD (proportional plus derivative control) is constructed:

[0155]

[0156] Among them, K p >0 is a symmetric positive definite matrix of appropriate dimension, and:

[0157]

[0158] Choose a small non-negative value k0≥0 to make V positive definite. For example, choose k0 to satisfy:

[0159]

[0160]

[0161] in addition,

[0162] Among them, K d > 0, then a solution to the QP problem that satisfies the constraints is:

[0163]

[0164] This equation satisfies the given QP constraint conditions, and the derivative of the Lyapunov function is:

[0165]

[0166] When a sufficiently small k0 is selected, the above equation is positive definite, ensuring the asymptotic stability. In the worst case, i.e., k0 = 0, is semi-negative definite and only satisfies the form of the weak Lyapunov function. For the invariant desired state, this form can be used to show the asymptotic stability of the PD control law:

[0167]

[0168] For the underactuated system

[0169] The controllable degrees of freedom m < n for the underactuated system, and the underactuation degree is l = n - m. To meet the control objective y, the requirements of. First, replace Bu in the dynamic expression with:

[0170]

[0171] where, F is the auxiliary input-output space, and the dynamic expression can be rewritten as:

[0172]

[0173] where, C y = D y J y D -1 C - D y j y , and G y = D y J y D -1 G. Then, for the underactuated system, the following V can be selected: For the selected V, the corresponding cost function can be selected as follows:

[0174]

[0175]

[0176] where the feasible solution of F is:

[0177]

[0178] The following explains the optimal controller design for PD control and quadratic programming:

[0179] In the embodiment of the present application, the dynamics model with the external contact force model, the output dynamics can be expressed as:

[0180]

[0181] Taking the derivative of the above formula, we get:

[0182]

[0183] Will Substituting into the above formula, we get:

[0184]

[0185] Multiply the above formula on the left get:

[0186]

[0187] Among them, D y J y D -1 BU=F,D y T y D -1 (G-JF1)=G y , The corresponding form can be:

[0188]

[0189] The above diagram describes the relationship between the control law F and the actual output torque u of each joint. With the corresponding control law F, u can be inversely calculated. F can be expressed as follows:

[0190]

[0191] Substituting it into the expression of the above control model, we get:

[0192]

[0193] Right now:

[0194]

[0195] In the embodiment of the present application, the preset power system stability function may be a Lyapunov function expressed as follows:

[0196]

[0197] After derivation, the matrix form can be expressed as:

[0198]

[0199] In order to ensure that the matrix in the above formula is positive definite, we select For α, a smaller value can be selected. In the process of selecting α, it is necessary to ensure that the following formula is positive:

[0200]

[0201] For a practical bipedal robot system, D is the inertia matrix, D y is a symmetric matrix, k p The selection conditions can be modified to The corresponding matrix can be simplified to:

[0202]

[0203] The construction space of the bipedal robot system includes the joint angles q = (q1, q2, ..., q12) and the corresponding underactuated degrees of freedom. The mass data and moment of inertia data of each part of the robot body are obtained from the CAD model. Considering trajectory following, the control problem is in the form of:

[0204]

[0205]

[0206]

[0207] |u i |≤U lim Nm

[0208] Among them, u is the actual output torque value of each joint, D is the mass data and moment of inertia data of each part, and U lim is the maximum torque allowed for each joint. According to the torque limit of each joint of the actual prototype, U lim The actual value is:

[0209] U lim =[80 120 120 310 80 120] T

[0210] By reasonably selecting the coefficient K in the controller p , K d The influence of system nonlinearity on system stability can be avoided as much as possible. The matrix is ​​a selection matrix in the under-actuated system, the first 6 rows corresponding to the 6 DOFs (degrees of freedom) of the under-actuation are 0, and the rest are unit matrices.

[0211] Optionally, solving the quadratic programming problem in the above S103 to obtain the optimal control parameters of each joint may include: using a preset first-order alternating direction multiplier method to solve the quadratic programming problem to obtain the optimal control parameters of each joint.

[0212] Among them, the first-order alternating direction multiplier method can be called ADMM algorithm.

[0213] Optional, Figure 4 A schematic diagram of a flow chart of a robot control method provided by an embodiment of the present invention, such as Figure 4 As shown, the process of solving the quadratic programming problem using the preset first-order alternating direction multiplier method to obtain the optimal control parameters of each joint may include:

[0214] S501. Decompose the matrix in the quadratic programming problem by using a preset first-order alternating direction multiplier method to obtain a decomposed matrix.

[0215] In some implementations, a preset first-order alternating direction multiplier method is used to decompose the matrix in the quadratic programming problem at the initial stage to obtain a decomposed matrix.

[0216] S502. Solve the quadratic programming problem according to the decomposed matrix to obtain the optimal control parameters of each joint.

[0217] Optionally, the process of solving the quadratic programming problem according to the decomposed matrix in the above S502 to obtain the optimal control parameters of each joint may include: if the matrix is ​​a sparse matrix, solving the quadratic programming problem according to the decomposed matrix and the data structure of the optimal control parameters to obtain the optimal control parameters of each joint.

[0218] In the embodiment of the present application, the preset first-order alternating direction multiplier method can be used to optimize the solution using the data structure of the optimal control parameters. If the matrix is ​​a sparse matrix, the decomposed matrix and the data structure of the optimal control parameters can be used. This solution method has good robustness, and its optimization result is not sensitive to the selection of initial values, and good solution results can be obtained at different initial values.

[0219] To summarize, an embodiment of the present invention provides a control method for a robot, which constructs a quadratic programming problem based on a control model that includes pre-planned control parameters of each joint and a preset power system stability function, solves the quadratic programming problem to obtain optimal control parameters, and controls the robot motion based on the obtained optimal control parameters, so that the robot can better track the desired posture.

[0220] The following describes the robot control device, controller, storage medium, etc. used to execute the robot control method provided in this application. Its specific implementation process and technical effects refer to the relevant content of the above-mentioned robot control method, which will not be repeated below.

[0221] Figure 5 A schematic diagram of the structure of a robot control device provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the device may include:

[0222] A construction module 601 is used to construct a quadratic programming problem with constraints for the robot based on a control model of the robot and a preset power system stability function, wherein the control model includes: pre-planned control parameters of each joint in the robot;

[0223] A solution module 602 is used to solve the quadratic programming problem and obtain the optimal control parameters of each joint;

[0224] The control module 603 is used to control the robot to move according to the optimal control parameters.

[0225] Optionally, the control model is a control model obtained in advance based on a dynamic model of the robot with an external contact force model;

[0226] The construction module 601 is also used to adopt the preset power system stability function to obtain the control law; calculate the actual output torque of each joint according to the control model of the robot and the control law; and construct the quadratic programming problem according to the actual output torque of each joint and the maximum torque allowed by each joint.

[0227] Optionally, the device further comprises:

[0228] A determination module, used to determine mass data and moment of inertia data of the robot;

[0229] The first construction module is used to construct the quadratic programming problem according to the actual output torque of each joint, the maximum torque allowed by each joint, the mass data and the moment of inertia data.

[0230] Optionally, the construction module 601 is also used to construct the quadratic programming problem based on the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the under-actuated system of the robot, and the preset nonlinear coefficient of the control model, wherein the preset nonlinear coefficient is used to control the degree of influence of nonlinearity on system stability.

[0231] Optionally, the solving module 602 is further used to adopt a preset first-order alternating direction multiplier method to solve the quadratic programming problem and obtain the optimal control parameters of each joint.

[0232] Optionally, the solution module 602 is also used to use a preset first-order alternating direction multiplier method to decompose the matrix in the quadratic programming problem to obtain a decomposed matrix; solve the quadratic programming problem based on the decomposed matrix to obtain the optimal control parameters of each joint.

[0233] Optionally, the solution module 602 is further used to solve the quadratic programming problem according to the decomposed matrix and the data structure of the optimal control parameters if the matrix is ​​a sparse matrix, so as to obtain the optimal control parameters of each joint.

[0234] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0235] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0236] Figure 6 A schematic diagram of the structure of a controller provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the device includes: a processor 701 and a memory 702.

[0237] The memory 702 is used to store programs, and the processor 701 calls the programs stored in the memory 702 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0238] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.

[0239] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0240] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0241] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0242] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0243] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A robot control method, characterized in that: include: Based on the control model of the robot and the preset power system stability function, a quadratic programming problem with constraints for the robot is constructed, wherein the control model includes: pre-planned control parameters of each joint in the robot; Solving the quadratic programming problem to obtain the optimal control parameters of each joint; Controlling the robot to move according to the optimal control parameters; The control model is a control model obtained in advance based on the dynamic model of the robot with an external contact force model; the quadratic programming problem with constraints for the robot is constructed based on the control model of the robot and a preset power system stability function, including: Using the preset power system stability function, a control law is obtained; Calculating the actual output torque of each joint according to the control model of the robot and the control law; The quadratic programming problem is constructed according to the actual output torque of each joint and the maximum torque allowed by each joint; wherein the maximum torque allowed by each joint is a set of multiple torque values; The quadratic programming problem is constructed according to the actual output torque of each joint and the maximum torque allowed by each joint, including: The quadratic programming problem is constructed according to the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the under-actuated system of the robot, and the preset nonlinear coefficient of the control model, wherein the preset nonlinear coefficient is used to control the degree of influence of nonlinearity on system stability.

2. The method according to claim 1, characterized in that Before constructing the quadratic programming problem according to the actual output torque of each joint and the maximum torque allowed by each joint, the method further includes: Determining mass data and moment of inertia data of the robot; The quadratic programming problem is constructed according to the actual output torque of each joint, the maximum torque allowed by each joint, the mass data and the moment of inertia data.

3. The method according to claim 1, characterized in that The solving of the quadratic programming problem to obtain the optimal control parameters of each joint includes: The preset first-order alternating direction multiplier method is used to solve the quadratic programming problem and obtain the optimal control parameters of each joint.

4. The method according to claim 3, characterized in that: The method of using a preset first-order alternating direction multiplier method to solve the quadratic programming problem and obtain the optimal control parameters of each joint includes: Decomposing the matrix in the quadratic programming problem by using a preset first-order alternating direction multiplier method to obtain a decomposed matrix; The quadratic programming problem is solved according to the decomposed matrix to obtain the optimal control parameters of each joint.

5. The method according to claim 4, characterized in that Solving the quadratic programming problem according to the decomposed matrix to obtain the optimal control parameters of each joint includes: If the matrix is ​​a sparse matrix, the quadratic programming problem is solved according to the decomposed matrix and the data structure of the optimal control parameters to obtain the optimal control parameters of each joint.

6. A robot control device, characterized in that: include: A construction module is used to construct a quadratic programming problem with constraints for the robot based on a control model of the robot and a preset power system stability function, wherein the control model includes: pre-planned control parameters of each joint in the robot; A solution module, used for solving the quadratic programming problem to obtain the optimal control parameters of each joint; A control module, used to control the robot to move according to the optimal control parameters; The construction module is also used for the control model to be a control model obtained in advance according to the dynamic model of the robot with an external contact force model; using the preset power system stability function to obtain the control law; according to the control model of the robot and the control law, calculating the actual output torque of each joint; according to the actual output torque of each joint and the maximum torque allowed by each joint, constructing the quadratic programming problem; wherein the maximum torque allowed by each joint is a set of multiple torque values; The construction module is also used to construct the quadratic programming problem based on the actual output torque of each joint, the maximum torque allowed by each joint, the selection matrix of the under-actuated system of the robot, and the preset nonlinear coefficient of the control model, wherein the preset nonlinear coefficient is used to control the degree of influence of nonlinearity on system stability.

7. A controller, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor implements the robot control method described in any one of claims 1 to 5 when executing the computer program.

8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is read and executed, the robot control method described in any one of claims 1 to 5 is implemented.