Robot and control method, device and computer readable storage medium thereof

By obtaining the inertia matrix and slack variables of the robot and optimizing the objective function to adjust the joint angles of the robot, the problem of insufficient flexibility in robot execution tasks in the existing technology is solved, and higher flexibility and stability are achieved.

CN114274141BActive Publication Date: 2024-10-22UBTECH ROBOTICS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111510769.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2024-10-22
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

In the existing technology, after the staff sets the task parameter path, the robot cannot effectively adjust according to the robot's own conditions, resulting in insufficient flexibility in executing the task.

Method used

By obtaining the inertia matrix and slack variables of the robot, the momentum equation is determined, and based on the preset weight coefficient and reference joint angle, the objective function is optimized to calculate the joint angle of the robot, thereby adjusting the robot's motion.

Benefits of technology

It improves the flexibility and stability of the robot when performing tasks, ensures the reliability and stability of tasks, and reduces the occurrence of abnormal problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114274141B_ABST
    Figure CN114274141B_ABST
Patent Text Reader

Abstract

The present application belongs to the field of robots, and proposes a robot and its control method, device and computer-readable storage medium. The method includes: obtaining the inertia matrix and slack variables of the robot, determining the momentum equation of the robot according to the inertia matrix and the slack variables; obtaining the reference joint angle corresponding to the reference action of the robot; determining the optimization objective function of the momentum equation according to the first weight coefficient of the slack variables and the second weight coefficient of the reference joint angle set in advance; determining the joint angle of the robot according to the optimization objective function, and driving the robot to move according to the joint angle of the robot. The present application can adjust the joint angle of the robot according to the reference action and slack variables, and on the premise of ensuring the stability and reliability of the robot through the momentum equation and optimizing the slack variables, the flexibility of the robot control can be improved through the weight coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of robots, and in particular to robots and control methods, devices and computer-readable storage media thereof. Background Art

[0002] The redundancy of the robot's mechanical arm means that the robot can use various different mechanical arm postures to make the end of the mechanical arm reach the same position, that is, the robot's mechanical arm has redundant degrees of freedom. By setting the robot's mechanical arm to have redundant degrees of freedom, the robot can complete the task through different postures, or find the optimal posture among multiple redundant degrees of freedom to perform the task, so that the robot can better complete the task.

[0003] After the robot's task is determined, the robot's inertia matrix can be transformed according to the robot's momentum equation to determine the angles of each joint of the robot. After the staff sets the reference path for the task, the robot cannot effectively adjust according to the set reference path and the robot's own situation, which is not conducive to improving the flexibility of the robot in performing tasks. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a robot and its control method, device and computer-readable storage medium to solve the problem in the prior art that after the staff sets the parameter path of the task, the robot cannot effectively adjust according to the set reference path and the robot's own situation, which is not conducive to improving the flexibility of the robot in performing tasks.

[0005] A first aspect of an embodiment of the present application provides a robot control method, the method comprising:

[0006] Acquire the inertia matrix and slack variables of the robot, and determine the momentum equation of the robot according to the inertia matrix and the slack variables;

[0007] Obtaining a reference joint angle corresponding to a reference action of the robot;

[0008] Determine the optimization objective function of the momentum equation according to a preset first weight coefficient of the slack variable and a second weight coefficient of the reference joint angle;

[0009] The joint angles of the robot are determined according to the optimization objective function, and the robot is driven to move according to the joint angles of the robot.

[0010] In combination with the first aspect, in a first possible implementation manner of the first aspect, determining the momentum equation of the robot according to the inertia matrix and the slack variable includes:

[0011] The momentum equation of the robot is determined according to the inertia matrix and the slack variables:

[0012]

[0013] Among them, h is the preset momentum of the robot, ω is the relaxation variable of the robot joint, A is the inertia matrix of the robot, is the joint angular velocity of the robot.

[0014] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, determining the momentum equation of the robot according to the inertia matrix and the slack variable further includes:

[0015] Based on the motion performed by the robot, the momentum of the robot is determined.

[0016] In combination with the first aspect, in a third possible implementation manner of the first aspect, determining the optimization objective function of the momentum equation according to a preset first weight coefficient of the slack variable and a second weight coefficient of the reference joint angle includes:

[0017] Determine the optimization objective function of the momentum equation according to the preset first weight coefficient of the relaxation variable and the second weight coefficient of the reference joint angle

[0018]

[0019] Among them, θ is the output joint angle of the robot, and θ min ≤θ≤θ max ,θ min is the minimum angle of the robot's joints, θ max is the maximum angle of the robot's joints, ω is the relaxation variable of the robot's joints, θ r is the reference joint angle, λ1 is the first weight coefficient, λ2 is the second weight coefficient, and both λ1 and λ2 are greater than 0, and their sum is a constant.

[0020] In combination with the first aspect, in a fourth possible implementation manner of the first aspect, determining the joint angle of the robot according to the optimization objective function includes:

[0021] Determining the angular velocity of the joints of the robot according to the optimization objective function;

[0022] The joint angle of the robot is determined according to the angular velocity of the joint.

[0023] In combination with the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, determining the joint angle of the robot according to the angular velocity of the joint includes:

[0024] According to the formula: Determine the joint angle of the robot, where θ(k) is the current joint angle and θ(k-1) is the joint angle at the previous moment. is the joint angular velocity at the current moment, and T is the time between the current moment and the previous moment.

[0025] In combination with the first aspect, in a sixth possible implementation manner of the first aspect, the preset first weight coefficient of the relaxation variable and the preset second weight coefficient of the reference joint angle include:

[0026] Acquire stability data of the robot, and adjust the first weight coefficient and the second weight coefficient according to the stability data of the robot.

[0027] A second aspect of an embodiment of the present application provides a control device for a robot, the device comprising:

[0028] A momentum equation determination unit, used for obtaining an inertia matrix and slack variables of the robot, and determining a momentum equation of the robot according to the inertia matrix and the slack variables;

[0029] A reference joint angle acquisition unit, used to acquire a reference joint angle corresponding to a reference action of the robot;

[0030] An optimization objective function determination unit, used to determine the optimization objective function of the momentum equation according to a preset first weight coefficient of the relaxation variable and a second weight coefficient of the reference joint angle;

[0031] A driving unit is used to determine the joint angles of the robot according to the optimization objective function, and drive the robot to move according to the joint angles of the robot.

[0032] A third aspect of an embodiment of the present application provides a robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.

[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0034] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: the present application determines the momentum equation of the robot through the inertia matrix and slack variables of the robot, and determines the optimization objective function to calculate the joint angle of the robot based on the reference joint angle corresponding to the reference action of the robot, combined with the first weight coefficient of the slack variables and the second weight coefficient of the reference joint angle, so that the joint angle of the robot can be adjusted according to the reference action and the slack variables. Under the premise of ensuring the stability and reliability of the robot through the momentum equation and optimizing the slack variables, the flexibility of the robot control can be improved through the weight coefficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 is a schematic diagram of a robot provided in an embodiment of the present application;

[0037] Figure 2 It is a schematic diagram of the implementation flow of a robot control method provided in an embodiment of the present application;

[0038] Figure 3 is a schematic diagram of a robot control device provided in an embodiment of the present application;

[0039] Figure 4 It is a schematic diagram of the robot provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0041] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0042] A redundant robot is a robot with more degrees of freedom than the minimum number of degrees of freedom required to complete a certain task. In order to complete various operating tasks, we often use redundant robots. For example, a 6-degree-of-freedom robot has complete spatial positioning capabilities, and more degrees of freedom can improve the robot's kinematic and dynamic characteristics, including increasing flexibility, avoiding obstacles, optimizing drive torque, etc. Therefore, the control of redundant robots has become increasingly important.

[0043] For general robots, they usually have multiple degrees of freedom. Figure 1 The robot shown has 6 degrees of freedom for each leg and 7 degrees of freedom for each arm. The robot has a total of 26 degrees of freedom. When solving the joint angles by combining the momentum equation with the 26 degrees of freedom of the whole body, it is necessary to transform and calculate the inertia matrix composed of the 26 joints. The calculated joint angles are not conducive to improving the flexibility of the robot in performing tasks.

[0044] Based on the above problems, the present application embodiment proposes a robot control method, such as Figure 2 As shown, the method includes:

[0045] In S201, the inertia matrix and slack variables of the robot are obtained, and the momentum equation of the robot is determined according to the inertia matrix and the slack variables.

[0046] Specifically, the inertia matrix of the robot can be determined based on the degrees of freedom of the robot and the vector dimension of each degree of freedom. For example, Figure 1 The robot shown includes 26 degrees of freedom, each of which can be represented by a six-dimensional vector. The six-dimensional vector can include the offset along the X, Y and Z axes, and the rotation around the X, Y and Z axes in the set coordinate system. Therefore, Figure 1 The matrix inertia of the robot shown can be expressed as a 26*6 dimensional matrix.

[0047] The introduction of the robot's slack variables allows the robot to solve in a larger feasible domain when completing a task. The larger the slack variables, the larger the feasible domain of the robot. The range of variation of the robot's slack variables can be determined based on the robot's design characteristics. However, as the robot's slack variables increase, the robot's activity space increases, and the robot's instability factors also increase. Therefore, the smaller the slack variables, the higher the stability and reliability of the robot when performing tasks.

[0048] The momentum equation of the robot determined according to the inertia matrix and the slack variables can be expressed as:

[0049]

[0050] Where h is the preset momentum of the robot, which can be a 6-dimensional vector, ω is the relaxation variable of the robot joint, which can be a 6-dimensional vector, and A is the inertia matrix of the robot. Assume that Figure 1 Taking the robot shown in the figure as an example, the inertia matrix can be a 26*6-dimensional matrix vector. is the robot's joint angular velocity, that is, the angle of the robot's joint change per unit time, which can be determined based on the joint angles at two adjacent calculation moments. For example, the joint angle at time t-1 is θ1, the joint angle at time t is θ2, and the time interval between time t and time t-1 is T, then the joint angular velocity at time t is (θ2-θ1) / T.

[0051] Among them, the momentum of the robot can be determined according to the action performed by the robot. For example, the momentum of a running robot can be set according to the running speed. Alternatively, for a robot that performs a bending action, the momentum of the corresponding robot to perform the action can be set. The correspondence between the robot action or state and the momentum of the robot can be preset. When the robot needs to perform a task, the momentum corresponding to each action is determined according to the action plan in the task, and the momentum equation is determined according to the determined momentum. The determined momentum equation is used to constrain the robot to perform tasks, so that the robot can effectively ensure the reliability and stability of performing tasks, and reduce the probability of abnormal problems such as falling of the robot.

[0052] The corresponding relationship between the momentum and the action or state of the robot can be determined in advance by statistics, experiments, etc. The action of the robot can be determined by the change of the posture of each joint of the robot. The different actions performed by the robot are determined according to the change amount of the posture of each joint of the robot, as well as the change speed and change order of the posture of each joint.

[0053] In S202, a reference joint angle corresponding to a reference action of the robot is obtained.

[0054] When the robot performs a task, the robot's reference action can be set. For example, when the robot performs a bending task or action, the reference action corresponding to the action can be set. Based on the reference action, the reference trajectory of the robot's hand and foot parts can be determined. According to the position of the reference trajectory at different times, the reference joint angle of the robot's joints at different times can be determined.

[0055] for example, Figure 1When the robot shown in the figure performs a bending action, the reference trajectory of each component of the robot when completing the bending action can be determined according to a preset reference action. According to the reference trajectory of the robot when completing the action, the reference joint angle of each joint of the robot can be determined. According to the reference joint angle corresponding to each moment in the bending process, the robot can refer to the angle to perform the corresponding action task.

[0056] In S203, the optimization objective function of the momentum equation is determined according to a preset first weight coefficient of the relaxation variable and a second weight coefficient of the reference joint angle.

[0057] After determining the momentum equation of the robot, the optimization objective function of the momentum equation may be further determined, thereby determining the optimal angle corresponding to each joint of the robot when executing the task objective.

[0058] The optimization objective function may include optimization for slack variables and optimization for reference actions. A first weight coefficient may be set to describe the optimization range of slack variables, and a second weight coefficient may be set to describe the optimization range for reference actions. For example, the optimization objective function may be expressed as:

[0059]

[0060] Among them, θ is the output joint angle of the robot, and θ min ≤θ≤θ max ,θ min is the minimum angle of the robot's joints, θ max is the maximum angle of the robot's joints, ω is the relaxation variable of the robot's joints, θ r is the reference joint angle, λ1 is the first weight coefficient, λ2 is the second weight coefficient, and both λ1 and λ2 are greater than 0, and the sum of the two is a constant, for example, λ1+λ2=1 can be set.

[0061] Through this optimization objective function, the slack variables are optimized in a smaller direction, and the difference between the joint angle and the joint reference angle is optimized in a smaller direction, so that the robot can perform the corresponding tasks as closely as possible according to the reference actions set by the staff, while also reducing the defects of robot instability or reduced reliability caused by excessive slack variables.

[0062] In the embodiment of the present application, the first weight coefficient and the second weight coefficient may correspond to the action of the robot, or the first weight coefficient and the second weight coefficient may correspond to the posture of the robot at different times when performing the action. When determining the corresponding relationship, the values ​​of the first weight coefficient and the second weight coefficient corresponding to the robot performing different actions or the actions performed by the robot at different postures can be determined by statistical, experimental and other methods.

[0063] Alternatively, the robot may obtain the stability of the robot when performing the task, and adjust the values ​​of the first weight coefficient and the second weight coefficient of the robot according to the obtained stability, so that the robot can perform the task more stably and reliably. Moreover, when the robot obtains better stability or reliability by revising the first weight coefficient and the second weight coefficient, the adjustment data and the adjusted stability and reliability data may be recorded and stored. When the robot performs an action, the first weight coefficient and the second weight coefficient with the best performance may be obtained from the pre-stored data.

[0064] In S204, the joint angles of the robot are determined according to the optimization objective function, and the robot is driven to move according to the joint angles of the robot.

[0065] An optimization objective function is determined based on the determined first weight coefficient and second weight coefficient in combination with a preset reference joint angle, and a solution to the momentum equation is determined based on the optimization objective function, including a slack variable in the momentum equation and an angular velocity of the joint.

[0066] Among them, the joint angle of the robot in the optimization objective function can be determined according to the angle difference between the current joint angle and the joint angle at the previous moment, and the change of the joint angle per unit time, that is, the angular velocity of the robot's joint, can be determined according to the angle difference.

[0067] Alternatively, the joint angular velocity may be combined with the joint angle at the previous moment to calculate the current joint angle of the robot.

[0068] After determining the relaxation variables of the momentum equation and the angular velocity of the joint according to the optimization objective function, the current joint angle of the robot can be determined according to the determined angular velocity of the joint and the joint angle of the robot at the previous moment.

[0069] For example, according to the formula: Determine the joint angle of the robot, where θ(k) is the current joint angle and θ(k-1) is the joint angle at the previous moment. is the joint angular velocity at the current moment, and T is the time between the current moment and the previous moment.

[0070] According to the determined joint angle of the robot at the current moment, the joint motor can be driven to rotate the joint, so that the robot completes the task according to the set reference action. In addition, the joint angle of the robot can satisfy the momentum equation while effectively reducing the size of the slack variable, which can improve the reliability of the robot in completing the task. By optimizing the first weight coefficient and the second weight coefficient in the objective function, the slack variable weight and the reference action weight of the robot during the movement process can be adjusted, so that the robot has higher flexibility during the movement process.

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

[0072] Figure 3 A schematic diagram of a robot control device provided in an embodiment of the present application, such as Figure 3 As shown, the device comprises:

[0073] A momentum equation determining unit 301 is used to obtain an inertia matrix and slack variables of the robot, and determine a momentum equation of the robot according to the inertia matrix and the slack variables;

[0074] A reference joint angle acquisition unit 302 is used to acquire a reference joint angle corresponding to a reference action of the robot;

[0075] An optimization objective function determination unit 303 is used to determine the optimization objective function of the momentum equation according to a preset first weight coefficient of the relaxation variable and a second weight coefficient of the reference joint angle;

[0076] The driving unit 304 is used to determine the joint angles of the robot according to the optimization objective function, and drive the robot to move according to the joint angles of the robot.

[0077] Figure 3 The robot control device shown is Figure 2 The control method of the robot shown corresponds to this.

[0078] Figure 4 is a schematic diagram of a robot provided in one embodiment of the present application. Figure 4 As shown, the robot 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40, such as a robot control program. When the processor 40 executes the computer program 42, the steps of the above-mentioned robot control method embodiments are implemented. Alternatively, when the processor 40 executes the computer program 42, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0079] Exemplarily, the computer program 42 may be divided into one or more modules / units, which are stored in the memory 41 and executed by the processor 40 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 42 in the robot 4.

[0080] The robot may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the robot 4 and does not constitute a limitation of the robot 4. The robot may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the robot may also include input and output devices, network access devices, buses, etc.

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

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

[0083] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0084] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0086] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or 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.

[0087] 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.

[0088] In addition, each functional unit in each embodiment of the present application 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 software functional units.

[0089] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0090] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A robot control method, characterized in that: The method comprises: Obtaining the inertia matrix and slack variables of the robot, and determining the momentum equation of the robot according to the inertia matrix and the slack variables, wherein the slack variables are six-dimensional vectors, and the six-dimensional vectors include offsets along the X, Y, and Z axes, and rotations around the X, Y, and Z axes in a set coordinate system, and the larger the slack variables are, the larger the feasible domain of the robot is; Obtaining a reference joint angle corresponding to a reference action of the robot; Determine the optimization objective function of the momentum equation according to a preset first weight coefficient of the slack variable and a second weight coefficient of the reference joint angle; The joint angles of the robot are determined according to the optimization objective function, and the robot is driven to move according to the joint angles of the robot.

2. The method according to claim 1, characterized in that Determining the momentum equation of the robot according to the inertia matrix and the slack variables includes: The momentum equation of the robot is determined according to the inertia matrix and the slack variables: Among them, h is the preset momentum of the robot, ω is the relaxation variable of the robot joint, A is the inertia matrix of the robot, is the joint angular velocity of the robot.

3. The method according to claim 2, characterized in that Determining the momentum equation of the robot according to the inertia matrix and the slack variables also includes: Based on the motion performed by the robot, the momentum of the robot is determined.

4. The method according to claim 1, characterized in that: Determining the optimization objective function of the momentum equation according to a preset first weight coefficient of the relaxation variable and a second weight coefficient of the reference joint angle includes: Determine the optimization objective function of the momentum equation according to the preset first weight coefficient of the relaxation variable and the second weight coefficient of the reference joint angle Among them, θ is the output joint angle of the robot, and θ min ≤θ≤θ max ,θ min is the minimum angle of the robot's joints, θ max is the maximum angle of the robot's joints, ω is the relaxation variable of the robot's joints, θ r is the reference joint angle, λ1 is the first weight coefficient, λ2 is the second weight coefficient, and both λ1 and λ2 are greater than 0, and their sum is a constant.

5. The method according to claim 1, characterized in that Determining the joint angles of the robot according to the optimization objective function includes: Determining the angular velocity of the joints of the robot according to the optimization objective function; The joint angle of the robot is determined according to the angular velocity of the joint.

6. The method according to claim 5, characterized in that Determining the joint angle of the robot according to the angular velocity of the joint includes: According to the formula: Determine the joint angle of the robot, where θ(k) is the current joint angle and θ(k-1) is the joint angle at the previous moment. is the joint angular velocity at the current moment, and T is the time between the current moment and the previous moment.

7. The method according to claim 1, characterized in that The preset first weight coefficient of the relaxation variable and the second weight coefficient of the reference joint angle include: Acquire stability data of the robot, and adjust the first weight coefficient and the second weight coefficient according to the stability data of the robot.

8. A robot control device, characterized in that: The device comprises: A momentum equation determination unit is used to obtain an inertia matrix and a slack variable of the robot, and determine the momentum equation of the robot according to the inertia matrix and the slack variable, wherein the slack variable is a six-dimensional vector, and the six-dimensional vector includes offsets along the X, Y and Z axes, and rotations around the X, Y and Z axes in a set coordinate system, and the larger the slack variable, the larger the feasible domain of the robot; A reference joint angle acquisition unit, used to acquire a reference joint angle corresponding to a reference action of the robot; An optimization objective function determination unit, used to determine the optimization objective function of the momentum equation according to a preset first weight coefficient of the relaxation variable and a second weight coefficient of the reference joint angle; A driving unit is used to determine the joint angles of the robot according to the optimization objective function, and drive the robot to move according to the joint angles of the robot.

9. A robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.