Method for generating multi-contact-point motion of humanoid robot
By describing the movement state of the humanoid robot's limb end and converting it into a reward function in reinforcement learning, a motion control strategy is generated, which solves the problem of being unable to completely plan the end state in the existing technology, and achieves a stable and universal motion control strategy, which is suitable for Multiple missions and platforms.
Patent Information
- Application Number
- CN202410673092.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing technology cannot completely plan the end state of humanoid robots, resulting in incomplete performance utilization of motion control strategies in complex environments and the lack of universal methods.
By describing the motion state of the limb ends of the multi-contact humanoid robot, construct a mathematical description and convert it into a reward function in reinforcement learning, build a reinforcement learning environment, design reward items, use reinforcement learning algorithms to generate motion control strategies, and implement them in the simulation environment training, and ultimately deployment to physical robots.
The control strategy achieves stable convergence to the desired motion state, has good scalability and versatility, and is suitable for various humanoid robot platforms and tasks.
Smart Images

Figure CN118578380A
Abstract
Description
Technical Field
[0001] The invention relates to the field of humanoid robot motion control, and in particular to a method for generating multi-contact point motion of a humanoid robot. Background Art
[0002] In the research field of humanoid robot motion control, the robot controls the robot state through the contact interaction between the end of the limbs and the environment. This is a multi-contact point motion. The state of the robot's limbs determines the way the robot interacts with the environment. The contact between the feet and the ground is the basis for common tasks such as walking and balancing. At the same time, using the upper limbs, the robot can expand the stability domain by contacting other planes, pass stably on more complex terrain, and obtain stronger comprehensive performance. For example, use hands and feet to climb ladders, climb up and down stairs with the help of walls, and pass through narrow paths. Therefore, humanoid robots are very suitable for life service scenarios where work scenes are complex and changeable and difficult to standardize. At the same time, they also have very broad application prospects in special environments such as scientific research and exploration, disaster relief, military reconnaissance and other fields.
[0003] The control methods of legged robots can be divided into model-based control and learning-based data-driven control. Both methods have achieved good results. The data-driven control method based on reinforcement learning is the current hot spot. Using a deep neural network as a controller, the work of optimizing complex strategies is handed over to the algorithm during training, and flexible solutions are found by using the nonlinear fitting ability of the network and the autonomous exploration ability of the training algorithm. In the reinforcement learning process, the robot and the environment interact continuously in the simulation, and the network is updated autonomously according to the preset high-level reward function to obtain a strategy that maximizes the reward. At present, the motion strategy generated by reinforcement learning has been successfully deployed on quadrupeds, bipeds, and humanoid robots, and has certain motion capabilities, such as walking, running, jumping, and anti-disturbance. Ren Ju (CN111360834A) et al. proposed a humanoid robot motion control method and system based on deep reinforcement learning, which obtains the current state of the humanoid robot in the simulation, and calculates the target angle of each joint of the humanoid robot according to the current state with a preset deep reinforcement learning model, and then the PD controller performs the following. Liu Rong (CN112051735A) et al. proposed a humanoid robot walking control method, which performs offline gait planning on the humanoid robot, so that the humanoid robot can track the joint motion trajectory generated offline and has the ability to walk. Zhang Guoliang (CN103770111A) et al. proposed a humanoid robot gait planning and synthesis method, which uses a polynomial function to represent the trajectory of the robot's hip joint and the end of the swing leg. According to the geometric constraints of the humanoid robot when walking, the maximum span height of the end of the swing leg, the periodicity of the gait, the impact of collision, the movement of the hip joint and other constraints, the gait of the robot during the single-leg support period and the double-leg support period when walking are planned respectively, and then the planned gait is synthesized and the gait trajectory is judged to be stable according to the zero-point torque criterion. In general, most of these motion algorithms only focus on the motion state of the robot's center of mass, and do not make clear specifications for the motion state of the robot's end, or only standardize part of the end state, and do not fully utilize the robot's performance.
[0004] Existing technologies can achieve tasks such as walking, balancing, and manipulation respectively, but they are only designed for specific tasks faced by specific robots, and are not a general method for generating multi-contact point operations for legged robots. Summary of the invention
[0005] In view of the deficiency that the prior art cannot completely plan the terminal state of a humanoid robot, the present invention proposes a method for generating multi-contact point motion of a humanoid robot.
[0006] To achieve the above object, the present invention provides a method for generating multi-contact point motion of a humanoid robot, comprising the following steps:
[0007] S1: Describe the motion state of the limb end of a multi-contact-point humanoid robot from the perspectives of leg motion and arm manipulation;
[0008] S2: Based on the description in step (1), construct a mathematical description of the movement mode of the robot's limb end, and convert the mathematical description into a reward function in reinforcement learning;
[0009] S3: Build a reinforcement learning environment, design other reward items, and use reinforcement learning algorithms to generate motion control strategies for multi-contact point humanoid robots;
[0010] S4: Migrate and deploy the motion control strategy generated in step (3) onto the humanoid robot.
[0011] Furthermore, the step S1 specifically includes:
[0012] The limb ends of the humanoid robot include arm ends and leg ends. For all ends, the movement process is divided into a support phase in which the end is in stable contact with a support plane or a support point and a swing phase in the air. By combining each single-leg support phase and the swing phase with different durations, any gait can be generated.
[0013] Furthermore, the step S2 specifically includes:
[0014] According to the division of motion states between the support phase and the swing phase, the reward function in reinforcement learning is reflected; that is, the moving speed of the foot is penalized in the support phase, and the contact force on the foot is penalized in the swing phase; let the moving speed of the foot and the contact force of the foot be reward items, respectively expressed as r eVel With r eFrc , the deviation of the two rewards Δx(t) is the activation degree of the left and right feet I i (t) and the original deviation q i The sum of the products of (t) has the following expression:
[0015] Δx(t)=∑I i (t)*q i (t) (1)
[0016] Activation Level I i (t) is a binary function that switches between different phases, indicating whether the deviation is in an activated state in the current phase. An activation degree of 0 means no penalty and the highest reward is obtained directly; an activation degree of 1 means full penalty and the highest reward is obtained without bias; the activation degree multiplied by the original reward is the real reward item collected as data at this moment, and the deviation degree is the Euclidean distance between the observation and the target; for the foot movement speed, the activation degree is 1 in the support phase and 0 in the swing term; for the foot contact force, the activation degree is 0 in the support phase and 1 in the swing term.
[0017] Furthermore, linear interpolation, tanh, sigmoid or von Mises distribution function is used for phase switching.
[0018] Furthermore, the step S3 specifically includes:
[0019] A parallel environment for reinforcement learning is built in the simulation software to support simultaneous training of multiple limbs. A neural network is built as the robot control strategy, and a proximal strategy optimization algorithm is used to learn and optimize the motion control strategy. Body state reward items and performance optimization reward items are designed, and the strategy parameters are iteratively updated by maximizing the reward function, so that the robot's motion control strategy gradually approaches the optimal solution.
[0020] Furthermore, the body state reward items include linear velocity command tracking, angular velocity command tracking, posture stability and altitude maintenance; the performance optimization reward items include optimizing foot contact force impact, smoothing joint torque, smoothing joint speed and reducing energy consumption.
[0021] Furthermore, the step S4 specifically includes:
[0022] After the motion control strategy training is completed, it is exported to a format that can be run by a humanoid robot and tested on an actual humanoid robot.
[0023] The beneficial effects of the present invention are:
[0024] (1) The present invention proposes a method for completely planning the terminal motion. Due to the accuracy and uniqueness of the description, the algorithm can stably converge to the desired motion state, accurately control the robot's motion behavior, and generate a controllable and adjustable motion strategy.
[0025] (2) The multi-contact point motion generation method proposed in the present invention has good scalability. For the new end and new task combination added by the introduction of new mechanical structure, by adding unified description of contact points and modifying reward items, it is possible to train a new control strategy that meets the expectations under the same framework.
[0026] (3) The present invention is theoretically applicable to various humanoid robot platforms, such as Wukong, Digit, HRP, COMAN, etc., and is versatile for various common tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a block diagram of a method for describing a method for generating multi-contact point motion of a humanoid robot according to the present invention;
[0028] Figure 2 is a schematic diagram used by the present invention to describe the gait of a humanoid robot walking with two legs;
[0029] Figure 3is a schematic diagram used by the present invention to describe the activation degree of the humanoid robot's foot speed and contact force bonus items;
[0030] Figure 4 It is a schematic diagram used by the present invention to describe the input of a gait phase signal of a humanoid robot walking with two legs;
[0031] Figure 5 It is a schematic diagram used by the present invention to describe the actual test results of the humanoid robot. DETAILED DESCRIPTION
[0032] The present invention will be described in detail below according to the accompanying drawings and preferred embodiments, and the purpose and effect of the present invention will become more clear. The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0033] See also Figure 1 The present invention provides a method for generating multi-contact point motion of a humanoid robot, which is specifically implemented by the following steps:
[0034] S1: Describe the motion state of the limb ends of a multi-contact humanoid robot (such as a leg-foot robot).
[0035] No matter how complex the gait of an organism is, for the extremities (including the extremities of the legs and the extremities of the arms), the movement process can be divided into a support phase with stable contact with the support plane or support point and a swing phase in the air. Any gait can be generated by combining the support phase and the swing phase of each leg with different durations. During the support phase, the extremity should completely touch the ground without slipping, so the speed is expected to be 0; during the swing phase, the extremity should be completely floating and should not touch the ground, so the contact force is expected to be 0. According to the stability of contact with the ground and the movement requirements, the duration and sequence of the support phase and the swing phase of each limb are automatically adjusted to generate movement strategies that adapt to different gaits and tasks. This method can describe the movement state of all extremities, and it is a comprehensive and correct description. That is, it includes the only correct gait and excludes all other gaits that do not meet the requirements. For example, the walking, running, jumping and other behaviors of the legs, the movement of the arms to the target position, the support and other behaviors.
[0036] S2: Construct a mathematical description of the movement of the robot's limb ends and convert it into a reward function.
[0037] The key to reinforcement learning is to fully and correctly describe the expected action and reflect it in the reward function, establish a suitable gradient in the parameter space, and make the trajectory and state of the expected action a local extreme value in the "parameter-reward" space, and there is no second local extreme value interference near this local extreme value. Take the two-legged walking of a humanoid robot as an example. The key to the walking action is alternating steps. The alternating stepping gait signal of the humanoid robot is set as follows: one cycle is from the start of lifting one foot to the next lifting, and the support phase and the swing phase each account for 50%. The left and right foot have the same cycle, and the phase difference is half of the cycle. The support phase of one foot corresponds to the swing phase of the other foot, and there is no air phase. For example Figure 2 As shown, blue represents the left foot (left) and orange represents the right foot (right).
[0038] Reflected in the reward function, it is: the foot movement speed is penalized in the support phase, and the foot contact force is penalized in the swing phase. Let the foot movement speed and foot contact force be the reward items, respectively expressed as r eVel With r eFrc The deviation between the two rewards Δx(t) is the degree of activation of the left and right feet I i (t) and the original deviation q i (t) is the sum of the products.
[0039] Δx(t)=∑I i (t)*q i (t) (1)
[0040] Enable degree function I i (t) is a binary function that switches between different phases, indicating whether the deviation is activated in the current phase. An activation level of 0 means no penalty and the highest reward is obtained directly; an activation level of 1 means full penalty and the highest reward is obtained without bias. The activation level multiplied by the original reward is the real reward item collected as data at this moment, and the deviation level is the Euclidean distance between the observation and the target. For the foot movement speed, the activation level is 1 in the support phase and 0 in the swing term; for the foot contact force, the activation level is 0 in the support phase and 1 in the swing term. The periodic reward function is a reward function that changes according to the phase during the step cycle.
[0041] The two legs can be considered as two copies of a single leg, with only a phase difference between the two. The activation function is calculated in the same way, so the left and right legs have time variables, with a phase difference of half the period, and they are updated separately according to the update method of the time variable t, using t L and t R express.
[0042] When switching phases, the continuity of the enabled degree should be maintained to make the "parameter-reward" space more continuous, which is conducive to calculating the gradient during update. Phase switching can use any function. Linear interpolation, tanh, sigmoid, Von Mises distribution, etc. all have good enough effects.
[0043] When calculating the foot movement speed and foot contact force, the bonus deviation is as follows:
[0044] Δx eVel (t) = I eVel L (t L )*q Vel L (t)+I eVel R (t R )*q Vel R (t) (2)
[0045] Δx eFrc (t) = I eFrc L (t L )*q Frc L (t)+I eFrc R (t R )*q Frc R (t) (3)
[0046] Where Δx eVel (t) represents the reward deviation of the foot movement speed, Δx eFrc (t) represents the reward deviation of the foot contact force, I eVelL (t L ) indicates the degree of activation of the left foot movement speed bonus, I eFrcL (t L ) represents the activation degree of the left foot contact force reward, q VelL (t) represents the speed of the left foot, q FrcL (t) represents the contact force of the left foot, I eVelR (t R ) indicates the activation level of the right foot movement speed bonus, I eFrcR (t R ) represents the activation degree of the right foot contact force reward, q VelR (t) represents the speed of the right foot, q FrcR (t) represents the contact force of the right foot; the phase difference between the left and right feet during walking is half, and the moving speed is opposite to the activation function of the contact force. The graph is symmetrical. Figure 2 This is reflected in the intuitive display of the activation level of the foot speed and contact force bonus items in the game.
[0047] The reward function mainly focuses on the trade-off between achieving stable contact and efficient swinging, thereby improving the efficiency and adaptability of the overall movement. The present invention adopts the generalized Cauchy kernel function as the form of the gait reward function. As shown in formula (4). The foot movement speed and foot contact force are each reward items, as shown in formula (5) and formula (6) respectively.
[0048]
[0049] r eVel =C 0.1,1,8 (Δx eVel (t)) (5)
[0050] r eFrc =C 0.1,1,8 ( Δx eFrc (t)) (6)
[0051] Among them, C α,β,σ (x) represents the generalized Cauchy kernel function, α represents the reward intensity, β represents the reward attenuation order, and σ represents the normalization coefficient of the physical quantity; providing the phase signals of both feet as the input of the control strategy can enable the strategy to establish the relationship between the phase signal and the reward acquisition during the training process, and finally achieve the effect of changing the frequency and value of the phase signal, and the gait can change accordingly, thereby increasing the controllability of the strategy. The phase signal of each foot is composed of a sine function and a cosine function, such as Figure 3 and Figure 4 shown.
[0052] S3: Build a reinforcement learning environment, design other rewards, and use reinforcement learning to generate motion control strategies for humanoid robots (such as leg-foot robots).
[0053] In order to implement the motion control strategy described above, the present invention builds a parallel environment in the simulation software to support simultaneous training of multiple limbs. A neural network is built as the robot control strategy, and the proximal policy optimization (PPO) algorithm is used to learn and optimize the control strategy. The strategy parameters are iteratively updated by maximizing the reward function, so that the robot's motion strategy gradually approaches the optimal solution.
[0054] In this example, the robot is set to walk on various complex terrains. To ensure the completion of the task, a series of reward functions are designed. In addition to the gait reward, this example adds a body state reward item and a performance optimization reward item. Wait until the reward converges to complete the training. In addition to the generalized Cauchy kernel function mentioned in step S2, this example also uses the Gaussian kernel function as a form of partial reward item, as shown in formula (7).
[0055]
[0056] Among them, G α,σ (x) represents some reward items, and the body state reward items include linear speed instruction tracking r v , angular velocity command tracking r ω , attitude stability r and maintain height h . In order:
[0057]
[0058]
[0059] r r =G 0.1,0.0025 (1-R 2,2 ) (10)
[0060] r h =G 0.2,0.02 (|h * -h|) (11)
[0061] The * in the upper right corner represents the expected value of a physical quantity. t represents the linear velocity at time t, ω t represents the angular velocity at time t, h represents the vertical distance between the body and the ground, R 2,2 is the value of the lower right corner of the body rotation matrix, 1-R 2,2 Indicates the degree of deviation between the robot body system Z axis and the world system Z axis.
[0062] Performance optimization bonus items include optimizing the sole contact force impact r i , smooth joint torque r τ , smooth joint velocity and reduce energy consumption CoT . In order:
[0063]
[0064] r τ =C 0.1,2,160 (||τ t -τ t-1 ||) (13)
[0065]
[0066]
[0067] Among them, F t represents the foot contact force at time t, mg represents the robot weight, τ t represents the joint torque at time t, Represents the joint velocity at time t.
[0068] The robot used in this example is the humanoid robot "Wukong-IV", which is 1.4m tall when standing, weighs 45kg, and has 21 degrees of freedom.
[0069] S4: Strategy transfer and deployment to physical robots.
[0070] After the strategy training is completed, it is exported to a format that can be run on the robot and tested on the actual robot "Wukong-IV". Given a step frequency of 1.5Hz, the results are as follows Figure 5 As shown in the figure, based on the intuitive visual effect and the comparison of the humanoid robot's knee movement frequency, foot lift height, ground force and gait signals, "Wukong-IV" can follow the step frequency.
[0071] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention shall be included in the protection scope of the invention.
Claims
1. A method for generating multi-contact point motion of a humanoid robot, characterized in that: The following steps are involved: S1: Describe the motion state of the limb end of a multi-contact-point humanoid robot from the perspectives of leg motion and arm manipulation; S2: Based on the description in step (1), construct a mathematical description of the movement mode of the robot's limb end, and convert the mathematical description into a reward function in reinforcement learning; S3: Build a reinforcement learning environment, design other reward items, and use reinforcement learning algorithms to generate motion control strategies for multi-contact point humanoid robots; S4: Migrate and deploy the motion control strategy generated in step (3) onto the humanoid robot.
2. The method for generating multi-contact point motion of a humanoid robot according to claim 1, characterized in that: The step S1 specifically includes: The limb ends of the humanoid robot include arm ends and leg ends. For all ends, the movement process is divided into a support phase in which the end is in stable contact with a support plane or a support point and a swing phase in the air. By combining each single-leg support phase and the swing phase with different durations, any gait can be generated.
3. The method for generating multi-contact point motion of a humanoid robot according to claim 2, characterized in that: The step S2 specifically includes: According to the division of motion states between the support phase and the swing phase, the reward function in reinforcement learning is reflected; that is, the moving speed of the foot is penalized in the support phase, and the contact force on the foot is penalized in the swing phase; let the moving speed of the foot and the contact force of the foot be reward items, respectively expressed as r eVel With r eFrc , the deviation of the two rewards Δx(t) is the activation degree of the left and right feet I i (t) and the original deviation q i The sum of the products of (t) has the following expression: Δx(t)=∑I i (t)*q i (t) (1) Activation Level I i (t) is a binary function that switches between different phases, indicating whether the deviation is in an activated state in the current phase. An activation degree of 0 means no penalty and the highest reward is obtained directly; an activation degree of 1 means full penalty and the highest reward is obtained without bias; the activation degree multiplied by the original reward is the actual reward item collected as data at this moment, and the deviation degree is the Euclidean distance between the observation and the target; for the foot movement speed, the activation degree is 1 in the support phase and 0 in the swing term; for the foot contact force, the activation degree is 0 in the support phase and 1 in the swing term.
4. The method for generating multi-contact point motion of a humanoid robot according to claim 3, characterized in that: Use linear interpolation, tanh, sigmoid, or von Mises distribution functions for phase switching.
5. The method for generating multi-contact point motion of a humanoid robot according to claim 1, characterized in that: The step S3 specifically includes: A parallel environment for reinforcement learning is built in the simulation software to support simultaneous training of multiple limbs. A neural network is built as the robot control strategy, and a proximal strategy optimization algorithm is used to learn and optimize the motion control strategy. Body state reward items and performance optimization reward items are designed, and the strategy parameters are iteratively updated by maximizing the reward function, so that the robot's motion control strategy gradually approaches the optimal solution.
6. The method for generating multi-contact point motion of a humanoid robot according to claim 5, characterized in that: The body state reward items include linear velocity command tracking, angular velocity command tracking, posture stability and altitude maintenance; the performance optimization reward items include optimizing the sole contact force impact, smoothing the joint torque, smoothing the joint speed and reducing energy consumption.
7. The method for generating multi-contact point motion of a humanoid robot according to claim 1, characterized in that: The step S4 specifically includes: After the motion control strategy training is completed, it is exported to a format that can be run by a humanoid robot and tested on an actual humanoid robot.
Citation Information
Patent Citations
Gait planning and synthetic method for humanoid robot
CN103770111A
Humanoid robot motion control method and system based on deep reinforcement learning
CN111360834A
Humanoid robot walking control method
CN112051735A
Reinforced learning action generation system for leg-foot robot
CN113821045A
Foot type robot multi-gait controller generation method and computer readable storage medium
CN114460841A
