Action scaling factor determination method and apparatus
By optimizing the motion scaling factor of the robot joints, the problem of motion amplitude mismatch caused by a single shared factor was solved, thus improving the efficiency and accuracy of robot strategy training.
Patent Information
- Application Number
- CN202611316445.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the motion scaling factor of robot joints adopts a single shared strategy, which leads to excessively large motion amplitude or over-compression of some joints, affecting learning efficiency and accuracy, and making it difficult to dynamically respond to changes in joint characteristics.
By determining the joint information of the controlled joints of the target robot, setting the motion scaling factor, optimizing the factor based on the action bistate features, calculating the motion scaling parameters corresponding to the joints, and using them as constraints for policy training, until the target motion scaling factor is determined.
This method enables the amplitude of motion at each joint to be adapted to its physical characteristics, improving the efficiency and accuracy of robot strategy training and solving the problem of mismatch in joint-level motion scaling in traditional methods.
Smart Images

Figure CN123129149A_ABST
Abstract
Description
Technical Field
[0001] The embodiments in this specification relate to the field of robot control technology, and in particular to a method and apparatus for determining motion scaling factors. Background Technology
[0002] In reinforcement learning-based robot control, the raw motion output by the policy network is typically a dimensionless signal, which needs to be converted into physical commands such as joint position, velocity, or torque through a motion interface. This conversion process relies on motion scaling parameters, the value range of which directly affects the learning efficiency and motion accuracy of the policy network. For example, in joint position control, the target position is determined by the default joint position, the raw motion, and the motion scaling parameters, which are further decomposed into a combination of actuator torque upper limit, proportional gain, and motion scaling coefficient. Traditional methods generally adopt a strategy of sharing a fixed motion scaling coefficient across all joints, assuming that this coefficient can uniformly adapt to different joint characteristics. However, in practical applications, there are significant differences in the actuator torque upper limit, proportional gain, range of motion, and load capacity of each joint. A single shared coefficient leads to excessively large raw motion amplitudes for some joints, increasing the learning difficulty, while the motion differences of other joints are over-compressed, weakening the policy's ability to distinguish subtle movements. At the same time, the motion scaling coefficient is tightly coupled with the proportional-derivative controller parameters and actuator capabilities; when control parameters or robot structure change, the original coefficient is difficult to maintain its applicability. Current technologies rely solely on empirically preset coefficients or group settings by joint, which remain fixed throughout training. This fails to dynamically respond to the needs of each joint, and the overall training return cannot reflect the optimization direction of individual joints, resulting in inefficient repetitive training and difficulty in achieving precise joint-level adaptation. Therefore, an effective solution is urgently needed to address these issues. Summary of the Invention
[0003] In view of this, embodiments of this specification provide a method for determining motion scaling factors. One or more embodiments of this specification also relate to a motion scaling factor determination device, a computing device, a computer-readable storage medium, and a computer program product, to address the technical deficiencies existing in the prior art.
[0004] According to a first aspect of the embodiments of this specification, a method for determining an action scaling factor is provided, comprising: Determine the joint information of the controlled joints of the target robot, and set the motion scaling factor for the controlled joints; The motion scaling parameters corresponding to the controlled joint are calculated based on the joint information and the motion scaling factor, and the motion scaling factor and the motion scaling parameters are used as constraints to perform a strategy training task for the target robot. Collect the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the bi-state motion features of the controlled joint based on the original motion information before scaling; The motion scaling factor is optimized based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
[0005] According to a second aspect of the embodiments of this specification, an apparatus for determining motion scaling factors is provided, comprising: The determination module is configured to determine the joint information of the controlled joints of the target robot and set the motion scaling factor for the controlled joints; The calculation module is configured to calculate the motion scaling parameters corresponding to the controlled joint based on the joint information and the motion scaling coefficient, and use the motion scaling coefficient and the motion scaling parameters as constraints to perform a strategy training task for the target robot. The acquisition module is configured to acquire the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the action bistate feature of the controlled joint based on the original motion information before scaling. The optimization module is configured to optimize the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
[0006] According to a third aspect of the embodiments of this specification, a computing device is provided, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, they implement the steps of the above-described method for determining the action scaling factor.
[0007] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the above-described method for determining the motion scaling factor.
[0008] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method for determining the motion scaling factor.
[0009] This embodiment provides a method for determining motion scaling factors. The method involves determining the joint information of the controlled joints of a target robot and setting motion scaling factors for the controlled joints. Based on the joint information and the motion scaling factors, the method calculates the motion scaling parameters corresponding to the controlled joints and uses these parameters as constraints to perform a strategy training task on the target robot. The method collects the original motion information of the controlled joints before scaling during the strategy training task execution state and constructs the bi-state motion features of the controlled joints based on this information. The method optimizes the motion scaling factors based on the target bi-state motion features of the controlled joints until the target motion scaling factor corresponding to the controlled joints is determined. This method achieves dynamic optimization of joint-level motion scaling factors, making the motion amplitude of each joint adapt to its physical characteristics. This solves the problem of excessively large or over-compressed motion amplitudes of some joints caused by a single shared coefficient in traditional methods. Furthermore, it achieves dynamic optimization of joint-level motion scaling factors, significantly improving the efficiency and motion accuracy of robot strategy training. Attached Figure Description
[0010] Figure 1 This is a flowchart illustrating a method for determining motion scaling factors according to one embodiment of this specification; Figure 2 This is a flowchart illustrating the process of determining the motion scaling factor according to one embodiment of this specification. Figure 3 This is a schematic diagram of a motion scaling factor determination device provided in one embodiment of this specification; Figure 4 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation
[0011] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0012] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0013] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0014] Furthermore, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. Moreover, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0015] This specification provides a method for determining motion scaling factor, and also relates to a motion scaling factor determination device, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.
[0016] See Figure 1 , Figure 1 A flowchart of a method for determining motion scaling factors according to an embodiment of this specification is shown, which specifically includes the following steps.
[0017] Step S102: Determine the joint information of the controlled joints of the target robot, and set the motion scaling factor for the controlled joints.
[0018] Step S104: Calculate the motion scaling parameters corresponding to the controlled joint based on the joint information and the motion scaling coefficient, and use the motion scaling coefficient and the motion scaling parameters as constraints to perform a strategy training task for the target robot.
[0019] Step S106: Collect the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the bi-state motion features of the controlled joint based on the original motion information before scaling.
[0020] Step S108: Optimize the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
[0021] The motion scaling factor determination method provided in this embodiment can be applied to the determination of the motion scaling factor (ASC) of any robot, such as a robotic arm, a robot body, or a handling robot. It is used to determine the independent motion scaling factor for each controlled joint of the robot, thereby ensuring that it can execute drive commands more accurately during operation and ensure the precise completion of the corresponding motion task.
[0022] Specifically, the target robot refers to the robotic entity that requires control policy training, typically containing multiple independently movable controlled joints. A controlled joint is a motion unit within the target robot that can be directly or indirectly controlled by the policy network, such as the robot's leg joints or arm joints. The motion characteristics and physical parameters of each controlled joint may differ. Joint information refers to data describing the physical characteristics and control parameters of the controlled joint, such as the joint's proportional gain and actuator torque limit. This information forms the basis for calculating motion scaling parameters. The motion scaling factor is a dimensionless coefficient used to adjust the magnitude of the original motion output by the policy network. Together with the joint information, it determines the actual range of the motion output by the policy network in physical space. The motion scaling parameter is the joint-by-joint multiplication parameter used to convert the dimensionless original motion output by the policy network into physically meaningful joint commands (such as position, velocity, or torque). This parameter directly affects the effective range of the policy network's output motion.
[0023] Correspondingly, the policy training task refers to the process within a reinforcement learning framework where a target robot learns and optimizes its control policy through interaction with the environment. During this process, the policy network outputs actions based on the current state and learns based on environmental feedback. The unscaled raw motion information refers to the dimensionless motion data directly output by the policy network before the motion scaling parameters are applied. This data reflects the policy network's original intention for joint movement in the current training state. The action bimorphic feature refers to the statistics used to quantify the amplitude distribution of the unscaled raw motion information. Specifically, it is represented as the zero-centered root mean square, describing the range of motion variation around the zero point and preserving the amplitude information brought about by the shift in the motion mean, thereby estimating the width of the motion distribution. The target action bimorphic feature refers to the desired action bimorphic feature value, representing the ideal distribution state of the action amplitude output by the policy network. By comparing the current action bimorphic feature with the target action bimorphic feature, the rationality of the motion scaling factor can be evaluated. The target action scaling factor refers to the action scaling factor finally determined through the optimization process that enables the controlled joint's action bimorphic feature to reach the target action bimorphic feature.
[0024] Based on this, the joint information of the controlled joints of the target robot is first determined, and motion scaling factors are set for the controlled joints. In one implementation, the operator can manually input the physical parameters of each controlled joint, such as the joint's mass, inertia, and maximum rotational speed, by consulting the technical manual provided by the robot manufacturer, and use these parameters as joint information. Simultaneously, the operator can manually specify an initial motion scaling factor for each controlled joint independently based on experience. As another implementation, a general motion scaling factor can be preset and applied to all controlled joints as the initial setting.
[0025] Subsequently, based on the aforementioned joint information and motion scaling factors, the motion scaling parameters corresponding to the controlled joints are calculated. These motion scaling factors and parameters are then used as constraints to perform a policy training task for the target robot. Specifically, the motion scaling parameters for each controlled joint can be calculated using a pre-defined physical model or empirical formula, leveraging the determined joint information and motion scaling factors. For example, the motion scaling parameters can be calculated as the product of the motion scaling factor and the ratio of the actuator torque upper limit to the proportional gain. During the policy training task, these calculated motion scaling parameters and factors can be directly configured in the simulation environment or integrated into the control logic through hard coding to limit the actual physical range of the policy network's output actions.
[0026] Next, the raw motion information of the controlled joints before scaling is collected during the execution of the policy training task, and bi-state motion features of the controlled joints are constructed based on this raw motion information. During the execution of the policy training task, the raw motion data output by the policy network for each controlled joint at each control step can be recorded. This raw motion data directly reflects the output intent of the policy network before being transformed by motion scaling parameters. After collecting sufficient raw motion data, statistical analysis can be performed on this data; for example, the amplitude distribution can be characterized by calculating the average absolute value of the raw motion, thereby constructing bi-state motion features.
[0027] Finally, the motion scaling factor is optimized based on the target motion bimorphic features and motion bimorphic features of the controlled joints until the target motion scaling factor corresponding to the controlled joints is determined. After obtaining the current motion bimorphic features, they are compared with the preset target motion bimorphic features. If there is a difference between the current motion bimorphic features and the target motion bimorphic features, the motion scaling factor needs to be adjusted. For example, the motion scaling factor can be increased or decreased by a fixed step size or by a simple proportional adjustment based on the difference between the two. This adjustment process is iterative. After each adjustment, the motion scaling parameters are recalculated, and it may be necessary to re-execute the policy training task or part of the training task to obtain new motion bimorphic features, until the motion scaling factor converges, so that the current motion bimorphic features and the target motion bimorphic features achieve the expected matching degree.
[0028] For example, suppose there is a multi-jointed quadruped robot that needs to learn a strategy for stable walking on complex terrain. This robot contains multiple controlled joints, such as the hip, knee, and ankle joints, each with different physical characteristics (e.g., maximum torque, moment of inertia) and control parameters (e.g., proportional gain). First, for this quadruped robot, the joint information of its controlled joints is determined, and initial motion scaling factors are set. Specifically, the physical parameters of each joint, such as the maximum output torque of the hip joint and the proportional gain of the knee joint, can be obtained from the robot's design document and used as joint information. Simultaneously, an initial motion scaling factor is set for each joint; for example, all joints are set to an empirical, general value of 0.25. Next, based on this joint information and the initial motion scaling factor, the motion scaling parameters corresponding to each controlled joint are calculated. For example, according to the formula... (in These are motion scaling parameters. It is the motion scaling factor. It is the upper limit of the actuator torque. (This is a proportional gain), calculating the motion scaling parameters for each joint. Then, these motion scaling factors and parameters are used as constraints to perform a policy training task for the quadruped robot. In the training environment, the policy network outputs the original motion... Will pass The target is converted to a joint position, where s is the calculated action scaling parameter. These parameters remain constant during training to ensure the policy network learns within a fixed action space.
[0029] After a period of time during the policy training task, the original motion information before scaling for each controlled joint is collected during the policy training task execution state. For example, during training, the original motion output by the policy network for each joint at each time step is recorded. Then, based on this unscaled original motion information, a bi-state motion feature for each controlled joint is constructed. Specifically, the root mean square zero of the original motion for each joint can be calculated, which reflects the amplitude distribution of the policy network's output motion for that joint under the current motion scaling factor.
[0030] Subsequently, based on the target action bimorphic features and current action bimorphic features of each controlled joint, the action scaling factor is optimized until the target action scaling factor for each controlled joint is determined. For example, a target action bimorphic feature value is preset, which represents the ideal distribution of the action amplitude output by the policy network. If the current action bimorphic feature of a certain joint is much larger than the target value, it indicates that the action amplitude output by the policy network is too large, and the action scaling factor for that joint needs to be increased; conversely, if the current action bimorphic feature is much smaller than the target value, the action scaling factor needs to be decreased. This optimization process is iterative. After each adjustment of the action scaling factor, the action scaling parameters are recalculated, and policy training or evaluation may need to be re-performed to obtain new action bimorphic features, until the action scaling factor of each joint converges to a level that matches its action bimorphic features with the target action bimorphic features. Through this iterative optimization, the optimal action scaling factor for each controlled joint is finally determined.
[0031] In summary, by dynamically optimizing the joint-level motion scaling factor, the motion amplitude of each joint is adapted to its physical characteristics, which solves the problem of excessively large or over-compressed motion amplitude of some joints caused by a single shared coefficient in traditional methods. At the same time, dynamic optimization of the joint-level motion scaling factor is achieved, which significantly improves the efficiency and motion accuracy of robot strategy training.
[0032] In practical applications, there is a lack of clear implementation paths regarding how to specifically quantify joint information to support the calculation of motion scaling parameters, and how to handle the contradiction between the uniformity and differences of scaling coefficients among joints in multi-joint robots. If the joint information is improperly selected or the calculation logic is missing, the motion scaling parameters will fail to accurately reflect the physical characteristics of the actuator, thereby affecting the convergence of strategy training and control accuracy. Therefore, in this embodiment, determining the joint information of the controlled joints of the target robot includes: The controlled joints of the target robot are determined, and the proportional gain information and actuator torque information of the controlled joints are read. The proportional gain information and the actuator torque information are used as the joint information of the controlled joints. The target robot includes multiple controlled joints, and each controlled joint is set with the same motion scaling factor. The step of calculating the motion scaling parameters corresponding to the controlled joints based on the joint information and the motion scaling factor includes: calculating the motion scaling parameters corresponding to the controlled joints based on the proportional gain information, the actuator torque information, and the motion scaling factor.
[0033] Specifically, identifying the controlled joints of a target robot refers to recognizing all moving parts in the robot system that can be independently controlled and driven, such as the rotary or prismatic joints of a robotic arm. Its purpose is to determine which joint motion scaling factors need to be determined and optimized. This can be achieved by reading the robot model's configuration file (such as a Uniform Robot Description Format (URDF) file or a Simulation Description Format (SDF) file to identify and enumerate all controllable joints, or by communicating with the robot controller to query its supported joint list.
[0034] Accordingly, reading the proportional gain information and actuator torque information of the controlled joint refers to obtaining key parameters reflecting the physical characteristics of the robot joint. The proportional gain information (Kp) characterizes the controller's response to position errors, while the actuator torque information (E) represents the maximum output torque that the joint actuator can provide. Reading this information is to quantify the joint's physical response capability and actuation limits, providing a physical basis for calculating subsequent motion scaling parameters. This information can be obtained from the robot manufacturer's technical specifications, datasheets, or the robot controller's parameter configuration interface, or it can be queried offline via the robot control system's application programming interface (API) to obtain the currently configured proportional gain and actuator torque upper limit.
[0035] Accordingly, using the proportional gain information and the actuator torque information as the joint information of the controlled joint is to form a unified data structure, facilitating subsequent parameter calculation and management. This information collectively describes the dynamic characteristics and capability boundaries of each controlled joint. In practice, the read proportional gain value and actuator torque upper limit value can be stored in a data structure (e.g., a dictionary, array, or object), with each joint corresponding to a set of such parameters. Alternatively, in the internal data model of the robot control software, corresponding attribute fields can be added to each joint object to store this information.
[0036] Accordingly, the target robot comprises multiple controlled joints, each with the same motion scaling factor (ASC). This means that a uniform ASC is set for all controlled joints in the initial stage. This provides a unified baseline, simplifying the complexity of the initial configuration. Although the physical characteristics of each joint differ, from a macro-policy training perspective, a unified scaling factor can be started with, followed by fine-tuning. This can be achieved by defining a global variable or constant during system initialization and assigning its value to the ASC of all controlled joints, or by allowing the operator to input an initial universal ASC value through a user interface or configuration file, which the system then applies to all joints.
[0037] Accordingly, the motion scaling parameter corresponding to the controlled joint is calculated based on the proportional gain information, the actuator torque information, and the motion scaling factor. This is the key multiplication factor used to convert the dimensionless motion output by the strategy network into actual joint commands. By combining the proportional gain information, actuator torque information, and motion scaling factor, motion scaling parameters matching the physical characteristics of each joint can be calculated, ensuring that the motion output by the strategy can effectively and safely drive the joint. This is typically achieved using a formula. Perform calculations, where It is the motion scaling parameter of the i-th joint. It is the motion scaling factor. It is actuator torque information. This refers to the proportional gain information. This calculation can be performed by integrating a function into the motion interface module of the robot controller. This function takes the joint's proportional gain, actuator torque, and motion scaling factor as input and outputs the corresponding motion scaling parameters.
[0038] Based on this, by explicitly defining joint information as proportional gain information and actuator torque information, and calculating motion scaling parameters based on these physical parameters and motion scaling coefficients, a clear physical basis and computational logic are provided for determining motion scaling parameters. In overall operation, this method first identifies all controlled joints of the target robot and reads the unique proportional gain information and actuator torque information for each joint. Then, an initial, identical motion scaling coefficient is set for all controlled joints. Based on this information, the system uses the formula... A unique motion scaling parameter is calculated for each joint. These calculated motion scaling parameters and initial motion scaling coefficients are then used as constraints and written into the motion interface of the target robot's corresponding training environment to guide the execution of the policy training task. This mechanism ensures that the dimensionless motion output by the policy network during training can be accurately converted into joint commands that conform to the robot's actual physical constraints. In this way, even if all joints in a multi-joint robot are initially set to the same motion scaling coefficients, differentiated motion scaling parameters can still be calculated by introducing the specific proportional gain and actuator torque information of each joint. This allows policy training to be conducted in a more reasonable motion space that better conforms to the robot's actual physical constraints.
[0039] For example, suppose a quadruped robot has 12 controlled joints (3 joints per leg). First, the system identifies these 12 controlled joints. Then, for each joint, the system reads its proportional gain information and actuator torque information from a pre-defined configuration file. For example, for the first joint (such as the front left hip joint), its proportional gain information is read. The actuator torque information is 500 Nm / rad. The value is 20 Nm; for the second joint (such as the anterior left knee joint), its proportional gain information is read. The actuator torque information is 300 Nm / rad. The initial motion scaling factor is 30 Nm. Then, the same initial motion scaling factor is set for all 12 joints. For example, 0.25. Based on this information, the system calculates the motion scaling parameters for each joint. For example, for the first joint, the motion scaling parameter is... = 0.25 * 20 / 500 = 0.01; For the second joint, the motion scaling parameter = 0.25 * 30 / 300 = 0.025. In this way, even with the same initial action scaling factor, each joint will receive a differentiated action scaling parameter that matches its physical characteristics. These calculated action scaling parameters and the initial action scaling factor are then passed to the action interface of the reinforcement learning environment to ensure that the original action output by the policy network is consistent. Transforming to the desired joint position At that time, the parameters can be scaled according to their respective actions. Perform appropriate scaling, that is .
[0040] In summary, the above processing provides a clear physical basis and computational logic for determining motion scaling parameters, effectively solving the problems of how to specifically quantify joint information to support the calculation of motion scaling parameters in multi-joint robots, and how to handle the contradiction between the uniformity and differences of scaling coefficients for each joint. This scheme ensures that the motion scaling parameters accurately reflect the physical execution capability of each joint in the initial stage of policy training, allowing the policy network to learn in a more reasonable motion space that better conforms to the actual physical constraints of the robot from the beginning. This avoids training instability or convergence difficulties caused by the disconnect between motion scaling parameters and the physical characteristics of the actuator. This enables policy training to explore effective control strategies more efficiently and ultimately achieve higher precision robot control performance.
[0041] Furthermore, if the action interface in the training environment fails to lock or synchronize these key constraint parameters in a timely manner, it can lead to parameter drift or inconsistency during policy training, thereby affecting the stability of training and the final convergence effect of the policy. To address this, in this embodiment, using the action scaling coefficient and the action scaling parameters as constraints to perform the policy training task for the target robot includes: Write the motion scaling factor and the motion scaling parameter into the motion interface of the training environment corresponding to the target robot; based on the writing result, set the motion scaling factor and the motion scaling parameter to remain unchanged, and perform a policy training task for the target robot.
[0042] Specifically, the motion scaling factor is a dimensionless adjustment factor that provides an adjustable multiplier to adapt to the different motion characteristics and control requirements of robot joints. For example, it can be set through a software configuration interface or dynamically assigned through a specific programming interface. The motion scaling parameter is a scaling factor that directly acts on the original motion output by the policy network. It determines how the original motion is mapped to the actual joint range of motion. Its function is to ensure that the abstract output of the policy network can be accurately converted into physical instructions that the robot can execute. For example, it can be preset in the parameter table of the robot controller or defined in the physics engine of the simulation environment. The motion interface of the target robot's corresponding training environment refers to a functional module in the robot training simulation platform or the actual robot control system. This module is responsible for receiving and processing the motion instructions generated by the policy network and converting them into actual control signals for the robot joints. Its function is to act as a key bridge between the policy network and the robot's physical execution layer. For example, it can be a software API that allows external training frameworks to set control parameters through function calls, or a hardware abstraction layer that exchanges data with the robot controller through a communication protocol. Writing the motion scaling factor and motion scaling parameters into the motion interface means passing these preset parameter values to the motion interface so that they take effect in subsequent control logic. Its purpose is to ensure that the robot system can use these specific control parameters when performing tasks. For example, parameters can be configured by calling API functions provided by the training environment, or initialized by loading a specific configuration file. Keeping the motion scaling factor and motion scaling parameters unchanged based on the writing result means that after these parameters are successfully configured into the motion interface, a mechanism is taken to ensure that they are not accidentally modified or overwritten during the entire policy training task. Its purpose is to provide a stable and consistent physical constraint environment for the policy network's learning. For example, these parameters can be set to read-only attributes in the parameter management module of the training environment, or parameter verification and forced reset can be performed at the beginning of each training iteration. Performing policy training tasks for the target robot refers to using artificial intelligence training methods such as reinforcement learning to gradually optimize the robot's policy network through continuous interaction with the robot's training environment, enabling it to effectively complete the preset task objectives. Its purpose is to enable the robot to acquire the desired intelligent behavior through learning. For example, deep reinforcement learning-based training algorithms can be run on high-performance computing clusters, collecting experience and updating the policy network through extensive simulation interactions.
[0043] Based on this, by explicitly writing the motion scaling factors and motion scaling parameters into the motion interface of the target robot's corresponding training environment, and ensuring that these parameters remain unchanged during the execution of the policy training task, the problem of parameter drift or inconsistency during training is solved. After determining the joint information of the controlled joints of the target robot, setting the motion scaling factors for the controlled joints, and calculating the corresponding motion scaling parameters based on the joint information and motion scaling factors, these calculated motion scaling factors and motion scaling parameters are considered as key physical constraints. To ensure that these constraints are strictly adhered to throughout the policy training process, this scheme first passes these parameters to the training environment through the motion interface. This operation enables the training environment to accurately know and apply these parameters, thereby correctly converting the dimensionless motion output by the policy network into physically meaningful joint commands. Subsequently, by setting these parameters to remain unchanged, this scheme logically constructs a stable operating environment, avoiding unexpected parameter modifications caused by environmental fluctuations, improper interface calls, or the policy network's own exploration during the execution of the policy training task. This mechanism ensures that the policy network always faces a fixed and predictable physical mapping relationship during the learning process, allowing policy optimization to proceed on a stable basis, thereby improving training stability and convergence efficiency. In this way, the policy network can more effectively learn the optimal behavior for performing tasks under specific physical constraints without having to deal with constantly changing action transition rules. This provides a solid and reliable foundation for subsequent steps involving optimizing action scaling coefficients based on the bimorphic features of the controlled joints and the bimorphic features of the actions, until the scaling coefficients of the target actions corresponding to the controlled joints are determined.
[0044] In practice, when writing motion scaling factor and motion scaling parameter to the interface, the motion scaling parameter needs to be calculated based on the motion scaling factor and joint information. Therefore, when writing to the interface, the motion scaling parameter can be configured to the motion interface of the training environment to map the original motion before scaling to a physical control target, so as to optimize the motion scaling factor in the future.
[0045] For example, before executing the policy training task, the system first calculates the action scaling parameters for each controlled joint based on preset joint information and action scaling coefficients. In a Python-based reinforcement learning training framework, these action scaling coefficients and parameters can be written by calling specific API functions provided by the training environment object (such as `env`). Specifically, there could be a function, such as `env.set_action_scaling_parameters(action_coefficients, action_parameters)`, which passes the calculated list of action scaling parameters to the action interface module within the training environment. Once these parameters are successfully written, the training environment immediately activates an internal mechanism, for example, by setting a boolean flag `is_locked = True` or storing these parameters in a read-only data structure, to ensure that these parameters are not accidentally modified by the policy network or other environment components throughout the policy training loop. In each training iteration, even if the policy network attempts to output actions outside the expected range, or if there is logic within the environment that might modify these parameters, this locking mechanism will force the use of the preset action scaling coefficients and parameters for action transformation, thus ensuring the stability and consistency of the training process.
[0046] In summary, the above-described approach effectively addresses the issue of potential drift or inconsistency in action scaling factors and parameters during policy training. By explicitly writing these key parameters into the action interface of the target robot's training environment and ensuring their invariance during training, the policy network can learn under stable and consistent physical constraints. This significantly improves the stability of policy training, avoiding uncertainties and convergence difficulties caused by parameter fluctuations. Furthermore, due to the determinism of the parameters, the policy network can more accurately understand the mapping relationship between its output actions and the robot's actual physical behavior, thereby improving the efficiency of policy learning and the performance of the final policy. This stable constraint environment provides a reliable foundation for subsequent action scaling factor optimization, enabling the optimization process to converge more precisely to the target action scaling factor, ultimately obtaining a control policy more adapted to the robot's physical characteristics.
[0047] In actual policy training, the lack of a clear execution path for accurately and efficiently acquiring raw motion information to support subsequent feature construction can lead to data inconsistencies or timeliness issues in the raw motion information acquisition and feature construction processes, thus affecting the accuracy of motion scaling factor optimization. To address this, in this embodiment, the acquisition of the raw motion information of the controlled joint before scaling during the policy training task execution state, and the construction of the bi-state motion features of the controlled joint based on the raw motion information before scaling, includes: When the policy training task is completed, a deterministic policy evaluation is performed based on the policy network corresponding to the policy training task. Under the condition of removing policy exploration noise, the original motion information before scaling of the controlled joint is collected, and the step of constructing the action bistate feature of the controlled joint based on the original motion information before scaling is performed.
[0048] Specifically, after the current policy training task is completed, considering that the policy network corresponding to the training may have processing noise, direct subsequent processing may lead to insufficient accuracy. Therefore, after the current policy training task is completed, the policy network updated in the current stage can be used to remove PPO exploration noise, and then a new deterministic policy evaluation can be performed. At the same time, the original action information before scaling corresponding to the controlled joint can be statistically analyzed on the access state, so as to be used for subsequent action bi-state feature construction.
[0049] In addition to the methods mentioned above for determining the original motion information before scaling, it can also be determined through playback operations. Specifically, data collection can be performed without during training; instead, the execution information of a completed policy training task can be replayed. This playback operation can accurately reconstruct the motion trajectory and policy network output during training, thereby accurately extracting the original motion information of the controlled joint before scaling. This method avoids the problems of increased computational load, data loss, or data inconsistency that may arise from data collection during training, ensuring the high reliability and consistency of the data source on which the action bimorphic feature is based. Once accurate original motion information before scaling is obtained, the system can construct the action bimorphic feature of the controlled joint based on this information. This action bimorphic feature can quantify the activity level or distribution range of the controlled joint's motion, providing a precise quantitative basis for subsequent optimization of the motion scaling coefficient based on the target action bimorphic feature. Through this feature construction process based on playback, the problem of non-standard acquisition of original motion information is effectively solved, improving the scientific nature and pertinence of motion scaling coefficient adjustment. In practical implementation, after the strategy training task is completed, an information collection and playback operation is performed on the strategy training task. This step aims to ensure that key execution data during the training process can be obtained completely and accurately after the strategy training task is completed. Playback refers to reproducing the execution trajectory of the strategy using recorded training process data or by replaying the training environment after training is completed. Its purpose is to provide a stable and controllable environment to extract the required information, avoiding performance overhead or data inconsistency issues that may arise from data collection during training. One implementation method is to record information such as the target robot's state at each control step, the original actions output by the policy network, and environmental feedback to a log file or memory buffer during strategy training. After the strategy training task is completed, the system can read these records and replay the entire training process in chronological order, thereby collecting the required execution information during the replay. Another implementation method is to utilize the deterministic characteristics of the simulation environment. After the strategy training task is completed, using the trained strategy, a certain number of simulation rounds are rerun in the exact same simulation environment as during training, starting from the same initial state. During this process, the simulation environment will accurately reproduce the execution trajectory of the strategy, and the system can synchronously collect the required execution information.
[0050] It should be noted that the method for determining the original motion information before scaling can be selected according to actual needs, and this embodiment does not impose any limitations on it.
[0051] Accordingly, the step of constructing the bimorphic motion features of the controlled joint based on the pre-scaling original motion information is performed. This step aims to transform the acquired pre-scaling original motion information into feature values that can quantify the range of motion distribution, so as to optimize the motion scaling coefficient subsequently. The bimorphic motion features can reflect the activity level or amplitude of the controlled joint's motion. As one implementation, the root mean square (RMS) value of the pre-scaling original motion information sequence for each controlled joint can be calculated. This RMS value can effectively characterize the range of motion variation around the zero point, while preserving the amplitude information brought about by the motion mean shift, thus serving as a bimorphic motion feature. As another implementation, statistical analysis can be performed on the acquired pre-scaling original motion information, such as calculating its standard deviation. These statistics can also reflect the dispersion of the motion data, thus serving as bimorphic motion features.
[0052] For example, after the policy training task is completed, the currently trained policy can be used to perform deterministic policy evaluation in multiple parallel simulation environments. For instance, N parallel environments can be set up, each running for H control times. After the deterministic policy evaluation, probing noise (PPO) can be removed to ensure that the pre-scaling raw motion information is more accurate. Specifically, the system can record the pre-scaling raw motion information output by the policy network for each parallel environment, each control time, and each controlled joint. Here Let represent the original motion of the i-th controlled joint before scaling in the n-th parallel environment at the t-th control time. To efficiently construct the bi-state motion features, the system does not need to store all motion samples in the software implementation. Instead, it accumulates the sum of squares of the original motions and the number of samples for each controlled joint. Specifically, for each controlled joint i, the system accumulates all... The value of is calculated, and the total sample size (N*H) is counted. Subsequently, based on the cumulative sum of squares and the sample size, the formula is used to... The root mean square of the zero center of the controlled joint is calculated and used as the bi-state feature of the controlled joint's motion. This method can describe the range of motion variation around the zero point, while also preserving the amplitude information brought about by the mean shift of the motion. Furthermore, since it only requires the accumulation of the sum of squares and the number of samples, the additional storage overhead is minimal.
[0053] In summary, the above processing effectively improves the scientific rigor and relevance of motion scaling factor adjustment, ultimately contributing to improved efficiency and performance of target robot strategy training.
[0054] In actual execution, extracting quantitative indicators that accurately reflect the amplitude distribution characteristics of joint movements from massive amounts of raw motion data to support precise optimization of subsequent motion scaling factors lacks clear mathematical definitions and calculation standards. This results in an unstandardized process for constructing bi-state motion features, making it difficult to effectively characterize the differences in motion between different joints under different trajectories. Therefore, in this embodiment, the bi-state motion features are constructed using the following formula:
[0055] in, This indicates the bistate characteristics of an action. H represents the original motion information before scaling, H represents the control timing information, and N represents the trajectory information.
[0056] Specifically, a standardized quantitative basis for constructing bi-state action features is provided by introducing a mathematical formula based on root mean square (RMS). By summing, averaging, and taking the square root of the squares of multiple trajectory information and the original motion information before scaling at multiple control moments, complex temporal motion data can be transformed into a single statistical feature value. Specifically, the original motion information before scaling in this formula serves as the basic input, reflecting the actual motion requirements without the interference of scaling coefficients. By squaring the motion information, the influence of the mutual cancellation of positive and negative motion values can be eliminated, thus accurately reflecting the amplitude fluctuation intensity of the motion. By introducing trajectory information and control moment information as dimensions, it is ensured that the feature construction process covers the entire process of robot task execution, avoiding interference from local motion deviations on the overall feature evaluation. This RMS-based calculation method effectively smooths noise in the motion data, enabling the constructed bi-state action features to stably represent the activity level of the controlled joints. This provides a reliable quantitative benchmark for subsequent comparison of target bi-state action features and coefficient optimization, thereby solving the problem of non-standard motion feature extraction.
[0057] Specifically, action bimorphic features are statistical indicators used to quantify the activity level of controlled joints' motion amplitude during policy training tasks. They aim to capture the overall intensity and fluctuation range of joint movements, rather than instantaneous values, serving as a benchmark for subsequent optimization of motion scaling factors. By comparing with the target action bimorphic features, the direction and magnitude of motion scaling factor adjustments are guided. This feature can be based on the root mean square (RMS) form, obtained by averaging and square rooting the sum of squares of the original motion information; or it can be based on peak value or mean absolute value, for example, taking the maximum absolute value of the original motion information over a period of time, or calculating the average of the absolute values of the original motion information. The original motion information before scaling refers to the dimensionless motion commands output by the policy network that have not yet been adjusted by the motion scaling parameters. It directly reflects the policy network's expected motion for the controlled joint at a specific control moment and trajectory, serving as the foundational data for constructing action bimorphic features. Its magnitude and trend directly affect the calculation results of the action bimorphic features. This information can be joint motion commands directly output by the policy network in the training environment, such as a floating-point number between -1 and 1, representing the relative motion trend of the joints; or motion signals that have undergone preliminary normalization but have not yet had motion scaling parameters applied, such as mapping the raw values output by the policy network to a fixed range to ensure data consistency. Control moment information represents the number of time steps in a single trajectory where the policy network makes control decisions and outputs motion commands. It defines the temporal granularity or sequence length of motion data sampling within a specific trajectory, determining the cumulative range of the raw motion information in the temporal dimension within a single trajectory when calculating the bi-state features of the motion. This information can be a fixed-length time step, such as the robot executing a fixed number of control steps in each training round; or it can be a dynamically determined time step based on task completion conditions, such as the trajectory ending when the robot completes a specific task or reaches a certain state, at which point the control moment information is the actual length of the trajectory. Trajectory information represents the number of complete motion sequences or rounds experienced by the robot during the execution of the policy training task. Each trajectory represents a complete attempt by the robot from its initial state to its final state. It determines the cumulative range of the original action information across different training rounds or scenarios when calculating the bi-state features of the action, ensuring the statistical representativeness of the features. This information can be a preset number of training rounds, for example, in a policy training task where the robot is required to execute 1000 trajectories; or it can be a dynamically adjusted number of trajectories based on training convergence or performance metrics, for example, stopping trajectory acquisition when the policy performance reaches a certain threshold.
[0058] Based on this, a standardized quantitative basis for constructing bi-state action features is provided by introducing a mathematical calculation formula based on the root mean square (RMS) form. After the policy training task is completed, the system replays the execution information of the policy training task to determine the original motion information before scaling for the controlled joint. This original motion information before scaling is the dimensionless motion command directly output by the policy network without being disturbed by the motion scaling coefficient, which truly reflects the policy network's expectation of joint motion. To accurately characterize the amplitude fluctuation intensity of joint motion, this scheme squares these original motion information, effectively eliminating the influence of mutual cancellation between positive and negative motion values. Subsequently, by accumulating and averaging the squared motion values under multiple trajectory information and multiple control time information, it is ensured that the feature construction process can cover the entire process of robot task execution, avoiding interference from local motion deviations on the overall feature evaluation. Finally, through square root processing, the complex temporal motion data is transformed into a single statistical feature value, namely, the bi-state action feature. This RMS-based calculation method can effectively smooth the noise in the motion data, enabling the constructed bi-state action feature to stably characterize the motion activity level of the controlled joint. By determining the joint information of the controlled joints of the target robot and setting motion scaling coefficients for the controlled joints, and calculating the corresponding motion scaling parameters for the controlled joints based on the joint information and motion scaling coefficients, and using the motion scaling coefficients and motion scaling parameters as constraints, this scheme constructs a bi-state motion feature that provides a reliable quantitative benchmark for subsequent optimization of the motion scaling coefficients based on the target motion bi-state features of the controlled joints and the motion bi-state features. This standardized feature construction method can accurately capture the motion differences of different joints under different trajectories, thus providing a solid data foundation for the precise adjustment of the motion scaling coefficients and solving the problem of non-standard motion feature extraction.
[0059] For example, suppose the target robot has a controlled joint. In a policy training task, the robot executes N=3 trajectories. The control time information for each trajectory is H=100. After the policy training task is completed, the system replays the training process and collects the original motion information of the controlled joint before scaling at each control time. For example, for the first trajectory (n=1), at the first control time (t=1), the original motion information before scaling... It is 0.5; at the second control time (t=2). -0.3; ...; at the 100th control time (t=100). The value is 0.2. Similarly, the original motion information of the second trajectory (n=2) and the third trajectory (n=3) before scaling at all control moments can be acquired. This is to construct the bi-state motion features of the controlled joint. First, for each After squaring, we get Then, the squares of all trajectories (N=3) and all control moments (H=100) are summed; next, the sum is divided by the total number of sampling points (N*H = 3*100 = 300) to obtain the mean square value. Finally, the square root of the mean square value is taken to obtain the bi-state motion characteristics of the controlled joint. For example, if the calculated mean square value is 0.09, then the action bistate feature... The value is √(0.09) = 0.3. This value of 0.3 quantifies the level of activity of the controlled joint in this training task.
[0060] In summary, by squaring, averaging, and square-rooting the original motion information before scaling, the influence of motion direction is effectively eliminated, and data noise is smoothed, enabling the constructed bi-state motion features to stably and reliably characterize the motion activity level of the controlled joints. In the overall process of determining the joint information of the controlled joints of the target robot, setting motion scaling coefficients for the controlled joints, calculating the corresponding motion scaling parameters based on the joint information and the motion scaling coefficients, and using the motion scaling coefficients and parameters as constraints for the target robot's strategy training task, this standardized bi-state motion feature provides a solid data foundation and quantitative basis for subsequent precise optimization of the motion scaling coefficients based on the target bi-state motion feature. This makes the adjustment of the motion scaling coefficients more scientific and efficient, thereby improving the stability and performance of robot strategy training.
[0061] In existing reinforcement learning-based robot control, the adjustment of motion scaling coefficients often lacks a closed-loop, dynamic adaptive mechanism. This results in the inability to accurately iteratively update the coefficients based on feedback during training, making it difficult for the motion scaling coefficients to quickly converge to the optimal state, thus affecting the efficiency of policy training and the final control performance. To address this, in this embodiment, the optimization of the motion scaling coefficients based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling coefficients corresponding to the controlled joint are determined includes: The following steps are taken: First, determine the target action bi-state features corresponding to the controlled joint. Second, calculate the intermediate action scaling factor of the controlled joint in the current coefficient update cycle based on the target action bi-state features, the action bi-state features, and the action scaling factor. Third, calculate the intermediate action scaling parameter based on the intermediate action scaling factor and the joint information. Fourth, use the intermediate action scaling factor as the action scaling factor and the intermediate action scaling parameter as the action scaling parameter, and perform a policy training task for the target robot using the action scaling factor and the action scaling parameter as constraints. Fifth, until the action scaling factor corresponding to the target coefficient update cycle satisfies the coefficient update condition, use the action scaling factor corresponding to the target coefficient update cycle as the target action scaling factor corresponding to the controlled joint.
[0062] Specifically, the first step is to determine the bi-state features of the target motion corresponding to the controlled joints. These features refer to the statistical characteristics of the original motion of the controlled joints under ideal or desired robot motion performance, typically expressed as root mean square (RMS) values. This feature provides a benchmark or target value for optimizing the motion scaling factor, enabling the optimization process to converge towards a pre-defined ideal motion distribution. This can be determined through expert experience, for example, by pre-setting a suitable RMS value for the original motion based on the physical constraints of the robot joints, task requirements, or desired motion smoothness. Alternatively, it can be achieved by performing offline analysis on robot strategies that have successfully completed similar tasks, extracting the original motion distribution of their controlled joints, and using their RMS values as the bi-state features of the target motion.
[0063] Next, based on the target action bimorphic features, the action bimorphic features collected under the current policy training state, and the current action scaling factor, the intermediate action scaling factor of the controlled joint in the current coefficient update cycle is calculated. Here, the action bimorphic features refer to the statistical characteristics of the original action information output by the controlled joint before scaling during the execution of the policy training task. It is usually represented by the root mean square value, reflecting the activity level or amplitude distribution of the original action output by the policy network under the current action scaling factor. The action scaling factor is a dimensionless multiplicative factor used to adjust the scaling ratio when the original action output by the policy network is converted into physically meaningful joint commands. The step of calculating the intermediate action scaling factor aims to calculate a temporary action scaling factor for the next round of training based on the difference between the action performance under the current policy training state and the expected performance, as well as the current action scaling factor. Its function is to provide a basis for dynamic adjustment, ensuring that the action scaling factor can gradually approach the optimal value. Specifically, a proportional adjustment method can be used; for example, when the actual action bimorphic features are higher than the target, the action scaling factor is increased; when they are lower than the target, the action scaling factor is decreased.
[0064] Subsequently, intermediate motion scaling parameters are calculated based on the intermediate motion scaling coefficients and the joint information. Joint information refers to data describing the physical characteristics and control parameters of the robot's controlled joints, such as proportional gain information and actuator torque information. This information forms the basis for calculating the motion scaling parameters, as they are typically related to the physical constraints and control stiffness of the joints. The purpose of this step is to combine the newly calculated intermediate motion scaling coefficients with the physical characteristics of the controlled joints to generate motion scaling parameters suitable for the next round of policy training. This recalculation ensures that the updates to the motion scaling coefficients are reflected in the actual motion transition mechanism in a timely manner, thereby influencing the training behavior of the policy network.
[0065] Then, the intermediate motion scaling factor is used as the motion scaling factor, and the intermediate motion scaling parameter is used as the motion scaling parameter. The step of performing a policy training task for the target robot, using the motion scaling factor and the motion scaling parameter as constraints, is then executed. This step is a crucial step in achieving closed-loop iterative optimization of the motion scaling factor. Its function is to reapply the adjusted motion scaling factor and motion scaling parameter to the policy training environment as new constraints. This allows the policy network to continue learning under the new scaling conditions, and its output original motion distribution will be influenced by the new parameters. In this way, the policy training process itself becomes part of the motion scaling factor optimization process, forming a feedback loop of "training-measurement-optimization-retraining," thereby enabling the motion scaling factor to converge adaptively.
[0066] The iterative process continues until the motion scaling coefficient corresponding to the target coefficient update cycle meets the coefficient update condition. At this point, the motion scaling coefficient corresponding to the target coefficient update cycle is used as the target motion scaling coefficient for the controlled joint. The coefficient update condition is a criterion used to determine whether the motion scaling coefficient optimization process has reached the expected goal or whether the iteration needs to be terminated. This condition can be set based on various indicators. For example, convergence is considered complete when the change in the motion scaling coefficient is less than a preset threshold over multiple consecutive update cycles; or, the goal is considered achieved when the error between the motion dual-state feature and the target motion dual-state feature is less than a preset threshold; or, a maximum number of iterations can be set, after which the optimization is forcibly terminated. The target motion scaling coefficient refers to the motion scaling coefficient finally determined after iterative optimization that matches the motion dual-state feature of the controlled joint with the target motion dual-state feature.
[0067] This scheme, closely integrated with the steps described above—determining joint information of the controlled joints of the target robot, collecting original motion information before scaling, and constructing motion bi-state features—forms an adaptive motion scaling coefficient calibration system. In the initial stage, the system calculates motion scaling parameters based on joint information and preset motion scaling coefficients, using these as constraints for policy training. During training, the system collects original motion information before scaling under the policy execution state and constructs motion bi-state features to obtain the actual motion distribution of the current policy. Subsequently, this scheme compares these actual motion bi-state features with preset target motion bi-state features, dynamically adjusts the motion scaling coefficients and motion scaling parameters, and reapplies them to subsequent policy training. This alternating training and coefficient update mechanism allows the motion scaling coefficients to be adjusted according to changes in the policy network and robot state, avoiding the limitations of fixed coefficients in traditional methods.
[0068] For example, firstly, for the target robot, a target motion dual-state feature can be preset for each controlled joint. This target value can be determined based on the robot joint's range of motion, the task's level of detail, or the desired motion smoothness; for example, it can be set to 0.25 or 0.3. Within a certain coefficient update cycle k during policy training, the system has already obtained the bi-state motion characteristics of the currently controlled joint. Furthermore, through strategy training and playback operations, the original motion information before scaling was collected. Based on this, the action dual-state features corresponding to the current cycle were constructed. Next, based on the known dual-state features of the target action... Current action dual-state features and current action scaling factor The intermediate motion scaling factor of the controlled joint in the next coefficient update cycle k+1 can be calculated using the following formula. : For example, if the current action scaling factor... The value is 0.25, representing the current action's dual-state features. The value is 0.3, while the target action dual-state feature is... If it is 0.25, then the intermediate motion scaling factor is... The calculation will be 0.25 * (0.3 / 0.25) = 0.3. Then, based on the newly calculated intermediate motion scaling factor... And joint information of the controlled joints (e.g., proportional gain information) and actuator torque information This allows us to calculate the corresponding intermediate motion scaling parameters. Then, we can use this new intermediate motion scaling factor... The intermediate motion scaling parameters are used as new motion scaling factors and written into the motion interface of the target robot's training environment. Then, under the new constraints, policy training continues for the target robot for a period of time. This "computation-application-training" cycle continues until preset coefficient update conditions are met. For example, the optimization process can be stopped when the relative error between the motion bimorphic features of all controlled joints and the target motion bimorphic features is less than 5% for three consecutive cycles, or when the number of iterations reaches a preset maximum value (e.g., 50 rounds). Once the conditions are met, the motion scaling factor corresponding to the current coefficient update cycle is determined as the target motion scaling factor for that controlled joint.
[0069] In summary, the above approach effectively solves the problem of traditional methods struggling to accurately iteratively update action scaling coefficients based on feedback during training. This scheme introduces the dual-state features of the target action as an optimization benchmark and constructs a closed-loop iterative optimization mechanism based on these features, enabling reasonable adjustment of the action scaling coefficients. This not only ensures that the action scaling coefficients converge quickly to the optimal state, significantly improving the efficiency and stability of policy training, but also, due to joint-by-joint adjustment, better adapts to the differences in motion characteristics, load, and actuator capabilities of different joints, avoiding the limitations of a single shared coefficient. Furthermore, this iterative update method allows the policy network to learn in a continuously optimized action space, thereby improving the policy's ability to distinguish subtle movements and ultimately achieving superior control performance and stronger generalization ability. In existing reinforcement learning-based robot control, the policy network typically doesn't directly output joint commands with physical units. Instead, it first outputs a set of dimensionless movements, which are then converted into joint position, velocity, or torque targets by the motion interface. Although the motion scaling parameter is merely a multiplicative parameter in the training configuration, it determines the numerical range within which the policy network represents the robot's joint motion. If this parameter is too small, some joints may use large-amplitude primitive movements for extended periods, increasing learning difficulty; if it's too large, it may compress the differences in movements between different states too much, reducing the policy's ability to distinguish subtle movements. Currently, a common practice is to set a universal motion scaling factor for all joints based on experience before training, or to set a few different motion scaling factors for joint groups such as legs and arms, and then keep them unchanged during training. This approach suffers from the problem that different joints have different ranges of motion, loads, and actuator capabilities, making it difficult for a shared motion scaling factor to be suitable for all joints simultaneously. The motion scaling factor, motion scaling parameters, and PD parameters are interdependent, and a manually tuned shared motion scaling factor often needs to be readjusted when switched to another set of control parameters. If the motion scaling factor for each joint is searched based solely on the final training reward, it is necessary to repeatedly perform complete training, and the overall reward cannot directly indicate whether the motion scaling factor for a particular joint should be increased or decreased.
[0070] In some of the solutions described above in this application, iterative optimization of the action scaling coefficient using action dual-state features is proposed to determine the target action scaling coefficient. However, within a specific coefficient update cycle, there is a lack of a clear mathematical calculation logic for quantifying the deviation between the current action scaling coefficient and the target state, and for adjusting the coefficient based on this deviation. This results in an inefficient and inaccurate convergence to the optimal action scaling coefficient. Therefore, in this embodiment, the action scaling coefficient corresponding to any coefficient update cycle is determined by the following formula:
[0071] in, This represents the action scaling factor in the k+1 coefficient update cycle. This represents the action scaling factor during the k-coefficient update cycle. This represents the bistate feature of the action corresponding to the update cycle of coefficient k. This represents the dual-state characteristics of the target action.
[0072] Specifically, to better understand the above technical solution, the motion scaling factor is a dimensionless multiplicative factor used to adjust the amplitude of the original motion output by the policy network to adapt it to the actual range of motion of the robot joint and the capabilities of the actuator. The setting of this factor aims to ensure that the policy network can express joint motion within an appropriate numerical range, avoiding training instability due to excessively large original motions or insufficient motion resolution due to excessively small original motions. The motion bimorphic feature is a statistical measure of the amplitude of the original motion information of the controlled joint i before scaling within a specific coefficient update period (k). It can be specifically represented by the root mean square (RMS) value of the original motion, reflecting the activity level of the actual output motion of the policy network within that period. Besides the RMS, this feature can also be characterized by other statistical indicators such as the standard deviation or mean absolute value of the original motion, as long as these indicators can effectively capture the amplitude information of the original motion. The target motion bimorphic feature represents the preset, desired target value of the original motion amplitude for the controlled joint i; it is the ideal state that the system strives to achieve during the optimization process. This target value can be set empirically, for example, by analyzing successful training cases or conducting simulation experiments to determine an initial action amplitude range that enables the policy network to learn stably and efficiently. The coefficient update cycle (k) refers to a time step or stage in the iterative optimization process of the action scaling coefficients. Each cycle involves a series of operations, including policy training, data acquisition, calculation of action bi-state features, and updating of action scaling coefficients. A coefficient update cycle can contain a fixed number of training iterations or continue until a specific training performance metric is met.
[0073] Based on this, a closed-loop automatic adjustment of the motion scaling factor is achieved by introducing the aforementioned iterative update mechanism based on proportional feedback. In the entire motion scaling factor determination method, the joint information of the controlled joints of the target robot is first determined, and motion scaling factors are set for the controlled joints. Then, the motion scaling parameters corresponding to the controlled joints are calculated based on the joint information and motion scaling factors, and the motion scaling factors and motion scaling parameters are used as constraints to perform a policy training task for the target robot. After the policy training task is completed, the original motion information before scaling corresponding to the controlled joints is collected, and the motion bi-state features of the controlled joints are constructed based on this information. Furthermore, this application proposes that in each coefficient update cycle, the motion bi-state features calculated in the current cycle are compared with the preset target motion bi-state features. If the current motion bi-state features are greater than the target motion bi-state features, it indicates that the original motion amplitude output by the policy network is too large. In this case, the ratio in the formula will be greater than 1, thereby increasing the motion scaling factor in the next cycle based on the current coefficient. Increasing the action scaling factor leads to a corresponding increase in the action scaling parameter, which in turn "compresses" the original action output by the policy network, prompting the network to output smaller amplitude original actions in subsequent training sessions to achieve the same physical joint motion. Conversely, if the current action bimorphic feature is smaller than the target action bimorphic feature, the ratio is less than 1, causing the action scaling factor to decrease in the next cycle, thus "expanding" the policy network output and enabling it to output a larger amplitude original action. This self-adjusting mechanism allows the action scaling factor to be dynamically corrected based on the actual output performance of the policy network during training, effectively quantifying the deviation between the current action scaling factor and the target state, and adjusting the factor based on this deviation. Through continuous iteration, the action scaling factor gradually converges, making the amplitude of the original action output by the policy network approach the target action bimorphic feature, thereby solving the problem of inefficient and inaccurate convergence caused by the lack of explicit mathematical calculation logic in traditional methods.
[0074] For example, suppose at the beginning of a certain coefficient update cycle, the current motion scaling coefficient of the controlled joint i is... The value is 0.25, and the target motion bi-state feature is set for this joint. The value is 0.8. After completing the policy training task for this cycle and acquiring the original action information before scaling, the action bi-state features for this cycle are calculated. The value is 1.2. Based on the above formula, the motion scaling factor for the next cycle is... It will be calculated as: = 0.25 * (1.2 / 0.8) = 0.25 * 1.5 = 0.375. It can be seen that because the actual action amplitude (1.2) is greater than the target amplitude (0.8), the action scaling factor is increased to prompt the policy network to output a smaller amplitude of the original action in subsequent training. In the next coefficient update cycle, if the new action scaling factor... If calculated as 0.7, then the new motion scaling factor is... Will be: = 0.375 * (0.7 / 0.8) ≈ 0.328. At this point, since the actual action amplitude (0.7) is smaller than the target amplitude (0.8), the action scaling factor is reduced to allow the policy network to output a larger amplitude of the original action. This iterative process continues until the action scaling factor converges to a stable value, i.e., when the action bimorphic features are sufficiently close to the target action bimorphic features, the update amplitude of the coefficient becomes very small, thus determining the final target action scaling factor. The above calculation process can be performed by a processor in the training system, such as a central processing unit (CPU) or a graphics processing unit (GPU) for numerical computation and updates.
[0075] In summary, the explicit and quantifiable mathematical calculation logic described above is used to adjust the motion scaling coefficient within each coefficient update cycle. This iterative update mechanism based on proportional feedback can accurately quantify the deviation between the original motion amplitude output by the current policy network and the desired target, and dynamically increase or decrease the motion scaling coefficient accordingly. This significantly improves the efficiency and accuracy of the motion scaling coefficient converging to the optimal value, effectively solving the problems of difficult manual parameter tuning, parameter coupling, and low convergence efficiency in traditional methods. Ultimately, this scheme ensures that the policy network can be trained within the optimal range of original motion output, thereby improving the training stability, convergence speed, and final performance of the robot control policy. After determining the target motion scaling coefficients for each controlled joint, how to effectively apply these optimized parameters to the actual policy network training and subsequent robot control deployment, to ensure that the trained policy network can adapt to the differentiated motion scaling requirements of each joint, thereby improving the overall control performance of the robot, remains a problem to be solved. In this embodiment, after the step of optimizing the motion scaling coefficients based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling coefficients corresponding to the controlled joint are determined, the method further includes: Given the target motion scaling coefficients corresponding to the multiple controlled joints of the target robot, the target motion scaling parameters corresponding to each controlled joint are calculated based on the target motion scaling coefficients. The policy network of the target robot is trained according to the target motion scaling parameters and target motion scaling coefficients corresponding to each controlled joint. When the policy network training is completed, the trained policy network is configured for the target robot, and the corresponding target motion scaling coefficients are configured for each controlled joint.
[0076] Specifically, based on the target motion scaling factor, the target motion scaling parameters corresponding to each controlled joint are calculated. This aims to transform the optimized target motion scaling factor into motion scaling parameters actually used by the robot control system. The motion scaling parameters directly affect how the dimensionless motion output by the policy network is mapped to physically meaningful joint commands, serving as a crucial bridge connecting the policy network output and the robot's physical execution capabilities. By calculating based on the target motion scaling factor, it can be ensured that the motion scaling parameters of each controlled joint accurately reflect its unique physical characteristics and motion requirements. This calculation can be performed according to a preset conversion formula, for example, the motion scaling parameters... It can be determined by the motion scaling factor. Actuator torque limit and proportional gain Through formula The calculation can be performed by consulting a pre-established mapping table or model that records the relationship between different target motion scaling factors and their corresponding motion scaling parameters.
[0077] The policy network of the target robot is trained based on the target motion scaling parameters and coefficients corresponding to each controlled joint. This involves retraining or finalizing the robot's policy network using optimized motion scaling parameters and coefficients. The policy network is the core of reinforcement learning robot control, responsible for outputting motion commands based on the current state. By introducing these optimized parameters as constraints during the training phase, the policy network can learn how to generate the most effective and physically consistent actions under these specific scaling constraints, thereby improving its adaptability and control performance. Specifically, in a reinforcement learning training environment, the calculated target motion scaling parameters and coefficients can be configured into the robot's motion interface. During training, the original actions output by the policy network are converted into actual joint commands through these configured parameters and interact with the environment. The training algorithm continuously adjusts the weights of the policy network based on the interaction results, ensuring that its output actions are optimal under these parameter constraints. Alternatively, a phased training approach can be used: first, preliminary training is performed to obtain a basic policy network; then, the optimized target motion scaling parameters and coefficients are fixed, and the basic policy network is fine-tuned.
[0078] Once the policy network training is complete, configuring the trained policy network for the target robot and configuring the corresponding target motion scaling factor for each controlled joint involves deploying the optimized policy network and corresponding target motion scaling factors onto the actual target robot, enabling it to be put into practical operation. This is a crucial step in transforming offline training results into online control capabilities. By configuring the trained policy network, the robot can autonomously generate control actions based on its perceived environmental state; simultaneously, configuring the corresponding target motion scaling factor ensures that the actions output by the policy network can be converted into physical instructions executable by the robot through the correct scaling mechanism, thereby achieving precise and efficient robot control. For example, the model file of the trained policy network can be loaded into the target robot's controller or embedded system. Meanwhile, the target motion scaling factor corresponding to each controlled joint is stored in the robot's parameter configuration file or memory for the motion interface to call at runtime. Alternatively, the policy network and target motion scaling factors can be packaged into a unified deployment module. This module is loaded and initialized when the robot starts or the task begins.
[0079] Based on this, after determining the target motion scaling factors corresponding to the multiple controlled joints of the target robot, the entire process from parameter optimization to policy deployment was further improved. Specifically, firstly, based on the determined target motion scaling factors, the target motion scaling parameters corresponding to each controlled joint are calculated. This calculation process utilizes the inherent physical parameters of the controlled joints, transforming the abstract motion scaling factors into physical quantities that directly affect the output of the policy network. This ensures that the motion scaling parameters used in subsequent policy network training accurately reflect the actual physical characteristics and motion capabilities of each joint, providing a more realistic and matching motion space for policy network learning. On this basis, the policy network of the target robot is trained according to the target motion scaling parameters and target motion scaling factors corresponding to each controlled joint. During the training process, the dimensionless original motion output by the policy network is transformed into actual joint commands through these optimized, joint-by-joint configured motion scaling parameters. This training method enables the policy network to fully learn the motion distribution patterns under the differentiated scaling constraints of each joint, thereby generating motions that better match the robot's actual execution capabilities. This contrasts with traditional methods that share a fixed motion scaling factor or a few different motion scaling factors across all joints. It avoids the problem of excessively large or small motion amplitudes in some joints due to parameter mismatch, improving the policy network's ability to distinguish subtle movements and the overall stability of control. Finally, after the policy network training is complete, the trained policy network and the corresponding target motion scaling factor configured for each controlled joint are deployed to the target robot. This means that during actual operation, the robot can utilize the finely trained policy network, combined with the optimal motion scaling factor tailored to each joint, to accurately convert the actions output by the policy network into physical execution commands. This deployment method ensures that the robot can fully utilize the motion potential of each joint, improving its stability and adaptability when performing complex tasks. The entire process forms a closed loop, from joint parameter optimization and calibration to targeted training of the policy network, and finally to robot deployment, effectively solving the control imbalance problem caused by differences in the motion characteristics of different joints and improving the overall control performance of the robot.
[0080] For example, after determining the target motion scaling factor for each controlled joint of the target robot (e.g., the hip, knee, and ankle joints of a hexapod robot). Then, the following steps can be followed. First, for each controlled joint i, based on its target motion scaling factor... Combined with the upper limit of the actuator torque of this joint and proportional gain Through formula Calculate the corresponding target action scaling parameters .These and The parameters are usually calibrated at the factory or can be measured experimentally. Then, these joint-by-joint calculated target motion parameters are scaled. and target motion scaling factor Configure the robot action interface in the reinforcement learning training environment. For example, in a PyBullet or MuJoCo-based simulation environment, these parameters can be set in the robot model's configuration file or the simulator's API. Then, initiate the training process of the policy network (e.g., a PPO agent based on a deep neural network). During training iterations, the policy network outputs a dimensionless raw action based on the currently observed robot state (such as joint position, velocity, pose, etc.). This original action It will use the action interface and preset... and the robot's default joint positions Convert to target joint position This drives the simulated robot to perform actions. The training algorithm continuously optimizes the parameters of the policy network based on the reward signals provided by the robot's interaction with the environment. After the policy network has undergone millions or even hundreds of millions of steps of training and reaches the expected performance metrics, the training process stops. At this point, the trained policy network model (e.g., a model file saved in ONNX or TensorFlow Lite format) is loaded into the controller of the target robot. Simultaneously, the scaling factor for the target action corresponding to each controlled joint is... It is also stored in the robot's controller memory or configuration registers. When the robot actually performs a task, the policy network outputs raw actions, which are then processed through the motion interface in the controller using pre-configured target motion scaling factors. (and the target motion scaling parameters calculated based on it) This is converted into precise joint commands, thereby driving the robot to complete complex tasks such as walking and grasping.
[0081] In summary, the above processing effectively solves the problem of how to effectively apply the target motion scaling factors of each controlled joint to the actual policy network training and subsequent robot control deployment. Specifically, after optimizing the target motion scaling factors of each joint, this scheme further calculates the target motion scaling parameters corresponding to each controlled joint based on these factors. This process ensures that the constraints used in the policy network training are highly matched with the physical characteristics and motion requirements of each joint, thereby solving the control imbalance problem caused by differences in the load and actuator capabilities of different joints, enabling the policy network to learn the motion characteristics of each joint in a targeted manner. On this basis, the policy network is trained according to these customized target motion scaling parameters and target motion scaling factors, allowing the policy network to fully learn the motion distribution patterns of each joint under specific scaling constraints during the training process. This makes the actions output by the policy network more consistent with the actual physical execution capabilities of the robot, avoiding unreasonable or inefficient motion commands caused by improper general parameter settings in traditional methods. Finally, after the policy network training is completed, the trained policy network and the target motion scaling coefficients for each joint are configured for the target robot. This ensures that during actual operation, the robot can use the trained policy network combined with the optimal scaling coefficients for precise control. This significantly improves the stability and adaptability of the robot when performing complex tasks, enabling it to complete various operations more flexibly and efficiently, especially in scenarios requiring fine control and high dynamic performance. The entire process achieves a seamless connection from parameter optimization to policy deployment, providing a more robust and efficient solution for robot control systems.
[0082] The following is in conjunction with the appendix Figure 2 Taking the application of the motion scaling factor determination method provided in this specification in a scenario where the motion scaling factor is determined for an embodied robot as an example, the method will be further explained. Figure 2 The present specification illustrates a process flowchart of a motion scaling factor determination method according to an embodiment of this specification, which specifically includes the following steps.
[0083] Step S202: Determine the controlled joints of the target robot, and read the proportional gain information and actuator torque information of the controlled joints. Use the proportional gain information and actuator torque information as the joint information of the controlled joints, and set the motion scaling factor for the controlled joints.
[0084] Step S204: Calculate the motion scaling parameters corresponding to the controlled joint based on the proportional gain information, actuator torque information, and motion scaling coefficient.
[0085] Step S206: Write the motion scaling factor and motion scaling parameter into the motion interface of the target robot's corresponding training environment.
[0086] Step S208: Based on the writing result, the motion scaling factor and motion scaling parameter are kept unchanged, and a strategy training task is performed for the target robot.
[0087] Step S210: If the policy training task is completed, perform deterministic policy evaluation based on the policy network corresponding to the policy training task.
[0088] Step S212: Under the condition of removing policy exploration noise, collect the original motion information before scaling corresponding to the controlled joint, and construct the action bistate feature of the controlled joint based on the original motion information before scaling.
[0089] Step S214: Determine the target action dual-state features corresponding to the controlled joint. Based on the target action dual-state features, action dual-state features, and action scaling coefficient, calculate the intermediate action scaling coefficient of the controlled joint in the current coefficient update cycle.
[0090] Step S216: Calculate the intermediate motion scaling parameters based on the intermediate motion scaling factor and joint information.
[0091] Step S218: Use the intermediate motion scaling factor as the motion scaling factor and the intermediate motion scaling parameter as the motion scaling parameter, and return to step S208.
[0092] Step S220: Until the action scaling factor corresponding to the target coefficient update cycle meets the coefficient update condition, the action scaling factor corresponding to the target coefficient update cycle is used as the target action scaling factor corresponding to the controlled joint.
[0093] This embodiment provides a method for determining motion scaling factors. The method involves determining the joint information of the controlled joints of a target robot and setting motion scaling factors for the controlled joints. Based on the joint information and the motion scaling factors, the method calculates the motion scaling parameters corresponding to the controlled joints and uses these parameters as constraints to perform a strategy training task on the target robot. The method collects the original motion information of the controlled joints before scaling during the strategy training task execution state and constructs the bi-state motion features of the controlled joints based on this information. The method optimizes the motion scaling factors based on the target bi-state motion features of the controlled joints until the target motion scaling factor corresponding to the controlled joints is determined. This method achieves dynamic optimization of joint-level motion scaling factors, making the motion amplitude of each joint adapt to its physical characteristics. This solves the problem of excessively large or over-compressed motion amplitudes of some joints caused by a single shared coefficient in traditional methods. Furthermore, it achieves dynamic optimization of joint-level motion scaling factors, significantly improving the efficiency and motion accuracy of robot strategy training.
[0094] Corresponding to the above method embodiments, this specification also provides embodiments of a motion scaling factor determination device. Figure 3 A schematic diagram of a motion scaling factor determination device according to one embodiment of this specification is shown. Figure 3 As shown, the device includes: The determination module 302 is configured to determine the joint information of the controlled joints of the target robot and set the motion scaling factor for the controlled joints; The calculation module 304 is configured to calculate the motion scaling parameters corresponding to the controlled joint based on the joint information and the motion scaling coefficient, and use the motion scaling coefficient and the motion scaling parameters as constraints to perform a strategy training task for the target robot. The acquisition module 306 is configured to acquire the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the action bistate feature of the controlled joint based on the original motion information before scaling. The optimization module 308 is configured to optimize the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
[0095] In an optional embodiment, determining the joint information of the controlled joint of the target robot includes: The controlled joints of the target robot are determined, and the proportional gain information and actuator torque information of the controlled joints are read. The proportional gain information and the actuator torque information are used as the joint information of the controlled joints. The target robot includes multiple controlled joints, and each controlled joint is set with the same motion scaling factor. The step of calculating the motion scaling parameters corresponding to the controlled joints based on the joint information and the motion scaling factor includes: calculating the motion scaling parameters corresponding to the controlled joints based on the proportional gain information, the actuator torque information, and the motion scaling factor.
[0096] In an optional embodiment, the step of using the motion scaling factor and the motion scaling parameter as constraints to perform a policy training task for the target robot includes: Write the motion scaling factor and the motion scaling parameter into the motion interface of the training environment corresponding to the target robot; based on the writing result, set the motion scaling factor and the motion scaling parameter to remain unchanged, and perform a policy training task for the target robot.
[0097] In an optional embodiment, the step of collecting the original motion information of the controlled joint before scaling during the execution state of the policy training task, and constructing the bi-state motion features of the controlled joint based on the original motion information before scaling, includes: When the policy training task is completed, a deterministic policy evaluation is performed based on the policy network corresponding to the policy training task. Under the condition of removing policy exploration noise, the original motion information before scaling of the controlled joint is collected, and the step of constructing the action bistate feature of the controlled joint based on the original motion information before scaling is performed.
[0098] In an optional embodiment, the action bistate feature is constructed using the following formula:
[0099] in, This indicates the bistate characteristics of an action. H represents the original motion information before scaling, H represents the control timing information, and N represents the trajectory information.
[0100] In an optional embodiment, optimizing the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined includes: The following steps are taken: First, determine the target action bi-state features corresponding to the controlled joint. Second, calculate the intermediate action scaling factor of the controlled joint in the current coefficient update cycle based on the target action bi-state features, the action bi-state features, and the action scaling factor. Third, calculate the intermediate action scaling parameter based on the intermediate action scaling factor and the joint information. Fourth, use the intermediate action scaling factor as the action scaling factor and the intermediate action scaling parameter as the action scaling parameter, and perform a policy training task for the target robot using the action scaling factor and the action scaling parameter as constraints. Fifth, until the action scaling factor corresponding to the target coefficient update cycle satisfies the coefficient update condition, use the action scaling factor corresponding to the target coefficient update cycle as the target action scaling factor corresponding to the controlled joint.
[0101] In an optional embodiment, the action scaling factor corresponding to any coefficient update cycle is determined by the following formula:
[0102] in, This represents the action scaling factor in the k+1 coefficient update cycle. This represents the action scaling factor during the k-coefficient update cycle. This represents the bistate feature of the action corresponding to the update cycle of coefficient k. This represents the dual-state characteristics of the target action.
[0103] In an optional embodiment, after the step of optimizing the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined, the method further includes: Given the target motion scaling coefficients corresponding to the multiple controlled joints of the target robot, the target motion scaling parameters corresponding to each controlled joint are calculated based on the target motion scaling coefficients. The policy network of the target robot is trained according to the target motion scaling parameters and target motion scaling coefficients corresponding to each controlled joint. When the policy network training is completed, the trained policy network is configured for the target robot, and the corresponding target motion scaling coefficients are configured for each controlled joint.
[0104] The above is a schematic scheme of a motion scaling factor determination device according to this embodiment. It should be noted that the technical solution of this motion scaling factor determination device and the technical solution of the motion scaling factor determination method described above belong to the same concept. For details not described in detail in the technical solution of the motion scaling factor determination device, please refer to the description of the technical solution of the motion scaling factor determination method described above.
[0105] Figure 4 A structural block diagram of a computing device 400 according to one embodiment of this specification is shown. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and a database 450 is used to store data.
[0106] The computing device 400 also includes an access device 440, which enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 440 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, or a Near Field Communication (NFC) interface.
[0107] In one embodiment of this specification, the aforementioned components of the computing device 400 and Figure 4 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 4 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0108] The computing device 400 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 400 can also be a mobile or stationary server.
[0109] The processor 420 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the above-described method for determining the action scaling factor.
[0110] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the motion scaling factor determination method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the motion scaling factor determination method described above.
[0111] An embodiment of this specification also provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the above-described method for determining the motion scaling factor.
[0112] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the motion scaling factor determination method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the motion scaling factor determination method described above.
[0113] An embodiment of this specification also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method for determining the motion scaling factor.
[0114] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the motion scaling factor determination method described above belong to the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the motion scaling factor determination method described above.
[0115] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0116] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or certain intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0117] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.
[0118] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0119] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described in this specification. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification.
Claims
1. A method for determining motion scaling factors, characterized in that, include: Determine the joint information of the controlled joints of the target robot, and set the motion scaling factor for the controlled joints; The motion scaling parameters corresponding to the controlled joint are calculated based on the joint information and the motion scaling factor, and the motion scaling factor and the motion scaling parameters are used as constraints to perform a strategy training task for the target robot. Collect the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the bi-state motion features of the controlled joint based on the original motion information before scaling; The motion scaling factor is optimized based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
2. The method for determining the motion scaling factor according to claim 1, characterized in that, The determination of the joint information of the controlled joints of the target robot includes: The controlled joints of the target robot are determined, and the proportional gain information and actuator torque information of the controlled joints are read. The proportional gain information and actuator torque information are used as the joint information of the controlled joints. The target robot contains multiple controlled joints, and each controlled joint is set with the same motion scaling factor. The step of calculating the motion scaling parameters corresponding to the controlled joint based on the joint information and the motion scaling coefficient includes: The motion scaling parameters corresponding to the controlled joint are calculated based on the proportional gain information, the actuator torque information, and the motion scaling coefficient.
3. The method for determining the motion scaling factor according to claim 1, characterized in that, The step of using the motion scaling factor and the motion scaling parameter as constraints to perform a policy training task for the target robot includes: Write the motion scaling factor and the motion scaling parameter into the motion interface of the training environment corresponding to the target robot; Based on the writing results, the motion scaling factor and the motion scaling parameter are kept unchanged, and a policy training task is performed for the target robot.
4. The method for determining the motion scaling factor according to claim 1, characterized in that, The process of collecting the original motion information of the controlled joint before scaling during the execution of the strategy training task, and constructing the bi-state motion features of the controlled joint based on the original motion information before scaling, includes: When the policy training task is completed, a deterministic policy evaluation is performed based on the policy network corresponding to the policy training task. Under the condition of removing policy exploration noise, the original motion information before scaling of the controlled joint is collected, and the step of constructing the action bistate feature of the controlled joint based on the original motion information before scaling is performed.
5. The method for determining the motion scaling factor according to claim 4, characterized in that, The action bistate feature is constructed using the following formula: in, This indicates the bistate characteristics of an action. H represents the original motion information before scaling, H represents the control timing information, and N represents the trajectory information.
6. The method for determining the motion scaling factor according to claim 1, characterized in that, The optimization of the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined includes: Determine the target action dual-state feature corresponding to the controlled joint, and calculate the intermediate action scaling factor of the controlled joint in the current coefficient update cycle based on the target action dual-state feature, the action dual-state feature and the action scaling factor; Calculate the intermediate motion scaling parameters based on the intermediate motion scaling factor and the joint information; The intermediate motion scaling factor is used as the motion scaling factor, the intermediate motion scaling parameter is used as the motion scaling parameter, and the steps of using the motion scaling factor and the motion scaling parameter as constraints to perform a policy training task for the target robot are executed. Until the motion scaling factor corresponding to the target coefficient update cycle meets the coefficient update condition, the motion scaling factor corresponding to the target coefficient update cycle is used as the target motion scaling factor corresponding to the controlled joint.
7. The method for determining the motion scaling factor according to claim 6, characterized in that, The action scaling factor corresponding to any coefficient update cycle is determined by the following formula: in, This represents the action scaling factor in the k+1 coefficient update cycle. This represents the action scaling factor during the k-coefficient update cycle. This represents the bistate feature of the action corresponding to the update cycle of coefficient k. This represents the dual-state characteristics of the target action.
8. The method for determining the motion scaling factor according to any one of claims 1 to 7, characterized in that, After the step of optimizing the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined is executed, the method further includes: Given that the target motion scaling factor is determined for each of the multiple controlled joints of the target robot, the target motion scaling parameter for each controlled joint is calculated based on the target motion scaling factor. The policy network of the target robot is trained based on the target motion scaling parameters and target motion scaling coefficients corresponding to each controlled joint. Once the policy network training is complete, the trained policy network is configured for the target robot, and a corresponding target motion scaling factor is configured for each controlled joint.
9. A device for determining motion scaling factor, characterized in that, include: The determination module is configured to determine the joint information of the controlled joints of the target robot and set the motion scaling factor for the controlled joints; The calculation module is configured to calculate the motion scaling parameters corresponding to the controlled joint based on the joint information and the motion scaling coefficient, and use the motion scaling coefficient and the motion scaling parameters as constraints to perform a strategy training task for the target robot. The acquisition module is configured to acquire the original motion information of the controlled joint before scaling under the execution state of the strategy training task, and construct the action bistate feature of the controlled joint based on the original motion information before scaling. The optimization module is configured to optimize the motion scaling factor based on the target motion dual-state features of the controlled joint and the motion dual-state features until the target motion scaling factor corresponding to the controlled joint is determined.
10. A computing device, characterized in that, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, It stores computer-executable instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that, It includes a computer program or instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1 to 8.
