Robot motion control method, device, robot and storage medium

By optimizing the expected motion data of joints through a nonlinear model predictive control algorithm, the quadruped robot can autonomously switch from crawling on four legs to standing on two wheels, solving the problem of a single movement ability of the quadruped robot and enhancing its movement flexibility and operational capabilities.

CN114986526BActive Publication Date: 2024-09-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110227266.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-01
Publication Date
2024-09-06
Estimated Expiration
2041-03-01

AI Technical Summary

Technical Problem

There are few existing studies on motion control of quadruped robots, resulting in a single movement capability, which is mainly limited to four-legged crawling and lacks two-wheel standing and other complex movement capabilities.

Method used

The nonlinear model predictive control (NLMPC) algorithm is used to optimize the desired motion data of the joints, and the robot is controlled by the joint execution torque to achieve the target motion, including autonomous switching between quadruped crawling and two-wheel standing.

Benefits of technology

It enriches the robot's movement capabilities, enabling it to accurately and effectively perform target movements in compliance with dynamic constraints, and complete a variety of operating tasks while standing on two wheels, improving practicality and coolness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114986526B
    Figure CN114986526B
Patent Text Reader

Abstract

The present application discloses a robot motion control method, device, robot and storage medium, and relates to the field of robot control technology of artificial intelligence. The method comprises: based on the target state to be achieved by the target motion to be performed by the robot, the expected joint motion data of each joint of the robot at a specific time interval in the future is obtained by optimizing the objective function through a nonlinear model predictive control algorithm; the joint execution torque of each joint of the robot is obtained according to the expected joint motion data; the joint execution torque is used to control the movement of each joint of the robot so that the robot moves to the target state. The present application can control the robot to complete the target motion as expected, enriching the robot's motion ability; and, the nonlinear model predictive control algorithm is used to optimize and generate the expected joint motion data that is globally optimal and meets the relevant characteristics of the robot, ensuring that the robot can accurately and effectively perform the target motion while meeting the dynamic constraints.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence robot control technology, and more particularly to a robot motion control method, device, robot and storage medium. Background Art

[0002] With the development of artificial intelligence technology, some organizations and scientific research institutions have successively launched a number of robots that can walk automatically, such as bipedal robots and quadrupedal robots.

[0003] Taking quadruped robots as an example, current research on quadruped robots mostly focuses on the design of the main structure, and there is relatively little research on their motion control, which results in the current quadruped robots basically only having the ability to crawl on four legs. Summary of the invention

[0004] The embodiments of the present application provide a robot motion control method, device, robot and storage medium, which can enrich the robot's motion capabilities. The technical solution is as follows:

[0005] According to one aspect of an embodiment of the present application, a robot motion control method is provided, the method comprising:

[0006] Based on the target state to be achieved by the target motion to be performed by the robot, the expected joint motion data of each joint of the robot at a specific time interval in the future are obtained by optimizing the objective function through a nonlinear model predictive control algorithm;

[0007] According to the joint expected motion data, obtaining the joint execution torque of each joint of the robot at the future specific time interval;

[0008] The movement of each joint of the robot is controlled by the joint execution torque so that the robot moves toward the target state.

[0009] According to one aspect of an embodiment of the present application, a robot motion control device is provided, the device comprising:

[0010] An expected data acquisition module is used to obtain the expected joint motion data of each joint of the robot at a specific time interval in the future according to the objective function through a nonlinear model predictive control algorithm based on the target state to be achieved by the target motion to be performed by the robot;

[0011] An execution torque determination module, used for obtaining the joint execution torque of each joint of the robot at the future specific time interval according to the expected joint motion data;

[0012] The robot control module is used to control the movement of each joint of the robot through the joint execution torque so that the robot moves to the target state.

[0013] According to one aspect of an embodiment of the present application, a robot is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned robot motion control method.

[0014] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned robot motion control method.

[0015] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a robot reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the robot performs the above-mentioned robot motion control method.

[0016] The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:

[0017] By acquiring the expected joint motion data for guiding the robot to perform the target motion, and then obtaining the joint execution torque of each joint of the robot at a specific future time interval based on the expected joint motion data, and controlling the robot to perform the target motion accordingly, the technical solution provided in the embodiment of the present application can be used to control the robot to complete the target motion as expected, thereby enriching the robot's motion capabilities.

[0018] In addition, since the NLMPC algorithm is used in the present application to generate the expected joint motion data according to the objective function optimization, a nonlinear system model or constraint condition can be introduced in the optimization process, and the expected joint motion data can be made to satisfy the above-mentioned nonlinear system model or constraint condition, thereby obtaining more accurate expected joint motion data that conforms to the relevant characteristics of the robot, ensuring that the robot can accurately and effectively perform the target motion while complying with the dynamic constraints.

[0019] In addition, for the wheeled quadruped robot, the technical solution provided in the embodiment of the present application can be used to realize the double-wheeled standing and swinging control, so that the wheeled quadruped robot can autonomously switch between the two modes of movement: four-legged crawling and two-wheeled standing, thus taking into account the high-speed and efficient characteristics of wheeled movement and the flexible obstacle-crossing characteristics of footed movement. At the same time, in the state of two-wheeled standing movement, the front legs are liberated, and a variety of operation tasks can be completed without adding additional auxiliary mechanical arms, which improves the practicality and coolness of the wheeled quadruped robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.

[0021] Figure 1 It is a structural schematic diagram of a foot-wheel composite quadruped robot shown in the present application;

[0022] Figure 2 is a schematic diagram of a foot-wheel composite quadruped robot shown in the present application changing to a two-wheel standing state;

[0023] Figure 3 is a schematic diagram of a foot-wheel composite quadruped robot shown in the present application performing an operation task in a two-wheel standing state;

[0024] Figure 4 is a schematic diagram of a foot-wheel composite quadruped robot interacting with a user in a two-wheel standing state shown in the present application;

[0025] Figure 5 is a schematic diagram of a wheeled compound quadruped robot switching between various states shown in the present application;

[0026] Figure 6 is a flow chart of a robot motion control method provided by an embodiment of the present application;

[0027] Figure 7 is a flow chart of a robot motion control method provided by another embodiment of the present application;

[0028] Figure 8 is a flow chart of a robot motion control method provided by another embodiment of the present application;

[0029] Fig. 9 is a flow chart of a robot motion control method provided by another embodiment of the present application;

[0030] Fig.10 is a schematic diagram of a six-link mechanism corresponding to a foot-wheel composite quadruped robot shown in the present application;

[0031] Fig.11 is a schematic diagram of a wheel kinematic analysis of a foot-wheel composite quadruped robot shown in the present application;

[0032] Fig.12 is a flow chart of a two-wheel standing balance control provided by an embodiment of the present application;

[0033] Fig.13 is a schematic diagram of a second-order inverted pendulum-like model corresponding to a wheeled composite quadruped robot shown in the present application;

[0034] Fig.14 This is a flow chart of a two-wheel standing landing control provided by an embodiment of the present application;

[0035] Fig.15 is a block diagram of a robot motion control device provided by an embodiment of the present application;

[0036] Fig.16 is a block diagram of a robot motion control device provided by another embodiment of the present application;

[0037] Fig.17 This is a simplified structural block diagram of a robot provided by an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0039] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0040] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0041] The technical solution of this application mainly involves the robot technology in artificial intelligence technology, mainly involving robot intelligent control. Robots are mechanical and electronic devices that can imitate certain human skills by combining mechanical transmission and modern microelectronics technology. Robots are developed on the basis of electronic, mechanical and information technology. Robots do not necessarily have to look like humans. As long as they can independently complete the tasks and commands assigned to them by humans, they are members of the robot family. A robot is an automated machine that has some intelligent abilities similar to those of humans or organisms, such as perception, planning, movement and coordination. It is an automated machine with high flexibility. With the development of computer technology and artificial intelligence technology, robots have been greatly improved in terms of function and technical level. Mobile robots and robot vision and touch technologies are typical representatives.

[0042] The robot motion control method provided in the embodiment of the present application can make the robot move according to the center of mass reference trajectory, so as to complete a certain target motion. For example, the target motion can be the motion process from the four-legged state to the two-legged state, or the motion process from the two-legged state to the jumping state, etc.

[0043] In one example, a robot is a quadruped robot with wheels. The so-called quadruped robot with wheels refers to a quadruped robot with two front legs and two hind legs, and the feet of the quadruped robot are equipped with wheels, so that the quadruped robot can perform both quadruped walking and wheeled movement. The above-mentioned wheels can be installed only on the hind legs of the quadruped robot, or only on the front legs of the quadruped robot, or corresponding wheels can be installed on both the front legs and the hind legs of the quadruped robot.

[0044] like Figure 1As shown, it exemplarily shows a structural schematic diagram of a wheeled composite quadruped robot. The wheeled composite quadruped robot may include: a camera 1, a trunk 2, three-degree-of-freedom front legs 3, 4 (two left and right), front wheels 5, 6 (active or passive, two left and right), three-degree-of-freedom hind legs 7, 8 (two left and right), and rear wheels 9, 10 (active, two left and right). Among them, the camera 1 has an image acquisition function, such as acquiring an image of the surrounding environment so as to analyze the image of the surrounding environment, thereby planning a suitable walking route for the robot. In the state of four-legged lying on the ground, the wheeled composite quadruped robot can use the three-degree-of-freedom front legs 3, 4 (two left and right) and the three-degree-of-freedom hind legs 7, 8 (two left and right) to contact the ground, and the motor drives and controls the above four legs respectively to achieve quadruped walking. In addition, by controlling the front wheels 5, 6 and the rear wheels 9, 10 to be grounded, and the other parts leave the ground, four-wheel sliding can be achieved; or, by controlling the rear wheels 9, 10 to be grounded, and the other parts leave the ground, two-wheel sliding can be achieved.

[0045] In the embodiment of the present application, in order to realize the two-wheel standing control of the quadruped robot, Figure 1 The trunk 2, three-degree-of-freedom front legs 3, 4 (two on the left and right), three-degree-of-freedom hind legs 7, 8 (two on the left and right), and rear wheels 9, 10 (active, two on the left and right) in the shown structure are necessary hardware, and the others are non-essential hardware.

[0046] Figure 1 The wheeled quadruped robot can autonomously switch between the two modes of movement: four-legged crawling and two-wheeled standing, thus taking into account the high-speed and high-efficiency characteristics of wheeled movement and the flexible obstacle-crossing characteristics of footed movement. At the same time, in the state of two-wheeled standing movement, the front legs are freed, and a variety of operation tasks can be completed without adding additional auxiliary mechanical arms, which improves the practicality and coolness of the wheeled quadruped robot.

[0047] For example, Figure 2 As shown in the figure, the foot-wheel composite quadruped robot can change from the four-legged grounded state to the four-wheeled grounded state, and then from the four-wheeled grounded state to the two-wheeled standing state. After standing on the two wheels, the quadruped robot can move at high speed in a wheeled manner. Compared with the foot-style movement of traditional quadruped robots, the movement efficiency is improved and it is more suitable for structured scenes, such as residential areas and industrial parks. Figure 3 As shown in the figure, after the two-wheeled standing, the movement space of the two forelimbs of the quadruped robot is increased, and a variety of operation tasks can be completed without adding additional auxiliary mechanical arms, such as Figure 3 the items shown in part (a) of the Figure 3 The door opening operation shown in part (b) of Figure 4As shown, the free switching between quadruped and two-wheel motion and autonomous two-wheel standing can serve as a cool demonstration of the foot-wheel composite quadruped robot, increasing the diversity of human-computer interaction.

[0048] The robot provided in the embodiment of the present application is Figure 1 In the case of a wheeled quadruped robot, as shown in Figure 5 As shown, it can include the following motion states: first, the wheeled quadruped robot is in a normal quadruped standing state; then, the end position of the sole is controlled to make it enter a two-wheel standing preparatory state, that is, the trunk is tilted at a certain angle, and the soles of the front legs, the soles of the hind legs and the rear wheels touch the ground; then, the two-wheel standing swing is realized by using nonlinear model predictive control; then, the LQR (Linear Quadratic Regulator) control of the second-order inverted pendulum model is used to realize the two-wheel standing balance; thereafter, the robot can enter a two-wheel standing moving state, and its front legs can swing freely; when the movement is completed, the two-wheel standing landing control is used to restore the robot to the four-legged standing state.

[0049] Please refer to Figure 6 , which shows a flow chart of a robot motion control method provided by an embodiment of the present application. The execution subject of each step of the method may be a robot, such as a processor provided in the robot. The method may include the following steps (610-630):

[0050] Step 610, based on the target state to be achieved by the target motion to be performed by the robot, the expected joint motion data of each joint of the robot at a specific time interval in the future is obtained by optimizing the objective function through a nonlinear model predictive control algorithm.

[0051] The robot may or may not change position while performing the target motion. However, the position of the robot's center of mass will change. The center of mass of a robot is the center of mass of the robot, an imaginary point on the robot where the mass is considered to be concentrated. The target motion can be any motion in which the position of the center of mass changes.

[0052] Taking a quadruped robot as an example, the target motion may be a motion process from a four-legged state to a two-legged state, or a motion process from a two-legged state to a jumping state. Of course, for different types of robots, the target motion may also be any other motion as long as the center of mass position changes, such as crawling on four legs in a certain direction, walking on two legs in a certain direction, etc., which is not limited in the embodiments of the present application.

[0053] The target state can be a state that needs to be reached in the process of executing the target movement, or a state that needs to be reached when the target movement is completed. The process of executing the target movement can be regarded as a process of switching in sequence between the various states contained in a state sequence. For example, the initial state of the target movement is state 1, and the state that needs to be reached when the target movement is completed is state n (n is an integer greater than 1). Then the process of executing the target movement can be regarded as a process of switching from state 1 to state 2, then from state 2 to state 3, ..., and finally from state n-1 to state n. Correspondingly, the target state can be the above-mentioned state n, or any intermediate state (such as state 4, state 5, etc.).

[0054] In an embodiment of the present application, the joint expected motion data is used to guide the robot to perform the target motion, for example, to guide the robot to move to the above-mentioned target state. The joint expected motion data can be generated by other devices and pre-stored in the memory of the robot. When the robot's processor needs to use the joint expected motion data, it can obtain the joint expected motion data from the memory. Of course, in some other embodiments, the joint expected motion data can also be generated by the robot's processor when the robot's processor computing power allows. In addition, for the generation method of the joint expected motion data, please refer to the description in the following embodiment.

[0055] Optionally, the joint expected motion data includes a time series of expected joint angles of each joint of the robot. The robot may include multiple joints, each joint being used to connect two different parts of the robot, so that the relative position relationship between the two parts connected by the joint can be changed by applying a torque to the joint. Figure 1 In the wheeled quadruped robot shown, the three-degree-of-freedom hind legs are divided into two parts, the first part and the second part are connected by a rear wheel, and the rear wheel can be regarded as a joint between the first part and the second part of the hind legs, which can change the relative position relationship between the first part and the second part of the hind legs. For another example, the relative position relationship between the three-degree-of-freedom hind legs and the trunk can also be changed, so the three-degree-of-freedom hind legs and the trunk are also connected by corresponding joints.

[0056] The expected joint angle time series of each joint includes multiple expected joint angles of the joint arranged in sequence in the time domain space. For any joint, the joint angle can refer to the angle between the two parts connected by the joint, and the expected joint angle refers to the joint angle expected to be achieved.

[0057] Optionally, the joint expected motion data also includes the expected joint torque time series of each joint of the robot. The expected joint torque time series of each joint includes a plurality of expected joint torques of the joint arranged in order in the time domain space. For any joint, the joint torque may refer to the torque that needs to be applied to the joint, and the expected joint torque refers to the joint torque that is expected to be applied.

[0058] In one example, the joint expected motion data includes the expected joint angle time series and the expected joint torque time series of each joint of the robot. Among them, for any joint, the expected joint angle and the expected joint torque in the expected joint angle time series and the expected joint torque time series of the joint correspond one to one, that is, at the same time point, there is a corresponding expected joint angle in the expected joint angle time series, and there is a corresponding expected joint torque in the expected joint torque time series. The expected joint angle and the expected joint torque corresponding to the same time point of the joint can be called a set of expected joint angles and expected joint torques of the joint. Taking any joint as an example, in a set of expected joint angles and expected joint torques corresponding to the joint at the i-th time point, the expected joint angle corresponding to the joint at the i-th time point describes an expected state of the joint (denoted as state i), and the expected joint angle corresponding to the joint at the i+1-th time point describes another expected state of the joint (denoted as state i+1). The expected joint torque corresponding to the joint at the i-th time point describes the expected joint torque that needs to be applied to the joint in order to change the joint from state i to state i+1, where i is a positive integer.

[0059] In an embodiment of the present application, the joint expected motion data is obtained by optimizing the objective function through the NLMPC (Nonlinear Model Predictive Control) algorithm. MPC (Model Predictive Control) refers to the use of an optimization algorithm to calculate the system input based on future information so that the actual output of the system can better follow the expected output. Usually, model predictive control refers to LMPC (Linear Model Predictive Control), and NLMPC is a variation of model predictive control, mainly because the system model or optimization constraints are nonlinear.

[0060] The objective function is an optimization function set to achieve the robot's target motion (such as moving to the target state). By selecting different joint expected motion data, different numerical results of the objective function will be calculated. Assuming that the optimization goal is to minimize the value of the objective function, the robot can achieve the target motion. Then, when there is a set of joint expected motion data that minimizes the value of the objective function, this set of joint expected motion data is the optimized joint expected motion data.

[0061] In an exemplary embodiment, if Figure 7 As shown, step 610 includes the following sub-steps:

[0062] Step 612, determining the gap data between the expected joint motion data and the target state according to the objective function.

[0063] Step 614, with the goal of reducing the absolute value of the gap data, optimize the joint expected motion data through a nonlinear model predictive control algorithm.

[0064] In the embodiment of the present application, the objective function can be used to calculate the gap data between the joint expected motion data and the target state; if the absolute value of the gap data is smaller, it indicates that the joint expected motion data is closer to the target state; conversely, if the absolute value of the gap data is larger, it indicates that the joint expected motion data is farther away from the target state. In the case where the absolute value of the gap data is too large, the joint expected motion data can be adjusted and optimized to make the absolute value of the gap data smaller, so as to better approach the target state.

[0065] For example, joint reference motion data can be determined based on the target state, and the joint reference motion data can include reference motion data of each joint of the robot, such as reference joint angle, reference joint angular velocity, etc. The parameter types in the joint reference motion data and the joint expected motion data can correspond to each other, so as to better calculate the gap data between the two.

[0066] Since in the present application, the NLMPC algorithm is used to optimize and generate the joint expected motion data according to the objective function, a nonlinear system model or constraint condition (such as the nonlinear state equation described below) can be introduced in the optimization process, and the joint expected motion data is made to meet the above nonlinear system model or constraint condition, thereby obtaining more accurate joint expected motion data that conforms to the relevant characteristics of the robot. For the specific process of optimizing and generating joint expected motion data based on the NLMPC algorithm, please refer to the description in the following embodiment.

[0067] Step 620, obtaining the joint execution torque of each joint of the robot at a specific time interval in the future according to the expected joint motion data.

[0068] Optionally, according to the actual joint motion data of the robot and the above-mentioned joint expected motion data, the joint execution torque of each joint of the robot at a specific time interval in the future is obtained. The actual joint motion data of the robot refers to the joint motion data corresponding to the current state of the robot, and the joint motion data includes one or more data related to the joints used to describe the current state of the robot, such as the actual joint angles of each joint of the robot, the actual joint angular velocity and other data. The expected joint motion data of the robot refers to the joint motion data corresponding to the expected state of the robot (i.e., the above-mentioned "target state"), and the joint motion data includes one or more data related to the joints used to describe the expected state of the robot, such as the expected joint angles of each joint of the robot, the expected joint angular velocity and other data. For any joint, the joint angular velocity can refer to the change in the joint angle per unit time, which is used to describe the speed of change of the joint angle over time.

[0069] The future specific time interval refers to the time interval from the current moment to a specific moment in the future, and the future specific time interval may include multiple control cycles. In an embodiment of the present application, the robot's processor reads sensor data (obtains actual motion data by reading sensor data), performs control calculations, and sends the calculated results (such as the above-mentioned joint execution torque) to the motor for execution. The time used to complete such a closed loop is called a control cycle. The multiple control cycles included in the future specific time interval can be simplified as the future specific time interval including multiple time points, and each time point can be the starting moment of a control cycle.

[0070] The joint execution torque refers to the torque generated by a torque applying device such as a motor and applied to the joint to make the joint move. When a specific time interval in the future includes multiple control cycles, for a certain joint, the joint execution torque of the joint in the specific time interval in the future includes the joint execution torques corresponding to the joint in the above-mentioned multiple control cycles (or multiple time points). For example, if the specific time interval in the future is p=2ms and the control cycle T=100us, then the specific time interval in the future includes 20 control cycles. Then for a certain joint, the joint execution torque of the joint in the specific time interval in the future includes the joint execution torques corresponding to the joint in the above-mentioned 20 control cycles (or 20 time points), that is, it includes 20 joint execution torques. In the first control cycle / time point, the joint execution torque corresponding to each joint in the first control cycle / time point is calculated, and then the joint execution torque corresponding to the one control cycle / time point is applied to each joint of the robot through the driving motor; in the second control cycle / time point, the joint execution torque corresponding to each joint in the second control cycle / time point is calculated, and then the joint execution torque corresponding to the two control cycles / time points is applied to each joint of the robot through the driving motor, and so on.

[0071] In an exemplary embodiment, if Figure 8 As shown, step 620 includes the following sub-steps:

[0072] Step 622, performing differential processing on the expected joint angle time series of each joint included in the expected joint motion data according to the control cycle to obtain the expected joint angular velocity time series of each joint.

[0073] For any joint, the expected joint angle time series of the joint includes multiple expected joint angles of the joint arranged in sequence in the time domain space; accordingly, the expected joint angular velocity time series of the joint includes multiple expected joint angular velocities of the joint arranged in sequence in the time domain space.

[0074] Optionally, the expected joint angular velocity is calculated using the following formula:

[0075]

[0076] in, is the expected joint angular velocity of the kth control cycle, q ref [k] is the expected joint angle of the kth control cycle, q ref [k-1] is the expected joint angle of the k-1th control cycle (that is, the previous control cycle of the kth control cycle), and T is the duration of the control cycle, that is, the interval between two adjacent time points in the time domain space.

[0077] Step 624, based on the difference between the actual joint angle and the expected joint angle of each joint, determine the first action torque of each joint at a specific time interval in the future.

[0078] The first action torque is used to compensate for the error between the actual joint angle and the expected joint angle, so that the actual joint angle is close to the expected joint angle.

[0079] Step 626, based on the difference between the actual joint angular velocity and the expected joint angular velocity of each joint, determine the second action torque of each joint at a specific time interval in the future.

[0080] The second action torque is used to compensate for the error between the actual joint angular velocity and the expected joint angular velocity, so that the actual joint angular velocity is close to the expected joint angular velocity.

[0081] Step 628 , based on the first action torque and the second action torque of each joint in the future specific time interval, determine the joint execution torque of each joint in the future specific time interval.

[0082] For example, for any joint, the joint execution torque of the joint is obtained based on the sum of the first action torque and the second action torque of the joint.

[0083] It should be noted that the present application does not limit the execution order of the above steps 624 and 626. For example, step 624 can be executed before step 626, or after step 626, or simultaneously with step 626. The present application does not limit this.

[0084] Alternatively, if Fig. 9 As shown, in the case where the joint expected motion data also includes the expected joint torque time series of each joint, step 620 also includes the following sub-step 623: based on the expected joint torque time series of each joint included in the joint expected motion data, determine the expected joint torque of each joint at a specific time interval in the future. For any joint, the expected joint torque time series of the joint includes a plurality of expected joint torques of the joint arranged in order in the time domain space.

[0085] Accordingly, the above step 628 can be replaced by the following step: determining the joint execution torque of each joint at a specific time interval in the future based on the first action torque, the second action torque and the expected joint torque of each joint at a specific time interval in the future.

[0086] Taking the expected joint angle and expected joint angular velocity of each joint as reference values, the joint angle error and joint angular velocity error of each joint are mapped to joint torque. At the same time, combined with the expected joint torque of each joint, the joint execution torque of each joint is calculated.

[0087] Optionally, the joint execution torque τ is calculated using the following formula:

[0088]

[0089] in, is the PD gain, τ opt is the desired joint torque, They represent the expected joint angular velocity and the actual joint angular velocity, q ref ,q act Represent the expected joint angle and the actual joint angle respectively. The first action moment is The second torque is

[0090] Step 630 , controlling the movement of each joint of the robot by executing the torque of each joint at a specific time interval in the future, so that the robot moves toward the target state.

[0091] After obtaining the joint execution torque of each joint of the robot at a specific time interval in the future, the joint execution torque is applied to each joint of the robot through the driving motor to make the robot move to the target state.

[0092] For example, when the target movement is to change from a four-legged state to a two-legged state, the actual joint angle, actual joint angular velocity, expected joint angle, expected joint angular velocity and expected joint torque of each joint of the robot are obtained in each control cycle, and the joint execution torque of each joint in the control cycle is obtained using the method introduced above. Then the joint execution torque of each joint is applied to each joint respectively, and the above process is continuously repeated according to the control cycle, so that the robot finally changes from a four-legged state to a two-legged state.

[0093] To sum up, the technical solution provided in the embodiments of the present application obtains the expected joint motion data for guiding the robot to perform the target motion, and then obtains the joint execution torque of each joint of the robot at a specific time interval in the future based on the expected joint motion data, and controls the robot to perform the target motion accordingly. By adopting the technical solution provided in the embodiments of the present application, the robot can be controlled to complete the target motion as expected, thereby enriching the robot's motion capability.

[0094] In addition, since the NLMPC algorithm is used in the present application to generate the expected joint motion data according to the objective function optimization, a nonlinear system model or constraint condition can be introduced in the optimization process, and the expected joint motion data can be made to satisfy the above-mentioned nonlinear system model or constraint condition, thereby obtaining more accurate expected joint motion data that conforms to the relevant characteristics of the robot, ensuring that the robot can accurately and effectively perform the target motion while complying with the dynamic constraints.

[0095] In addition, the expected joint motion data in the present application includes the expected torque and angle data of each joint of the robot, which realizes precise control of the joint granularity and makes the robot's movements more refined and realistic.

[0096] In addition, for the wheeled quadruped robot, the technical solution provided in the embodiment of the present application can be used to realize the double-wheeled standing and swinging control, so that the wheeled quadruped robot can autonomously switch between the two modes of movement: four-legged crawling and two-wheeled standing, thus taking into account the high-speed and efficient characteristics of wheeled movement and the flexible obstacle-crossing characteristics of footed movement. At the same time, in the state of two-wheeled standing movement, the front legs are liberated, and a variety of operation tasks can be completed without adding additional auxiliary mechanical arms, which improves the practicality and coolness of the wheeled quadruped robot.

[0097] Next, the optimization process of the joint expected motion data is introduced and explained.

[0098] In an exemplary embodiment, the objective function includes a first sub-objective function, wherein the first sub-objective function takes reaching a target state as an optimization goal, takes the target state as a reference state, and expects the robot to continuously approach the reference state in each control cycle.

[0099] In an exemplary embodiment, the expected joint motion data includes multiple predicted first state variables corresponding to multiple time points in a specific future time interval of the robot, and the first sub-objective function is the weighted sum of the differences between the multiple predicted first state variables and the reference first state variable, the reference first state variable is the first state variable corresponding to the target state, and the first state variable includes a generalized position and a generalized velocity.

[0100] Optionally, the construction process of the first sub-objective function is as follows:

[0101] 1. Using a nonlinear state equation to calculate multiple predicted first state variables of the robot corresponding to multiple time points in a specific time interval in the future; wherein the predicted first state variable corresponding to a target time point in the specific time interval in the future is calculated based on the first state variable at a time point before the target time point;

[0102] 2. Based on the above-mentioned multiple predicted first state variables and reference first state variables, calculate the absolute values ​​of the differences of the multiple first state variables corresponding to the above-mentioned multiple time points; wherein the first state variable difference refers to the difference between the predicted first state variable and the reference first state variable;

[0103] 3. Based on the sum of the absolute values ​​of the differences of the above-mentioned multiple first state variables, a first sub-objective function is constructed, and the optimization goal of the first sub-objective function is to make the value of the first sub-objective function reach the minimum value.

[0104] That is, the first sub-objective function J X It can be expressed by the following formula:

[0105]

[0106] Among them, X k+j represents the predicted first state variable of the k+jth control cycle / time point, X k+j,ref represents the reference first state variable of the k+jth control cycle / time point, W j represents a positive definite diagonal weight matrix, p represents the prediction time length (that is, the "future specific time interval" introduced above, which includes multiple control cycles), and the value range of j is an integer between [1, p].

[0107] It should be noted that the reference first state variable can be a constant value in theory (e.g., the reference first state variable is set according to the state required to complete the target motion), or in practical applications, in order to save computing power and reduce optimization time, a corresponding reference first state variable can be set for each control cycle. Specifically, given a spline curve, the spline curve is interpolated according to the control cycle to obtain the reference first state variable corresponding to each control cycle. The spline curve can be set arbitrarily, as long as the change in acceleration is smooth.

[0108] Optionally, in addition to the first sub-objective function, the objective function also includes a second sub-objective function, wherein the second sub-objective function takes the change of the input force information applied to the robot as small as possible as the optimization goal, and it is expected that the input torque and ground contact force will not change too much suddenly.

[0109] In an exemplary embodiment, the expected joint motion data also includes multiple expected input force information corresponding to multiple time points in a specific future time interval of the robot, and the second sub-objective function is the weighted sum of the differences between every two adjacent expected input force information in the time domain space.

[0110] In an exemplary embodiment, the construction process of the second sub-objective function is as follows:

[0111] 1. Use nonlinear state equations to calculate multiple input force information corresponding to multiple time points in a specific time interval in the future;

[0112] 2. Based on the input force information at the current time point and the multiple input force information corresponding to the multiple time points, calculate the absolute value of the difference between the input force information corresponding to every two adjacent time points in the time domain space;

[0113] 3. Based on the sum of the absolute values ​​of the differences between the input force information corresponding to multiple groups of adjacent time points, a second sub-objective function is constructed, and the optimization goal of the second sub-objective function is to minimize the value of the second sub-objective function.

[0114] That is, the second sub-objective function J U It can be expressed by the following formula:

[0115]

[0116] Among them, U k+j represents the input force information of the k+jth control cycle / time point, U k+j-1 represents the input force information of the k+j-1th control cycle / time point, R j represents a positive definite diagonal weight matrix, p represents the prediction time length (that is, the "future specific time interval" introduced above, which includes multiple control cycles), and the value range of j is an integer between [1, p].

[0117] Exemplarily, the objective function includes the first sub-objective function J X and the second sub-objective function J U In the case of opt as follows:

[0118]

[0119] Among them, the above objective function J opt It consists of two parts. Part I X Taking reaching the target state as the optimization goal, Part II J U The optimization goal is to minimize the change of the input force information applied to the robot. Taking the target motion of two-wheeled standing and swinging as an example, the first part J X The optimization goal is to achieve the two-wheel stand-up swing, that is, the end state of the two-wheel stand-up swing is taken as the target state, and it is expected that the robot will continue to approach the target state in each control cycle; the second part J U The optimization goal is to minimize the change in input force information, that is, the expected input torque and ground contact force should not have excessive mutations.

[0120] In addition, the above W and R are pre-set weight matrices. Taking W as an example, the dimensions of W correspond to the dimensions in the first state variable X (such as position, speed, acceleration, angular velocity, angle, etc.). If a certain dimension is to be better, the weight set for that dimension will be larger. For example, in the two-wheel standing swing control, if you want the final swing speed to be 0 and the angle / posture to reach a vertical posture, you can set the weights of speed and angle to be larger. In actual operation, the weight matrix R is mainly the force in the z direction, and the weight of this dimension is required to be set larger. The weight matrix W is mainly the weight corresponding to the speed and angle, which is set larger.

[0121] It should be noted that the objective function may only include the first sub-objective function, which can also achieve the control of the robot to complete the target movement. In some preferred schemes, the objective function may include the first sub-objective function and the second sub-objective function at the same time, and under the premise of achieving the control of the robot to complete the target movement, the input force information of the robot is made to have no excessive mutation as much as possible, so as to ensure that the robot movement is smoother and more natural.

[0122] Based on the above objective function, the gap data between the joint expected motion data and the target state can be determined according to the objective function, and then the joint expected motion data can be optimized by the nonlinear model predictive control algorithm with the goal of reducing the absolute value of the gap data. Figure 7 As shown, step 614 may include the following sub-steps:

[0123] Step 614a, obtaining a relationship condition between the predicted first state variable and the expected input force information, the relationship condition being used to limit the relationship between at least two data of the predicted first state variable and the expected input force information, the relationship condition comprising a nonlinear state equation corresponding to the structure of the robot;

[0124] Step 614b, obtaining a constraint condition for predicting the first state variable or the expected input force information, where the constraint condition is used to limit the value range of at least one physical quantity in predicting the first state variable and the expected input force information;

[0125] Step 614c, based on the relationship conditions and constraint conditions, with the goal of reducing the absolute value of the gap data, optimize the joint expected motion data through a nonlinear model predictive control algorithm.

[0126] The predicted first state variable may have corresponding constraints, the expected input force information may also have corresponding constraints, and the relationship between the predicted first state variable and the expected input force information may also be set with corresponding relationship conditions, and the above constraints and relationship conditions (collectively referred to as constraints) are used to limit the values ​​of the predicted first state variable and the expected input force information. In addition, the above constraints can be set based on the dynamic constraints of the robot, so that the generated predicted first state variable and the expected input force information meet the dynamic constraints, and then the optimized joint expected motion data can also meet the dynamic constraints.

[0127] Optionally, a nonlinear state equation is established based on the floating base dynamics model of the robot; wherein the nonlinear state equation is used to calculate the above-mentioned multiple predicted first state variables and multiple expected input force information. The nonlinear state equation defines the relationship between the first state variable and the input force information based on the structure of the robot (such as the dynamics model of the robot). By solving the nonlinear state equation, the predicted first state variable and the expected input force information that meet the dynamic constraints can be obtained.

[0128] The first state variable includes a generalized position and a generalized velocity. Among them, the generalized position includes the position of the robot's center of mass, the rotation angle of the center of mass coordinate system, and the angle of each joint. The generalized velocity includes the velocity of the robot's center of mass, the angular velocity of the center of mass coordinate system, and the angular velocity of each joint. Input force information refers to the generalized input force acting on the robot, such as information including joint torque and contact force (or friction force). In scenarios where the robot is required to perform different actions, the specific content included in the input force information may be different, and this application does not limit this.

[0129] Taking the wheeled quadruped robot as an example, the wheeled quadruped robot can be simplified into a sagittal plane six-bar linkage mechanism, such as Fig.10 As shown. The robot is divided into two parts, the left and right sections are the sagittal planes, and the equal sections on the left and right are called the midsagittal planes. Construct the dynamic model of the planar six-link whole-body floating base:

[0130]

[0131] in, represents the inertia matrix, represents the Coriolis force and centrifugal force vector, represents the gravity vector, represents the generalized position vector describing the robot configuration, represents generalized velocity and generalized acceleration, represents the selection matrix, N J ×3 zero matrix, N J ×N J The identity matrix of represents the joint torque, represents the Jacobian matrix of the contact point, Indicates the contact force at the contact point; N J Indicates the number of joints, N G =N J +3 represents the number of generalized joints with three underactuated degrees of freedom with floating basis, N C Indicates the number of contact points.

[0132] It should be noted that the base coordinate system of the robot is mobile (floating) in the world coordinate system. The derivation of the robot dynamics equation in this base coordinate system is called the establishment of a floating base dynamics model. The base of the floating base in this application is established at the center of mass. Corresponding to the floating base is the fixed base, that is, the base coordinate system does not move in the world system, such as a robotic arm fixed to a desktop.

[0133] Secondly, the nonlinear state equation is established based on this floating base dynamics model:

[0134]

[0135] The first state variable X includes the generalized position q and the generalized velocity Expressed as The input force information U includes the joint torque τ and the contact force f, which can be expressed as If the first state variable X and the input force information U are known, the differential of the first state variable X can be calculated in is the generalized acceleration. Therefore, Equation 7 is used as the state function.

[0136] For the robot joint, the generalized position q can also be called the generalized angle, the generalized velocity Also known as generalized angular velocity, generalized acceleration It can also be called generalized angular acceleration. Then, the generalized acceleration obtained by equation 7 is discretely summed, that is:

[0137]

[0138] Among them, q[k], are the generalized angle, generalized angular velocity, and generalized angular acceleration at the kth control cycle / time point, q[k-1], is the generalized angle and generalized angular velocity of the k-1th control cycle / time point; T is the duration of the control cycle. From this, the generalized position and generalized velocity of the next control cycle / time point can be obtained as output.

[0139] Optionally, in addition to the nonlinear state equation, the above-mentioned constraint conditions may also include at least one of the following: joint physical constraint, contact point friction constraint, and wheel dynamic constraint.

[0140] The joint physical constraints are used to limit the first state variable and the input force information. The joint physical constraints belong to the constraints for predicting the first state variable and the constraints for the expected input force information. For example, according to the actual robot body and its motor physical characteristics, the first state variable X and the input force information U are limited, that is:

[0141]

[0142] From the above formula 9, it can be seen that the joint physical constraints are used to control the generalized position q and the generalized velocity The value range of the joint torque τ is limited.

[0143] The contact point friction constraint is used to limit the friction force at the contact point between the robot and the load-bearing surface. The contact point friction constraint is a constraint condition for the expected input force information. The friction cone constraint should be satisfied. To reduce nonlinearity, the friction cone is approximated as a friction angle cone, and the friction inequality constraint is obtained as follows:

[0144]

[0145] Among them, n x 、n y 、n z Represents the unit vectors along the three coordinate axes, μ i represents the friction coefficient, f i,lb 、f i,ub Respectively represent the minimum and maximum values ​​of non-negative positive pressure.

[0146] It can be seen from the above formula 10 that the contact point friction constraint is used to limit the value range of the contact force f.

[0147] The wheel kinematic constraint is used to restrict the movement of the robot's wheels so that the instantaneous velocity of the contact point between the wheel and the load-bearing surface is 0. To ensure that the wheel rolls purely on the ground, Fig.11 As shown, the instantaneous speed of the wheel contacting the ground should be 0, that is:

[0148] v C =v W +ω W × WC =0 (Formula 11)

[0149] Among them, v Cis the linear velocity of the wheel contact point C, v W is the linear velocity of the wheel center W, ω W is the angular velocity of the wheel, r WC The vector from the center of the wheel to the point where the wheel contacts the ground.

[0150] By taking the derivative of equation 11, we can get:

[0151]

[0152] Equation 12 is the wheel kinematics equation constraint.

[0153] The wheel kinematic constraints impose restrictions on the relationship between multiple physical quantities such as the linear velocity of the wheel center W, the angular velocity of the wheel, the linear acceleration of the wheel center W, and the angular acceleration of the wheel, which belong to the above-mentioned relationship conditions.

[0154] According to the above state function, output function, constraint conditions and objective function, the input curve and output curve for achieving the target motion (such as the two-wheel standing swing action) can be optimized using Matlab's NLMPC controller. The input curve contains the desired joint torque time series, and the output curve contains the desired joint angle time series.

[0155] In an embodiment of the present application, a nonlinear state equation is constructed based on the structure of the robot, and when optimizing the expected joint motion data, restriction conditions including the nonlinear state equation are set, and finally the expected joint motion data that meets the above restriction conditions and minimizes the objective function is obtained. On the basis of controlling the robot to move to the target state, the robot's motion parameters (such as joint angles, joint angular velocities, joint torques and other parameters) are within a reasonable range, thereby ensuring the reliability of the robot's motion control.

[0156] In addition, the objective function is designed to include a first sub-objective function so that the robot can better approach the target state in each control cycle; the objective function is designed to include a second sub-objective function so that the robot's input force information does not have excessive mutations, ensuring that the robot's movement is smoother and more natural.

[0157] In an exemplary embodiment, for a quadruped robot (such as a wheeled quadruped robot), when it is in a two-legged standing state, a pair of wheels are in contact with the load-bearing surface, which can also be called a two-wheel standing state. After controlling the quadruped robot to achieve a two-wheel standing swing, the robot can be further controlled to stand on both wheels. Fig.12 As shown, the two-wheel standing balance control may include the following steps (1210-1240):

[0158] Step 1210, construct a linear quadratic regulator based on the state equation of the second-order inverted pendulum-like model corresponding to the robot.

[0159] Step 1220, using a linear quadratic regulator to calculate the expected input of the robot at the current moment according to the second state variable of the robot at the current moment; wherein the second state variable includes the rotation speed of the wheel, the torque of the hip joint and the angle of the hip joint.

[0160] Step 1230, using the state equation of the second-order inverted pendulum model to calculate the second state variable of the robot at the next moment according to the expected input at the current moment.

[0161] Step 1240: Based on the second state variable at the next moment, the robot is controlled to stand on two wheels and balance.

[0162] like Fig.13 As shown, the robot in the two-wheel standing state is simplified into a second-order inverted pendulum model in the sagittal plane, which includes a lower swing rod 131, an upper swing rod 132 connected to the first end of the lower swing rod 131, and a wheel 133 connected to the second end of the lower swing rod 131; wherein the connection joint between the upper swing rod 132 and the lower swing rod 131 is a hip joint 134. Assuming that the wheel mass is m0, the rod length, mass, and moment of inertia around the y-axis of the lower swing rod 131 are L1, m1, and J1 respectively, the rod length, mass, and moment of inertia around the y-axis of the upper swing rod 132 are L2, m2, and J2 respectively, the distance from the center of mass of the lower swing rod 131 to the center of the wheel 133 is l1, the distance from the center of mass of the upper swing rod 132 to the hip joint 134 is l2, and the angles between the lower swing rod 131 and the upper swing rod 132 and the vertical direction are θ1 and θ2 respectively, satisfying the right-hand rule. In the present application, the robot is simplified into a second-order inverted pendulum-like model. Compared with an ordinary second-order inverted pendulum model, the hip joint position will exert a corresponding torque. In an ordinary second-order inverted pendulum model, the hip joint position is free to move and will not exert a corresponding torque.

[0163] To achieve vertical balance of the second-order pendulum, an external force F is applied to the wheel, and the hip joint motor generates a torque τ2. The interaction force between the wheel and the lower pendulum rod is f 1x 、f 1z The interaction force between the upper swing rod and the lower swing rod is f 2x 、f 2z , the horizontal displacement of the wheel is x. Ignoring the friction of the ground and the friction of each joint, the force analysis of the quasi-second-order inverted pendulum is performed. The wheel along the x-axis direction has:

[0164]

[0165] The lower swing rod along the x-axis direction is:

[0166]

[0167] The lower swing rod along the z-axis direction is:

[0168]

[0169] The swing rod rotates around the y-axis:

[0170]

[0171] The upper swing rod along the x-axis direction is:

[0172]

[0173] The upper swing rod along the z-axis direction is:

[0174]

[0175] The upper swing rod rotates around the y-axis:

[0176]

[0177] Combining equations 13 to 19, we can simplify them to get:

[0178]

[0179] in,

[0180] Linearization at the equilibrium point gives

[0181]

[0182] Substituting equation 21 into equation 20, we can simplify it and obtain:

[0183]

[0184] Rewrite Equation 22 into a state equation, whose state variables (i.e., the second state variables mentioned above) include the wheel linear velocity, the angular velocity of the lower swing arm, the angular velocity of the upper swing arm, the displacement of the wheel along the x-axis, the angle between the lower swing arm and the vertical direction, and the angle between the upper swing arm and the vertical direction, which can be expressed as The input includes external force and hip joint torque, expressed as U dip =[Fτ2] T , from which we can get:

[0185]

[0186] in:

[0187]

[0188] Discretizing Equation 23 yields:

[0189]

[0190] Construct an LQR controller (i.e. the above-mentioned linear quadratic regulator) for the discretized state equation:

[0191]

[0192] Therefore, by substituting Equation 25 into Equation 24, the second state variable at the next moment can be solved through iteration.

[0193] In an actual robot, the specific control process in each control cycle is as follows: the robot's processor reads sensor data, performs control calculations, and sends the calculated results to the motor for execution. The time it takes to complete such a closed loop is called a control cycle.

[0194] 1. Calculate the second state variable at the current moment based on the angular velocity measured by the wheel, the angle and angular velocity measured by the torso IMU (Inertial Measurement Unit), and the angle and angular velocity measured by the hip joint.

[0195] 2. Use the second state variable at the current moment According to formula 25, the expected input at the current moment is calculated The second term of this input is the desired moment at the hip joint;

[0196] 3. Input the calculated expectation Substitute into equation 24 and calculate the second state variable at the next moment

[0197] 4. The second state variable at the next moment As expected values, the expected wheel angular velocity, hip joint angle and angular velocity are calculated;

[0198] 5. Send the desired wheel angular velocity, hip joint torque, angle and angular velocity to the corresponding joints to achieve two-wheel standing balance control.

[0199] Optionally, after the robot enters the two-wheel standing balance state, the rotation speed of the wheels is adjusted to control the two-wheel standing movement of the robot.

[0200] Optionally, in the case where the robot has front feet, the front feet can move freely during the robot's two-wheeled standing movement. Figure 3 As shown, the robot can use its front feet to perform tasks such as holding objects and opening doors.

[0201] In an embodiment of the present application, by simplifying the robot into a second-order inverted pendulum-like model and using an LQR controller to iteratively solve the desired wheel speed, desired hip joint torque and desired angle, the motion control of the robot's hip joint can be achieved, which is suitable for two-wheel standing balance control of a foot-wheel composite robot with multiple joints.

[0202] In an exemplary embodiment, the foot-wheeled composite quadruped robot is controlled to stand on two wheels and land, so as to change from a two-wheeled standing state to a four-legged standing state. Fig.14 As shown, the two-wheel standing landing control may include the following steps (1410-1430):

[0203] Step 1410, based on the expected posture of the robot after landing, inverse kinematics is used to solve the expected joint angles of each joint of the robot after landing.

[0204] The expected posture of the robot after landing refers to the pre-set expected posture of the robot after landing, such as a four-legged standing state. Based on the expected posture after landing, the expected joint angles of each joint of the robot after landing can be solved by inverse kinematics.

[0205] Optionally, to ensure that the robot has enough ground time to perform leg action changes when landing forward, a reverse velocity is applied to the robot's wheels to move the robot backward for a period of time.

[0206] Step 1420, based on the current joint angle of each joint and the expected joint angle after landing, the spline curve interpolation algorithm is used to determine the joint angle change data of each joint during the process of the robot changing from the current posture to the expected posture after landing.

[0207] After calculating the expected joint angles of each joint of the robot after landing, combined with the current joint angles of each joint of the robot, the spline curve interpolation algorithm can be used to solve the joint angle change data of each joint, which includes the joint angles of each joint at multiple time points.

[0208] Step 1430, based on the joint angle change data of each joint, control each joint of the robot so that the robot changes from the current posture to the desired posture after landing.

[0209] In addition, to ensure that the robot's front feet can land smoothly, the following steps can be performed to control the front feet during the landing process:

[0210] 1. Determine the expected plantar force of the forefoot based on the expected plantar position and velocity of the forefoot of the robot and the actual plantar position and velocity of the forefoot;

[0211] Optionally, the expected plantar force ΔF of the forefoot is calculated according to the following formula: f :

[0212]

[0213] in, represents the diagonal coefficient matrix, represents the desired plantar position and velocity of the forefoot, Indicates the actual plantar position and velocity of the forefoot.

[0214] 2. Determine the joint torque of the forefoot according to the expected plantar force of the forefoot using the inverse dynamics algorithm; optionally, calculate the joint torque τ of the forefoot according to the following formula: f :

[0215]

[0216] in, is the transpose of the Jacobian matrix of the forefoot.

[0217] 3. During the landing process of the robot, the robot is controlled based on the joint torque of the forefoot.

[0218] When the robot lands, the joint torque of the forefoot is sent to the motor to achieve smooth landing of the forefoot and complete safe landing control.

[0219] In the embodiment of the present application, the two-wheel standing landing control is achieved by planning the movement of each joint to make the robot land forward, while combining the flexible control of the forefoot to reduce the impact of landing and achieve a safe and reliable landing action.

[0220] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0221] Please refer to Fig.15 , which shows a block diagram of a robot motion control device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned robot motion control method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a robot, or it can be set in a robot. The device 1500 can include: an expected data acquisition module 1510, an execution torque determination module 1520 and a robot control module 1530.

[0222] The expected data acquisition module 1510 is used to obtain the expected joint motion data of each joint of the robot at a specific time interval in the future according to the objective function through a nonlinear model predictive control algorithm based on the target state required to be achieved for the target motion to be performed by the robot.

[0223] The execution torque determination module 1520 is used to obtain the joint execution torque of each joint of the robot at the future specific time interval according to the expected joint motion data.

[0224] The robot control module 1530 is used to control the movement of each joint of the robot through the joint execution torque, so that the robot moves to the target state.

[0225] In an exemplary embodiment, if Fig.16 As shown, the expected data acquisition module 1510 includes: a gap data determination unit 1512 and an expected data optimization unit 1514 .

[0226] The gap data determining unit 1512 is used to determine the gap data between the expected joint motion data and the target state according to the objective function.

[0227] The expected data optimization unit 1514 is used to optimize the expected joint motion data through a nonlinear model predictive control algorithm with the goal of reducing the absolute value of the gap data.

[0228] Optionally, the objective function includes a first sub-objective function, the expected joint motion data includes multiple predicted first state variables corresponding to multiple time points of the robot in the future specific time interval, the first sub-objective function is the weighted sum of the differences between the multiple predicted first state variables and the reference first state variable, the reference first state variable is the first state variable corresponding to the target state, and the first state variable includes a generalized position and a generalized velocity.

[0229] Optionally, the objective function also includes a second sub-objective function, the expected joint motion data also includes multiple expected input force information corresponding to multiple time points of the robot in the future specific time interval, and the second sub-objective function is the weighted sum of the differences between every two adjacent expected input force information in the time domain space.

[0230] Optionally, the expected data optimization unit 1514 is configured to:

[0231] Acquire a relationship condition between the predicted first state variable and the expected input force information, wherein the relationship condition is used to limit a relationship between at least two data of the predicted first state variable and the expected input force information, and the relationship condition includes a nonlinear state equation corresponding to the structure of the robot;

[0232] Acquire a constraint condition for the predicted first state variable or the expected input force information, wherein the constraint condition is used to limit a value range of at least one physical quantity of the predicted first state variable and the expected input force information;

[0233] According to the relationship conditions and the constraint conditions, the desired joint motion data is optimized through a nonlinear model predictive control algorithm with the goal of reducing the absolute value of the gap data.

[0234] In an exemplary embodiment, the device 1500 also includes: a state equation establishment module (not shown in the figure), which is used to establish the nonlinear state equation based on the floating base dynamics model of the robot; wherein the nonlinear state equation is used to calculate the multiple predicted first state variables and the multiple expected input force information.

[0235] In an exemplary embodiment, if Fig.16 As shown, the execution torque determination module 1520 includes: a joint angle determination unit 1521 , a first torque determination unit 1523 , a second torque determination unit 1524 and an execution torque determination unit 1525 .

[0236] The joint angle determination unit 1521 is used to perform differential processing on the expected joint angle time series of each joint included in the expected joint motion data according to a control cycle to obtain the expected joint angular velocity time series of each joint; wherein the expected joint angle time series includes a plurality of expected joint angles of the joint arranged in order in the time domain space, and the expected joint angular velocity time series includes a plurality of expected joint angular velocities of the joint arranged in order in the time domain space.

[0237] The first torque determination unit 1523 is used to determine the first acting torque of each joint at a specific time interval in the future based on the difference between the actual joint angle and the expected joint angle of each joint.

[0238] The second torque determination unit 1524 is used to determine the second torque of each joint at a specific time interval in the future based on the difference between the actual joint angular velocity and the expected joint angular velocity of each joint.

[0239] The execution torque determining unit 1525 is used to determine the joint execution torque of each joint at a specific time interval in the future based on the first action torque and the second action torque of each joint at a specific time interval in the future.

[0240] Alternatively, if Fig.16 As shown, the execution torque determination module 1520 also includes: a joint torque determination unit 1522, which is used to determine the expected joint torque of each joint at a specific time interval in the future based on the expected joint torque time series of each joint included in the expected joint motion data; wherein the expected joint torque time series includes a plurality of expected joint torques of the joint arranged in order in the time domain space.

[0241] The execution torque determination unit 1525 is further configured to determine the joint execution torque of each joint at a specific time interval in the future based on the first action torque, the second action torque and the expected joint torque of each joint at a specific time interval in the future.

[0242] In an exemplary embodiment, the robot is a quadruped robot, and the target motion is a motion process of changing from a four-legged prone state to a two-legged standing state.

[0243] Optionally, when the robot is in the bipedal standing state, the robot contacts the load-bearing surface through a pair of wheels; the robot in the bipedal standing state is simplified to a second-order inverted pendulum-like model, and the second-order inverted pendulum-like model includes a lower swing rod, an upper swing rod connected to the first end of the lower swing rod, and the wheel connected to the second end of the lower swing rod; wherein the connecting joint between the upper swing rod and the lower swing rod is a hip joint.

[0244] like Fig.16 As shown, the device 1500 further includes a two-wheel standing balance control module 1540, which is used to:

[0245] Based on the state equation of the second-order inverted pendulum-like model, a linear quadratic regulator is constructed;

[0246] The linear quadratic regulator is used to calculate the expected input of the robot at the current moment according to the second state variable of the robot at the current moment; wherein the second state variable includes the rotation speed of the wheel, the torque of the hip joint and the angle of the hip joint;

[0247] Using the state equation of the second-order inverted pendulum-like model, according to the expected input at the current moment, a second state variable of the robot at the next moment is calculated;

[0248] Based on the second state variable at the next moment, the robot is subjected to two-wheel standing balance control.

[0249] Alternatively, if Fig.16 As shown, the device 1500 further includes a two-wheeled standing movement control module 1550, which is used to:

[0250] After the robot enters a two-wheel standing balance state, adjusting the rotation speed of the wheels to control the robot to move in a two-wheel standing manner;

[0251] Wherein, in the case that the robot has front feet, during the process of the robot standing and moving on two wheels, the front feet can move freely.

[0252] Alternatively, if Fig.16As shown, the device 1500 further includes a two-wheeled standing and landing control module 1560, which is used to:

[0253] Based on the expected posture of the robot after landing, using inverse kinematics to solve the expected joint angles of each joint of the robot after landing;

[0254] Based on the current joint angles of the joints and the expected joint angles after landing, determining the joint angle change data of the joints in the process of the robot changing from the current posture to the expected posture after landing through a spline curve interpolation algorithm;

[0255] Based on the joint angle change data of each joint, each joint of the robot is controlled so that the robot changes from the current posture to the expected posture after landing.

[0256] Optionally, the two-wheel stand-up landing control module 1560 is further used for:

[0257] Determining a desired plantar force of the forefoot based on a desired plantar position and velocity of the forefoot of the robot and an actual plantar position and velocity of the forefoot;

[0258] Determining the joint torque of the forefoot according to the expected plantar force of the forefoot using an inverse dynamics algorithm;

[0259] When the robot lands on the ground, the robot is controlled to land on the ground based on the joint torque of the forefoot.

[0260] Optionally, in the bipedal standing state, the robot contacts the bearing surface through a pair of wheels; the bipedal standing landing control module 1560 is further used for:

[0261] A reverse velocity is applied to the wheels to move the robot backwards for a period of time.

[0262] To sum up, the technical solution provided in the embodiments of the present application obtains the expected joint motion data for guiding the robot to perform the target motion, and then obtains the joint execution torque of each joint of the robot at a specific time interval in the future based on the expected joint motion data, and controls the robot to perform the target motion accordingly. By adopting the technical solution provided in the embodiments of the present application, the robot can be controlled to complete the target motion as expected, thereby enriching the robot's motion capability.

[0263] In addition, since the NLMPC algorithm is used in the present application to generate the expected joint motion data according to the objective function optimization, a nonlinear system model or constraint condition can be introduced in the optimization process, and the expected joint motion data can be made to satisfy the above-mentioned nonlinear system model or constraint condition, thereby obtaining more accurate expected joint motion data that conforms to the relevant characteristics of the robot, ensuring that the robot can accurately and effectively perform the target motion while complying with the dynamic constraints.

[0264] In addition, for the wheeled quadruped robot, the technical solution provided in the embodiment of the present application can be used to realize the double-wheeled standing and swinging control, so that the wheeled quadruped robot can autonomously switch between the two modes of movement: four-legged crawling and two-wheeled standing, thus taking into account the high-speed and efficient characteristics of wheeled movement and the flexible obstacle-crossing characteristics of footed movement. At the same time, in the state of two-wheeled standing movement, the front legs are liberated, and a variety of operation tasks can be completed without adding additional auxiliary mechanical arms, which improves the practicality and coolness of the wheeled quadruped robot.

[0265] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0266] Please refer to Fig.17 , which shows a simplified structural block diagram of a robot provided in one embodiment of the present application. The robot may be a bipedal robot, a quadrupedal robot, etc., which is not limited in the present embodiment.

[0267] Alternatively, if Fig.17 As shown, the robot includes a processor 171 and a memory 172. The processor 171 includes but is not limited to any one of the following: CPU (Central Processing Unit), GPU (Graphics Processing Unit) and FPGA (Field Programmable Gate Array). The memory 172 may include storage devices such as RAM (Random-Access Memory) and ROM (Read-Only Memory). The processor 171 and the memory 172 may be connected via a system bus.

[0268] In an exemplary embodiment, the memory 172 stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor 171 to implement the above-mentioned robot motion control method.

[0269] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set implements the above-mentioned robot motion control method when executed by a processor of a computer device.

[0270] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0271] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a robot reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the robot performs the above-mentioned robot motion control method.

[0272] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0273] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A robot motion control method, characterized in that: The method comprises: Based on the target state to be achieved by the target motion to be performed by the robot, determining the gap data between the expected joint motion data of each joint of the robot at a specific time interval in the future and the target state according to the objective function; With the goal of reducing the absolute value of the gap data, the desired joint motion data is obtained by optimizing the nonlinear model predictive control algorithm; According to the joint expected motion data, obtaining the joint execution torque of each joint of the robot at the future specific time interval; The movement of each joint of the robot is controlled by the joint execution torque so that the robot moves toward the target state.

2. The method according to claim 1, characterized in that: The objective function includes a first sub-objective function, the expected joint motion data includes multiple predicted first state variables corresponding to multiple time points of the robot in the future specific time interval, the first sub-objective function is the weighted sum of the differences between the multiple predicted first state variables and the reference first state variable, the reference first state variable is the first state variable corresponding to the target state, and the first state variable includes a generalized position and a generalized velocity.

3. The method according to claim 2, characterized in that The objective function also includes a second sub-objective function, and the expected joint motion data also includes multiple expected input force information corresponding to multiple time points of the robot in the future specific time interval, and the second sub-objective function is the weighted sum of the differences between every two adjacent expected input force information in the time domain space.

4. The method according to claim 3, characterized in that: The method of optimizing the joint desired motion data by a nonlinear model predictive control algorithm with the goal of reducing the absolute value of the gap data includes: Acquire a relationship condition between the predicted first state variable and the expected input force information, wherein the relationship condition is used to limit a relationship between at least two data of the predicted first state variable and the expected input force information, and the relationship condition includes a nonlinear state equation corresponding to the structure of the robot; Acquire a constraint condition for the predicted first state variable or the expected input force information, wherein the constraint condition is used to limit a value range of at least one physical quantity of the predicted first state variable and the expected input force information; According to the relationship conditions and the constraint conditions, the desired joint motion data is optimized through a nonlinear model predictive control algorithm with the goal of reducing the absolute value of the gap data.

5. The method according to claim 4, characterized in that The method further comprises: Establishing the nonlinear state equation based on the floating base dynamics model of the robot; The nonlinear state equation is used to calculate the multiple predicted first state variables and the multiple expected input force information.

6. The method according to claim 1, characterized in that The step of obtaining the joint execution torque of each joint of the robot at the future specific time interval according to the joint expected motion data includes: Performing differential processing on the expected joint angle time series of each joint included in the expected joint motion data according to the control cycle to obtain the expected joint angular velocity time series of each joint; wherein the expected joint angle time series includes a plurality of expected joint angles of the joint arranged in sequence in the time domain space, and the expected joint angular velocity time series includes a plurality of expected joint angular velocities of the joint arranged in sequence in the time domain space; Determine, based on the difference between the actual joint angle of each joint and the expected joint angle, a first action torque of each joint at a specific time interval in the future; Determine, based on the difference between the actual joint angular velocity and the expected joint angular velocity of each joint, a second action torque of each joint at a specific time interval in the future; Based on the first action torque and the second action torque of each joint at the specific time interval in the future, the joint execution torque of each joint at the specific time interval in the future is determined.

7. The method according to claim 6, characterized in that The method further comprises: Based on the expected joint torque time series of each joint included in the expected joint motion data, determining the expected joint torque of each joint at a specific time interval in the future; wherein the expected joint torque time series includes a plurality of expected joint torques of the joint arranged in sequence in the time domain space; The determining of the joint execution torque of each joint at a specific time interval in the future based on the first action torque and the second action torque of each joint at a specific time interval in the future includes: Based on the first action torque, the second action torque and the expected joint torque of each joint in the future specific time interval, the joint execution torque of each joint in the future specific time interval is determined.

8. The method according to any one of claims 1 to 7, characterized in that: The robot is a quadruped robot, and the target motion is a motion process of changing from a four-legged prone state to a two-legged standing state.

9. The method according to claim 8, characterized in that The robot is in contact with the load-bearing surface through a pair of wheels in the bipedal standing state; the robot in the bipedal standing state is simplified to a second-order inverted pendulum-like model, which includes a lower swing rod, an upper swing rod connected to a first end of the lower swing rod, and the wheel connected to a second end of the lower swing rod; wherein the connection joint between the upper swing rod and the lower swing rod is a hip joint; After controlling the movement of each joint of the robot by the joint execution torque so that the robot moves toward the target state, the method further includes: Based on the state equation of the second-order inverted pendulum-like model, a linear quadratic regulator is constructed; The linear quadratic regulator is used to calculate the expected input of the robot at the current moment according to the second state variable of the robot at the current moment; wherein the second state variable includes the rotation speed of the wheel, the torque of the hip joint and the angle of the hip joint; Using the state equation of the second-order inverted pendulum-like model, according to the expected input at the current moment, a second state variable of the robot at the next moment is calculated; Based on the second state variable at the next moment, the robot is subjected to two-wheel standing balance control.

10. The method according to claim 8, characterized in thatAfter controlling the movement of each joint of the robot by the joint execution torque so that the robot moves toward the target state, the method further includes: Based on the expected posture of the robot after landing, using inverse kinematics to solve the expected joint angles of each joint of the robot after landing; Based on the current joint angles of the joints and the expected joint angles after landing, determining the joint angle change data of the joints in the process of the robot changing from the current posture to the expected posture after landing through a spline curve interpolation algorithm; Based on the joint angle change data of each joint, each joint of the robot is controlled so that the robot changes from the current posture to the expected posture after landing.

11. The method according to claim 10, characterized in that The method further comprises: Determining a desired plantar force of the forefoot based on a desired plantar position and velocity of the forefoot of the robot and an actual plantar position and velocity of the forefoot; Determining the joint torque of the forefoot according to the expected plantar force of the forefoot using an inverse dynamics algorithm; When the robot lands on the ground, the robot is controlled to land on the ground based on the joint torque of the forefoot.

12. A robot motion control device, characterized in that: The device comprises: An expected data acquisition module is used to determine the gap data between the expected joint motion data and the target state of each joint of the robot at a specific time interval in the future according to the objective function; with the goal of reducing the absolute value of the gap data, the expected joint motion data is obtained by optimizing the nonlinear model predictive control algorithm; An execution torque determination module, used for obtaining the joint execution torque of each joint of the robot at the future specific time interval according to the expected joint motion data; The robot control module is used to control the movement of each joint of the robot through the joint execution torque so that the robot moves to the target state.

13. A robot, characterized in that: The robot comprises a processor and a memory, wherein at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the robot motion control method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the robot motion control method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The robot's processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the robot motion control method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Biped walking robot control method and biped walking robot control system

    CN104793622A

  • Quadruped robot pacing gait planning method, device and equipment and readable medium

    CN111208826A

  • Stable walking control method and device for biped robot, equipment and readable medium

    CN111674486A

  • Control method of non-linear system, control device of bipedal robot, control method of bipedal robot and program of the same

    JP2018185747A

  • Walking control apparatus of robot and method of controlling the same

    US20110178637A1