Bipedal robot climbing methods, devices, electronic equipment and storage media

By combining the dynamics model and the model predictive control algorithm, the foot position and joint control of the biped robot are optimized, which solves the problem of poor climbing stability and achieves more efficient climbing adaptability and stability.

CN118363310BActive Publication Date: 2024-10-25BEIJING VISIONARY EMBODIED INTELLIGENCE RESEARCH INSTITUTE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410791772.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-25
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Biped robots have poor stability when climbing in complex terrain, and traditional control methods are difficult to adapt to diverse terrains.

Method used

By determining the dynamic model of the bipedal robot and combining it with the model predictive control algorithm, the objective function is constructed and the constraints are determined, and the optimal foot position sequence is obtained. Based on this, the joint position, speed and acceleration expected values ​​are determined, and the control torque is calculated to control the robot. Climb.

Benefits of technology

It improves the adaptability and stability of the biped robot in climbing and walking, and enhances the control ability in complex terrain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363310B_ABST
    Figure CN118363310B_ABST
Patent Text Reader

Abstract

The present invention provides a bipedal robot climbing method, device, electronic device and storage medium, belonging to the field of robot technology, wherein the method comprises: determining the dynamic model of the bipedal robot, constructing an objective function based on the dynamic model and the model predictive control algorithm, and determining the constraint conditions corresponding to the objective function; solving the objective function to obtain the optimal solution of the footstep position sequence of the bipedal robot climbing the slope; determining the expected value of the joint position of each footstep based on the optimal solution of the footstep position sequence and the overall control algorithm, determining the expected attitude angle, and obtaining the expected value of the joint velocity and the expected value of the joint acceleration of each footstep based on the expected attitude angle; calculating the control torque of each footstep based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each footstep, and controlling the bipedal robot to climb the slope according to the control torque of each footstep. The present invention improves the adaptability and stability of the bipedal robot in climbing and walking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robotics technology, and in particular to a bipedal robot climbing method, device, electronic equipment and storage medium. Background Art

[0002] The research and application of bipedal robots has become a hot topic in the field of robotics. In practical applications, bipedal robots often need to face a variety of terrains, including ramps, uneven surfaces, etc. The change of slope, the irregularity of terrain, and the transition between different slopes will increase the complexity of the robot's movement. Traditional bipedal robot control methods are difficult to adapt to complex terrains and have poor climbing stability. Summary of the invention

[0003] The present invention provides a bipedal robot climbing method, device, electronic equipment and storage medium, which are used to solve the defects of the bipedal robot control method in the prior art that it is difficult to adapt to complex terrain and has poor climbing stability.

[0004] In a first aspect, the present invention provides a biped robot climbing method, comprising:

[0005] Determine a dynamic model of the biped robot, construct an objective function based on the dynamic model and a model predictive control algorithm, and determine constraint conditions corresponding to the objective function;

[0006] Solving the objective function under the constraint conditions to obtain an optimal solution for the footstep position sequence of the biped robot climbing a slope;

[0007] Based on the optimal solution of the step position sequence and the overall control algorithm, determine the expected value of the joint position of each step, determine the expected posture angle, and based on the expected posture angle, obtain the expected value of the joint velocity and the expected value of the joint acceleration of each step;

[0008] Based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each step, the control torque of each step is calculated, and the biped robot is controlled to climb and walk according to the control torque of each step.

[0009] In some embodiments, constructing an objective function based on the kinetic model and the model predictive control algorithm includes:

[0010] Determining an expected state value of each step of the bipedal robot climbing a slope based on the dynamic model and the preset expected angular momentum and expected step length of each step;

[0011] The objective function is constructed based on the model predictive control algorithm and the expected state value of each step.

[0012] In some embodiments, the objective function is calculated as follows:

[0013] ;

[0014] ;

[0015] in, represents the cost function value, Represents a sequence of footstep positions, represents the nth step, , represents the number of prediction steps, represents the i-th prediction, represents the number of predictions per step, represents the state value of the i-th prediction at the n-th step, represents the expected state value at step n, represents the error between the state value predicted at the nth step and the expected state value at the nth step, , for The transposed matrix of Indicates the nth step The error between the predicted state value and the expected state value at step n, for The transposed matrix of and is the preset weight matrix.

[0016] In some embodiments, the expression of the kinetic model is:

[0017] ;

[0018] in, is the mass of the biped robot, represents the height of the center of mass of the bipedal robot, , Respectively represent the x-axis and y-axis distances of the biped robot's feet relative to the center of mass, , Respectively represent the angular momentum of the bipedal robot in the x-axis and y-axis directions, for The derivative of for The derivative of for The derivative of for The derivative of is the acceleration due to gravity;

[0019] The calculation formula of the expected state value of each step is as follows:

[0020] ;

[0021] ;

[0022] in, represents the expected state value at step n, represents the expected angular momentum in the y-axis direction of the preset nth step, Indicates the single-step running time, represents the expected step length of the preset nth step, To control the parameters, is the hyperbolic tangent function, An intermediate amount.

[0023] In some embodiments, the determining of the expected value of the joint position of each step based on the optimal solution of the step position sequence and the overall control algorithm includes:

[0024] Determine the joint space variation of each step based on the optimal solution of the step position sequence and the overall control algorithm;

[0025] Based on the joint space variation of each step and the joint position of each step, an expected value of the joint position of each step is determined.

[0026] In some embodiments, the determining of the joint space variation of each step based on the optimal solution of the step position sequence and the overall control algorithm includes:

[0027] Based on the optimal solution of the step position sequence and the overall control algorithm, the expected value of the posture of each step is obtained;

[0028] Based on the expected value of the posture of each step, the joint space change of each step is determined.

[0029] In some embodiments, determining the desired attitude angle comprises:

[0030] Determining the optimal expected posture of the biped robot under different slopes, and obtaining a mapping relationship between the slope and the expected posture angle;

[0031] The current slope is determined, and based on the mapping relationship between the slope and the expected posture angle and the current slope, the expected posture angle of the bipedal robot at the current slope is determined.

[0032] In a second aspect, the present invention further provides a bipedal robot climbing device, comprising:

[0033] A construction unit, used to determine a dynamic model of the biped robot, construct an objective function based on the dynamic model and a model predictive control algorithm, and determine constraint conditions corresponding to the objective function;

[0034] A solving unit, used for solving the objective function under the constraint conditions to obtain an optimal solution for the footstep position sequence of the biped robot climbing a slope;

[0035] A determination unit, for determining an expected value of a joint position of each step based on an optimal solution of the step position sequence and an overall control algorithm, and determining an expected posture angle, and obtaining an expected value of a joint velocity and an expected value of a joint acceleration of each step based on the expected posture angle;

[0036] The control unit is used to calculate the control torque of each step based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each step, and control the bipedal robot to climb and walk according to the control torque of each step.

[0037] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the bipedal robot climbing methods described above.

[0038] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the bipedal robot climbing methods described above.

[0039] The present invention provides a bipedal robot climbing method, device, electronic device and storage medium. The method determines the dynamic model of the bipedal robot, combines it with a model predictive control algorithm, constructs an objective function and determines constraints, solves the objective function, and obtains the optimal solution of the footstep position sequence of the bipedal robot climbing the slope. Based on the optimal solution of the footstep position sequence and the overall control algorithm, the expected value of the joint position of each footstep is determined, and according to the expected posture angle, the expected value of the joint velocity and the expected value of the joint acceleration of each footstep are obtained, and the control torque of each footstep is calculated. Then, the bipedal robot can be controlled to climb the slope by the control torque, thereby improving the adaptability and stability of the bipedal robot in climbing the slope. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 is a schematic flow chart of a bipedal robot climbing method provided by an embodiment of the present invention;

[0042] Figure 2 It is a flow chart of constructing an objective function based on a dynamic model and a model predictive control algorithm provided by an embodiment of the present invention;

[0043] Figure 3 is a schematic structural diagram of a bipedal robot climbing device provided by an embodiment of the present invention;

[0044] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] In practical application scenarios, such as disaster relief and exploration missions, robots need to be able to cross various terrains, so climbing has become an important direction of robot research. Compared with walking on flat ground, climbing has higher requirements on the stability and control ability of bipedal robots. Traditional control methods are difficult to achieve ideal results in complex environments, so it is particularly important to find an efficient control method for bipedal robots to climb hills.

[0047] To this end, the embodiment of the present invention provides a bipedal robot climbing method, device, electronic device and storage medium, by determining the dynamic model of the bipedal robot, combining it with the model predictive control algorithm, constructing an objective function and determining constraints, solving the objective function, obtaining the optimal solution of the footstep position sequence of the bipedal robot climbing, based on the optimal solution of the footstep position sequence and the overall control algorithm, further determining the expected value of the joint position of each footstep, according to the expected posture angle, obtaining the expected value of the joint velocity and the expected value of the joint acceleration of each footstep, calculating the control torque of each footstep, and controlling the bipedal robot to climb and walk by the control torque. The present invention can improve the adaptability and stability of the bipedal robot in climbing and walking.

[0048] Figure 1 Schematic diagram of the process of a bipedal robot climbing method provided by an embodiment of the present invention. Figure 1 As shown, a biped robot climbing method is provided, comprising the following steps: step 110, step 120, step 130 and step 140. The steps of the method flow are only used as a possible implementation mode of the present invention.

[0049] Step 110: determine the dynamic model of the biped robot, construct an objective function based on the dynamic model and the model predictive control algorithm, and determine the constraint conditions corresponding to the objective function.

[0050] Among them, the dynamic model is used to describe the mechanical characteristics of the biped robot during movement.

[0051] Among them, the Model Predictive Control (MPC) algorithm is an advanced control strategy that uses past and current system information to predict future system behavior and optimize control actions accordingly. MPC determines the current control action by solving a finite time domain open-loop optimal control problem in each control cycle to achieve precise control of the system's future behavior.

[0052] Optionally, the biped robot is simplified into an inverted pendulum, and the kinematic and dynamic equations of the biped robot are determined according to the structure, mass distribution, position parameters, etc. of the biped robot.

[0053] Optionally, an objective function is constructed with the goal of minimizing the trajectory prediction error or cost.

[0054] Optionally, the constraint conditions corresponding to the objective function are determined by comprehensively considering factors such as cost and smoothness of the output trajectory.

[0055] Figure 2 A schematic diagram of a process for constructing an objective function based on a dynamic model and a model predictive control algorithm provided by an embodiment of the present invention. Figure 2 As shown, in some embodiments, based on the dynamic model and the model predictive control algorithm, an objective function is constructed, including:

[0056] Step 111: determining an expected state value of each step of the bipedal robot climbing a slope based on a dynamic model and a preset expected angular momentum and an expected step length for each step;

[0057] Step 112: construct an objective function based on the model predictive control algorithm and the expected state value of each step.

[0058] The expected angular momentum refers to the expected torque of the bipedal robot rotating around a fixed axis.

[0059] Optionally, the desired state value includes at least a desired position and a desired angular momentum.

[0060] It should be noted that the tilt angle of the bipedal robot can be controlled by adjusting the angular momentum of each step to keep it balanced and achieve smooth and efficient movement of the bipedal robot.

[0061] Optionally, an objective function is constructed with the goal of minimizing the sum of errors between the predicted state value at each step and the expected state value at each step.

[0062] In some embodiments, the kinetic model is expressed as:

[0063] ;

[0064] in, is the mass of the biped robot, represents the height of the center of mass of the bipedal robot, , Respectively represent the x-axis and y-axis distances of the biped robot’s feet relative to the center of mass, , Respectively represent the angular momentum of the bipedal robot in the x and y axis directions, for The derivative of for The derivative of for The derivative of for The derivative of is the acceleration due to gravity;

[0065] The calculation formula for the expected state value at each step is as follows:

[0066] ;

[0067] ;

[0068] in, represents the expected state value at step n, represents the expected angular momentum in the y-axis direction of the preset nth step, Indicates the single-step running time, represents the expected step length of the preset nth step, To control the parameters, is the hyperbolic tangent function, An intermediate amount.

[0069] It should be noted that the forward and backward movement direction of the biped robot is the x-axis, and the left and right movement direction is the y-axis.

[0070] In some embodiments, the objective function is calculated as follows:

[0071] ;

[0072] ;

[0073] in, represents the cost function value, Represents a sequence of footstep positions, represents the nth step, , represents the number of prediction steps, represents the i-th prediction, represents the number of predictions per step, represents the state value of the i-th prediction at the n-th step, represents the expected state value at step n, represents the error between the state value predicted at the nth step and the expected state value at the nth step, , for The transposed matrix of Indicates the nth step The error between the predicted state value and the expected state value at step n, for The transposed matrix of and is the preset weight matrix.

[0074] It should be noted that the cost function of each step of the bipedal robot is divided into process cost and terminal cost. By adjusting the weight of the terminal cost, the system can tend to reach a specific state at the terminal moment.

[0075] Optionally, the constraints of the objective function include:

[0076] ;

[0077] ;

[0078] ;

[0079] ;

[0080] in, represents the state value predicted for the i-th time, represents the state value predicted for the i-1th time, represents the position of the i-1th prediction, represents the adjustment parameters, is the gait switching matrix, Indicates a preset shorter time. Indicates the current time. Indicates the single-step running time, Indicates the status value of the current time, Indicates the initial state.

[0081] It should be noted that multiple predictions are required for each step. Derived ,Depend on Derived , the loop iterates to , which can improve prediction efficiency and output smoother footstep trajectories; by comprehensively considering multiple constraints, the bipedal robot can be more robust in the face of uncertainty and external disturbances.

[0082] Step 120: Solve the objective function under the constraint conditions to obtain the optimal solution for the step position sequence of the biped robot climbing the slope.

[0083] It can be understood that by solving the objective function under the constraints, the optimal solution of the footstep position sequence when the biped robot climbs the slope can be obtained, thereby improving the stability and efficiency of the biped robot climbing the slope.

[0084] Step 130: Based on the optimal solution of the step position sequence and the overall control algorithm, determine the expected joint position of each step, determine the expected posture angle, and based on the expected posture angle, obtain the expected joint velocity and joint acceleration of each step.

[0085] Among them, the Whole-Body Control (WBC) algorithm is a control method that involves the robot using all parts of its body to move and operate, allowing the robot to use all its degrees of freedom to achieve complex tasks such as balance, walking, grasping, etc. The overall control strategy includes precise control of each joint of the robot and consideration of its dynamic characteristics. WBC focuses on the control of whole-body movement and joint coordination, which can improve the stability of the robot in complex environments.

[0086] It can be understood that by determining the expected joint position of each step based on the optimal solution and overall control algorithm based on the step position sequence, and further determining the expected joint velocity and joint acceleration according to the expected posture angle, the stability and climbing efficiency of the bipedal robot can be improved, the energy consumption can be reduced, and it can be enabled to adapt to complex terrain.

[0087] In some embodiments, based on the optimal solution of the step position sequence and the overall control algorithm, the expected value of the joint position of each step is determined, including:

[0088] Step 131, based on the optimal solution of the step position sequence and the overall control algorithm, determine the joint space change of each step;

[0089] Step 132: Determine the expected value of the joint position of each step based on the joint space variation of each step and the joint position of each step.

[0090] Optionally, the joint position of the current step is added to the corresponding joint space variation to obtain the corresponding joint position expected value.

[0091] It can be understood that after using the model predictive control algorithm to obtain the optimal solution of the step position sequence, the model predictive control algorithm is combined with the overall control algorithm to obtain the expected value of the joint position of each step, so as to achieve more efficient motion control, enable the bipedal robot to reach the target position faster, and reduce unnecessary movements, thereby improving the efficiency of climbing.

[0092] In some embodiments, based on the optimal solution of the step position sequence and the overall control algorithm, the joint space change of each step is determined, including:

[0093] Based on the optimal solution of the footstep position sequence and the overall control algorithm, the expected value of the posture of each footstep is obtained;

[0094] Based on the expected value of the posture of each step, the joint space change of each step is determined.

[0095] Optionally, the expected value of the posture of each step is determined by comprehensively considering factors such as the dynamic balance of the biped robot, the naturalness of the gait, and the terrain adaptability.

[0096] Optionally, the joint space variation includes joint movement distance, rotation angle, etc.

[0097] In some embodiments, determining the desired attitude angle includes:

[0098] Determine the optimal desired posture of the biped robot under different slopes, and obtain the mapping relationship between the slope and the desired posture angle;

[0099] The current slope is determined, and based on the mapping relationship between the slope and the expected attitude angle and the current slope, the expected attitude angle of the biped robot under the current slope is determined.

[0100] Optionally, set the optimal posture angle, use the standard deviation of the Z-axis (vertical direction) speed change as the evaluation index, perform multiple groups of climbing experiments at each slope, and obtain the optimal expected body posture at each slope , and the experimental data are fitted to obtain the linear mapping relationship between the slope and the expected attitude angle.

[0101] It can be understood that by determining the mapping relationship between the slope and the desired posture angle, the body posture of the bipedal robot can be adaptively adjusted; by adjusting the pitch angle of the bipedal robot's entire body, the line connecting the center of mass and the hip is kept within the desired posture angle as much as possible, thereby achieving stable uphill climbing and avoiding falling backwards.

[0102] Step 140: Calculate the control torque of each step based on the expected value of the joint position, the expected value of the joint velocity, and the expected value of the joint acceleration of each step, and control the bipedal robot to climb the slope according to the control torque of each step.

[0103] Optionally, according to the calculated control torque, the joint motion of the robot is driven by controlling the joint driver or actuator of the robot; the motion control can be achieved by sending control instructions to the controller of the biped robot.

[0104] It can be understood that by precisely controlling the joint position, speed and acceleration of each step, fine control of the walking trajectory and posture of the bipedal robot can be achieved, thereby improving the stability and efficiency of climbing walking; considering the dynamic balance of the bipedal robot, the calculated control torque can help the robot maintain stability on complex terrain and reduce the risk of falling.

[0105] In an embodiment of the present invention, by determining the dynamic model of the bipedal robot, combining it with a model predictive control algorithm, constructing an objective function and determining constraints, and solving the objective function, an optimal solution for the footstep position sequence of the bipedal robot climbing a slope is obtained. Based on the optimal solution of the footstep position sequence and the overall control algorithm, the expected joint position of each footstep is determined, and according to the expected posture angle, the expected joint velocity and joint acceleration of each footstep are obtained. The control torque of each footstep is calculated, and then the bipedal robot can be controlled to climb and walk by the control torque, thereby improving the adaptability and stability of the bipedal robot in climbing and walking.

[0106] It should be noted that each implementation of the present invention can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.

[0107] The following is a description of a bipedal robot climbing device provided by an embodiment of the present invention. The bipedal robot climbing device described below and the bipedal robot climbing method described above can be referenced to each other.

[0108] Figure 3 A schematic diagram of the structure of a bipedal robot climbing device provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the bipedal robot climbing device 300 includes:

[0109] A construction unit 310 is used to determine a dynamic model of the biped robot, construct an objective function based on the dynamic model and a model predictive control algorithm, and determine constraint conditions corresponding to the objective function;

[0110] A solving unit 320 is used to solve the objective function under the constraint conditions to obtain the optimal solution of the footstep position sequence of the biped robot climbing the slope;

[0111] A determination unit 330, for determining an expected value of a joint position of each step based on an optimal solution of the step position sequence and an overall control algorithm, and determining an expected posture angle, and obtaining an expected value of a joint velocity and an expected value of a joint acceleration of each step based on the expected posture angle;

[0112] The control unit 340 is used to calculate the control torque of each step based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each step, and control the bipedal robot to climb and walk according to the control torque of each step.

[0113] Optionally, based on the dynamics model and the model predictive control algorithm, an objective function is constructed, including:

[0114] Based on the dynamic model, as well as the preset expected angular momentum and expected step length of each step, the expected state value of each step of the bipedal robot climbing the slope is determined;

[0115] Based on the model predictive control algorithm and the expected state value at each step, the objective function is constructed.

[0116] Optionally, the objective function is calculated as follows:

[0117] ;

[0118] ;

[0119] in, represents the cost function value, Represents a sequence of footstep positions, represents the nth step, , represents the number of prediction steps, represents the i-th prediction, represents the number of predictions per step, represents the state value of the i-th prediction at the n-th step, represents the expected state value at step n, represents the error between the state value predicted at the nth step and the expected state value at the nth step, , for The transposed matrix of Indicates the nth step The error between the predicted state value and the expected state value at step n, for The transposed matrix of and is the preset weight matrix.

[0120] Optionally, the expression of the kinetic model is:

[0121] ;

[0122] in, is the mass of the biped robot, represents the height of the center of mass of the bipedal robot, , Respectively represent the x-axis and y-axis distances of the biped robot’s feet relative to the center of mass, , Respectively represent the angular momentum of the bipedal robot in the x and y axis directions, for The derivative of for The derivative of for The derivative of for The derivative of is the acceleration due to gravity;

[0123] The calculation formula for the expected state value at each step is as follows:

[0124] ;

[0125] ;

[0126] in, represents the expected state value at step n, represents the expected angular momentum in the y-axis direction of the preset nth step, Indicates the single-step running time, represents the expected step length of the preset nth step, To control the parameters, is the hyperbolic tangent function, An intermediate amount.

[0127] Optionally, based on the optimal solution of the step position sequence and the overall control algorithm, the expected value of the joint position of each step is determined, including:

[0128] Based on the optimal solution of the footstep position sequence and the overall control algorithm, determine the joint space change of each footstep;

[0129] Based on the joint space variation of each step and the joint position of each step, the expected value of the joint position of each step is determined.

[0130] In some embodiments, based on the optimal solution of the step position sequence and the overall control algorithm, the joint space change of each step is determined, including:

[0131] Based on the optimal solution of the footstep position sequence and the overall control algorithm, the expected value of the posture of each footstep is obtained;

[0132] Based on the expected value of the posture of each step, the joint space change of each step is determined.

[0133] Optionally, determining the desired attitude angle includes:

[0134] Determine the optimal desired posture of the biped robot under different slopes, and obtain the mapping relationship between the slope and the desired posture angle;

[0135] The current slope is determined, and based on the mapping relationship between the slope and the expected attitude angle and the current slope, the expected attitude angle of the biped robot under the current slope is determined.

[0136] It should be noted here that the bipedal robot climbing device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned bipedal robot climbing method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0137] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the bipedal robot climbing method, which includes: determining the dynamic model of the bipedal robot, constructing the objective function based on the dynamic model and the model predictive control algorithm, and determining the constraint conditions corresponding to the objective function; solving the objective function under the constraint conditions to obtain the optimal solution of the footstep position sequence of the bipedal robot climbing; determining the joint position expected value of each footstep based on the optimal solution of the footstep position sequence and the overall control algorithm, determining the expected posture angle, and obtaining the joint velocity expected value and joint acceleration expected value of each footstep based on the expected posture angle; calculating the control torque of each footstep based on the joint position expected value, joint velocity expected value and joint acceleration expected value of each footstep, and controlling the bipedal robot to climb and walk according to the control torque of each footstep.

[0138] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0139] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the bipedal robot climbing method provided by the above-mentioned methods, the method comprising: determining a dynamic model of the bipedal robot, constructing an objective function based on the dynamic model and a model predictive control algorithm, and determining constraints corresponding to the objective function; solving the objective function under the constraints to obtain an optimal solution for a sequence of footstep positions for the bipedal robot to climb the slope; determining an expected value of the joint position of each footstep based on the optimal solution of the footstep position sequence and the overall control algorithm, determining an expected posture angle, and obtaining an expected value of the joint velocity and an expected value of the joint acceleration of each footstep based on the expected posture angle; calculating a control torque for each footstep based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each footstep, and controlling the bipedal robot to climb the slope according to the control torque of each footstep.

[0140] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A bipedal robot climbing method, characterized in that: include: Determine a dynamic model of the biped robot, construct an objective function based on the dynamic model and a model predictive control algorithm, and determine constraint conditions corresponding to the objective function; Solving the objective function under the constraint conditions to obtain an optimal solution for the footstep position sequence of the biped robot climbing a slope; Based on the optimal solution of the step position sequence and the overall control algorithm, determine the expected value of the joint position of each step, determine the expected posture angle, and based on the expected posture angle, obtain the expected value of the joint velocity and the expected value of the joint acceleration of each step; Calculate the control torque of each step based on the expected value of the joint position, the expected value of the joint velocity and the expected value of the joint acceleration of each step, and control the bipedal robot to climb and walk according to the control torque of each step; The objective function is constructed based on the dynamic model and the model predictive control algorithm, including: Determining an expected state value of each step of the bipedal robot climbing a slope based on the dynamic model and the preset expected angular momentum and expected step length of each step; Constructing the objective function based on the model predictive control algorithm and the desired state value of each step; The calculation formula of the objective function is as follows: ; ; in, represents the cost function value, Represents a sequence of footstep positions, represents the nth step, , represents the number of prediction steps, represents the i-th prediction, represents the number of predictions per step, represents the state value of the i-th prediction at the n-th step, represents the expected state value at step n, represents the error between the state value predicted at the nth step and the expected state value at the nth step, , for The transposed matrix of Indicates the nth step The error between the predicted state value and the expected state value at step n, for The transposed matrix of and is the preset weight matrix; The expression of the kinetic model is: ; in, is the mass of the biped robot, represents the height of the center of mass of the bipedal robot, , Respectively represent the x-axis and y-axis distances of the biped robot's feet relative to the center of mass, , Respectively represent the angular momentum of the bipedal robot in the x-axis and y-axis directions, for The derivative of for The derivative of for The derivative of for The derivative of is the acceleration due to gravity; The calculation formula of the expected state value of each step is as follows: ; ; in, represents the expected state value at step n, represents the expected angular momentum in the y-axis direction of the preset nth step, Indicates the single-step running time, represents the expected step length of the preset nth step, To control the parameters, is the hyperbolic tangent function, An intermediate amount.

2. The bipedal robot climbing method according to claim 1, characterized in that: The optimal solution based on the step position sequence and the overall control algorithm to determine the expected value of the joint position of each step includes: Determine the joint space variation of each step based on the optimal solution of the step position sequence and the overall control algorithm; Based on the joint space variation of each step and the joint position of each step, an expected value of the joint position of each step is determined.

3. The bipedal robot climbing method according to claim 2, characterized in that: The optimal solution based on the step position sequence and the overall control algorithm determine the joint space variation of each step, including: Based on the optimal solution of the step position sequence and the overall control algorithm, the expected value of the posture of each step is obtained; Based on the expected value of the posture of each step, the joint space change of each step is determined.

4. The bipedal robot climbing method according to claim 1, characterized in that: Determining the desired attitude angle comprises: Determining the optimal expected posture of the biped robot under different slopes, and obtaining a mapping relationship between the slope and the expected posture angle; The current slope is determined, and based on the mapping relationship between the slope and the expected posture angle and the current slope, the expected posture angle of the bipedal robot at the current slope is determined.

5. A bipedal robot climbing device, characterized in that: include: A construction unit, used to determine a dynamic model of the biped robot, construct an objective function based on the dynamic model and a model predictive control algorithm, and determine constraint conditions corresponding to the objective function; A solving unit, used for solving the objective function under the constraint conditions to obtain an optimal solution for the footstep position sequence of the biped robot climbing a slope; A determination unit, for determining an expected value of a joint position of each step based on an optimal solution of the step position sequence and an overall control algorithm, and determining an expected posture angle, and obtaining an expected value of a joint velocity and an expected value of a joint acceleration of each step based on the expected posture angle; A control unit, configured to calculate a control torque for each step based on an expected value of a joint position, an expected value of a joint velocity, and an expected value of a joint acceleration of each step, and control the bipedal robot to climb and walk according to the control torque for each step; The objective function is constructed based on the dynamic model and the model predictive control algorithm, including: Determining an expected state value of each step of the bipedal robot climbing a slope based on the dynamic model and the preset expected angular momentum and expected step length of each step; Constructing the objective function based on the model predictive control algorithm and the desired state value of each step; The calculation formula of the objective function is as follows: ; ; in, represents the cost function value, Represents a sequence of footstep positions, represents the nth step, , represents the number of prediction steps, represents the i-th prediction, represents the number of predictions per step, represents the state value of the i-th prediction at the n-th step, represents the expected state value at step n, represents the error between the state value predicted at the nth step and the expected state value at the nth step, , for The transposed matrix of Indicates the nth step The error between the predicted state value and the expected state value at step n, for The transposed matrix of and is the preset weight matrix; The expression of the kinetic model is: ; in, is the mass of the biped robot, represents the height of the center of mass of the bipedal robot, , Respectively represent the x-axis and y-axis distances of the biped robot's feet relative to the center of mass, , Respectively represent the angular momentum of the bipedal robot in the x-axis and y-axis directions, for The derivative of for The derivative of for The derivative of for The derivative of is the acceleration due to gravity; The calculation formula of the expected state value of each step is as follows: ; ; in, represents the expected state value at step n, represents the expected angular momentum in the y-axis direction of the preset nth step, Indicates the single-step running time, represents the expected step length of the preset nth step, To control the parameters, is the hyperbolic tangent function, An intermediate amount.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the biped robot climbing method according to any one of claims 1 to 4 is implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the biped robot climbing method according to any one of claims 1 to 4 is implemented.