Method and program product for training a motion control model of a robot
By obtaining the difference between the actual and expected contact sequences of the robot's foot movements, swing excitation values are generated, and the motion control model is iterated. This solves the problem of robot stepping instability in existing technologies and improves control accuracy and stability.
Patent Information
- Application Number
- CN202510547504.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-04-27
AI Technical Summary
The reward function in the existing technology is difficult to achieve precise foot movement control when the robot is stepping, which leads to unstable movement of the robot in complex environments and increases the risk of instability.
By obtaining the difference between the actual contact sequence and the expected contact sequence when the robot performs foot movements, swing excitation values are generated, and the motion control model is iterated based on these values to improve control accuracy.
It improves the motion control precision of robots in complex environments, reduces the risk of instability, and ensures that the robot contacts the designated surface at the right time.
Smart Images

Figure CN120269563B_ABST
Abstract
Description
Technical Field
[0001] The embodiments described in this application relate to the field of computer technology, and in particular to a training method and program product for a robot motion control model. Background Technology
[0002] With the development of artificial intelligence and robotics, reinforcement learning is commonly used to train AI models for controlling robot motion. To achieve the specified training objectives, a reward function is usually designed as the basis for model parameter tuning. Since the reward function directly affects the reward value fed back from the environment, how to design the reward function is a key research focus in the field of robot motion control. Summary of the Invention
[0003] In view of this, this application aims to provide a method and program product for training a robot motion control model, which can improve the control accuracy of the motion control model for the robot.
[0004] One embodiment of this application provides a method for training a motion control model for a robot. The method includes: acquiring an actual contact sequence representing the contact between the robot and a specified surface during the execution of a foot movement; wherein the foot movement is generated by the motion control model; acquiring an expected contact sequence representing the expected contact between the robot and the specified surface during the execution of the foot movement; wherein the expected contact sequence is generated based on a phase variable and a gait mapping relationship; the gait mapping relationship represents the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset corresponding to the foot movement and the phase variable; the phase variable represents the stepping progress of the robot within a stepping cycle; generating a swing excitation value based on the sequence difference between the expected contact sequence and the actual contact sequence; wherein the swing excitation value is negatively correlated with the sequence difference; and performing parameter iteration on the motion control model based on the swing excitation value.
[0005] Optionally, the stepping cycle includes multiple stepping stages, and the gait mapping relationship includes a stage gait mapping relationship corresponding to each stepping stage; wherein, the multiple stepping stages are obtained by dividing the stepping cycle based on the difference between the expected swing phase duty cycle and the expected inter-foot phase offset, or the multiple stepping stages are obtained by dividing the stepping cycle based on the expected swing phase duty cycle.
[0006] Optionally, the method further includes: obtaining the actual joint motion trajectory formed by the robot performing the foot movement; obtaining the expected joint motion trajectory formed by the robot performing the foot movement; generating a joint motion excitation value based on the trajectory difference between the actual joint motion trajectory and the predicted joint motion trajectory; wherein the trajectory difference is negatively correlated with the joint motion excitation value; and performing parameter iteration on the motion control model based on the joint motion excitation value.
[0007] Optionally, the expected joint motion trajectory is generated based on the expected velocity, expected contact signal, and expected step signal corresponding to the robot; wherein, the expected contact sequence is generated based on the expected contact signal; the expected contact signal and the expected step signal are generated based on the phase variable and the gait mapping relationship; the expected step signal is used to represent the relative displacement of the robot relative to the specified surface during the robot's execution of the foot movement.
[0008] Optionally, the step of obtaining the actual joint motion trajectory formed by the robot performing the foot movement includes: obtaining the actual joint motion trajectory formed by the robot performing the arm swinging movement and the foot movement; wherein the arm swinging movement is generated by the motion control model; and the step of obtaining the expected joint motion trajectory formed by the robot performing the foot movement includes: obtaining the expected joint motion trajectory formed by the robot performing the arm swinging movement and the foot movement; wherein the expected joint motion trajectory includes the expected arm swinging trajectory corresponding to the arm swinging movement, the expected arm swinging trajectory being generated based on a phase variable and an arm swinging mapping relationship; the arm swinging mapping relationship characterizes the relationship between the phase variable and the expected swing phase duty cycle and the expected inter-foot phase offset within the stepping cycle.
[0009] Optionally, the method further includes: based on the historical observation data sequence autonomously observed by the robot, and the robot velocity estimate generated based on the historical observation data sequence, invoking the motion control model to trigger the motion control model to generate the foot movement.
[0010] Optionally, the step of invoking the motion control model to trigger the motion control model to generate the foot movement based on the historical observation data sequence autonomously observed by the robot and the robot velocity estimate generated based on the historical observation data sequence includes: encoding the historical observation data sequence autonomously observed by the robot into feature data conforming to a specified dimension; and invoking the motion control model to trigger the motion control model to generate the foot movement based on the feature data, the part of the historical observation data sequence closest to the current time, and the robot velocity estimate generated based on the historical observation data sequence.
[0011] Optionally, the foot movements include: stepping movements and stationary movements; wherein the stepping movements include at least running and walking, and the stationary movements include at least standing and jumping; wherein the expected inter-foot phase offset corresponding to the stepping movements is greater than the expected inter-foot phase offset corresponding to the stationary movements; the expected swing phase duty cycle of running is greater than the expected swing phase duty cycle of walking, and the expected swing phase duty cycle of jumping is greater than the expected swing phase duty cycle of standing.
[0012] Optionally, the method further includes: deploying a motion control model trained based on the total reward value into the robot; wherein the total reward value includes an instruction tracking reward value for enhancing the robot's ability to track external instructions, a gait reward value for aligning the expected gait and the robot's gait, and a regularization reward value for suppressing unexpected external movements; the gait reward value includes at least the swing excitation value.
[0013] One embodiment of this application also provides a training device for a robot motion control model. The device includes: an actual contact sequence acquisition module, used to acquire an actual contact sequence representing the contact between the robot and a specified surface during the robot's foot movements; wherein the foot movements are generated by the motion control model; an expected contact sequence acquisition module, used to acquire an expected contact sequence representing the expected contact between the robot and the specified surface during the robot's foot movements; wherein the expected contact sequence is generated based on a phase variable and a gait mapping relationship; the gait mapping relationship represents the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset corresponding to the foot movements and the phase variable; the phase variable represents the robot's stepping progress within a stepping cycle; a swing excitation generation module, used to generate swing excitation values based on the sequence difference between the expected contact sequence and the actual contact sequence; wherein the swing excitation values are negatively correlated with the sequence difference; and a parameter iteration module, used to perform parameter iteration on the motion control model based on the swing excitation values.
[0014] One embodiment of this application also provides a computer device, the computer device including a memory and a processor, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the method as described above.
[0015] One embodiment of this application also provides a computer-readable storage medium storing at least one computer program that, when executed by a processor, can implement the method described above.
[0016] One embodiment of this application also provides a computer program product that, when executed by a processor, implements the method as described above.
[0017] In several embodiments provided in this application, the actual contact sequence and the corresponding expected contact sequence, representing the robot's contact with a designated surface during foot movements, are obtained. The expected contact sequence is generated based on phase variables and gait mapping relationships. The gait mapping relationship characterizes the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset of the foot movement and the phase variables, ensuring the expected contact sequence possesses the necessary accuracy. This makes the expected contact sequence helpful in improving training effectiveness when used as the basis for model training. Furthermore, swing excitation values can be generated based on the sequence differences between the actual and expected contact sequences, and the motion control model can be iterated accordingly. This allows the motion control model to control the robot to contact the designated surface at the correct time, improving the control accuracy of the motion control model for the robot. Attached Figure Description
[0018] Figure 1 A flowchart of a method for training a robot motion control model according to one embodiment of this application.
[0019] Figure 2 A schematic diagram of the model training architecture of a motion control model provided in one embodiment of this application.
[0020] Figure 3 A schematic diagram of the structure of a training device for a robot motion control model provided in one embodiment of this application.
[0021] Figure 4 A schematic diagram of a computer device provided for one embodiment of this application. Detailed Implementation
[0022] The information to be retrieved in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0023] In the description of the embodiments of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0024] Legged robots are a class of robotic systems that achieve movement by mimicking the leg structure of living organisms. They typically include multiple controllable joints, such as the hip, knee, and ankle. Legged robots have a greater ability to overcome obstacles in complex terrains (such as rugged mountains, steps, ruins, sand dunes, and forests) and are widely used in rescue, military reconnaissance, space exploration, industrial inspection, and agricultural operations.
[0025] Related technologies typically employ artificial intelligence (AI) models to generate control commands to guide robots in completing specific motion tasks. To improve robot control accuracy and ensure stability in complex real-world environments, reward functions are designed for AI models, often focusing on aspects such as stability, speed tracking, energy consumption, and trajectory tracking. However, the steady state of a robot's stepping motion also depends on the correct timing of its contact with the ground. However, existing reward functions have limitations; AI models trained based on these functions struggle to achieve precise foot movement control when guiding a robot's stepping motion, making it difficult to control the risk of robot instability.
[0026] Therefore, it is necessary to provide a training method for a robot's motion control model, which obtains the actual contact sequence and the corresponding expected contact sequence representing the robot's contact with a specified surface during foot movements. The expected contact sequence is generated based on phase variables and gait mapping relationships. Furthermore, the gait mapping relationship characterizes the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset and phase variables, ensuring the expected contact sequence possesses the necessary accuracy. This makes the expected contact sequence helpful in improving training effectiveness when used as the basis for model training. Subsequently, swing excitation values can be generated based on the sequence differences between the actual and expected contact sequences, and the motion control model can be iterated accordingly. This allows the motion control model to control the robot to contact the specified surface at the correct time, improving the control accuracy of the motion control model and reducing the risk of robot instability.
[0027] In several embodiments provided in this application, the training method for a robot's motion control model can be applied to a training device for that model. The training device can be an electronic device with certain computing power and network access capabilities. This electronic device can be a desktop computer, laptop computer, tablet computer, or a server. The electronic device can connect to the server via a network. The server can be a distributed server, including multiple processors, memory, network communication modules, etc., working collaboratively to achieve various functions. Alternatively, the server can be a server cluster formed by several servers, possessing higher computing and data processing capabilities. With the development of science and technology, the server can also be implemented using new technological means, such as a new type of "server" based on quantum computing. Of course, in some embodiments, the training device for the robot's motion control model can also be a program module running in an electronic device.
[0028] Please see Figure 1 One embodiment of this application provides a method for training a robot's motion control model. This method can be applied to a robot motion control model training device. The method may include the following steps.
[0029] Step S110: Obtain the actual contact sequence representing the contact between the robot and the specified surface during the robot's foot movements; wherein the foot movements are generated by a motion control model.
[0030] Step S120: Obtain the expected contact sequence of the robot and the specified surface during the expected foot movement of the robot; wherein the expected contact sequence is generated based on phase variables and gait mapping relationship; the gait mapping relationship is used to represent the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset corresponding to the foot movement and the phase variables; the phase variables are used to characterize the stepping progress of the robot in the stepping cycle.
[0031] Step S130: Generate a swing excitation value based on the sequence difference between the expected contact sequence and the actual contact sequence; wherein the swing excitation value is negatively correlated with the sequence difference.
[0032] Step S140: Perform parameter iteration on the motion control model based on the swing excitation value.
[0033] In this embodiment, the robot can be a legged robot with any number of legs, including but not limited to: bipedal robots for simulating human walking, quadrupedal robots with good stability and strong adaptability to rugged terrain, hexapedal robots that can maintain balance while raising multiple legs simultaneously and are suitable for crawling and low-speed stable movement, octagonal robots for simulating spider crawling, and other multi-legged robots for exploring ultra-high redundancy.
[0034] In this embodiment, the motion control model is used to generate robot control commands to control the robot to exhibit the expected gait. Therefore, the output accuracy of the motion control model is crucial to the robot's control accuracy. To improve the training accuracy of the motion control model, the training framework is modeled as a partially observable Markov decision process (POMDP). In this training framework, for each time step t, the robot's environment is represented as a state s that the robot cannot fully perceive. t , state s t This includes, but is not limited to, the ground friction coefficient, robot position / attitude / velocity, and the foot number in the support phase. The robot, as an intelligent agent, is used to perceive observed values from its environment. t This includes data such as the robot's own attitude, angular velocity, joint angles, foot contact state, and stepping speed obtained from sensors, encoders, and inertial navigation systems. The robot then executes the action 'a' generated by the motion control model. t Thus, it transitions to the next state s. t+1 And receive a reward r in the process. t As feedback, the motion control model is iterated based on these parameters. This process continues until the expected iteration period T / model accuracy / duration is met, resulting in a motion control model for precise robot control.
[0035] Among them, o t Based on O(o t |s t ,a t―1 This is definite and does not include privileged information such as base linear velocity and system parameters, in order to... t Given the limitations, a motion control model that meets expectations is trained. As a reinforcement learning objective, the optimal policy π is determined as the trained motion control model, thus ensuring that the motion control model remains effective even in the absence of errors. t Despite limitations, it can still generate accurate movements that can be directly applied to robots. t This enhances the direct deployment value of motion control models; where J(π) refers to the expected total revenue for policy π. x TIndicates the robot's state, a T The action performed by the robot, r T This represents the reward for each step. This represents the trajectory formed by the robot following policy π. This represents the probability of observing this trajectory under policy π. The discount factor γ∈[0,1] is used to prioritize immediate rewards during the optimization of policy π when γ is close to 0, and to prioritize future rewards during the optimization of policy π when γ is close to 1.
[0036] In this embodiment, the process of training the motion control model can be implemented using a robot simulator or a physical robot. The motion control model generates actions, at least foot movements, to control the movement of corresponding joints in the robot, thereby completing foot movements such as running and walking. During the execution of foot movements, the robot reads its built-in sensors to obtain the actual contact sequence characterizing the robot's contact with a designated surface. This designated surface can be any surface selected according to actual needs, such as the ground, a wall, or a sphere.
[0037] In this embodiment, the actual contact sequence represents the actual contact between the robot foot and the specified surface at each moment during the execution of the foot movement. Optionally, the actual contact sequence can be represented as follows: Or 1, This indicates that the robot's feet are all airborne, meaning it is in the swing phase. The time indicates that the robot has at least one foot in contact with the specified surface, i.e., it is in the support phase.
[0038] In this embodiment, the expected contact sequence represents the expected contact between the robot foot and a specified surface at each moment during the execution of a foot movement. Optionally, the expected contact sequence can be represented as... Or 1,
[0039] The time indicates that the robot's foot is not in contact with the specified surface, meaning it is expected to be in the oscillating phase. The time indicates that the robot has at least one foot in contact with the specified surface, i.e., it is expected to be in the support phase.
[0040] Specifically, the expected swing phase duty cycle and expected inter-foot phase offset corresponding to the foot movement can be determined. Based on the gait mapping relationship between the expected swing phase duty cycle, expected inter-foot phase offset, and phase variables, an expected contact signal is generated. The expected contact signal represents the expected contact between the robot's foot and a specified surface at a given moment during the execution of the foot movement. An expected contact sequence can be generated based on the expected contact signals at various moments. The phase variable refers to the position of the robot's foot within a stepping cycle. For example, a phase variable of 0 represents the start of the stepping cycle, a phase variable of 0.5 represents the midpoint of the stepping cycle, and a phase variable of 1 represents the end of the stepping cycle.
[0041] Specifically, the expected swing phase duty cycle and the expected inter-foot phase offset are data-driven representations of foot movements. Different foot movements may correspond to different expected swing phase duty cycles and / or expected inter-foot phase offsets. The expected swing phase duty cycle refers to the proportion of time a robot's foot is in the swing phase during a complete stepping cycle. The swing phase refers to the posture of the foot swinging in the air. For example, an expected swing phase duty cycle of 0.4 indicates that the corresponding foot is in the air for 40% of the stepping cycle. The expected inter-foot phase offset refers to the time difference between the gait phase of one foot and the other foot. For example, an expected inter-foot phase offset of 0.5 indicates that the left foot is 0.5 units ahead of the right foot, meaning the phase difference between the left and right feet is half a gait cycle. Specifically, the expected swing phase duty cycle and the expected inter-foot phase offset can be determined by looking up a table or by simulation; this application does not limit this method.
[0042] Since the gait mapping relationship can characterize the relationship between the phase variable and the expected swing phase duty cycle and the expected inter-foot phase offset, the values can be applied to the gait mapping relationship to generate the expected contact signal of the robot's contact with a specified surface, provided that the values of the expected swing phase duty cycle and the expected inter-foot phase offset are known.
[0043] Gait mapping refers to the mapping relationship between phase variables and control parameters within a stride cycle. Control parameters may include, but are not limited to, the expected swing phase duty cycle and the expected inter-foot phase offset. Optionally, control parameters may also include foot lift height, support force distribution weight for controlling the force borne by each foot in the support phase, contact time offset representing the lead / delay time of ground contact, phase modulation factor for dynamically adjusting the rate of foot phase progression, expected landing point representing the target landing point for each stride cycle, damping / stiffness coefficient characterizing the force feedback after foot landing, motion cycle duration, contact stability window width, and one or more other parameters. This application does not limit these parameters in its embodiments.
[0044] In this embodiment, given a clear expected contact sequence and an actual contact sequence, the expected contact sequence and the actual contact sequence can be compared to clarify the sequence differences between them, thereby generating the corresponding swing excitation value r. swing Specifically, comparing the expected contact sequence and the actual contact sequence refers to sequentially comparing corresponding signals in the expected and actual contact sequences. The two signals used for comparison come from the expected and actual contact sequences, respectively, and the two sequence numbers correspond to the same synchronizing times. This results in a negative correlation between the swing excitation value and the sequence difference; that is, the greater the sequence difference, the smaller the corresponding swing excitation value, and vice versa.
[0045] In some implementations, r swing The corresponding expression can be:
[0046]
[0047] In this embodiment, the swing excitation value r swing It can serve as the basis for parameter iteration in the motion control model, and the iterative goal of the motion control model is to obtain a larger r. swing This aims to improve the accuracy of motion control models in controlling the robot's foot's airborne gait.
[0048] In summary, this embodiment acquires the actual contact sequence and the corresponding expected contact sequence, representing the robot's contact with a designated surface during foot movements. The expected contact sequence is generated based on phase variables and gait mapping relationships. The gait mapping relationship characterizes the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset and phase variables, ensuring the expected contact sequence possesses the necessary accuracy. This makes the expected contact sequence helpful in improving training effectiveness when used as the basis for model training. Furthermore, swing excitation values can be generated based on the sequence differences between the actual and expected contact sequences, and the motion control model can be iterated accordingly. This allows the motion control model to control the robot to contact the designated surface at the correct time, improving the control accuracy of the motion control model and reducing the risk of robot instability.
[0049] In some embodiments, the stepping cycle includes multiple stepping stages, and the gait mapping relationship includes a stage gait mapping relationship corresponding to each stepping stage; wherein, the multiple stepping stages are obtained by dividing the stepping cycle based on the difference between the expected swing phase duty cycle and the expected inter-foot phase offset, or the multiple stepping stages are obtained by dividing the stepping cycle based on the expected swing phase duty cycle.
[0050] In this embodiment, the stepping cycle refers to a complete gait rhythm cycle, including one complete swing and support of the foot. The stepping cycle includes multiple stepping phases, which refer to the stage in which the foot movement is performed. In this application, the stepping cycle can be divided into multiple stepping phases according to actual needs. Optionally, the stepping cycle can be divided into multiple stepping phases according to the expected swing phase duty cycle and / or the expected inter-foot phase offset, or it can be divided into multiple stepping phases according to one or more of the other control parameters mentioned above. This embodiment does not limit this.
[0051] In this embodiment, to achieve fine-grained control of gait, the gait mapping relationship includes a stage gait mapping relationship corresponding to each step phase. The stage gait mapping relationship characterizes the relationship between the phase variable at the corresponding step phase and the expected swing phase duty cycle and the expected inter-foot phase offset. Different stage gait mapping relationships have mapping differences, ensuring that the stage gait mapping relationship accurately represents the gait of its respective step phase.
[0052] Optionally, the stepping period T is divided based on the expected swing phase duty cycle δ and the expected inter-foot phase offset ψ. s The resulting multiple step stages can be represented as [0,δ―ψ), [δ―ψ,ψ), [ψ,1]. The step period T is divided based on δ. s The resulting multiple step stages can be represented as [0,δ) and [δ,1).
[0053] In some implementations, the training device for the robot's motion control model can acquire the actual joint motion trajectory formed by the robot performing the foot movement; acquire the expected joint motion trajectory formed by the robot performing the foot movement; generate joint motion excitation values based on the trajectory difference between the actual joint motion trajectory and the predicted joint motion trajectory; wherein the trajectory difference is negatively correlated with the joint motion excitation values; and perform parameter iteration on the motion control model based on the joint motion excitation values.
[0054] In this embodiment, in order to further improve the control accuracy of the motion control model for the robot, it can also provide the expected joint motion trajectory, and generate joint motion excitation values based on the trajectory difference between the actual joint motion trajectory and the predicted joint motion trajectory. Based on the joint motion excitation values, the motion control model is iterated to ensure that the joint trajectory formed after the robot executes the foot action generated by the motion control model meets the expectation, thereby improving the control accuracy of the motion control model for the robot.
[0055] Specifically, the actual joint motion trajectory represents the spatial motion trajectory of each joint during the robot's foot movements. This trajectory can be generated by the robot reading data from its built-in sensors. Here, "each joint" refers to either the joints of the leg or all joints of the body. The expected joint motion trajectory represents the anticipated spatial motion trajectory of each joint during the robot's foot movements.
[0056] The joint position at any given moment in the actual joint motion trajectory can be represented as q. m q m Represented as a multidimensional vector, q m Each element in the expression represents the actual position of each joint at a given moment. The joint position at any moment in the expected joint motion trajectory can be represented as q. ref q ref Represented as a multidimensional vector, q ref With q m For the same dimension, q ref Each element in the table represents the expected position of each joint at a given moment.
[0057] Based on r joint =exp(―2·|q m ―q ref |)―0.2·|q m ―q ref This allows for the clear identification of the differences between the actual and predicted joint motion trajectories at various time points, thereby enabling the generation of joint motion excitation values r based on these trajectory differences. joint The greater the trajectory difference, the greater the joint motion excitation value r. joint The smaller the value (e.g., -10), the smaller the trajectory difference, and the smaller the joint motion excitation value r. joint The larger the value (e.g., 10), the higher the reinforcement learning goal is to obtain the higher joint motion excitation value r. joint .
[0058] Based on the joint motion excitation value r joint By iterating the parameters of the motion control model, the model can generate better foot movements. The actual joint motion trajectory formed after the robot executes better foot movements can be closer to the expectation, thus improving the control accuracy of the motion control model for the robot.
[0059] In some implementations, the expected joint motion trajectory is generated based on the expected velocity, expected contact signal, and expected step signal corresponding to the robot; wherein the expected contact sequence is generated based on the expected contact signal; the expected contact signal and the expected step signal are generated based on the phase variable and the gait mapping relationship; and the expected step signal is used to represent the relative displacement of the robot relative to the specified surface during the robot's execution of the foot movement.
[0060] In this embodiment, to avoid the inefficiency caused by manually providing reference trajectories for model training, automatically generated expected joint motion trajectories can be provided as a reference for model training. Specifically, given the foot movement, the expected swing phase duty cycle and expected inter-foot phase offset corresponding to the foot movement can be determined by looking up a table or through simulation. Furthermore, based on the gait mapping relationship between the expected swing phase duty cycle, expected inter-foot phase offset, and phase variables, expected contact signals and expected stepping signals are generated. Since the expected stepping signal represents the relative displacement of the robot relative to a specified surface during the robot's foot movement, reflecting the movement of the robot's foot in the z-axis direction, and the expected contact signal represents the contact between the robot and the specified surface during the robot's foot movement, reflecting the movement of the robot's foot in the x-axis and y-axis directions, the expected joint motion trajectory can be generated based on the robot's expected velocity, expected contact signal, and expected stepping signal.
[0061] Since the pre-constructed gait mapping relationship can characterize the relationship between the expected swing phase duty cycle δ and the expected inter-foot phase offset ψ and the phase variable, substituting the expected swing phase duty cycle and the expected inter-foot phase offset into the gait mapping relationship can yield the expected contact signal and the expected step signal corresponding to any phase variable.
[0062] Optionally, the gait mapping relationships used to generate the expected contact signal and the expected step signal can be different. Further, the gait mapping relationships include: gait mapping relationships corresponding to each foot in a pair of feet for generating the expected contact signal, and gait mapping relationships corresponding to each foot in a pair of feet for generating the expected step signal.
[0063] Of any number of legs a robot possesses, at least two legs form a pair, and each pair corresponds to an opposite stepping period T. s This causes a pair of feet to alternate between the support phase and the swing phase, that is, when one foot is in the support phase, the other foot is in the swing phase.
[0064] The gait mapping relationship used to generate the expected contact signal can be expressed as the following polynomial:
[0065]
[0066] Specifically, when i represents the i-th foot, i∈[0,1], 0 and 1 represent the two feet in a pair. For example, 0 represents the left foot and 1 represents the right foot. φ refers to the phase variable, C z,i (φ) refers to the expected contact signal of the i-th foot's contact with the specified surface within one step cycle in the vertical direction (i.e., the z-axis direction), based on C. z,i (φ) can determine the expected contact signal within each step cycle, C z,i (φ)∈[0,1],α n This refers to the polynomial coefficients of the spline curve, which can affect the shape of the curve. Optionally, α conforms to α[α0,…,α5]. T = [0, 0.1, 5.0, -18.8, 12.0, 9.6]. n refers to the order of the polynomial, such as 5th order, which allows the expected contact signal to smoothly rise from 0 to 1, and to smoothly fall from 1 to 0. This represents the process of the expected contact signal smoothly rising from 0 to 1. This represents the process of the expected contact signal smoothly decreasing from 1 to 0, C z,0 (φ) = 0 indicates that the foot is in the support phase in the vertical direction, C z,0 (φ)≠0 indicates that the foot is in the swing phase in the vertical direction.
[0067] Furthermore, based on each expected contact signal C z,i The order of (φ) and each expected contact signal C z,i The value shown by (φ) can clearly indicate the expected contact sequence. The expected contact sequence is used to indicate the anticipated contact between the robot and a specified surface within a stepping cycle. The reinforcement learning objective is to drive the actual contact sequence between the robot's foot movements generated by a specified motion control model and the specified surface. It should be as close as possible to the expected contact sequence. according to and The difference between the generated swing excitation values is intended to promote Approaching
[0068]
[0069] Furthermore, the gait mapping relationship used to generate the expected step signal can be expressed as the following polynomial:
[0070]
[0071]
[0072] Among them, C x(y),i (φ) refers to the expected step signal representing the relative displacement of the i-th foot relative to the specified surface within one step cycle in the stepping direction (i.e., the x-axis direction / y-axis direction), based on C. x(y),i (φ) can determine the expected step signal within each step cycle, C x(y),i (φ)∈[―0.5,0.5]. φ′ i The target phase variable, φ′, is obtained by normalizing φ using ψ and δ. i ∈[0,1].
[0073] Specifically, the normalization of φ is achieved through the aforementioned mapping relationship between φ′0 and φ′1, thereby obtaining the target phase variables φ′0 and φ′1. Furthermore, gait mapping relationships used to generate the expected step signal can be applied based on φ′0 and φ′1. Determine the expected step signal C x(y),i (φ). This allows all the phase variables of the feet to be mapped into the same mathematical space, thereby reducing computational complexity.
[0074] Because of C z,i (φ) represents the robot's contact signal in the z-axis direction, C x(y),i (φ) represents the robot's stepping signal in the x-axis and y-axis directions. Therefore, based on the robot's expected speed, C z,i (φ), C x(t),i (φ) can generate multiple spatial footprints. By performing inverse kinematics-based analysis on these multiple spatial footprints, the expected joint motion trajectories corresponding to the robot can be obtained. Here, the expected velocity of the robot refers to the stepping speed that the robot is expected to achieve. The expected velocity can include, but is not limited to, linear velocity and angular velocity. The expected velocity can be used to guide gait rhythm and adjust the footprints.
[0075] In some embodiments, the training device for the robot's motion control model can acquire the actual joint motion trajectories formed by the robot performing arm swinging motions and foot movements; wherein the arm swinging motion is generated by the motion control model; and the training device for the robot's motion control model can acquire the expected joint motion trajectories formed by the robot performing the arm swinging motion and foot movements; wherein the expected joint motion trajectories include the expected arm swinging trajectory corresponding to the arm swinging motion, the expected arm swinging trajectory being generated based on a phase variable and an arm swinging mapping relationship; the arm swinging mapping relationship characterizes the relationship between the phase variable and the expected swinging phase duty cycle and the expected inter-foot phase offset within the stepping cycle.
[0076] In this embodiment, to improve the control accuracy of the robot, the actual joint motion trajectories formed by the robot during arm swinging and foot movements can be acquired. These actual joint motion trajectories include the arm swinging trajectory and the trajectories of each leg joint. To further reduce the gap between the actual and expected joint motion trajectories, expected joint motion trajectories can also be acquired as reinforcement learning targets. These expected joint motion trajectories are the joint motion trajectories expected to be formed by the robot during arm swinging and foot movements, and include the expected arm swinging trajectory and the expected joint motion trajectories of each leg joint.
[0077] The expected swing arm trajectory is generated based on the phase variable and the swing arm mapping relationship, which can be represented as corresponding to a pair of arms. and Indicates the maximum range of motion of the shoulder flexion-extension joint, based on and The expected arm position at each moment during the arm swing motion can be calculated, thus obtaining the expected arm swing trajectory. The expected joint motion trajectories of each leg joint are obtained based on inverse kinematics analysis, after the expected footprints formed by the robot performing foot movements. Each leg joint may include, but is not limited to: the knee joint, the hip joint corresponding to three degrees of freedom, and the ankle joint corresponding to two degrees of freedom.
[0078] The footprints formed by the robot's foot movements can include forward stepping footprints, lateral stepping footprints, and contact footprints. Forward stepping footprints are generated based on forward velocity, rotational angular velocity, and a projected forward stepping signal; lateral stepping footprints are generated based on lateral velocity and a projected lateral stepping signal; and contact footprints are generated based on a projected contact signal. Forward velocity can be expressed as... Rotational angular velocity can be expressed as Lateral velocity can be expressed as The forward step signal can be represented as C x,i (φ), the lateral step signal can be represented as C y,i (φ). Wherein, and This represents the desired linear velocity. This represents the desired angular velocity.
[0079] Specifically, it can be based on Generate forward stepping footprints based on Generate lateral stepping footprints, based on Generate contact footprints. Where, s iLet s represent the direction factor of the i-th foot, used to distinguish between the left and right feet, and s = [1, -1]. T , l foot h represents the distance between the front and back halves of the landing point. foot Indicates the swing height.
[0080] In this embodiment, the expected arm swing trajectory anticipates the joint motion trajectories of each leg joint, which can constitute the expected joint motion trajectory. The joint position at any moment in the expected joint motion trajectory is represented as q. ref In some implementations, the robot is a bipedal robot, q ref The degrees of freedom are 14, that is It includes 6 joint positions corresponding to the left leg, 6 joint positions corresponding to the right leg, 1 joint position corresponding to the left arm, and 1 joint position corresponding to the right arm.
[0081] In some implementations, the training device for the robot's motion control model can invoke the motion control model based on a sequence of historical observation data autonomously observed by the robot, and a robot velocity estimate generated based on the historical observation data sequence, to trigger the motion control model to generate the foot movements.
[0082] In this embodiment, to improve the accuracy of the motion control model, historical observation data sequences and robot velocity estimates are used as inputs for model training. Specifically, the historical observation data sequences contain observation data corresponding to multiple historical moments, referring to environmental data and the robot's own state data that it can perceive. The robot velocity estimates are estimates of the linear velocity of the robot's base. Since these robot velocity estimates are generated based on the historical observation data sequences, the motion control model learns from richer prior data, thereby improving its accuracy.
[0083] In some implementations, the historical observation data sequence can be represented as o t,…,t―65 This refers to the 66 most recent observations. Robot velocity estimate. It can be generated based on the full historical observation data sequence or based on a portion of the historical observation data sequence; this application does not limit this.
[0084] In some implementations, the training device for the robot's motion control model can encode the historical observation data sequence autonomously observed by the robot into feature data conforming to a specified dimension; based on the feature data, the portion of the historical observation data sequence closest to the current moment, and the robot velocity estimate generated based on the historical observation data sequence, the motion control model is invoked to trigger the motion control model to generate the foot movement.
[0085] Please see Figure 2 In this embodiment, a reinforcement learning objective is constructed as follows: Figure 2 The model training architecture shown includes: an encoder, a state estimator, a commentator network, a motion control model, a parameter iteration unit, a reward calculation unit, a controller, and a robot / simulator. This enables the trained motion control model to achieve zero-shot transfer from simulation to the real world. In some implementations, the encoder is implemented as a convolutional neural network, the state estimator, the commentator network, and the motion control model are implemented as a multilayer perceptron.
[0086] The encoder is used to extract historical observation data sequences. t,…,t―65 Extract feature data that meets the specified dimension (e.g., 64 dimensions). z t Including but not limited to terrain type (e.g., slope, steps, flat ground), friction coefficient, and dynamic parameters (e.g., mass distribution, damping), z t It can be understood as o t,…,t―65 Potential feature information, z t It can be used as input when training a motion control model, so that the motion control model can generate the actions that need to be driven by the robot.
[0087] The state estimator is used to estimate the state based on the historical observation data sequence. t,…,t―65 The most recent part of the observation data. t,…,t―4 Generate robot velocity estimates Right now Includes velocity estimation for the robot base in the x, y, and z directions. It can be used as input when training a motion control model, so that the motion control model can generate the actions that need to be driven by the robot.
[0088] The input to the critic network is S t,…,t―2 The output of the critic network is an evaluation value used to assess the learning performance of the motion control model. S t It is based on historical observation data and privileged data The state constituted. Where, o t Including but not limited to: user-inputted speed commands Periodic clock signal Joint speed Joint position q, previous movement, fuselage Euler angle, etc. P t P is data that can be used as input to the critic network during training but not as input to the motion control model. tIncluding but not limited to: robot weight, thrust, thrust torque, actual base speed, coefficient of friction, terrain height, Joint position differences, etc. The critic network is used to supervise the learning of the motion control model based on the state data containing the full dataset. To ensure that the critic network can correctly evaluate the learning performance of the motion control model, no noise is added to the input of the critic network, thus ensuring that the critic network's evaluation of the motion control model is accurate and effective.
[0089] In addition, S t,…,t―2 It also includes the robot's speed v b By analyzing v b and the output of the state estimator Performing multiple linear regression analysis can help generate more accurate state estimators.
[0090] Motion control models are used to determine the motion based on o t,…,t―4 z t as well as Generate Actions a t This represents the joint angle target that needs to be achieved by driving the robot / simulator. t Including foot movements. t The signal is passed through a low-pass filter (LPF) and then input to a controller, which is used to convert a... t Converted into joint torque signal This drives the movement of each joint of the robot / simulator, thereby achieving the desired a t In some implementations, the motion control model operates at a frequency of 100 Hz, and the controller operates at a frequency of 1000 Hz. That is, the motion control model updates 100 times per second and generates a decision every 10 ms.
[0091] The reward calculation unit is used to calculate the reward based on the expected data and q. m The difference between the values generates a reward value, which can be used as input to the parameter iteration unit (PPO Update). The expected data includes, but is not limited to, q. ref and
[0092] The Parameter Iteration Unit (PPO Update) is used to iterate through the evaluation values output by the critic network. The motion control model undergoes parameter iteration, where the iterated parameters include, but are not limited to: horizon (e.g., 24), ADMA optimizer learning rate (e.g., 1×10⁻⁴). ―5 ), number of training epochs (e.g., 2), mini-batch size (e.g., 4), discount rate (e.g., 0.994), pruning parameter (e.g., 0.2), maximum gradient norm (e.g., 1).
[0093] In this embodiment, combining an encoder and a state estimator for model training reduces the gap between simulation and reality, improving the robustness of the motion control model. Furthermore, the reinforcement learning architecture of this application enables the motion control model to generate actions based on observed data, while the commentator network supervises and guides the motion control model based on the state derived from the observed data and privileged data. Optionally, to generalize to the real world, noisy data can be added to the observation data of the motion control model to simulate disturbances such as sensor errors and communication delays in the real world, thereby improving the robustness of the motion control model.
[0094] The noise data includes, but is not limited to: friction force, motion delay, coefficient of restitution, external force, external torque, payload mass, link mass, center of gravity position, motor offset, motor strength, gain, joint properties, and joint position delay.
[0095] In some implementations, the training device for the robot's motion control model can deploy the motion control model trained based on the total reward value into the robot; wherein the total reward value includes a command tracking reward value for enhancing the robot's ability to track external commands, a gait reward value for aligning the expected gait with the robot's gait, and a regularization reward value for suppressing unexpected movements; the gait reward value includes at least the swing excitation value.
[0096] In this embodiment, to improve the control accuracy of the robot, the training device for the robot's motion control model can calculate a command tracking reward value r to enhance the robot's ability to track external commands. command Gait reward value r used to align the expected gait with the robot gait gait Regularized reward value r used to suppress unexpected motion regularization .
[0097] In this embodiment, r command Including the linear velocity excitation value r linear Angular velocity excitation value r angular Base height excitation value r height Speed excitation value r speed .
[0098]
[0099] in, and For the expected linear velocity, For the expected angular velocity, v is the expected base height. x and v y ω represents the actual expected linear velocity perceived by the robot.z h represents the actual angular velocity perceived by the robot. b The actual height of the base as perceived by the robot.
[0100] In this embodiment,
[0101]
[0102]
[0103] r joint =exp(―2·|q m ―q ref |)―0.2·|q m ―q ref |
[0104] In this embodiment, r regularization Used to constrain the following parameters: joint torque, joint speed, joint acceleration, joint limit, joint speed limit, joint torque limit, contact force, motion smoothness, base z-axis speed, base roll-pitch speed, base orientation, hip joint regularization, foot ground clearance, etc.
[0105] In some embodiments, the foot movements include: stepping movements and stationary movements; wherein the stepping movements include at least running and walking, and the stationary movements include at least standing and jumping; wherein the expected inter-foot phase offset corresponding to the stepping movements is greater than the expected inter-foot phase offset corresponding to the stationary movements; the expected swing phase duty cycle of running is greater than the expected swing phase duty cycle of walking, and the expected swing phase duty cycle of jumping is greater than the expected swing phase duty cycle of standing.
[0106] In this embodiment, foot movements can be divided into two types: stepping movements and stationary movements. Stationary movements refer to movements in which the robot moves relative to its current position. Conversely, stepping movements refer to movements in which the robot does not move relative to its current position.
[0107] In this embodiment, the stepping action of running includes, but is not limited to, running actions corresponding to various paces. Similarly, the stepping action of walking includes, but is not limited to, walking actions corresponding to various paces. Standing includes, but is not limited to, standing actions such as multi-legged support standing and single-leg standing. Jumping includes, but is not limited to, jumping actions such as multi-legged simultaneous jumping, single-leg jumping, and multi-legged alternating jumping. In some embodiments, in addition to running and walking, the stepping action may also include actions such as crawling and zombie jumping. In addition to standing and jumping, the stationary action may also include actions such as stepping in place and turning in place.
[0108] In this embodiment, the inter-foot phase offset corresponding to a stepping motion (e.g., 0.5) is greater than the inter-foot phase offset for a stationary motion (e.g., 0). This allows the robot to maintain stability by performing stationary motions with a smaller inter-foot phase offset and to achieve propulsion by performing stepping motions with a larger inter-foot phase offset. In this embodiment, the swing phase duty cycle for running (e.g., 0.7) is greater than the swing phase duty cycle for walking (e.g., 0.5), and the swing phase duty cycle for jumping (e.g., 0.2) is greater than the swing phase duty cycle for standing (e.g., 0). This allows for shorter foot-air time during walking to maintain stability, longer foot-air time during running to achieve rapid stepping, zero foot-air time during standing to achieve complete stability, and instantaneous foot-off from a designated surface during jumping to achieve takeoff. In some embodiments, the swing phase duty cycle for walking is greater than / less than the swing phase duty cycle for jumping; this application does not limit this.
[0109] In this embodiment, the inter-foot phase offset and / or swing phase duty cycle are different between different foot movements, so that the gait mapping relationship is applicable to a variety of foot movements, resulting in diverse footprints and thus achieving diverse gaits.
[0110] Please see Figure 3 This application also provides a training device for a robot's motion control model. The training device for a robot's motion control model may include: an actual contact sequence acquisition module, used to acquire an actual contact sequence representing the robot's contact with a specified surface during the execution of a foot movement; wherein the foot movement is generated by the motion control model; an expected contact sequence acquisition module, used to acquire an expected contact sequence representing the robot's expected contact with the specified surface during the execution of the foot movement; wherein the expected contact sequence is generated based on a phase variable and a gait mapping relationship; the gait mapping relationship represents the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset corresponding to the foot movement and the phase variable; the phase variable represents the robot's stepping progress within a stepping cycle; a swing excitation generation module, used to generate a swing excitation value based on the sequence difference between the expected contact sequence and the actual contact sequence; wherein the swing excitation value is negatively correlated with the sequence difference; and a parameter iteration module, used to perform parameter iteration on the motion control model based on the swing excitation value.
[0111] In this embodiment, the specific functions and effects of the training device for the robot's motion control model can be explained by referring to other embodiments of this application, and will not be repeated here.
[0112] Please see Figure 4 This application also provides a computer device comprising: a memory and a processor, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the method described above.
[0113] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to implement the method as described above.
[0114] This application also provides a computer program product containing instructions that, when executed by a processor, implement the method as described above.
[0115] It is understood that the specific examples in this document are only intended to help those skilled in the art better understand the embodiments of this application, and are not intended to limit the scope of the invention.
[0116] It is understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0117] It is understood that the various implementation methods described in this application can be implemented individually or in combination, and the implementation methods in this application are not limited in this respect.
[0118] Unless otherwise stated, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The term "and / or" as used in this application includes any and all combinations of one or more of the associated listed items. The singular forms "a," "the," and "the" as used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0119] It is understood that the processor in the embodiments of this application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0120] It is understood that the memory in the embodiments of this application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Specifically, non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM). It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0121] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the information to be retrieved. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the aforementioned method implementations, and will not be repeated here.
[0123] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0124] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0125] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0126] If the aforementioned function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the information to be retrieved in this application, essentially or in terms of its contribution to the prior art, or a portion of the information to be retrieved, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0127] The above description is merely a specific embodiment of this application, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this invention should be determined by the scope of the claims.
Claims
1. A method for training a motion control model for a robot, characterized in that, The method includes: Obtain the actual contact sequence representing the robot's contact with a specified surface during the execution of foot movements; wherein, the foot movements are generated by a motion control model; A predicted contact sequence is obtained, representing the expected contact between the robot and the specified surface during the robot's foot movement. This predicted contact sequence is generated based on a phase variable and a gait mapping relationship. The gait mapping relationship represents the relationship between the expected swing phase duty cycle and the expected inter-foot phase offset corresponding to the foot movement and the phase variable. The phase variable characterizes the robot's stepping progress within a stepping cycle. The generation process of the predicted contact sequence includes: generating a predicted contact signal based on the phase variable and the gait mapping relationship, and generating the predicted contact sequence based on the predicted contact signal. A swing excitation value is generated based on the sequence difference between the expected contact sequence and the actual contact sequence; wherein the swing excitation value is negatively correlated with the sequence difference. The actual joint motion trajectories formed by the robot performing the arm swinging motion and the foot motion are obtained; wherein, the arm swinging motion is generated by the motion control model; Obtain the expected joint motion trajectory formed by the robot performing the arm swinging motion and the foot motion; Based on the trajectory difference between the actual joint motion trajectory and the expected joint motion trajectory, a joint motion excitation value is generated; wherein, the trajectory difference and the joint motion excitation value are negatively correlated. The motion control model is iterated based on the swing excitation value and the joint motion excitation value. The process of obtaining the expected joint motion trajectory includes: Based on the phase variable and the gait mapping relationship, a expected forward step signal and a expected lateral step signal are generated; wherein, the expected forward step signal and the expected lateral step signal are both expected step signals, and the expected step signals are used to represent the relative displacement of the robot relative to the specified surface during the robot's foot movement; Based on the robot's expected forward velocity, expected rotational angular velocity, and expected forward step signal, a forward step footprint is generated; based on the robot's expected lateral velocity and expected lateral step signal, a lateral step footprint is generated; and based on the expected contact signal, a contact footprint is generated. Inverse kinematics analysis is performed on the forward stepping footprint, the lateral stepping footprint, and the contact footprint to obtain the expected leg joint motion trajectory; Based on the phase variable, the expected swing phase duty cycle, the expected interfoot phase offset, and the maximum swing range of the shoulder pitch joint, the expected arm swing positions of a pair of arms at each moment are determined, and the expected arm swing trajectory is obtained. The expected joint motion trajectory is obtained based on the expected leg joint motion trajectory and the expected arm swing trajectory.
2. The method according to claim 1, characterized in that, The stepping cycle includes multiple stepping stages, and the gait mapping relationship includes a stage gait mapping relationship corresponding to each stepping stage; The plurality of stepping stages are obtained by dividing the stepping period based on the difference between the expected swing phase duty cycle and the expected foot phase offset, or the plurality of stepping stages are obtained by dividing the stepping period based on the expected swing phase duty cycle.
3. The method according to claim 1, characterized in that, The method further includes: Based on the historical observation data sequence autonomously observed by the robot, and the robot velocity estimate generated based on the historical observation data sequence, the motion control model is invoked to trigger the motion control model to generate the foot movement.
4. The method according to claim 3, characterized in that, The step of invoking the motion control model to trigger the generation of the foot movement based on the historical observation data sequence autonomously observed by the robot, and the robot velocity estimate generated based on the historical observation data sequence, includes: The historical observation data sequence autonomously observed by the robot is encoded into feature data that conforms to a specified dimension. Based on the feature data, the portion of the historical observation data sequence closest to the current moment, and the robot velocity estimate generated based on the historical observation data sequence, the motion control model is invoked to trigger the motion control model to generate the foot movement.
5. The method according to claim 1, characterized in that, The foot movements include: stepping movements and stationary movements; The stepping motion includes at least running and walking, and the stationary motion includes at least standing and jumping; The expected inter-foot phase offset for the stepping action is greater than the expected inter-foot phase offset for the stationary action; the expected swing phase duty cycle for running is greater than the expected swing phase duty cycle for walking; and the expected swing phase duty cycle for jumping is greater than the expected swing phase duty cycle for standing.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The motion control model trained based on the total reward value is deployed in the robot. The total reward value includes a command tracking reward value for enhancing the robot's ability to track external commands, a gait reward value for aligning the expected gait with the robot's gait, and a regularization reward value for suppressing unexpected movements; the gait reward value includes at least the swing excitation value.
7. A computer program product, characterized in that, When the computer program instructions of the computer program product are executed by the processor, they implement the training method for the motion control model of the robot as described in any one of claims 1 to 6.
