A method, apparatus, storage medium, device for robot control

By using a reward scoring mechanism based on a reinforcement learning model, the problem of motion control for bipedal robots on complex terrain was solved, achieving stable and smooth motion.

CN117621075BActive Publication Date: 2026-11-24ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311736353.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2026-11-24
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively control the movement of bipedal robots, especially in complex terrain where stable and smooth movement is difficult to achieve. Traditional methods often rely on dynamic modeling or reference trajectories, resulting in poor control performance.

Method used

By employing a reinforcement learning model, the robot acquires the target motion point and the desired motion state, uses a pre-trained reinforcement learning model to perform reward scoring, selects the optimal motion command, and controls the robot to perform stable motion in an unmodeled space.

Benefits of technology

This enables robots to move stably and smoothly in various postures in unmodeled spaces, avoiding reliance on dynamic modeling and improving control performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117621075B_ABST
    Figure CN117621075B_ABST
Patent Text Reader

Abstract

This specification discloses a method, apparatus, storage medium, and device for robot control. The method involves acquiring a target motion point and a desired motion state, selecting a reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model, inputting the robot's current motion state and the target motion point into the application model, and having the application model determine a reward score for each optional motion command based on the current motion state, the target motion point, and each optional motion command. Based on the reward score, a target motion command is determined from the optional motion commands, and the robot is controlled to move according to the target motion command. This method utilizes a reinforcement learning model to control the robot to move in different desired motion states, without relying on robot dynamics modeling or reference trajectory settings, and can control the robot to move in various postures in unmodeled spaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer technology, and in particular to a method, apparatus, storage medium, and device for robot control. Background Technology

[0002] Humanoid robots are complex electromechanical systems with multiple degrees of freedom that mimic human appearance and behavior, with bipedal robots, which imitate human walking, being the most representative. However, controlling a robot's movement by modeling it is difficult to achieve good results when dealing with more complex bipedal robots with structures that are closer to the human body, due to the complexity of their dynamics. On the other hand, if the robot's movement is restricted using reference trajectories or motion capture data to generate a bipedal robot's movement strategy, it often only enables the robot to adapt to specific terrains.

[0003] Therefore, the present invention provides a method, apparatus, storage medium, and device for robot control. Summary of the Invention

[0004] This specification provides a method and apparatus for robot control, which partially solves the aforementioned problems existing in the prior art.

[0005] The following technical solution is adopted in this specification:

[0006] This specification provides a method for robot control, including:

[0007] Acquire the target point and the desired motion state;

[0008] Select the reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model;

[0009] The robot's current motion state and the motion target point are input into the application model, so that the application model determines the reward score of each optional motion command based on the current motion state, the motion target point and each optional motion command;

[0010] The target exercise instruction is determined from the available exercise instructions based on the reward score.

[0011] The robot is controlled to move according to the target motion command.

[0012] Optionally, the desired motion state specifically includes at least one of the following: desired motion speed, desired torso height, desired robot posture, desired foot height off the ground, desired gait frequency, the proportion of a single leg swing phase in a single gait cycle, and the proportion of the transition segment from the swing phase to the support phase in the swing phase.

[0013] Optionally, the weight of the oscillating phase in the connecting segment is represented by a trigonometric function.

[0014] Optionally, the current motion state specifically includes at least one of the following: robot posture, robot speed, the motion command currently being executed by the robot, and robot motion phase time.

[0015] Optionally, the reward function in the reinforcement learning model specifically includes at least one of the following: motion speed reward, leg posture reward, robot pose penalty, actuator power penalty, foot posture penalty, joint position penalty, actuator torque penalty, and motion change rate penalty.

[0016] Optionally, a reinforcement learning model may be pre-trained, specifically including:

[0017] Obtain the training target points;

[0018] The robot's training motion state and the training target point are input into the reinforcement learning model to determine the reward score for each optional training instruction;

[0019] The target training instruction is determined from the available training instructions based on the reward score.

[0020] The robot is controlled to move according to the target training instructions, with the goal of maximizing the reward score of the training instructions that best match the preset expected motion state. The reinforcement learning model is then trained to obtain a reinforcement learning model corresponding to the expected motion state.

[0021] Optionally, training the reinforcement learning model specifically includes:

[0022] Determine the training motion state of the robot at the first moment;

[0023] Based on the training motion state at the first moment and the reinforcement learning model, the target training instruction at the first moment and the predicted training instruction at the second moment are obtained, with the first moment preceding the second moment.

[0024] The robot is controlled to move according to the target training instructions at the first moment;

[0025] When the second moment arrives, determine the robot's training motion state at the second moment;

[0026] Based on the training motion state at the second moment and the reinforcement learning model, the target training instruction at the second moment is obtained;

[0027] The reinforcement learning model is trained with the objective of minimizing the difference between the reward score of the target training instruction at the second time step and the predicted training instruction at the second time step.

[0028] This specification provides a robot control device, including:

[0029] The acquisition module acquires the target point and the desired motion state.

[0030] The selection module selects a reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model.

[0031] The scoring module inputs the robot's current motion state and the motion target point into the application model, so that the application model determines the reward score for each optional motion command based on the current motion state, the motion target point, and each optional motion command.

[0032] The determination module determines the target motion instruction from among the available motion instructions based on the reward score;

[0033] The execution module controls the robot to move according to the target motion command.

[0034] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described robot control method.

[0035] This specification provides an apparatus including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described method for robot control.

[0036] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0037] In the robot control method provided in this specification, a motion target point and a desired motion state are obtained. A reinforcement learning model corresponding to the desired motion state is selected from at least one pre-trained reinforcement learning model as the application model. The robot's current motion state and the motion target point are input into the application model. The application model determines the reward score for each optional motion command based on the current motion state, the motion target point, and each optional motion command. Based on the reward score, a target motion command is determined from the optional motion commands. The robot is then controlled to move according to the target motion command.

[0038] As can be seen from the above method, this method uses a reinforcement learning model to control the robot to move in different desired motion states, without relying on the robot's dynamic modeling or reference trajectory setting, and can control the robot to move in various postures in unmodeled spaces. Attached Figure Description

[0039] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:

[0040] Figure 1 This is a flowchart illustrating a robot control method described in this specification.

[0041] Figure 2 This is a schematic diagram illustrating the change in the weight of the single-leg swing phase within a single cycle in this specification.

[0042] Figure 3 This is a schematic diagram of the speed curve of the robot's stationary stepping after training, as shown in this manual.

[0043] Figure 4 This is a schematic diagram of the speed curve of the robot walking in a straight line at a speed of 0.5 m / s after training, as shown in this manual.

[0044] Figure 5 This is a schematic diagram showing the vertical position of the robot's feet when it steps in place after training, as described in this manual (left foot at the top, right foot at the bottom).

[0045] Figure 6 This is a schematic diagram showing the vertical position of the robot's two feet when it walks in a straight line at a speed of 0.5 m / s after training, as described in this manual (left foot at the top, right foot at the bottom).

[0046] Figure 7 This is a schematic diagram of the vertical position curves of the robot's two feet when it steps in place after training, as shown in this manual (solid line is the left foot, dashed line is the right foot);

[0047] Figure 8 This is a schematic diagram of the vertical position curves of the robot's two feet when it walks in a straight line at a speed of 0.5 m / s after training, as described in this manual (solid line represents the left foot, dashed line represents the right foot);

[0048] Figure 9 This is a schematic diagram of a robot control device provided in this specification;

[0049] Figure 10 The corresponding information provided in this specification Figure 1 A schematic diagram of an electronic device. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without creative effort are within the scope of protection of this application.

[0051] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0052] Figure 1 This is a flowchart illustrating a robot control method described in this specification. The robot control method specifically includes the following steps:

[0053] S100: Obtain the target point and desired motion state.

[0054] Currently, robots are widely used in various fields to replace humans in performing repetitive, high-precision, or high-load tasks, and corresponding robot control methods have undergone in-depth research. In recent years, due to the increasing attention paid to the application prospects of humanoid bipedal robots in the service sector, the academic community has also proposed research on the control methods of bipedal robots. However, due to the high complexity of humanoid robot models (especially bipedal robots, which are a special type of multi-legged robot, unlike other wheeled, tracked, or rail-mounted robots), directly applying traditional robot control methods to bipedal robot control often fails to achieve the expected control effect (even for other types of multi-legged robots, due to the difference in stability between bipedal robots and other types, it is difficult to directly transfer the control methods of other multi-legged robots to bipedal robots). Therefore, this specification provides a control method for bipedal robots. This method can be applied to a robot control system, which can be integrated into the controlled robot or deployed in the cloud or other platforms with the conditions for remote robot control. This specification does not impose any limitations on this.

[0055] When a user uses this robot control system to control the robot, the user first needs to input the target point and desired motion state into the system. This clarifies the movement target and posture of the robot when controlled by the system in subsequent steps. Specifically, the posture includes the robot's movement mode (walking, stationary stepping, running) and its movement speed.

[0056] In one or more embodiments of this specification, the desired motion state specifically includes: a desired motion velocity v. d Expected torso height h dDesired robot pose, including desired torso pose (rot) d rot with desired foot posture df Expected foot height off the ground (dz) foot Desired gait frequency f gait The proportion of the single-leg swing phase in a single gait cycle, r swing The proportion r of the connection segment from the oscillating phase to the support phase in the oscillating phase. trans At least one of them.

[0057] The gait period can then be obtained. Where T1 and T3 are the time of the transition segment within a single cycle, T2 is the time of the fully oscillating phase within a single cycle, and T4 is the time of the support phase within a single cycle.

[0058] S102: Select the reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model.

[0059] The robot control system has a pre-stored reinforcement learning model for assisting in the control of the robot's motion. The form of the reward function in the pre-stored reinforcement learning model is pre-configured according to the method provided in this specification. Before the actual application of the robot control system, the parameters in the reward function of the reinforcement learning model can be configured according to different desired motion states to obtain each configured reinforcement learning model corresponding to each desired motion state. Then, each configured reinforcement learning model is used to control the robot to move in the actual application environment, and each reinforcement learning model is updated according to the motion results, thereby obtaining each pre-trained reinforcement learning model corresponding to each desired motion state.

[0060] In practical applications, after obtaining the target point and the desired motion state, a pre-trained reinforcement learning model corresponding to the desired motion state is determined and used as the application model for controlling the robot to move.

[0061] S104: Input the robot's current motion state and the motion target point into the application model, so that the application model determines the reward score of each optional motion instruction based on the current motion state, the motion target point and each optional motion instruction.

[0062] After determining the application model to be used, the robot control system can obtain the robot's current motion state based on the pre-set sensing devices, and input the obtained motion state and the motion target point into the application model. The application model can then use the reward function in the application model to score each optional motion command based on the motion state and the motion target point, and determine the reward score for each optional motion command.

[0063] In one or more embodiments of this specification, the current motion state specifically includes at least one of: robot posture, robot speed, the motion command currently being executed by the robot, and robot motion phase time. The robot posture includes: torso height h and torso posture rot, and foot posture rot. f Joint position q, joint velocity The robot's speed includes: trunk linear velocity v and trunk angular velocity ω; the motion command a currently being executed by the robot is the motion command output by the reinforcement learning model; the robot's motion phase time is a sine and cosine clock phase signal with a frequency consistent with the desired gait frequency.

[0064] The reward function contains reward terms and penalty terms. The reward terms represent the states that the designer expects to occur, and their algebraic values ​​in the reward function are positive. The penalty terms represent the states that the designer does not expect to occur, and their algebraic values ​​in the reward function are negative. The reward function is the algebraic sum of all the reward and penalty terms contained in the function.

[0065] In one or more embodiments of this specification, the reward function in the reinforcement learning model specifically includes:

[0066] 1. Speed ​​reward Where α run >0 represents the speed tracking reward coefficient, σ run >0 is a scaling factor, which makes the reward value close to 0 when the robot's speed is less than the desired speed;

[0067] 2. Leg posture reward Including left leg posture reward R lf_motion Reward R for right leg posture rf_motion , where w lf_swing and w lf_stance α represents the weights of the left foot's swing phase and support phase, respectively. lf_swing and α lf_stance σ represents the left foot swing and support bonus coefficients (both positive values). lf_swing and σ lf_stance These represent the scaling factors for left foot swing and support, respectively, z lf and v lf These represent the actual height of the left foot off the ground and the actual linear velocity, respectively. The subscript rf represents the right foot. The scaling factor is chosen so that when the actual value of the physical quantity is far from the expected value, the reward value is close to 0. When entering the swing phase, a larger reward is given for lifting the foot to encourage lifting the foot. When entering the support phase, the linear velocity of the foot is encouraged to be 0.

[0068] 3. Robot pose penalty R pos =α h (hh d )2 +α rot (rot-rot d ) 2 To prevent the robot from tipping over, α h <0 indicates the robot height penalty coefficient, h and h d α represents the actual torso height and the desired torso height, respectively. rot <0 indicates the robot's posture penalty coefficient, rot and rot d These represent the actual trunk posture and the desired trunk posture, respectively.

[0069] 4. Driver power penalty A penalty is imposed when the driver power is too high to prevent overloading of the driver. power <0 indicates the power penalty coefficient, τ and These represent the torque and angular velocity of the joint actuator, respectively.

[0070] 5. Foot posture penalty R foot_pos =α foot_pos (rot f -rot df ) 2 When the foot posture deviates from the desired posture, a penalty is applied, α. foot_pos <0 indicates the foot posture penalty coefficient, rot f and rot df These represent the actual foot posture and the desired foot posture, respectively, and can include both foot postures simultaneously.

[0071] 6. Joint position punishment To prevent the joint position from exceeding the set soft limit, α q <0 indicates the joint position penalty coefficient, 0 < β q <1 is the soft limit coefficient, q, and q These represent the actual joint position, the upper limit of the joint position, and the lower limit of the joint position, respectively (the upper and lower limits of the joint position can be obtained from the robot's factory parameters);

[0072] 7. Driver torque penalty Avoid driver saturation α τ <0 indicates the drive torque penalty coefficient, 0 < β τ <1 is the soft limit coefficient, τ, and τ These represent the actual torque, upper torque limit, and lower torque limit of the driver, respectively.

[0073] 8. Action rate of change penalty to make the action as smooth as possible, including a first-order action rate of change penalty R. action_rate1 =α a1 (a t -at-1 ) 2 and second-order action change rate penalty R action_rate2 =α a2 (a t -2a t-1 +a t-2 ) 2 α a1 <0 indicates the penalty coefficient for the rate of change of the first-order action, a t and a t-1 Let α represent the action at the current moment and the action at the previous moment, respectively. a2 <0 indicates the penalty coefficient for the rate of change of the second-order action, a t-2 Actions taken at two separate moments;

[0074] At least one of the above eight items.

[0075] The aforementioned motion commands can be a single command to be executed by the robot at the current moment, or a series of commands for the current moment and every moment during the robot's movement towards the target point. When the motion command represents a series of motion commands starting from the current moment, the reward score of the application model for that motion command is the sum of the reward scores for that series of motion commands. Specifically, relative to the next moment after the current moment, there are several selectable single commands, and so on. The motion command is a combination of the selectable single commands for each consecutive moment, and thus the reward score for the motion command is the sum of the reward scores for each selectable single command based on the current motion state and the target point. As the motion command input to the robot control system, depending on the robot's control method (torque control or position control), the motion command can be specifically divided into target actuator torque or target robot pose. The time difference between each adjacent moment can be determined according to the preset action rating before the robot performs its movement.

[0076] S106: Determine the target movement instruction from among the available movement instructions based on the reward score.

[0077] After obtaining reward scores for each optional movement instruction, according to... Figure 1 The reward function described in step S104 has the following characteristics: the higher the reward score, the more the motion instruction matches the preset expected motion state. Therefore, the optional motion instruction with the highest reward score is selected as the target motion instruction.

[0078] S108: Control the robot to move according to the target motion command.

[0079] After determining the target motion command, the robot control system can control the robot to move towards the target point. Specifically, according to the classification of motion commands in step S104 above, the robot control system can control the robot to move towards the target point in a preset cycle. After executing the target motion command at the current moment, when the next cycle arrives, steps S104 and S106 are re-executed to determine the target motion command for the next cycle and execute the motion command for the next cycle. This process is repeated until the robot reaches the target point. The number of single commands included in the target motion command within each cycle is not limited in this specification.

[0080] based on Figure 1 The robot control method described above utilizes a reinforcement learning model to control the robot to move in different desired motion states. It does not rely on the robot's dynamic modeling or reference trajectory setting, and can control the robot to move in various postures in unmodeled spaces.

[0081] In one or more embodiments of this specification, the connecting segment is a smooth connecting segment. In current technology, the connection between the swing phase and the support phase is often handled by binarization (dividing the robot's foot state within a single cycle into only the swing phase and the support phase). This results in a disconnect between the robot's motion strategy in the swing phase and the support phase, leading to stiff and discontinuous robot postures. The method provided in this specification incorporates a smooth connecting segment within the swing phase, using a trigonometric function to represent the weight of the swing phase in this smooth connecting segment, i.e., the proportion of the swing phase in the robot's posture, and setting a single-leg swing phase weight w. swing This is a periodic function related to gait parameters, with a range of [0,1]. The function expression within a single period is as follows:

[0082]

[0083] in

[0084]

[0085] T2 = r swing T gait ,

[0086] The change in the weight of the single-leg swing phase within a single cycle is as follows: Figure 2 As shown, there are no abrupt changes. To ensure gait symmetry, the phases of the swing phases of the two legs can differ by half a cycle, thus defining the robot's periodic cross gait. By simulating the transition from the swing phase to the support phase during the robot's motion using the smooth change property of trigonometric functions, the robot's posture changes during motion can be made smoother and more stable.

[0087] In addition, the solution provided in this specification also includes pre-training a reinforcement learning model, obtaining training target points, inputting the robot's training motion state and the training target points into the reinforcement learning model, determining the reward score of each optional training instruction, determining the target training instruction from each optional training instruction based on the reward score, controlling the robot to move according to the target training instruction, with the goal of maximizing the reward score of the training instruction that best matches the preset desired motion state, and training the reinforcement learning model to obtain a reinforcement learning model corresponding to the desired motion state.

[0088] When pre-training the reinforcement learning model, the reward function in the model can be configured within the environment where the robot will be used, using preset sets of desired motion states corresponding to different motion postures. Then, for each configured reinforcement learning model, training is repeated several times. For any training iteration of any configured reinforcement learning model, the training target point to which the robot needs to move is set, and then... Figure 1 The steps S104 and S106 shown are similar: obtain the reward score of each optional training instruction under the current reinforcement learning model, determine the target training instruction among the optional training instructions, control the robot to move according to the target training instruction, and then train the configured reinforcement learning model according to the movement process.

[0089] Specifically, training the configured reinforcement learning model includes: determining the robot's training motion state at a first moment; obtaining the target training instruction at the first moment and the predicted training instruction at the second moment based on the training motion state at the first moment and the reinforcement learning model, wherein the first moment precedes the second moment; controlling the robot to move according to the target training instruction at the first moment; determining the robot's training motion state at the second moment when the second moment arrives; obtaining the target training instruction at the second moment based on the training motion state at the second moment and the reinforcement learning model; and training the reinforcement learning model with the objective of minimizing the difference between the reward scores of the target training instruction at the second moment and the predicted training instruction at the second moment.

[0090] According to step S104 above, the motion command can be a series of commands for the current moment and every other moment during the robot's movement towards the target point. The current moment is taken as the first moment t1, and any moment after the current moment is taken as the second moment t2. At t1, the training command a1 that the robot needs to execute at t1 can be obtained based on the robot's training motion state x1 at t1, along with the predicted command a1 that the robot needs to execute at t2. 2+When t2 arrives, the training instruction a2 required for robot t2 is obtained based on the robot's training motion state x2 at t2. Then, when the reinforcement learning model parameters are accurate, a2 and a... 2+ They should be equal, thus minimizing the difference between a2 and a. 2+ The reinforcement learning model is trained with the difference between the reward scores as the objective.

[0091] During training, the hyperparameters in the configured reinforcement learning model can be adjusted (hyperparameters are the parameters in the reward function) to achieve better posture control. Gaussian noise can also be added to the training motion state input to the reinforcement learning model and the training motion command output by the reinforcement learning model to avoid local overfitting and make the effect of parameter adjustment closer to the global optimum.

[0092] The following is a record of a motion control experiment conducted on a bipedal robot in one embodiment of this specification. The robot has three degrees of freedom for each leg: hip pitch, knee pitch, and ankle pitch. The corresponding dynamic parameters of the leg links are as follows:

[0093]

[0094]

[0095] The PD (proportional-derivative) control parameters of the drive joint are:

[0096] k p1 =20,k p2 =20,k p3 =20,k p4 =20,k p5 =20,k p6 =20,

[0097] k d1 =2,k d2 =2,k d3 =2,k d4 =2,k d5 =2,k d6 =2,

[0098] Subscripts 1-3 correspond to the hip, knee, and ankle joints of the left leg, respectively, and subscripts 4-6 correspond to the hip, knee, and ankle joints of the right leg, respectively.

[0099] The parameters of the reward function are set as follows:

[0100] α run =0.5,α lf_swing =0.7,α lf_stance =0.1,σ lf_stance =0.002,α rf_swing=0.7,

[0101] α rf_stance =0.1,α rf_stance =0.002,α h =-25,α rot =-2,α power =-0.002,

[0102] α foot_pos =-0.5,α q =-0.1,β q =0.95, α τ =-0.2,β τ =0.9.

[0103] As an example, this invention uses the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm for training. The upper-layer simulation frequency of reinforcement learning is set to 40Hz, the lower-layer control frequency is 1kHz, the maximum number of steps per round is 1000, and the algorithm is trained a total of 2 million times.

[0104] In this experiment, two gaits were tested: stationary marching and walking. Based on these two gaits, two sets of desired motion states were set for each gait.

[0105] For the robot to move in place, the following settings are configured:

[0106] v d =0,σ run =5×10 -4 ,dz foot =0.03,σ lf_swing =σ rf_swing =1.8×10 -4 ,

[0107] f gait =2,r swing =0.3,r trans =0.3.

[0108] For the robot to move in a straight line at a speed of 0.5 m / s, the following settings are made:

[0109] v d =0.5,σ run =0.05,dz foot =0.03,σ lf_swing =σ rf_swing =1.8×10 -4 ,

[0110] f gait =2,rswing =0.3,r trans =0.3.

[0111] Training was conducted based on the two sets of desired motion states, with training target points randomly set during the experiment.

[0112] Figure 3 This is a schematic diagram of the robot's velocity curve when it steps in place after training. Figure 4 This is a schematic diagram of the velocity curve of the robot walking in a straight line at a speed of 0.5 m / s after training. Figure 5 This is a diagram showing the vertical position of the robot's feet when it steps in place after training (left foot at the top, right foot at the bottom). Figure 6 This is a schematic diagram showing the vertical positions of the robot's feet when it walks in a straight line at a speed of 0.5 m / s after training (left foot at the top, right foot at the bottom). Figure 7 This is a schematic diagram showing the vertical position curves of the robot's two feet when it steps in place after training (solid line represents the left foot, dashed line represents the right foot). Figure 8 The image shows the vertical position curves of the robot's two feet when it walks in a straight line at a speed of 0.5 m / s after training (solid line for the left foot, dashed line for the right foot). As can be seen from the image, the robot is controlled by the trained reinforcement learning model, and it stably exhibits the preset gait in both cases, with smooth and uninterrupted movement.

[0113] The above describes one or more embodiments of a robot control method provided in this specification. Based on the same concept, this specification also provides corresponding robot control devices, such as... Figure 9 As shown.

[0114] Figure 9 This specification provides a schematic diagram of a robot control device, specifically including:

[0115] Module 900 acquires the target point and the desired motion state;

[0116] Selection module 902 selects a reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model;

[0117] The scoring module 904 inputs the robot's current motion state and the motion target point into the application model, so that the application model determines the reward score for each optional motion instruction based on the current motion state, the motion target point, and each optional motion instruction.

[0118] The determination module 906 determines the target motion instruction from among the selectable motion instructions based on the reward score.

[0119] The execution module 908 controls the robot to move according to the target motion command.

[0120] Optionally, the desired motion state specifically includes at least one of the following: desired motion speed, desired torso height, desired robot posture, desired foot height off the ground, desired gait frequency, the proportion of a single leg swing phase in a single gait cycle, and the proportion of the transition segment from the swing phase to the support phase in the swing phase.

[0121] Optionally, the weight of the oscillating phase in the connecting segment is represented by a trigonometric function.

[0122] Optionally, the current motion state specifically includes at least one of the following: robot posture, robot speed, the motion command currently being executed by the robot, and robot motion phase time.

[0123] Optionally, the reward function in the reinforcement learning model specifically includes at least one of the following: motion speed reward, leg posture reward, robot pose penalty, actuator power penalty, foot posture penalty, joint position penalty, actuator torque penalty, and motion change rate penalty.

[0124] Optionally, the rating module 904 is also used for:

[0125] Obtain the training target point, input the robot's training motion state and the training target point into the reinforcement learning model, determine the reward score of each optional training instruction, determine the target training instruction from each optional training instruction based on the reward score, control the robot to move according to the target training instruction, with the goal of maximizing the reward score of the training instruction that best matches the preset desired motion state, and train the reinforcement learning model to obtain a reinforcement learning model corresponding to the desired motion state.

[0126] Optionally, the scoring module 904 is further configured to: determine the robot's training motion state at a first moment; obtain the target training instruction at the first moment and the predicted training instruction at the second moment based on the training motion state at the first moment and the reinforcement learning model, wherein the first moment precedes the second moment; control the robot to move according to the target training instruction at the first moment; when the second moment arrives, determine the robot's training motion state at the second moment; obtain the target training instruction at the second moment based on the training motion state at the second moment and the reinforcement learning model; and train the reinforcement learning model with the objective of minimizing the difference between the reward score of the target training instruction at the second moment and the predicted training instruction at the second moment.

[0127] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 The provided method for robot control.

[0128] This instruction manual also provides Figure 10 The diagram shows a schematic structural representation of the electronic device. Figure 10 At the hardware level, the robot control device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above-mentioned functions. Figure 1 The robot control method described herein. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.

[0129] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0130] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0131] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0132] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0133] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0134] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0135] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0136] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0137] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0138] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0139] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0140] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0141] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0143] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0144] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this application.

Claims

1. A method for controlling a robot, characterized in that, Applied to bipedal robots, the method includes: Acquire the target point and the desired motion state; In at least one pre-trained reinforcement learning model, the reinforcement learning model corresponding to the desired motion state is selected as the application model; wherein, each pre-trained reinforcement learning model corresponding to each desired motion state is obtained by pre-configuring the reward function parameters in the reinforcement learning model according to different desired motion states; The robot's current motion state and the motion target point are input into the application model, so that the application model determines the reward score of each optional motion command based on the current motion state, the motion target point and each optional motion command; The target exercise instruction is determined from the available exercise instructions based on the reward score. The robot is controlled to move according to the target motion command.

2. The method as described in claim 1, characterized in that, The desired motion state specifically includes at least one of the following: desired motion speed, desired torso height, desired robot posture, desired foot height off the ground, desired gait frequency, the proportion of a single leg swing phase in a single gait cycle, and the proportion of the transition segment from the swing phase to the support phase in the swing phase.

3. The method as described in claim 2, characterized in that, The weight of the oscillating phase in the connecting segment is represented by a trigonometric function.

4. The method as described in claim 1, characterized in that, The current motion state specifically includes at least one of the following: robot posture, robot speed, the motion command currently being executed by the robot, and robot motion phase time.

5. The method as described in claim 1, characterized in that, The reward function in the reinforcement learning model specifically includes at least one of the following: motion speed reward, leg posture reward, robot pose penalty, actuator power penalty, foot posture penalty, joint position penalty, actuator torque penalty, and motion change rate penalty.

6. The method as described in claim 1, characterized in that, Pre-training reinforcement learning models specifically includes: Obtain the training target points; The robot's training motion state and the training target point are input into the reinforcement learning model to determine the reward score for each optional training instruction; The target training instruction is determined from the available training instructions based on the reward score. The robot is controlled to move according to the target training instructions, with the goal of maximizing the reward score of the training instructions that best match the preset expected motion state. The reinforcement learning model is then trained to obtain a reinforcement learning model corresponding to the expected motion state.

7. The method as described in claim 6, characterized in that, Training the reinforcement learning model specifically includes: Determine the training motion state of the robot at the first moment; Based on the training motion state at the first moment and the reinforcement learning model, the target training instruction at the first moment and the predicted training instruction at the second moment are obtained, with the first moment preceding the second moment. The robot is controlled to move according to the target training instructions at the first moment; When the second moment arrives, determine the robot's training motion state at the second moment; Based on the training motion state at the second moment and the reinforcement learning model, the target training instruction at the second moment is obtained; The reinforcement learning model is trained with the objective of minimizing the difference between the reward score of the target training instruction at the second time step and the predicted training instruction at the second time step.

8. A robot-controlled device, characterized in that, include: The acquisition module acquires the target point and the desired motion state. The selection module selects a reinforcement learning model corresponding to the desired motion state from at least one pre-trained reinforcement learning model as the application model; wherein, each pre-trained reinforcement learning model corresponding to each desired motion state is obtained by pre-configuring the reward function parameters in the reinforcement learning model according to different desired motion states; The scoring module inputs the robot's current motion state and the motion target point into the application model, so that the application model determines the reward score for each optional motion command based on the current motion state, the motion target point, and each optional motion command. The determination module determines the target motion instruction from among the available motion instructions based on the reward score; The execution module controls the robot to move according to the target motion command.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 7.

10. An apparatus 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, it implements the method described in any one of claims 1 to 7.