Training method and device of movable robot target tracking motion control strategy network based on adversarial action prior

By combining tracking and judgment with adversarial action priors, the problem of target position and orientation alignment of the robot in dynamic environments is solved, achieving higher tracking accuracy and naturalness of action, and reducing reliance on manual presets.

CN123177447APending Publication Date: 2026-11-27SHENZHEN ZHUJI POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611668631.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing robot motion control and reinforcement learning methods struggle to simultaneously achieve target position arrival and orientation alignment in dynamic environments. Furthermore, the training process relies on manually pre-setting training stages and switching thresholds, making it difficult to balance target tracking accuracy and motion style.

Method used

By acquiring the robot's current state and the target's position and orientation, joint tracking and judgment are performed. The training conditions are adjusted using adversarial action priors, and the parameters of the motion control policy network are updated by combining the target tracking task reward and style reward.

Benefits of technology

It improves the accuracy and naturalness of target tracking, reduces situations where the position condition is met but the orientation still has a large deviation, enhances the ability to respond to continuously changing targets, and reduces the reliance on manually preset training stages and switching thresholds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177447A_ABST
    Figure CN123177447A_ABST
Patent Text Reader

Abstract

The application provides a training method and device of a movable robot target tracking motion control strategy network based on an adversarial action prior, and relates to the technical field of robots. The method comprises the following steps: acquiring a current state, a target position and a target orientation of a movable robot, determining a relative target position and orientation deviation and inputting the motion control strategy network to obtain a motion control instruction; after executing the motion control instruction, a distance error and an orientation error are combined to generate a reaching flag, a success level variable is updated according to the reaching flag, and the distance range between the target to be tracked and the movable robot is updated according to the success level variable, and the target position is acquired according to the updated distance range in the next round of training; and the motion control strategy network parameters are updated according to a target tracking task reward and a style reward based on the adversarial action prior. The application can improve the training stability under dynamic target conditions, and takes into account the tracking accuracy of the target position and the target orientation and the naturalness of the robot action.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robotics, specifically to a training method and apparatus for a motion control strategy network for target tracking of a mobile robot based on adversarial action priors. Background Technology

[0002] As humanoid robots are increasingly used in real-world applications, the need for robots to perform tasks such as navigation, following, and target alignment in dynamic environments is becoming more prominent. Targets are typically described using position and orientation; the robot must not only reach the target position but also align itself with the target's orientation upon arrival. However, existing robot motion control and reinforcement learning methods generally suffer from insufficient adaptability in these scenarios.

[0003] On the one hand, existing methods struggle to simultaneously address both position arrival and orientation alignment. Some methods only control robot movement using the desired speed, without directly constraining the target position and orientation, resulting in inaccurate positioning and orientation. Other methods, while constraining the distance between the robot and the target point, only consider whether the robot has reached the position without simultaneously taking into account orientation alignment, leading to significant orientation deviations even after the robot arrives.

[0004] On the other hand, existing reinforcement learning methods typically employ manually pre-set training phases and switching thresholds to alter the target difficulty during training. When faced with changing tracking targets, this often requires numerous manual parameter tuning steps, leading to difficulties in training convergence.

[0005] To make the movements more natural, existing solutions have begun to use adversarial action priors to reproduce the reference action style. However, these methods mainly focus on the similarity of action styles. Once target tracking tasks are added, it may be difficult to balance target tracking accuracy and action style, resulting in inaccurate tracking, unsmooth turning, or stiff movements. Summary of the Invention

[0006] To address the challenges in related technologies such as the difficulty in simultaneously achieving target position arrival and target orientation alignment, the reliance on manually pre-setting training stages and switching thresholds in reinforcement learning training processes, and the difficulty in balancing target tracking accuracy and motion style after introducing adversarial action priors, this invention provides a training method and apparatus for a mobile robot target tracking motion control strategy network based on adversarial action priors. By jointly determining the target position and target orientation, adjusting subsequent training conditions based on the actual target tracking completion status, and using the target tracking task reward and the style reward obtained based on adversarial action priors together for updating the parameters of the motion control strategy network.

[0007] To achieve the above objectives, according to one aspect of the present invention, a method for training a motion control policy network for target tracking of a mobile robot based on adversarial action priors is provided, comprising: Obtain the current state of the mobile robot, as well as the target position and orientation of the target to be tracked; The relative target position is determined based on the current state of the mobile robot and the target position, and the orientation deviation is determined based on the current state of the mobile robot and the target orientation. The current state of the mobile robot, its relative position to the target, and its orientation deviation are input into the motion control strategy network to obtain the motion control commands for the mobile robot. After the mobile robot executes motion control commands, it acquires the distance error and orientation error between the mobile robot and the target to be tracked, and performs a joint judgment on the distance error and orientation error to generate an arrival marker; Update the success level variable used for course training based on the arrival marker; Based on the updated success level variable, update the distance range between the target to be tracked and the mobile robot, and reacquire the target position in the next training round according to the updated distance range; In this process, after the mobile robot executes motion control commands, it updates the parameters of the motion control policy network based on the target tracking task reward obtained from executing the motion control commands and the style reward obtained from the adversarial action prior.

[0008] The process of acquiring the current state of the mobile robot and the target position and orientation of the target to be tracked includes: acquiring the current state of the mobile robot and sampling the target distance, movement direction and end-effector desired orientation; determining the target position in the world coordinate system based on the current state, target distance and movement direction; and determining the target orientation in the world coordinate system based on the end-effector desired orientation.

[0009] The process of determining the target position in the world coordinate system based on the current state, target distance, and direction of movement includes: determining the current position of the mobile robot in the world coordinate system based on the current state; determining the target point in the world coordinate system based on the target distance and direction of movement using the current position as a reference; and determining the position of the target point in the world coordinate system as the target position.

[0010] The process involves determining the relative target position based on the current state and target position of the mobile robot, and determining the orientation deviation based on the current state and target orientation of the mobile robot. This includes: determining the current position and current orientation of the mobile robot in the world coordinate system based on the current state; transforming the target position to the body coordinate system of the mobile robot based on the current position, current orientation, and target position in the world coordinate system to obtain the relative target position; determining the relative orientation error based on the current orientation and target orientation in the world coordinate system; and determining the orientation deviation based on the relative orientation error.

[0011] The target orientation of the target to be tracked can be sent by the simulator, processor or controller, or it can be determined based on the target position data of the target to be tracked.

[0012] The process of jointly determining distance error and orientation error to generate an arrival marker includes: determining the distance error based on the current position and target position of the mobile robot after executing motion control commands; determining the orientation error based on the current orientation and target orientation of the mobile robot after executing motion control commands; determining whether the distance error meets preset position arrival conditions and whether the orientation error meets preset orientation alignment conditions; and generating an arrival marker indicating that both the target position and target orientation have met the corresponding conditions when the distance error meets the position arrival conditions and the orientation error meets the orientation alignment conditions.

[0013] In another method for determining relative target information, the target position is transformed from the world coordinate system to the body coordinate system of the mobile robot, and the transformed target position is used as the relative target position. The relative orientation error is determined based on the current orientation of the mobile robot and the target orientation. The relative orientation error is encoded, and the encoded data is used as the orientation deviation input to the motion control strategy network.

[0014] Encoding the relative orientation error allows us to determine its sine and cosine values, and the vector composed of these values ​​is used as the orientation deviation.

[0015] The target tracking task reward includes a target tracking accuracy reward. The target tracking accuracy reward is determined based on the distance error and orientation error after the mobile robot executes motion control commands. The parameters of the motion control policy network are updated based on the target tracking task reward that includes the target tracking accuracy reward and the style reward obtained based on the adversarial action prior.

[0016] The target tracking accuracy reward includes distance accuracy reward and orientation accuracy reward. When the distance error is less than a preset distance activation threshold, the distance accuracy reward is determined based on the distance error, and the distance accuracy reward is negatively correlated with the distance error. When the absolute value of the orientation error is less than a preset orientation activation threshold, the orientation accuracy reward is determined based on the absolute value of the orientation error, and the orientation accuracy reward is negatively correlated with the absolute value of the orientation error.

[0017] Specifically, the preset distance activation threshold is greater than the preset distance threshold, and the preset orientation activation threshold is greater than the preset orientation threshold. A first ratio of the distance error to the preset distance threshold is determined, and a distance accuracy bonus is determined based on the first ratio, with the magnitude of the distance accuracy bonus being negatively correlated with the first ratio. A second ratio of the absolute value of the orientation error to the preset orientation threshold is determined, and an orientation accuracy bonus is determined based on the second ratio, with the magnitude of the orientation accuracy bonus being negatively correlated with the second ratio.

[0018] The style reward based on the adversarial action prior can be determined in the following way: obtain the motion state data formed after the mobile robot executes motion control commands; input the motion state data and reference motion data into the adversarial action prior discriminator, and the adversarial action prior discriminator determines the style reward based on the difference in motion style between the motion state data and the reference motion data, whereby the reference motion data represents the preset anthropomorphic action.

[0019] Specifically, the aerial duration and contact duration of the left and right feet of the mobile robot can be obtained separately. The contact duration is the duration during which the corresponding foot remains in contact with the support surface. The gait symmetry reward is determined based on the difference in aerial duration and contact duration between the left and right feet. When the difference in aerial duration or contact duration increases, the gait symmetry reward decreases. The parameters of the motion control policy network are updated based on the target tracking task reward, style reward, and gait symmetry reward.

[0020] Specifically, the target direction can be determined based on the relative target position, where the target direction is the direction from the current position of the mobile robot to the target position; the velocity component of the mobile robot's motion speed in the target direction can be determined, and the target direction motion reward can be determined based on the velocity component, wherein the reward value corresponding to the positive velocity component along the target direction is higher than the reward value corresponding to the non-positive velocity component; when the target position and target orientation are both met according to the arrival marker, the target direction motion reward is set to the preset maximum reward value; and the parameters of the motion control strategy network are updated based on the target tracking task reward, style reward, and target direction motion reward.

[0021] In addition, when the target location and target orientation of the target are both met and the mobile robot is in a standing position, the current joint angle of the mobile robot can be obtained; the deviation between the current joint angle and the default standing joint angle can be determined, and the standing posture reward can be determined based on the deviation. The default standing joint angle is the joint angle corresponding to the preset default standing posture; the parameters of the motion control strategy network can be updated based on the target tracking task reward, style reward and standing posture reward.

[0022] Among them, the standing posture reward is determined based on the deviation. The standing posture reward can be determined based on the negative exponential function value of the deviation, so that the standing posture reward decreases as the deviation increases.

[0023] According to another aspect of the present invention, a target tracking control method for a mobile robot based on adversarial action priors is also provided, employing a motion control strategy network trained using the above-described training method. The method includes: acquiring the current state of the mobile robot and the target position and orientation of the target to be tracked; determining the relative target position based on the current state of the mobile robot and the target position, and determining the orientation deviation based on the current state of the mobile robot and the target orientation; inputting the current state of the mobile robot, the relative target position, and the orientation deviation into the trained motion control strategy network to obtain motion control commands for the mobile robot; and driving the mobile robot to move according to the motion control commands to track the target position and target orientation.

[0024] In the target tracking control process, the target position can be transformed from the world coordinate system to the body coordinate system of the mobile robot to obtain the relative target position; the relative orientation error is determined based on the current orientation of the mobile robot and the target orientation; the sine and cosine values ​​of the relative orientation error are determined, and the vector composed of the sine and cosine values ​​is used as the orientation deviation.

[0025] According to another aspect of the present invention, a training device for a mobile robot target tracking motion control strategy network based on adversarial action priors is also provided, comprising: an information acquisition module, a target information determination module, a control command determination module, an arrival determination module, a course training module, and a parameter update module. The information acquisition module acquires the current state of the mobile robot and the target position and orientation of the target to be tracked. The target information determination module determines the relative target position based on the current state of the mobile robot and the target position, and determines the orientation deviation based on the current state of the mobile robot and the target orientation. The control command determination module inputs the current state of the mobile robot, the relative target position, and the orientation deviation into the motion control policy network to obtain the motion control commands of the mobile robot. The arrival determination module acquires the distance error and orientation error between the mobile robot and the target to be tracked after the mobile robot executes the motion control commands, and performs a joint determination on the distance error and orientation error to generate an arrival flag. The course training module updates the success level variable used for course training based on the arrival flag, updates the distance range between the target to be tracked and the mobile robot based on the updated success level variable, and reacquires the target position in the next round of training according to the updated distance range. The parameter update module updates the parameters of the motion control policy network based on the target tracking task reward obtained from executing the motion control commands and the style reward obtained from the adversarial action prior after the mobile robot executes the motion control commands.

[0026] According to another aspect of the present invention, a mobile robot target tracking and control device based on adversarial action prior is also provided, including a state acquisition module, a target information determination module, a control command determination module, and a motion control module. The state acquisition module is used to acquire the current state of the mobile robot and the target position and orientation of the target to be tracked; the target information determination module is used to determine the relative target position and orientation deviation; the control command determination module is used to input the current state of the mobile robot, the relative target position, and the orientation deviation into a trained motion control strategy network to obtain motion control commands; the motion control module is used to drive the mobile robot to move according to the motion control commands to track the target position and orientation.

[0027] According to another aspect of the present invention, an electronic device is also provided, including a processor and a memory, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the training method of the motion control strategy network or the target tracking control method described above is implemented.

[0028] According to another aspect of the present invention, a mobile robot is also provided, including a robot body and a control device. The control device is used to execute the target tracking control method described above to control the robot body to track the target position and target orientation. The mobile robot can be a humanoid robot, a bipedal robot, a quadrupedal robot, other legged robots, a wheeled robot, a cleaning robot, or a transport robot.

[0029] According to another aspect of the present invention, a humanoid robot is also provided, including a humanoid robot body and a control device, the control device being used to execute the above-described target tracking control method to control the humanoid robot body to track the target position and target orientation.

[0030] According to another aspect of the present invention, a bipedal robot is also provided, including a bipedal robot body and a control device, the control device being used to execute the above-described target tracking control method to control the bipedal robot body to track the target position and target orientation.

[0031] According to another aspect of the present invention, a computer-readable storage medium is also provided, on which computer program code instructions are stored. When the computer program code instructions are invoked by a processor, the processor executes the above-described motion control strategy network training method or the above-described target tracking control method.

[0032] Compared with related technologies, the embodiments of the present invention have the following beneficial effects: This invention, through obtaining the target position and orientation, and jointly determining the distance and orientation errors after the robot executes motion control commands, enables the motion control strategy network to not only learn to reach the target position during training but also to complete orientation alignment upon arrival. This reduces situations where the position condition is met but the orientation still has a significant deviation, thus improving the accuracy of target tracking. Furthermore, the success level variable is updated based on the target tracking results, and the target distance range used in subsequent training is adjusted accordingly, allowing the motion control strategy network to adapt to target tracking tasks under different distance conditions based on the target tracking progress. In some embodiments, the target resampling frequency can also be adjusted based on the success level variable, causing the update interval of the target position and orientation to change with the training progress. This further improves the responsiveness to continuously changing targets and reduces reliance on manually preset training stages and switching thresholds.

[0033] Simultaneously, the target tracking task reward and the style reward obtained based on adversarial action priors are used together for parameter updates in the motion control policy network. This allows the network to optimize target position and orientation tracking capabilities while constraining the motion style of the generated actions. As a result, the robot can balance tracking accuracy with the naturalness and continuity of the movements during target tracking, reducing issues such as stiff movements and unsmooth turning caused by solely emphasizing target tracking.

[0034] In the implementation using the relative target position in the body coordinate system as the network input, a consistent relative positional relationship can be used to describe the target to be tracked when the robot is located at different world coordinate positions. Encoding the relative orientation error with sine and cosine values ​​can reduce the impact of numerical jumps at angular period boundaries on motion control. In the implementation using gait symmetry rewards, the difference in the duration of flight or contact between the left and right feet can be reduced, suppressing lateral movement. In the implementation where the target direction motion reward is set to a preset maximum reward value after reaching the target, the reward can be prevented from continuing to increase with the target direction motion speed, thus avoiding the continuous increase in target direction motion speed due to the reward after the target is reached. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments are briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0036] Figure 1 The diagram shows a flowchart of a training method for a motion control strategy network for target tracking of a mobile robot based on adversarial action priors, according to an embodiment of the present invention.

[0037] Figure 2 The diagram illustrates a process for jointly determining distance error and orientation error and generating an arrival sign according to an embodiment of the present invention.

[0038] Figure 3 A schematic diagram illustrating the data processing relationship between the motion control strategy network, target tracking task reward, and style reward in one embodiment of the present invention is shown.

[0039] Figure 4 The diagram illustrates the relationship between distance accuracy reward, orientation accuracy reward, and standing posture reward as a function of the corresponding error or deviation in one embodiment of the present invention.

[0040] Figure 5 The diagram shows a flowchart of a target tracking control method for a mobile robot based on adversarial action priors according to an embodiment of the present invention.

[0041] Figure 6 The diagram shows the first set of continuous motion states of a robot performing target tracking motion in a simulation environment according to an embodiment of the present invention.

[0042] Figure 7 This diagram illustrates the second set of continuous motion states of a robot performing target tracking motion in a simulation environment, according to an embodiment of the present invention.

[0043] Figure 8 This diagram illustrates the third set of continuous motion states of a robot performing target tracking motion in a simulation environment, according to an embodiment of the present invention.

[0044] Figure 9 This diagram illustrates the continuous motion of a humanoid robot in a real ground environment according to an embodiment of the present invention.

[0045] Figure 10 The diagram shows a structural block diagram of a training device for a mobile robot target tracking motion control strategy network based on adversarial action priors, according to an embodiment of the present invention.

[0046] Figure 11 The diagram shows a structural block diagram of a mobile robot target tracking control device based on adversarial action priors according to an embodiment of the present invention.

[0047] Figure 12 A schematic diagram of the structure of an electronic device according to an embodiment of the present invention is shown.

[0048] Figure 13 A schematic diagram of the structure of a mobile robot according to an embodiment of the present invention is shown.

[0049] Figure 14 A schematic diagram of the structure of a humanoid robot according to an embodiment of the present invention is shown.

[0050] Figure 15 A schematic diagram of the structure of a bipedal robot according to an embodiment of the present invention is shown.

[0051] Figure 16 A schematic diagram of a first humanoid robot according to an embodiment of the present invention is shown.

[0052] Figure 17 A schematic diagram of a second humanoid robot according to an embodiment of the present invention is shown.

[0053] Figure 18 A schematic diagram of a computer-readable storage medium according to an embodiment of the present invention is shown. Detailed Implementation

[0054] In the description of the embodiments of this invention, the terms "first," "second," etc., are used only to distinguish the same or similar technical features, and do not indicate relative importance or limit the number of technical features. "Multiple" refers to two or more, unless otherwise explicitly stated.

[0055] The main technical terms involved in the embodiments of this invention are explained below. The following description is for the purpose of facilitating understanding of the subsequent training and control processes. The specific data dimensions, sampling periods, and value ranges of each term can be set according to the robot structure, simulation environment, and training configuration.

[0056] Mobile robots are robots capable of changing their position through their own drive mechanisms. They can include humanoid robots, bipedal robots, quadrupedal robots, other legged robots, wheeled robots, cleaning robots, or transport robots, etc. The following explanation primarily focuses on humanoid robots capable of bipedal walking and running.

[0057] The current state represents the robot's motion state at the current control moment. It can include the robot's position and orientation in the world coordinate system, the robot's linear and angular velocities, the positions and velocities of each joint, the foot contact state, etc.; during training, it can also include state variables that can be directly obtained by the simulator.

[0058] The target position refers to the location of the target to be tracked in the world coordinate system. This position can be constructed during the training phase based on the sampled target distance and direction of motion; the control phase can be provided by the navigation task, upper-level controller, perception module, or other target generation modules.

[0059] Target orientation refers to the desired orientation that the robot needs to reach or track when completing the current target tracking task. Target orientation can be given independently or determined based on target position data.

[0060] The target distance is a distance parameter used during training to sample the target location, representing the spatial distance between the robot's current position and the target location to be sampled.

[0061] The direction of motion is the direction from the robot's current position to the position of the target to be sampled, which is used together with the target distance to determine the target position in the world coordinate system.

[0062] The expected orientation of the end effector refers to the orientation that the robot is expected to reach at the target state in a target tracking task. Here, "end effect" refers to the final state of the current target tracking process and does not refer to the end effector of the robotic arm.

[0063] The relative target position is the position obtained by translating the target position in the world coordinate system relative to the robot's current position and then transforming it to the body coordinate system according to the robot's current orientation.

[0064] Relative orientation error is the angular difference between the robot's current orientation and the target orientation. This angular difference can be normalized to a preset angular range to represent the shortest turning direction.

[0065] Orientation deviation is the orientation error information input to the motion control strategy network. In one implementation, a two-dimensional vector is formed by the sine and cosine values ​​of the relative orientation error to avoid numerical jumps in the angle at the periodic boundaries.

[0066] The motion control policy network is a motion control policy model trained through reinforcement learning. Its inputs include at least the robot's current state, its position relative to the target, and its orientation deviation, and its output is motion control commands used to drive the robot's movement.

[0067] Motion control commands are action data output by the motion control strategy network used to control the movement of a mobile robot. The specific data format of the motion control commands can be determined based on the mobile robot's drive structure and underlying control interface, and can be further converted by the underlying controller into control quantities that can be executed by the corresponding actuators.

[0068] Distance error is the distance between the robot's current position and the target position after the robot executes motion control commands. It is used to determine whether the position has been reached and to calculate the target tracking accuracy bonus.

[0069] Orientation error is the error between the robot's current orientation and the target orientation after the robot executes motion control commands. It is used to determine whether the orientation is aligned and to calculate the orientation accuracy bonus.

[0070] The arrival indicator is a flag obtained by jointly determining the distance error and orientation error. The current target is considered complete only when both the position arrival condition and the orientation alignment condition are met simultaneously.

[0071] The success level variable represents the ability level of the motion control policy network to complete the target tracking task under the current course conditions. During training, it can be dynamically updated based on the arrival status of consecutive or recent target tracking events, and used to adjust the subsequent target resampling frequency and the corresponding distance range.

[0072] The target resampling frequency is the frequency at which the target position and orientation are regenerated during training. A target obtained from a single resampling can remain unchanged for multiple control steps; as the target resampling frequency increases, the number of control steps between two adjacent target resamplings decreases, making the target conditions change more frequently.

[0073] The distance range is the range of target distance values ​​used when resampling target positions during the training phase. This distance range can be set in association with the target resampling frequency. When the target resampling frequency is increased, the distance range can be narrowed, so that the newly sampled target position is closer to the robot's position at the time of sampling.

[0074] The target tracking task reward is used to evaluate the robot's performance in completing the target tracking task. The target tracking task reward may include at least a target tracking accuracy reward, and may also include other task rewards or penalties besides the additional reward items set separately later. In some embodiments, gait symmetry rewards, target direction movement rewards, or standing posture rewards may be further provided, and these rewards, along with the target tracking task reward and style reward, may be used together for parameter updates in the motion control policy network.

[0075] The target tracking accuracy reward is a local accuracy reward determined based on distance and orientation errors, including both distance and orientation accuracy rewards. It can be activated after the robot enters the vicinity of the target.

[0076] Adversarial Motion Priors (AMP) uses a discriminator to distinguish between policy action states and reference action data, and generates style rewards accordingly to make the policy action distribution approximate the reference action distribution. For humanoid or bipedal robots, the reference action data can be anthropomorphic action data such as walking, running, and turning.

[0077] Motion state data is data that describes the motion state of a robot after it executes motion control commands. It can include information such as joint state, body speed, posture, and foot contact, and can also consist of the state at multiple consecutive control moments.

[0078] Reference motion data is used to represent the robot's preset movement style. For humanoid or bipedal robots, reference motion data can include walking, running, turning, acceleration, and deceleration motion data obtained from human motion capture, robot teaching, motion datasets, or other methods; for other types of mobile robots, reference motion data adapted to the corresponding robot's motion structure can be used.

[0079] Style rewards are determined by the AMP discriminator (Adversarial Action Prior Discriminator) based on the differences in action style between action state data and reference action data, and are used to constrain the consistency between policy actions and the corresponding reference action distribution. For humanoid or bipedal robots, this can be further used to constrain the anthropomorphism, continuity, and naturalness of robot actions.

[0080] Gait symmetry reward is used to reflect the degree of symmetry between the left and right feet in terms of the duration of flight and contact. The greater the difference between the left and right feet, the smaller the corresponding reward or the greater the penalty.

[0081] The target direction motion reward is determined based on the component of the robot's velocity in the target direction. Before the robot reaches the target, it guides the robot to move along the target direction. Once the target position and orientation are both met according to the arrival marker, the reward can be set to a preset maximum reward value, preventing it from increasing further with increasing velocity along the target direction.

[0082] The standing posture reward is determined when the robot reaches the target and is in a standing position, based on the deviation between the current joint angle and the default standing joint angle. It is used to make the robot's current joint configuration closer to the default standing joint configuration.

[0083] The activation threshold determines whether local accuracy rewards are included in the calculation, while the arrival threshold determines whether the target has been truly achieved. The activation threshold can be higher than the corresponding arrival threshold, allowing the robot to first enter the area near the target and then gradually improve arrival and alignment accuracy.

[0084] The location arrival condition is used to determine whether the robot has reached the target location. In one implementation, the location arrival condition is considered met when the distance error is less than a preset distance threshold.

[0085] Orientation alignment criteria are used to determine whether the robot's current orientation has reached the target orientation. In one implementation, the orientation alignment criteria are considered met when the absolute value of the orientation error is less than a preset orientation threshold.

[0086] The preset distance activation threshold is a distance threshold used to control whether the distance accuracy bonus is included in the calculation. It can be greater than the preset distance threshold used for position arrival determination, so that the local accuracy bonus starts to play a role before the target is actually reached.

[0087] The preset orientation activation threshold is an orientation threshold used to control whether the orientation accuracy bonus is included in the calculation. It can be greater than the preset orientation threshold used for orientation alignment determination.

[0088] The first ratio is the ratio between the distance error and a preset distance threshold, used to determine the distance accuracy bonus. Increasing the first ratio decreases the distance accuracy bonus.

[0089] The second ratio is the ratio between the absolute value of the orientation error and a preset orientation threshold, used to determine the orientation accuracy bonus. Increasing the second ratio decreases the orientation accuracy bonus.

[0090] The duration of time in the air refers to the duration during which the foot is not in contact with the support surface within a statistical interval, and can be counted separately for the left foot and the right foot.

[0091] Contact duration refers to the duration for which the foot remains in contact with the supporting surface within a statistical interval, and can be statistically analyzed separately for the left and right feet.

[0092] The target direction is the direction from the robot's current position to the target position, used to determine whether the robot's current movement is toward the target.

[0093] The velocity component in the target direction is the projection of the robot's velocity onto the target direction. A positive value for this component indicates that the robot has a motion component moving towards the target.

[0094] The default standing joint angles are the preset joint angles corresponding to the default standing posture. They are used to evaluate the deviation between the current posture and the default standing posture after the robot reaches the target and enters the standing state.

[0095] This invention can be used for dynamic target point tracking in personnel following, warehousing, or inspection, as well as for autonomous movement and target alignment in complex environments. In different tasks, target position and orientation can be updated over time, and the target update frequency, target distance, and magnitude of orientation change can also vary. During the training phase, these differences are constructed through target resampling, exposing the motion control policy network to target conditions with different rhythms and spatial scales.

[0096] This embodiment describes a target tracking task using both target position and target orientation. During the control process, the target information in the world coordinate system is first converted into relative target position and orientation deviation based on the robot's current state. Then, the robot's current state, relative target position, and orientation deviation are input into the motion control strategy network, which continuously outputs motion control commands.

[0097] When the target position or orientation is updated, the relative target position and orientation deviations are recalculated using the updated target information, and then input into the same motion control strategy network for subsequent control. Thus, even as target conditions change, the motion control strategy network continues to generate motion control commands using the same data representation method.

[0098] The following explanation focuses on the implementation of reference motion data and AMP-style rewards using humanoid or bipedal robots as examples. Reference motion data can include walking, running, turning, acceleration, and deceleration actions at different speeds. AMP-style rewards are used to evaluate the difference between the policy-generated actions and the reference motion distribution, without requiring the robot to reproduce a fixed reference action frame by frame. The motion control policy network can continuously adjust stride length, speed, and turning radius based on the current target conditions and robot state, thereby generating continuous walking, running, and turning actions.

[0099] It should be noted that the following descriptions of anthropomorphic walking, running, turning, and left and right foot movements mainly apply to humanoid robots or bipedal robots. For other types of mobile robots, reference motion data adapted to the motion structure and motion mode of the mobile robot can be used, and adversarial motion priors can be used to constrain the corresponding motion states. It is not required that the reference motion used has anthropomorphic motion forms.

[0100] During the training phase, the success level variable is updated based on target arrival feedback, and the updated success level variable is used to adjust the target distance range used in subsequent training. In some implementations, the target resampling frequency can also be adjusted based on the success level variable, making the target resampling frequency correlated with the target distance range. For example, when the target has been successfully tracked multiple times in the past, the target resampling frequency can be increased within a preset range, and the target distance range can be reduced accordingly; when the target fails to be tracked during the target tracking process, the target resampling frequency can be decreased, and the target distance range can be adjusted accordingly. The above course parameters are adjusted according to the actual task completion situation and are not required to be switched according to a pre-set training round.

[0101] The training and deployment phases handle different tasks. During training, in addition to invoking the motion control policy network, target sampling, arrival determination, curriculum parameter adjustment, and task rewards and AMP-style rewards are calculated, and network parameters are updated accordingly. After training is complete, the deployment side only retains the current state and target information acquisition, relative target information calculation, network inference, and motion execution; curriculum training and parameter updates are no longer performed. The training process will be explained first, followed by the control phase and its implementation in the corresponding devices and robot.

[0102] In this embodiment, the direct inputs to the motion control policy network are the current state of the mobile robot, its relative target position, and orientation deviation. Arrival flags, success level variables, target resampling frequency, distance range, target tracking task reward, style reward, and reference motion data are primarily used for adjusting target conditions or updating network parameters during training and are not directly inputs to the motion control policy network. During deployment, it is not required to generate targets according to the distance range specified in the training phase. The course parameters from the training phase are used to form the target distribution during network training, and the results are already reflected in the network parameters after training.

[0103] During training, the target position and orientation are resampled according to the target resampling frequency. After a single target resampling yields the target position and orientation, these values ​​can remain unchanged for multiple subsequent control steps. In these control steps, the current state of the mobile robot is updated during the motion process, and the relative target position and orientation deviation is re-determined based on the updated current state to input the motion control strategy network and obtain the motion control command for the corresponding control step. Upon reaching the next target resampling opportunity, the target position and orientation are resampled again. Therefore, the target resampling frequency can be lower than the control frequency of the motion control strategy network, and a target obtained from a single sampling can be used for multiple consecutive control steps.

[0104] During the training phase, the target location and orientation can be obtained by sampling from the training environment according to the course parameters. In actual deployment, the target location and orientation can be provided by the upper-layer task module, navigation module, visual perception module, or external control terminal. Deployment does not require generating targets according to the distance range or target orientation sampling range of the training phase. The course parameters of the training phase are used to form the target distribution during network training, and the results are already reflected in the network parameters after training.

[0105] like Figure 1 As shown, a training method for a motion control policy network for target tracking of a mobile robot based on adversarial action priors is provided. This method includes steps S101 to S107. The training process of the motion control policy network can iteratively execute steps S101 to S107. During training, the target position and orientation obtained from a single resampling can remain unchanged across multiple control steps. Each control step performs policy network inference and motion control based on the updated current state of the robot. When the target resampling time is reached, the target position and orientation are reacquired according to the current course parameters, and subsequent training continues.

[0106] Step S101: Obtain the current state of the mobile robot and the target position and orientation of the target to be tracked.

[0107] The current state of a mobile robot can be determined by selecting appropriate state variables based on the specific robot platform. For example, for a humanoid or bipedal robot, the current state may include one or more of the following: body posture, body linear velocity, body angular velocity, joint angles, joint angular velocities, and motion information from the previous control cycle. For a wheeled robot, it may also include vehicle speed, steering state, or wheel-end state. The motion control strategy network does not require the use of all of the above state variables; the state dimension adopted can be determined based on the robot's degrees of freedom and training configuration. In implementations that require foot contact information, foot contact states characterizing whether a corresponding foot is in contact with a support surface can be acquired, and the airborne duration and contact duration of the corresponding foot can be determined based on the foot contact states. The specific method for acquiring foot contact states can be adapted to the state information provided by the robot platform.

[0108] The motion control strategy network outputs motion control commands to control the movement of the mobile robot. The specific data format of the motion control commands can be determined based on the mobile robot's drive structure and the underlying control interface. The underlying controller can determine the control quantity of the corresponding actuator based on the motion control commands and drive the mobile robot to move.

[0109] The training environment can be a physical simulation environment. The current state can be directly read from the simulator or obtained using state estimation results consistent with the real robot. The target position and orientation can be provided directly by the training environment or obtained through target resampling. For dynamic target tasks such as personnel following, the target position and orientation can be updated according to a preset trajectory or dynamic target model.

[0110] In some implementations, target resampling can be achieved by: first acquiring the robot's current state and sampling the target distance within the distance range corresponding to the current success level variable, while simultaneously sampling the motion direction and the desired end-effector orientation; then, using the robot's current position as a reference, determining the target position in the world coordinate system based on the sampled target distance and motion direction, and determining the target orientation in the world coordinate system based on the desired end-effector orientation. The target position can be represented as the sum of the robot's current position and the displacement along the motion direction. In this way, training targets with different positions and orientations can be continuously generated without pre-enumerating discrete waypoints.

[0111] When determining the target position in the world coordinate system, the robot's current position in the world coordinate system can be obtained from the current state. Then, the sampled target distance is converted into a target displacement relative to the current position according to the sampled motion direction, and this target displacement is superimposed on the current position to obtain the target point. The position of this target point in the world coordinate system is the target position obtained by this resampling. Since the target point is always constructed based on the robot's current position, it is not necessary to reconfigure a fixed set of absolute target points when the robot's initial position or the absolute position in the training scene changes.

[0112] In addition to the above-mentioned method of constructing the target position based on the target distance and direction of movement, other implementations can also directly sample the relative target position according to the data interface of the training environment, or receive the target position sent by an external module and determine the corresponding target information in combination with the robot's current state.

[0113] Target orientation can also be directly issued by the simulator, processor, or controller. If the target orientation is not provided separately, it can be determined based on the target position data. For example, multiple target positions at different time points can be obtained, the target movement direction can be determined based on the positional changes between these multiple target positions, and the target orientation can be determined based on the target movement direction. The specific method used depends on the task's definition of target orientation.

[0114] Target position and target orientation can be updated independently. For example, for a task that requires facing a specific direction after reaching a designated position, the target position and target orientation can be issued separately. For a task that follows a moving target, the target position can be continuously updated as the target moves, and the target orientation can be determined based on the target movement direction reflected by the continuous target positions. Thus, the same motion control strategy network can receive target orientation information from different sources, without requiring the target generation module to use a fixed format.

[0115] Step S102: Determine the relative target position based on the current state of the mobile robot and the target position, and determine the orientation deviation based on the current state of the mobile robot and the target orientation.

[0116] First, determine the positional difference between the target position and the robot's current position. Then, based on the robot's current orientation, transform this positional difference from the world coordinate system to the robot's body coordinate system to obtain the relative target position. Using the body coordinate system, the same target is converted into a relative quantity with reference to the robot itself for different robot positions and orientations. This facilitates the motion control strategy network learning a unified target tracking relationship.

[0117] Let the target orientation be ψg and the robot's current yaw angle be ψr. The relative orientation error Δψ can be determined based on the angle difference between the target orientation and the robot's current yaw angle, and this angle difference can be normalized to a preset angle range. The preset angle range can be, for example, [-π, π].

[0118] Because angles are periodic, directly using the relative orientation error as network input may result in numerical jumps near π and -π. To keep the input smooth near the angular periodic boundaries, the sine and cosine values ​​of the relative orientation error can be determined separately, and the two-dimensional vector composed of these values ​​can be used as the orientation deviation. Even if the relative orientation error crosses the angular periodic boundaries, the sine and cosine values ​​continue to change continuously, reducing control discontinuities caused by numerical jumps in angles.

[0119] For the humanoid robot planar target tracking task in this embodiment, a two-dimensional vector composed of the sine and cosine values ​​of the relative orientation error can be used as the orientation deviation, so that the orientation information remains continuous near the angular period boundary.

[0120] Relative target position and orientation deviation describe the robot's positional and orientation relationships relative to the target, respectively. After transforming the target position to the body coordinate system, the target position information input to the motion control strategy network uses a relative representation with the robot itself as the reference, eliminating the need to directly use the absolute target position in the world coordinate system as the target input. Similarly, by using sine and cosine values ​​to represent the relative orientation error, the network does not need to directly handle numerical jumps at angular period boundaries. Therefore, when the robot moves to different areas of the training scene or the target is located in different orientations, the motion control strategy network still uses the same relative target input.

[0121] Step S103: Input the current state of the mobile robot, its relative target position, and orientation deviation into the motion control strategy network to obtain the motion control command for the mobile robot.

[0122] The motion control strategy network can be a multi-layer neural network or other strategy model capable of mapping robot state and target information to motion control commands. For humanoid or bipedal robots, the underlying controller can control the movement of corresponding joints according to the motion control commands, enabling the robot to perform actions such as stepping, running, turning, accelerating, or decelerating; for other types of mobile robots, corresponding motion control commands can be executed according to their drive structure.

[0123] In step S104, after the mobile robot executes the motion control command, it obtains the distance error and orientation error between the mobile robot and the target to be tracked, and performs a joint judgment on the distance error and orientation error to generate an arrival mark.

[0124] Specifically, the distance error can be determined based on the robot's current position and target position after the action is performed, and the orientation error can be determined based on the robot's current orientation and target orientation after the action is performed. The orientation error can be determined according to the same angle difference direction as the aforementioned relative orientation error, and the obtained angle difference can be normalized to a preset angle range. If the distance error is less than a preset distance threshold and the absolute value of the orientation error is less than a preset orientation threshold, an arrival flag representing arrival is generated. Both the distance error and orientation error must simultaneously meet the corresponding conditions to generate an arrival flag. If the robot has moved to the vicinity of the target position, but the current orientation is not yet aligned with the target orientation, it is not considered complete; conversely, if the orientation is aligned but the position has not yet been reached, it is also not considered complete.

[0125] Distance error can be calculated using the Euclidean distance between the robot's current position and the target position, or the forward and lateral errors can be calculated separately and combined according to task requirements; orientation error can be calculated using the smallest angle normalized to a preset angle range. Position arrival and orientation alignment conditions can use fixed thresholds, or different thresholds can be set according to the target type or training accuracy requirements. Regardless of the error calculation method used, the arrival flag is determined based on the simultaneous satisfaction of both position and orientation conditions.

[0126] Position arrival conditions and orientation alignment conditions can be set separately. The current target is only marked as complete and used for subsequent training updates when both conditions are met. If the robot has entered the vicinity of the target position but the orientation is not yet aligned, the current target is retained, allowing the motion control policy network to continue performing steering or local adjustments near the target. This avoids prematurely ending the current target based solely on position error, thus preserving the training process for precise target orientation alignment.

[0127] Step S105: Update the success level variable used for course training based on the arrival flag.

[0128] The success level variable reflects the performance of the motion control policy network in completing the target tracking task under the current training conditions. In one implementation, the success level variable can be updated based on the statistical results of arrival markers during consecutive or recent target tracking processes. When it is detected that previous target tracking attempts have all reached the corresponding sampled target, the value of the success level variable can be increased; when it is detected that the corresponding sampled target was not reached during target tracking, the value of the success level variable can be decreased. Changes in the success level variable are used to adjust the target distance range used in subsequent training; in some implementations, the target resampling frequency can also be adjusted based on changes in the success level variable, thereby forming the training process.

[0129] Step S106: Update the distance range between the target to be tracked and the mobile robot according to the updated success level variable, and reacquire the target position according to the updated distance range in the next round of training.

[0130] It should be noted that in this embodiment, "the next round of training" refers to the subsequent training process that continues according to the updated course training conditions after the next target resampling time is reached, and does not refer to the next control step. The target position and target orientation obtained from a single target resampling can remain unchanged for multiple consecutive control steps. During this period, each control step redetermines the relative target position and orientation deviation based on the updated current state of the robot and executes motion control; after the next target resampling time is reached, the target position is reacquired according to the distance range determined based on the updated success level variable.

[0131] Step S107: After the mobile robot executes the motion control command, the parameters of the motion control policy network are updated based on the target tracking task reward obtained from executing the motion control command and the style reward obtained from the adversarial action prior.

[0132] In some implementations, the target resampling frequency is dynamically adjusted as a training parameter. A relatively low target resampling frequency can be used in the early stages of training, ensuring that the target position and orientation obtained from a single sample remain unchanged over many control steps, thus providing the mobile robot with a longer target tracking time.

[0133] During training, the target resampling frequency can be adjusted based on the arrival markers corresponding to previous target tracking iterations. When it is detected that the corresponding sampling target has been reached in multiple previous target tracking iterations, the target resampling frequency can be increased within a preset frequency range, making the target position and orientation updates more frequent. When it is detected that the corresponding sampling target has not been reached during target tracking, the target resampling frequency can be decreased, making the target obtained in a single sampling period longer. Thus, the time scale of target changes is adaptively adjusted according to the robot's actual performance under the current target conditions.

[0134] The target resampling frequency can also be set in relation to the target distance range. When the target resampling frequency is low, a larger target distance range can be used; as the target resampling frequency increases, the target distance range is correspondingly reduced, so that the resampled target position is closer to the robot's position at the time of sampling. Thus, the training process can gradually transition from low-frequency, large-distance target tracking to high-frequency, small-distance target tracking, allowing the motion control strategy network to gradually adapt to target conditions that are updated more frequently and have a smaller spatial scale.

[0135] The target resampling frequency can be set to a preset adjustable range. Within this adjustable range, the target resampling frequency is increased or decreased based on the target's arrival status, and the corresponding target distance range is determined based on the adjusted target resampling frequency. When target resampling is subsequently triggered, the target position is resampled according to the target distance range.

[0136] The success level variable is a training state variable used to adjust the training conditions for subsequent lessons based on the target tracking progress, and does not need to be used as an observation input for the motion control policy network. In one implementation, different values ​​of the success level variable can correspond to different target resampling frequencies and target distance ranges; after the success level variable is updated, the target resampling frequency and corresponding target distance range used in subsequent training are determined based on the updated success level variable.

[0137] When the current target resampling time interval is reached, the next target resampling is triggered, and the target position is resampled according to the distance range determined by the current course training conditions. The newly sampled target position and target orientation remain unchanged for several subsequent control steps until the next target resampling opportunity is reached. Thus, target resampling, target holding, and continuous control of the policy network form a cyclical training process.

[0138] The distance range can be updated by adjusting the maximum target distance, minimum target distance, or both. The correspondence between the success level variable value and the target resampling frequency and distance range can be pre-configured, and the target resampling frequency and corresponding distance range used in subsequent training will be determined after the success level variable is updated.

[0139] In another implementation, a correspondence between the values ​​of the success level variable and the target distance range can be established in advance. After the success level variable is updated, the target distance range for the next round of training is directly determined based on the updated value, and the target position is resampled according to the distance range. For example, the target distance range can be narrowed when the target tracking success rate improves, and widened when the target tracking success rate decreases. In this implementation, the target resampling frequency can remain unchanged, without needing to adjust the target resampling frequency as a prerequisite for updating the target distance range.

[0140] The target tracking task reward is used to evaluate the robot's performance in completing the target tracking task, while the style reward is used to constrain the consistency between the policy actions and the corresponding reference action distribution. For humanoid or bipedal robots, the reference action data can include actions such as walking, running, and turning, enabling the policy to improve task accuracy while maintaining the corresponding motion rhythm and action continuity.

[0141] Figure 2The process of jointly determining distance error and orientation error and generating arrival markers is further illustrated. Figure 2 Steps S201 to S204 shown can be used as Figure 1 One specific implementation of step S104 shown.

[0142] Step S201: Determine the distance error based on the current position and target position of the mobile robot after executing the motion control command. Specifically, the distance between the current position and the target position of the mobile robot can be calculated, and the calculated distance can be used as the distance error.

[0143] Step S202: Determine the orientation error based on the current orientation and target orientation of the mobile robot after executing the motion control command. The orientation error can represent the angle difference between the current orientation and the target orientation, and the angle difference can be normalized to a preset angle range to characterize the angle adjustment required for the mobile robot to turn from the current orientation to the target orientation.

[0144] Step S203: Determine whether the distance error meets the preset position arrival condition and whether the orientation error meets the preset orientation alignment condition. For example, if the distance error is less than a preset distance threshold, it can be determined that the distance error meets the position arrival condition; if the absolute value of the orientation error is less than a preset orientation threshold, it can be determined that the orientation error meets the orientation alignment condition.

[0145] Step S204: If the distance error meets the position arrival condition and the orientation error meets the orientation alignment condition, an arrival flag is generated indicating that both the target position and the target orientation have met the corresponding conditions. In other words, this embodiment does not determine whether the current target is completed solely based on whether the mobile robot has reached the target position, but rather by combining the target position and the target orientation for a joint determination. If only the position arrival condition or only the orientation alignment condition is met, the current target is not considered completed. The generated arrival flag can be further used to update the success level variable described later, and for calculating or activating the corresponding reward.

[0146] In one implementation, target tracking accuracy rewards can be determined based on distance error and orientation error. These rewards can include distance accuracy rewards and orientation accuracy rewards. The activation of distance accuracy rewards and orientation accuracy rewards is determined independently based on their respective error conditions: the distance accuracy reward is activated when the distance error is less than a preset distance activation threshold; the orientation accuracy reward is activated when the absolute value of the orientation error is less than a preset orientation activation threshold. Both rewards do not require simultaneous activation. The preset distance activation threshold is greater than the preset distance threshold used for position arrival determination, and the preset orientation activation threshold is greater than the preset orientation threshold used for orientation alignment determination.

[0147] In some implementations, the distance accuracy bonus is only applied to the distance error. Activation occurs when the distance is less than a preset activation threshold, and decreases as the distance error increases. If the preset distance activation threshold is set to... Then the following formula can be used: in, Indicates distance error. This indicates the preset distance threshold used for determining location arrival. From the above formula, it can be seen that when d is not less than... When the indicator function is 0, the distance accuracy bonus is 0; when Enter less than After the activation region is determined, the distance accuracy reward is calculated according to the aforementioned function, and switches from 0 to the corresponding non-zero value at the activation boundary, i.e., hard threshold activation is adopted. As the distance error continues to decrease, the distance accuracy reward gradually increases.

[0148] Orientation accuracy bonuses can be processed in the same way. If the preset orientation activation threshold is set to... One implementation would be: Where θ represents the orientation error. This indicates the preset orientation threshold used for orientation alignment determination. When the absolute value of the orientation error... Not less than When the indicator function is 0, the orientation accuracy bonus is 0; when the absolute value of the orientation error enters a range less than 0, the orientation accuracy bonus is 0. After the activation region is determined, the orientation accuracy reward is calculated according to the aforementioned function, and switches from 0 to the corresponding non-zero value at the activation boundary. As the absolute value of the orientation error continues to decrease, the orientation accuracy reward gradually increases. The distance accuracy reward and orientation accuracy reward are calculated independently according to their respective activation conditions.

[0149] In specific calculations, the ratio between the distance error and a preset distance threshold can be used as the first ratio, and the ratio between the absolute value of the orientation error and a preset orientation threshold can be used as the second ratio. The distance accuracy bonus can be set as a monotonically decreasing function of the first ratio, and the orientation accuracy bonus can be set as a monotonically decreasing function of the second ratio. Using ratios instead of just the absolute error allows the bonus to change synchronously with the adjustment of the corresponding threshold, facilitating a consistent bonus calculation relationship under different target accuracy configurations.

[0150] The distance accuracy reward and orientation accuracy reward are not limited to the specific function forms mentioned above. While maintaining the relationship that the reward increases as the corresponding error decreases, other monotonically changing reward functions can also be used; the corresponding rewards participate in the calculation of the target tracking task reward after the corresponding activation conditions are met.

[0151] In some implementations, motion state data and reference motion data can be acquired and input into an AMP discriminator. The discriminator then determines the style reward based on the difference in motion style between the motion state data and the reference motion data. The reference motion data can cover anthropomorphic movements such as normal walking, fast walking, running, turning, and acceleration / deceleration. During training, the discriminator learns the difference between the distribution of reference motions and the distribution of policy-generated motions, and converts the corresponding evaluation results into style rewards.

[0152] AMP constrains the distribution characteristics of policy-generated actions, rather than requiring the robot to reproduce a fixed action template frame by frame. Therefore, when the target command changes continuously, the motion control policy network can still change stride length, speed, and turning radius according to task requirements; style rewards are used to limit these changes to remain within a relatively natural action distribution. Thus, the same motion control policy network can form continuous walking-running transitions and turning processes without having to set a fixed mode switching threshold between walking and running.

[0153] The reference motion data is used only for motion style evaluation during the training phase and is not used as input to the target trajectory of the motion control policy network. In other words, the motion control policy network still determines the current action based on the robot's current state, relative target position, and orientation deviation. The reference motion data is used by the AMP discriminator to generate a style reward, which then indirectly affects the network parameters. Therefore, the reference motion can provide prior knowledge of walking, running, and turning actions, without limiting the robot to frame-by-frame following of a specific reference trajectory.

[0154] Reference motion data can include anthropomorphic motion data such as walking, running, turning, and acceleration / deceleration at different speeds. After the motion state data and reference motion data are input into the AMP discriminator, the AMP discriminator determines the style reward based on the difference in motion style between the two. The reference motion data is used for motion style evaluation during the training phase and is not directly used as the target trajectory input for the motion control policy network; the motion control policy network still determines the current motion control command based on the robot's current state, relative target position, and orientation deviation.

[0155] In addition to target tracking accuracy rewards and style rewards, some implementations may further determine gait symmetry rewards, target direction movement rewards, and standing posture rewards. These will be explained below.

[0156] To assess gait symmetry, the duration of the left and right feet in the air and their contact with the support surface can be calculated separately. In one implementation, the timing asymmetry between the left and right feet is calculated first. : in, and These represent the duration of the left and right feet in the air, respectively. and These represent the contact duration of the left foot and the right foot, respectively. The larger the value, the more significant the temporal difference between the left and right gait states. When using it for reinforcement learning rewards, it can be employed as follows: As a corresponding reward, it can also be adopted as a random reward. An increasing and monotonically decreasing mapping function yields a gait symmetry reward. This can suppress lateral gait phenomena such as prolonged unilateral flight or prolonged unilateral support, making the left-right rhythms of walking and running more symmetrical.

[0157] The aforementioned gait symmetry reward is primarily used for robots with both feet that move using an alternating bipedal support method, such as humanoid robots or bipedal robots. During training, the airtime and contact duration of the left and right feet can be acquired separately, and the gait symmetry reward is determined according to the aforementioned left-right foot temporal asymmetry. The greater the difference in the corresponding durations of the left and right feet, the smaller the gait symmetry reward, thereby suppressing the temporal difference between the left and right gait. For mobile robots without left and right feet, the aforementioned gait symmetry reward may not be required.

[0158] For the target direction motion reward, the target direction from the robot's current position to the target position is first determined based on the relative target position. Then, the velocity component of the robot's motion velocity in the target direction is determined. When the robot moves along the target direction, the velocity component is positive; when the robot moves away from the target, the velocity component is negative. Before the robot reaches the target, this reward is used to encourage the robot to move along the target direction; upon reaching the target, the full reward is given. One specific implementation is as follows: in, Indicates a reward for movement in the target direction. This represents the velocity component of the robot in the target direction. This represents the reference maximum speed used for normalization; Represents a linear rectified function; This indicates that the robot's current direction of motion satisfies the condition of moving towards the target direction; This indicates the distance between the robot and the target location. This represents the distance threshold used to determine when a robot enters the area immediately adjacent to a target.

[0159] In the above implementation, when the robot has not yet entered the region adjacent to the target, the motion reward in the target direction is mainly determined by the velocity component in the target direction; when... Less than When the indicator function is set to 1, the target direction motion reward is set to the full value.

[0160] In implementations that incorporate target orientation into arrival determination, the conditions for maximizing the reward can be controlled by the arrival marker. Specifically, when the arrival marker indicates that both the target position and target orientation have met the corresponding conditions, the target direction motion reward can be set to a preset maximum reward value. When the arrival marker does not indicate that both the target position and target orientation have met the corresponding conditions, the target direction motion reward can be determined based on the velocity component of the robot's motion speed in the target direction, ensuring that the reward value corresponding to the positive velocity component is higher than the reward value corresponding to the non-positive velocity component. Thus, after the robot completes the arrival at the target position and alignment with the target orientation, the target direction motion reward no longer increases with the increase of the motion speed along the target direction, which is beneficial for the robot to maintain its state near the target.

[0161] The velocity component can be determined by projecting the robot's velocity onto the target direction unit vector. If the target has not yet been reached, and the velocity component is non-positive, the corresponding reward can be set to a lower value or zero; the specific reward function can be set according to the magnitude of each reward item during training.

[0162] For standing posture rewards, when the target position and orientation are both met upon reaching the marker, and the robot enters a standing state, the current joint angles of the robot are acquired and compared with the joint angles corresponding to the preset default standing posture. Standing posture rewards can be in a negative exponential form: R stand = exp[-(1 / λ) · Σ i ( q i - q i default ) 2 ] in, q i This represents the current joint angle of the i-th joint. q i default This represents the default standing joint angle for this joint, and λ is a parameter used to adjust the reward decay rate. The larger the deviation in joint angle, the smaller the standing posture reward.

[0163] In one specific implementation, λ=10 can be chosen, and a standing activation flag can be used. This reward only applies after reaching the objective and entering a standing state: This process ensures that after the robot reaches the target and enters a standing position, the current joint configuration further approximates the default standing joint configuration, thereby reducing large joint posture deviations when the robot maintains the target position. Specifically, this applies when the arrival marker is valid and the robot is in a standing position. Take 1; otherwise, Set to 0. It should be noted that the activation method for the standing posture reward differs from that of the distance accuracy reward and orientation accuracy reward: the distance accuracy reward and orientation accuracy reward are controlled by whether the corresponding error enters the activation threshold, and are activated using a hard threshold according to the aforementioned indicative function; the standing posture reward, however, is jointly controlled by the arrival sign and the standing state, and after activation, it changes exponentially with the joint angle deviation. Therefore, the three types of rewards do not require the same activation process or boundary change form. Figure 4 This is only used to illustrate the trend of each reward changing with the corresponding error or deviation, and does not mean that the three types of rewards use the same function or the same numerical scale. Figure 4 It is not intended to limit the precise function value or continuity of the corresponding reward at the activation boundary. The specific relationship between the distance accuracy reward and the orientation accuracy reward at the activation boundary shall be based on the aforementioned corresponding formula.

[0164] Whether the robot is in a standing state can be determined based on the simulation environment or the robot state estimation results. This embodiment does not limit the specific method for determining the standing state. The standing posture reward is only activated when the arrival flag is valid and the robot is in a standing state, so as to avoid imposing a default standing posture constraint while the robot is still performing target approach motion.

[0165] The default standing posture corresponds to a preset default standing joint angle. After the standing posture reward is activated, the corresponding reward is determined according to the deviation between the robot's current joint angle and the default standing joint angle, based on the aforementioned standing posture reward formula, so as to make the current joint configuration approach the default standing joint configuration.

[0166] The aforementioned standing posture reward is primarily applicable to robots with a definable default standing joint posture, such as humanoid robots or bipedal robots. For mobile robots that do not have a corresponding standing joint posture, the standing posture reward may not be set, or state constraints adapted to the stationary state may be adopted based on the motion structure of the mobile robot.

[0167] The task reward can also include stagnation penalties and physical plausibility constraints. Stagnation penalties can be added when the target has not been reached, but the distance error has not been effectively reduced for several consecutive control cycles, or the target's directional velocity remains non-positive for an extended period. This reduces the likelihood of the strategy avoiding difficult targets by remaining stationary. Physical plausibility constraints can be determined based on the robot's structure, selecting penalties for joint limits, joint velocities or torques, foot slippage, body posture, abnormal contact, etc., to prevent the strategy from producing obviously unnatural or unexecutable actions solely to obtain target tracking rewards. The specific penalty items mentioned above can be selected according to the robot platform and do not need to be used simultaneously.

[0168] The determination of a stagnant state can be implemented in different ways. Besides the failure to effectively reduce the distance error within several consecutive control cycles, it can also be determined based on conditions such as the robot's center-of-mass velocity being below a threshold and the target not yet being reached, or the target's directional velocity remaining close to zero for an extended period. Physical rationality constraints can be added as independent penalty items to the task reward, or the current training round can be terminated directly upon detecting exceeding joint limits, abnormal foot slippage, or significant instability. Whether to use a termination method or a continuous penalty method depends on the training mechanism of the simulation platform.

[0169] After determining the corresponding rewards, the motion control strategy network parameters can be updated based on each reward, and the success level variable and the distance range used in subsequent training can be updated based on the arrival flag. In an implementation that does not further employ gait symmetry rewards, target direction movement rewards, or standing posture rewards, the target tracking task reward can be determined based on the target tracking accuracy reward and optional stagnation penalties, physical plausibility penalties, etc., and the target tracking task reward and style reward can be fused according to preset weights to form a training signal for updating the motion control strategy network parameters. Each reward item within the target tracking task reward can be assigned a corresponding weight; for gait symmetry rewards, target direction movement rewards, or standing posture rewards added alongside the target tracking task reward, corresponding weights can also be assigned separately. The same weights can be used in the early and later stages of training, or the relative weights can be adjusted according to the training configuration, and the parameters of the motion control strategy network can be updated using a reinforcement learning optimization algorithm based on the fused training signal.

[0170] In implementations that further employ gait symmetry rewards, target direction movement rewards, or standing posture rewards, the corresponding reward items can be fused with target tracking task rewards and style rewards according to their respective weights to form training signals for updating the motion control strategy network parameters. The corresponding reward items can be added individually or simultaneously, and the specific reward items and their weights can be set according to the robot structure and training objectives.

[0171] Figure 3The relationship between the motion control policy network and the two types of rewards is presented from a data flow perspective. The current state 301 and the relative target information 302 are input into the motion control policy network 304, and the motion control policy network 304 outputs motion control commands 305. After the robot executes the motion control commands 305, it generates motion state data 306.

[0172] Figure 3 Reference numeral 302 in the accompanying drawings is used to indicate relative target information, which includes the relative target position and orientation deviation. The relative target position and orientation deviation are determined according to corresponding data processing procedures. Figure 3 Drawing both in the same data frame is only used to represent that they are both inputs to the motion control policy network 304.

[0173] The motion state data 306 is used to determine the target tracking task reward 307. For example, the target tracking accuracy reward can be determined based on the distance error and orientation error after executing the motion control command, and the target tracking task reward 307 can be determined based on the target tracking accuracy reward and other corresponding rewards or penalties. On the other hand, the motion state data 306 is input to the AMP discriminator 308. Reference motion data 303 is also input to the AMP discriminator 308, which determines the style reward 309 based on the motion state data 306 and the reference motion data 303. The target tracking task reward 307 and the style reward 309 are fused at reward fusion 310 and used to update the motion control policy network parameters 311. The updated parameters are fed back to the motion control policy network 304 for subsequent training. In embodiments using gait symmetry rewards, target direction movement rewards, or standing posture rewards, the corresponding rewards can also be added to reward fusion 310 and used together with the target tracking task reward 307 and style reward 309 to update the motion control policy network parameters 311. Figure 3 The additional reward path mentioned above may not be shown separately.

[0174] Figure 3 The two reward paths serve different purposes. The target tracking task reward is used to evaluate the tracking accuracy of the target position and orientation, as well as other corresponding task performance; the style reward is used to evaluate the consistency between the policy action and the reference action distribution. For humanoid or bipedal robots, anthropomorphic motion data can be used as the reference motion data to constrain the naturalness and continuity of the robot's movements. Figure 3 The module division in the document is used to illustrate the corresponding data processing relationships, and does not require that each function must be implemented by an independent hardware module.

[0175] Further integration Figure 3The current state 301 and relative target information 302 are the task inputs of the motion control policy network 304. Reference motion data 303 is not directly input into the motion control policy network 304, but instead enters the AMP discriminator 308 as a reference for motion style evaluation. The motion control command 305, after being executed by the robot or simulated robot, forms motion state data 306. This motion state data is used to calculate the target tracking task reward 307 and can be used to determine the aforementioned gait symmetry reward, target direction movement reward, or standing posture reward. Furthermore, motion state data 306, together with reference motion data 303, is used to determine the style reward 309. The training signal obtained from reward fusion 310 is used to update the motion control policy network parameters 311. The parameter feedback in the figure indicates that the updated parameters continue to influence the inference and training of the subsequent motion control policy network 304. This data path allows the task target and motion style to act on the same policy network through different evaluation pathways.

[0176] Figure 4 This diagram illustrates the relationship between partial rewards and errors or deviations. The horizontal axis represents the corresponding error or deviation, and the vertical axis represents the reward value. The dashed line represents a trend in distance accuracy rewards or orientation accuracy rewards: within the corresponding activation area, the smaller the distance error or orientation error, the higher the reward; as the error increases, the reward gradually decreases; once the corresponding activation threshold is exceeded, the local accuracy reward can no longer be activated.

[0177] Figure 4 The solid line in the figure represents a trend in standing posture reward. When the overall deviation between the current joint angle and the default standing joint angle is small, the standing posture reward is high; as the joint angle deviation increases, the reward decreases exponentially. The curves in the figure illustrate monotonic and activation relationships. Distance error, orientation error, and joint angle deviation on the horizontal axis are different physical quantities and do not necessarily mean they must use the same numerical scale.

[0178] Figure 4 This also demonstrates that the local accuracy reward and the arrival determination are not based on the same threshold. Preset distance activation thresholds and preset orientation activation thresholds determine when the local accuracy reward begins to participate in training. Their values ​​can be greater than the preset distance threshold used for position arrival determination and the preset orientation threshold used for orientation alignment determination, respectively. This allows the robot to obtain local accuracy guidance that varies with the corresponding error after entering the vicinity of the target, and to meet the corresponding arrival determination conditions when the error further decreases. The standing posture reward is used after the target has been reached and the robot has entered a standing state; its horizontal axis corresponds to the deviation of the current joint angle from the default standing joint angle. Therefore, Figure 4 The three types of horizontal axis conditions have different physical meanings, and the curve is only used to represent the trend of reward changes with the corresponding error or deviation.

[0179] After training is complete, the parameters of the motion control strategy network are loaded into the robot controller or an electronic device that communicates with the robot. Figure 5 A target tracking control process is presented for the deployment phase, including steps S501 to S504.

[0180] Step S501: Obtain the current state of the mobile robot and the target position and orientation of the target to be tracked.

[0181] In practical robots, the current state can be obtained by the robot's state acquisition components and / or state estimation module. When foot contact state is required, it can be determined based on foot contact information provided by the robot platform or the corresponding state estimation results. Target position and target orientation can come from upper-level task modules, vision or other perception systems, remote control commands, or navigation systems.

[0182] Step S502: Transform the target position from the world coordinate system to the robot body coordinate system to obtain the relative target position; determine the relative orientation error based on the robot's current orientation and the target orientation, and calculate the sine and cosine values ​​of the relative orientation error, using the resulting two-dimensional vector as the orientation deviation. The deployment phase uses the same data meaning and coordinate transformation relationship as the training phase.

[0183] Step S503: Input the current state, relative target position, and orientation deviation into the trained motion control strategy network to obtain motion control commands. Step S504: Drive the mobile robot to move according to the motion control commands to track the target position and orientation. While the current target position and orientation remain unchanged, in each control cycle, redetermine the relative target position and orientation deviation based on the robot's latest state, and input the updated current state, relative target position, and orientation deviation into the trained motion control strategy network to continuously obtain motion control commands; after the target information is updated, redetermine the relative target position and orientation deviation based on the updated target information starting from the next control cycle.

[0184] The deployment phase does not require online calculation of AMP-style rewards, nor does it require updating success rank variables and distance ranges based on arrival markers. Style constraints and course training results from the training phase are already reflected in the motion control policy network parameters. This allows for a relatively direct processing chain between input, network inference, and underlying action execution during actual control.

[0185] Accordingly, the deployment control link does not require setting up an AMP discriminator, success level variable update unit, or course target resampling unit as necessary components of real-time control. These training phase functions can be retained in the offline training environment or training server; when the robot is actually running, only the functions related to current state acquisition, target information acquisition, relative target calculation, policy network reasoning, and underlying motion execution need to be retained.

[0186] If the target to be tracked in a practical application is constantly moving, the upper-level module can continuously provide new target positions and orientations according to its own update frequency. Upon receiving a new target, the robot controller begins using the new target from the next control cycle; if no new target is received, it continues using the previous target. This approach eliminates the need to reproduce the course resampling rules from training at the deployment end and can handle situations where target positions and orientations change over time.

[0187] The relative target position and orientation deviation during deployment are calculated using the same method as during training. Therefore, the state-to-action mapping obtained during training can be directly used for actual control. When a new target position or orientation arrives, the relative target position and orientation deviation can be recalculated in the next control cycle. It is not necessary to retrain the motion control policy network, nor is it necessary to perform target resampling, reward calculation, or success level variable updates during the training phase.

[0188] Figure 5 S501 to S504 constitute the cyclic control link during actual robot operation. S501 obtains the latest robot state and target conditions in each control cycle; S502 converts the target conditions into the same data representation as in the training phase; S503 completes one policy network inference; and S504 converts the network output into control quantities that the corresponding drive mechanism of the robot can execute. Step S504 converts the motion control commands output by the motion control policy network into control quantities that the corresponding actuator of the mobile robot can execute. The specific data format of the control quantities can be determined according to the drive structure and underlying control interface of the mobile robot. The new state formed after the robot's execution serves as the input for the next control cycle. If the target position or orientation is updated during movement, only S501 and S502 need to be re-executed in the next control cycle; the current control flow does not need to be interrupted, nor does the walking or running mode need to be reinitialized.

[0189] Figures 6 to 8 This diagram illustrates the continuous motion of a robot tracking a target in a simulation environment. Each frame has a corresponding time marker, showing how the robot's foot position, body posture, and overall location change throughout the motion. The two robots shown in the diagram correspond to different instances within the simulation environment.

[0190] like Figure 6As shown, the robot takes alternating steps during continuous movement, with the relative positions of its legs and the robot's orientation changing with the movement. During training, the relative target position and orientation deviation can be determined based on the robot's current state, target position, and target orientation, and corresponding motion control commands can be generated through a motion control strategy network.

[0191] Figure 7 The animation shows the robot's state changes during subsequent movements. Combined with the time markers in the image, it can be observed that the robot continuously adjusts its leg posture and changes its position. When the target position or orientation is updated, the relative target position and orientation deviation can be recalculated based on the updated target information, thereby determining the motion control commands for subsequent control cycles.

[0192] Figure 8 The gait changes of the robot during continuous movement are further illustrated. The robot's supporting leg, swinging leg, and body posture differ at different time points, reflecting changes in joint movements and body position during continuous motion. Figures 6 to 8 The motion states shown can serve as examples of robot motion performance during simulation training or verification.

[0193] exist Figures 6 to 8 In the diagram, blue arrows indicate the direction of the external force applied to the robot, and green arrows indicate the direction of the robot's movement. These arrows are used to help illustrate the forces and motion in the simulation environment.

[0194] Figure 9 The image shows the continuous movement of a humanoid robot in an indoor floor environment, with each frame marked with a corresponding time. For example, in the frames marked 0.0 seconds, 0.5 seconds, and 1.0 seconds, the robot's leg position and joint posture change over time; subsequent frames continue to show the robot's alternating stepping motion.

[0195] exist Figure 9 During the actual machine movement shown, the control device can determine the relative target position and orientation deviation based on the robot's current state, target position and target orientation obtained in each control cycle, and then call the trained motion control strategy network to generate motion control commands to drive the robot to continue moving. Figure 9 The screen shown is used to demonstrate the motion state of the actual machine during continuous control.

[0196] When the target position or orientation is updated during the movement, the control device re-determines the relative target position and orientation deviation in subsequent control cycles, and continues to call the trained motion control strategy network to generate motion control commands.

[0197] Figure 10A training device 1000 for a mobile robot target tracking motion control strategy network based on adversarial action priors is shown. The training device 1000 includes an information acquisition module 1001, a target information determination module 1002, a control command determination module 1003, an arrival determination module 1004, a course training module 1005, and a parameter update module 1006, each module being used to perform the corresponding processing in the aforementioned training method.

[0198] The information acquisition module 1001 is used to acquire the current state of the mobile robot and the target position and orientation of the target to be tracked. In some embodiments, the information acquisition module 1001 can also acquire or sample the target distance, movement direction, and desired end-effector orientation. The target information determination module 1002 is used to determine the relative target position based on the current state and target position, and to determine the orientation deviation based on the current state and target orientation. The control command determination module 1003 is used to input the current state, relative target position, and orientation deviation into the motion control strategy network to obtain motion control commands.

[0199] After the mobile robot executes motion control commands, the arrival determination module 1004 acquires the distance error and orientation error between the mobile robot and the target to be tracked, and jointly determines the distance error and orientation error to generate an arrival flag. The course training module 1005 updates the success level variable based on the arrival flag, and updates the distance range used for subsequent training based on the updated success level variable. In some embodiments, the course training module 1005 can also adjust the target resampling frequency based on the updated success level variable, and determine the corresponding distance range based on the adjusted target resampling frequency. The parameter update module 1006 updates the motion control policy network parameters based on the target tracking task reward and the style reward obtained based on the adversarial action prior.

[0200] In the next round of training, the course training module 1005 can provide target sampling parameters to the information acquisition module 1001 according to the updated distance range, and trigger the information acquisition module 1001 to reacquire the target position according to the distance range, so that the course training module 1005 and the information acquisition module 1001 can cooperate to complete the target position update in the next round of training.

[0201] In some embodiments, the information acquisition module 1001 can also sample the target distance, movement direction, and desired end-effector orientation; the target information determination module 1002 can determine the target position in the world coordinate system, perform coordinate system transformation, and encode the relative orientation error; the arrival determination module 1004 can perform joint determination according to a preset distance threshold and a preset orientation threshold; the parameter update module 1006 can also determine distance accuracy rewards and orientation accuracy rewards based on distance errors and orientation errors, and determine the target tracking task reward based on the corresponding rewards. In some embodiments, the parameter update module 1006 can also determine gait symmetry rewards, target direction movement rewards, or standing posture rewards, and use the corresponding rewards together with the target tracking task reward and style reward for parameter updates in the motion control strategy network.

[0202] The above processing can be implemented through the program logic in the corresponding module, without requiring separate hardware for each reward item.

[0203] Figure 10 Each module shown can be implemented by executing the corresponding program through a processor. The training conditions determined by the course training module 1005 are used for subsequent target sampling, and the motion control policy network parameters updated by the parameter update module 1006 are used for subsequent network inference, so as to form a continuous training process.

[0204] Corresponding to the training device, Figure 11 A target tracking control device 1100 for a mobile robot is presented. The control device 1100 includes a state acquisition module 1101, a target information determination module 1102, a control command determination module 1103, and a motion control module 1104. The state acquisition module 1101 acquires the robot's current state, the target position, and the target orientation; the target information determination module 1102 determines the relative target position and orientation deviation; the control command determination module 1103 calls the trained motion control strategy network to obtain motion control commands; and the motion control module 1104 drives the robot to track the target position and orientation according to the motion control commands.

[0205] In the control device 1100, the target information determination module 1102 can transform the target position in the world coordinate system to the body coordinate system in the same way as in the training phase, and determine the relative orientation error based on the current orientation and the target orientation, and then form the orientation deviation using the sine and cosine values ​​of the relative orientation error. This ensures that the data definition of the network input in the control phase is consistent with that in the training phase.

[0206] Figure 11 The control device 1100 shown is used for target tracking control after training is completed, and mainly performs state acquisition, target information determination, policy network inference and motion control. Figure 10The training device 1000 shown is also responsible for arrival determination, course training, and network parameter updates. The control device 1100 can repeatedly execute the above control processes according to a control cycle.

[0207] Figure 10 The training device 1000 shown and Figure 11 The control device 1100 shown can be deployed separately, or it can be implemented by running corresponding programs on the same computing device at different stages. For example, the training device 1000 can be set up in a server or workstation with parallel simulation and model training capabilities, and the control device 1100 can be deployed in the computing unit of the robot body. After training is completed, the obtained motion control strategy network parameters are loaded into the control device 1100 for use during target tracking control.

[0208] The structure of electronic device 1200 is as follows Figure 12 As shown, the electronic device 1200 includes a processor 1201 and a memory 1202. The memory 1202 stores a computer program, which may include computer-readable instructions. When the processor 1201 executes the computer program, it can implement the aforementioned training method or target tracking control method. The processor 1201 may include a central processing unit, a graphics processing unit, or other processing units with program execution capabilities; during the training phase, a graphics processing unit can be used for parallel simulation and network training, and during the deployment phase, an appropriate computing platform can be selected according to the control cycle requirements.

[0209] exist Figure 12 In the illustrated structure, processor 1201 and memory 1202 can exchange program instructions and runtime data via a bus or other internal communication connection. Memory 1202 can store motion control strategy network parameters, state normalization parameters, and programs required for target coordinate transformation and network inference. During training, processor 1201 can also perform simulation environment interaction, reward calculation, and parameter optimization; during deployment, only the inference program and trained network parameters can be loaded.

[0210] Figure 13 A structure of a mobile robot 1300 is presented. The mobile robot 1300 includes a robot body 1301 and a control device 1302 that executes a target tracking control method. The robot body 1301 has a drive mechanism required to achieve movement. The control device 1302 acquires the current state of the robot and the target position and orientation of the target to be tracked. Based on the current state of the robot and the target position, it determines the relative target position and the orientation deviation. Then, it inputs the current state, the relative target position, and the orientation deviation into a trained motion control strategy network to obtain motion control commands, and sends the motion control commands to the corresponding drive mechanism.

[0211] The mobile robot 1300 can be a humanoid robot, a bipedal robot, a quadrupedal robot, other legged robots, a wheeled robot, a cleaning robot, or a transport robot. Different robots can use motion control commands adapted to their own drive structure; the relative encoding of the aforementioned target position and target orientation, as well as the target tracking control process, can still use the same processing relationship.

[0212] Figure 13 The robot body 1301 and the control device 1302 form an execution relationship. The robot body 1301 provides the control device 1302 with joint status, body status, or other current status information. The control device 1302 receives the target position and target orientation, determines the relative target position and orientation deviation based on the robot's current state, and calls the trained motion control strategy network to obtain motion control commands, which are then sent to the drive mechanism of the robot body 1301. This information exchange process continues with the control cycle, thus forming a closed loop of actual robot motion.

[0213] In humanoid robot scenarios, the following can be adopted: Figure 14 The humanoid robot 1400 shown includes a humanoid robot body 1401 and a control device 1402 that executes a target tracking control method. The humanoid robot body 1401 has a torso, legs, and corresponding joints and drive mechanisms, and can walk or run by alternating support from its two legs. The control device 1402 runs a trained motion control strategy network to enable the humanoid robot to perform continuous movement and alignment as the target position and orientation change.

[0214] Figure 14 Furthermore, one implementation of the mobile robot as a humanoid robot is presented. The humanoid robot body 1401, in addition to legs, may also have a torso, upper limbs, and head. The control device 1402 controls at least the joints related to walking, running, and turning. Reference motion data during the training phase may include humanoid walking and running movements, and these are used to train the motion control policy network through AMP-style rewards. After the trained motion control policy network is deployed on the control device 1402, it can maintain a rhythmic motion that adapts to the humanoid robot's structure while performing target tracking control.

[0215] For bipedal robots Figure 15 A bipedal robot 1500 is provided, comprising a bipedal robot body 1501 and a control device 1502 for executing a target tracking control method. The bipedal robot body 1501 has at least two legs, left and right, and corresponding drive joints. The aforementioned method for determining gait symmetry rewards based on the duration of airborne and contact time of the left and right feet is particularly applicable to robots with periodically alternating left and right foot support.

[0216] Figure 15 The bipedal robot 1500 shown emphasizes a movement pattern of alternating support from the left and right feet. During the training phase, the airtime and contact time of the left and right feet can be calculated based on the foot contact state or corresponding state estimation results of the bipedal robot body 1501, and the data is used to determine the gait symmetry reward. During the deployment phase, it is not required to continue calculating the gait symmetry reward, as the parameters of the trained motion control strategy network already reflect the corresponding left and right gait temporal constraints.

[0217] Figure 16 An example of a humanoid robot employing the aforementioned target tracking control method is shown. This robot has a torso, two arms, two legs, and multiple joint drive units, enabling alternating support and movement using the leg joints. In practical applications, the aforementioned control device can be deployed inside the robot body or in a computing unit communicatively connected to the robot. The robot's current state is determined based on state estimation results, and the relative target position and orientation deviation are determined based on the target position and orientation. The current state, relative target position, and orientation deviation are then input into a motion control strategy network, which outputs motion control commands to drive the corresponding joints.

[0218] Figure 17 Another example of a humanoid robot that can employ the aforementioned target tracking control method is shown. This robot still has two legs and corresponding drive joints, thus it can also deploy the aforementioned control device and execute the target tracking control method. Figure 16 and Figure 17 This illustrates that the control method can be applied to humanoid robots with different structures. The number of robot degrees of freedom, actuator type, and sensor installation location can be set according to the specific platform.

[0219] for Figure 16 and Figure 17 The different robot platforms shown can use the current state dimension, action output dimension, and reference action data that match the corresponding robot structure during training; the target position, target orientation, relative target position, orientation deviation, and the basic processing relationships of the course training do not need to be changed.

[0220] Figure 18 The computer-readable storage medium 1800 shown stores computer program code instructions 1801. When the computer program code instructions 1801 are called or executed by the processor, the processor can execute the aforementioned motion control strategy network training method or target tracking control method, and may also include program instructions for loading the trained motion control strategy network parameters and executing network inference.

[0221] Figure 18In this document, the computer-readable storage medium 1800 and the computer program code instructions 1801 are stored together. The computer program code instructions 1801 may include at least one of a training program and a control program; when used for training, the processor may perform target sampling, relative target information determination, motion control, arrival determination, success level variable update, course parameter adjustment, reward calculation, and network parameter update; when used for robot control, the processor may perform current state and target information acquisition, relative target information determination, motion control strategy network inference, and motion control instruction output.

[0222] Computer-readable storage media can take the form of non-transient storage, such as semiconductor memory, solid-state memory, magnetic storage media or optical storage media, and can also be used as part of the memory in electronic devices or robot controllers.

[0223] The above embodiments are used to illustrate the technical solution of the present invention. Those skilled in the art can adaptively adjust the target sampling range, reward weight, network structure, control cycle, and corresponding data representation method according to the robot structure, target tracking task, and training configuration. The above embodiments are only for illustrating the present invention and do not constitute a limitation on the scope of protection of the present invention.

Claims

1. A training method for a motion control policy network for target tracking of a mobile robot based on adversarial action priors, characterized in that, include: Obtain the current state of the mobile robot, as well as the target position and orientation of the target to be tracked; The relative target position is determined based on the current state of the mobile robot and the target position, and the orientation deviation is determined based on the current state of the mobile robot and the target orientation. The current state of the mobile robot, the relative target position, and the orientation deviation are input into the motion control strategy network to obtain the motion control command for the mobile robot. After the mobile robot executes the motion control command, it obtains the distance error and orientation error between the mobile robot and the target to be tracked, and jointly determines the distance error and the orientation error to generate an arrival mark; Update the success level variable used for course training based on the arrival marker; Based on the updated success level variable, update the distance range between the target to be tracked and the mobile robot, and reacquire the target position in the next training round according to the updated distance range; Wherein, after the mobile robot executes the motion control command, it updates the parameters of the motion control policy network based on the target tracking task reward obtained from executing the motion control command and the style reward obtained from the adversarial action prior.

2. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The acquisition of the current state of the mobile robot and the target position and orientation of the target to be tracked includes: Obtain the current state of the mobile robot and sample the target distance, movement direction, and desired end effector orientation; Based on the current state, the target distance, and the direction of movement, determine the target position in the world coordinate system; The target orientation in the world coordinate system is determined based on the desired orientation of the end point.

3. The training method for the motion control strategy network for target tracking of a mobile robot based on adversarial action priors as described in claim 2, characterized in that, Determining the target position in the world coordinate system based on the current state, the target distance, and the direction of movement includes: Determine the current position of the mobile robot in the world coordinate system based on the current state; Based on the current position, the target point in the world coordinate system is determined according to the target distance and the direction of movement; The position of the target point in the world coordinate system is determined as the target location.

4. The training method for the motion control strategy network for target tracking of a mobile robot based on adversarial action priors as described in claim 2, characterized in that, The step of determining the relative target position based on the current state of the mobile robot and the target position, and determining the orientation deviation based on the current state of the mobile robot and the target orientation, includes: The current position and orientation of the mobile robot in the world coordinate system are determined based on the current state. Based on the current position, the current orientation, and the target position in the world coordinate system, the target position is transformed to the body coordinate system of the mobile robot to obtain the relative target position; The relative orientation error is determined based on the current orientation and the target orientation in the world coordinate system. The orientation deviation is determined based on the relative orientation error.

5. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The method for obtaining the target orientation of the target to be tracked includes: Receive the target orientation of the target to be tracked from the simulator, processor, or controller; or, The target orientation of the target to be tracked is determined based on the acquired target position data of the target to be tracked.

6. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The step of jointly determining the distance error and the orientation error to generate an arrival sign includes: The distance error is determined based on the current position of the mobile robot after executing the motion control command and the target position; The orientation error is determined based on the current orientation of the mobile robot after executing the motion control command and the target orientation; Determine whether the distance error meets the preset position arrival condition, and determine whether the orientation error meets the preset orientation alignment condition; If the distance error satisfies the location arrival condition and the orientation error satisfies the orientation alignment condition, an arrival flag is generated indicating that both the target location and the target orientation have met the corresponding conditions.

7. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The step of determining the relative target position based on the current state of the mobile robot and the target position, and determining the orientation deviation based on the current state of the mobile robot and the target orientation, includes: The target position is transformed from the world coordinate system to the body coordinate system of the mobile robot, and the target position obtained after the transformation is used as the relative target position; The relative orientation error is determined based on the current orientation of the mobile robot and the target orientation. The relative orientation error is encoded, and the encoded data is used as the orientation deviation input to the motion control strategy network.

8. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 7, characterized in that, Encoding the relative orientation error includes: Determine the sine and cosine values ​​of the relative orientation error; The vector composed of the sine and cosine values ​​is used as the orientation deviation.

9. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The target tracking task reward includes a target tracking accuracy reward; The step of updating the parameters of the motion control policy network based on the target tracking task reward obtained from executing the motion control command and the style reward obtained from adversarial action priors includes: The target tracking accuracy reward is determined based on the distance error and orientation error after the mobile robot executes the motion control command; The parameters of the motion control policy network are updated based on the target tracking task reward, which includes the target tracking accuracy reward, and the style reward obtained based on the adversarial action prior.

10. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 9, characterized in that, The target tracking accuracy reward includes distance accuracy reward and orientation accuracy reward; The step of determining the target tracking accuracy bonus based on the distance error and the orientation error after the mobile robot executes the motion control command includes: If the distance error is less than a preset distance activation threshold, the distance accuracy reward is determined based on the distance error, and the distance accuracy reward is negatively correlated with the distance error. If the absolute value of the orientation error is less than a preset orientation activation threshold, the orientation accuracy reward is determined based on the absolute value of the orientation error, and the orientation accuracy reward is negatively correlated with the absolute value of the orientation error.

11. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 10, characterized in that, The preset distance activation threshold is greater than the preset distance threshold, and the preset orientation activation threshold is greater than the preset orientation threshold; The step of determining the distance accuracy bonus based on the distance error includes: A first ratio of the distance error to the preset distance threshold is determined, and the distance accuracy bonus is determined based on the first ratio, wherein the magnitude of the distance accuracy bonus is negatively correlated with the first ratio; Determining the orientation accuracy bonus based on the absolute value of the orientation error includes: A second ratio is determined between the absolute value of the orientation error and the preset orientation threshold, and an orientation accuracy bonus is determined based on the second ratio, wherein the magnitude of the orientation accuracy bonus is negatively correlated with the second ratio.

12. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The style reward based on adversarial action priors is determined in the following way: Acquire motion state data generated after the mobile robot executes the motion control command; The action state data and reference action data are input into an adversarial action prior discriminator, which determines the style reward based on the action style difference between the action state data and the reference action data. The reference action data represents a preset anthropomorphic action.

13. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The method further includes: The airtime and contact duration of the left and right feet of the mobile robot are obtained respectively, wherein the contact duration is the duration during which the corresponding foot remains in contact with the support surface; Gait symmetry reward is determined based on the difference in air duration and contact duration between the left foot and the right foot, wherein the gait symmetry reward decreases when the difference in air duration or the difference in contact duration increases. The parameters of the motion control policy network are updated based on the target tracking task reward, the style reward, and the gait symmetry reward.

14. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The method further includes: The target direction is determined based on the relative target position, wherein the target direction is the direction from the current position of the mobile robot to the target position; The velocity component of the mobile robot's motion speed in the target direction is determined, and the motion reward in the target direction is determined based on the velocity component, wherein the reward value corresponding to the positive velocity component along the target direction is higher than the reward value corresponding to the non-positive velocity component. When the arrival marker indicates that both the target position and the target orientation meet the corresponding conditions, the target orientation motion reward is determined as a preset maximum reward value; The parameters of the motion control policy network are updated based on the target tracking task reward, the style reward, and the target direction motion reward.

15. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 1, characterized in that, The method further includes: When the arrival marker indicates that the target position and the target orientation both meet the corresponding conditions, and the mobile robot is in a standing state, the current joint angle of the mobile robot is obtained; Determine the deviation between the current joint angle and the default standing joint angle, and determine the standing posture reward based on the deviation, wherein the default standing joint angle is the joint angle corresponding to the preset default standing posture; The parameters of the motion control policy network are updated based on the target tracking task reward, the style reward, and the standing posture reward.

16. The training method for a mobile robot target tracking motion control strategy network based on adversarial action priors according to claim 15, characterized in that, The step of determining the standing posture reward based on the deviation includes: The standing posture reward is determined based on the negative exponential function value of the deviation, such that the standing posture reward decreases as the deviation increases.

17. A target tracking control method for a mobile robot based on adversarial action priors, characterized in that, The motion control policy network trained using the training method described in any one of claims 1 to 16, the method comprising: Obtain the current state of the mobile robot and the target position and orientation of the target to be tracked; The relative target position is determined based on the current state of the mobile robot and the target position, and the orientation deviation is determined based on the current state of the mobile robot and the target orientation. The current state of the mobile robot, its relative target position, and its orientation deviation are input into the trained motion control policy network to obtain the motion control commands for the mobile robot. The mobile robot is driven to move according to the motion control command in order to track the target position and the target orientation.

18. The mobile robot target tracking control method based on adversarial action priors according to claim 17, characterized in that, The step of determining the relative target position based on the current state of the mobile robot and the target position, and determining the orientation deviation based on the current state of the mobile robot and the target orientation, includes: The target position is transformed from the world coordinate system to the body coordinate system of the mobile robot to obtain the relative target position; The relative orientation error is determined based on the current orientation of the mobile robot and the target orientation. The sine and cosine values ​​of the relative orientation error are determined, and the vector composed of the sine and cosine values ​​is taken as the orientation deviation.

19. A training device for a motion control strategy network for target tracking of a mobile robot based on adversarial action priors, characterized in that, include: The information acquisition module is used to acquire the current state of the mobile robot and the target position and orientation of the target to be tracked; The target information determination module is used to determine the relative target position based on the current state of the mobile robot and the target position, and to determine the orientation deviation based on the current state of the mobile robot and the target orientation. The control command determination module is used to input the current state of the mobile robot, the relative target position, and the orientation deviation into the motion control strategy network to obtain the motion control command of the mobile robot. The arrival determination module is used to obtain the distance error and orientation error between the mobile robot and the target to be tracked after the mobile robot executes the motion control command, and to jointly determine the distance error and the orientation error to generate an arrival mark; The course training module is used to update the success level variable for course training according to the arrival marker, update the distance range between the target to be tracked and the mobile robot according to the updated success level variable, and reacquire the target position according to the updated distance range in the next round of training. The parameter update module is used to update the parameters of the motion control policy network after the mobile robot executes the motion control command, based on the target tracking task reward obtained from executing the motion control command and the style reward obtained from the adversarial action prior.

20. A target tracking and control device for a mobile robot based on adversarial action priors, characterized in that, The apparatus comprises a motion control strategy network trained using the training method described in any one of claims 1 to 16, and includes: The status acquisition module is used to acquire the current status of the mobile robot and the target position and target orientation of the target to be tracked; The target information determination module is used to determine the relative target position based on the current state of the mobile robot and the target position, and to determine the orientation deviation based on the current state of the mobile robot and the target orientation. The control command determination module is used to input the current state of the mobile robot, the relative target position, and the orientation deviation into the trained motion control strategy network to obtain the motion control command of the mobile robot. A motion control module is used to drive the mobile robot to move according to the motion control instructions in order to track the target position and the target orientation.

21. An electronic device, characterized in that, include: processor; as well as A memory storing computer-readable instructions, which, when executed by the processor, implement the training method for a mobile robot target tracking motion control policy network based on adversarial action priors as described in any one of claims 1 to 16, or the mobile robot target tracking control method based on adversarial action priors as described in any one of claims 17 to 18.

22. A mobile robot, characterized in that, include: The robot itself; as well as A control device for performing the target tracking control method as described in any one of claims 17 to 18 to control the robot body to track the target position and target orientation.

23. The mobile robot according to claim 22, characterized in that, The mobile robot is a humanoid robot, a bipedal robot, a quadrupedal robot, a wheeled robot, a cleaning robot, or a transport robot.

24. A humanoid robot, characterized in that, include: The humanoid robot itself; as well as A control device for performing the target tracking control method as described in any one of claims 17 to 18 to control the humanoid robot body to track the target position and target orientation.

25. A bipedal robot, characterized in that, include: The bipedal robot body; as well as A control device for performing the target tracking control method as described in any one of claims 17 to 18 to control the bipedal robot body to track the target position and target orientation.

26. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program code instructions, which, when invoked by a processor, cause the processor to execute the training method of the mobile robot target tracking motion control strategy network based on adversarial action priors as described in any one of claims 1 to 16, or the mobile robot target tracking control method based on adversarial action priors as described in any one of claims 17 to 18.