Control system and method for zero steady-state error tracking of contact force of mechanical arm
Through the reinforcement learning algorithm combined with the admittance controller, the learning rate is optimized to achieve zero steady-state error tracking of the robotic arm contact force, which solves the steady-state error problem during the robotic arm contact force tracking process and realizes the contact force between the robotic arm and the environment. accurate tracking and secure remote operations.
Patent Information
- Application Number
- CN202410977389.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-22
AI Technical Summary
There is a steady-state error in the contact force tracking process of the robotic arm. The existing control algorithm cannot effectively solve the complex contact force tracking problem, and the control system and strategy are imperfect.
The reinforcement learning algorithm is combined with the admittance controller, and the desired position is adjusted by collecting actual contact force and position data. The learning rate scheduler is used to optimize the learning rate, and the relationship between the contact force change rate and the learning rate is established to achieve zero rotation at the end of the robotic arm. Steady-state error tracking.
It achieves accurate tracking of the contact force between the robotic arm and the environment, with a steady-state error of 0. It is simple to operate, safe and convenient, and is suitable for remote operations in complex environments.
Smart Images

Figure CN118809599A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a control system and method for zero steady-state error tracking of a contact force of a mechanical arm, and belongs to the technical field of artificial intelligence. Background Art
[0002] With the widespread application of robotic arms in industry and service fields, the demand for contact force control of robotic arms is increasing. In some tasks, precise control of the contact force between the robotic arm and the external object is essential for safety, precision and efficiency. For example, important oil pipelines on the seabed need to be inspected and maintained regularly to maintain their normal operation and avoid leakage accidents. In this environment, the robotic arm is required to perform anomaly detection and maintenance tasks based on contact force control. In addition, during the assembly process, the robotic arm is required to grasp and install parts with appropriate contact force to avoid part damage or assembly errors. Therefore, the development of technology that can achieve contact force tracking has become a focus of research and industry.
[0003] Since the robot itself can be regarded as a PID control system, there is a steady-state error in the process of tracking the desired contact force. At the same time, the realization of contact force tracking requires comprehensive consideration of the dynamics, mechanical characteristics and control strategy of the robot. The current control algorithm may not be able to fully solve the problem of complex contact force tracking. It can be seen that designing effective control strategies suitable for different tasks and environments is a challenging task. The existing contact force tracking technology between the robot and the environment has the following defects: (1) The steady-state error of the desired contact force tracking is not 0 or is too different from 0; (2) The control system and strategy are not perfect. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a control system and method for tracking the zero steady-state error of the contact force of a robotic arm, which can achieve a steady-state error of zero in the control system and ensure that the contact force between the robotic arm and the environment is equal to the preset expected contact force.
[0005] To achieve the above object, the present invention is implemented by adopting the following technical solutions: On the one hand, the present invention provides a control system for zero steady-state error tracking of the contact force of a robot arm, comprising: a collection device for collecting the actual contact force between the end of the robot arm and the environment and the actual position of the end of the robot arm; a control device for obtaining an updated position of the end of the robot arm based on the collected actual contact force and the actual position of the end of the robot arm and the preset expected contact force and expected position; an execution device for receiving the updated position of the end of the robot arm and controlling the robot arm to a corresponding state according to the updated position of the end of the robot arm; wherein the control device comprises an admittance controller integrating a reinforcement learning algorithm; the reinforcement learning algorithm takes the force error between the actual contact force and the preset expected contact force and the actual position of the end of the robot arm as input, and obtains an expected position adjustment amount as output; the preset expected position is adjusted using the expected position adjustment amount, and after the expected position is adjusted, the admittance controller outputs the updated position of the end of the robot arm according to the input force error.
[0006] Furthermore, the optimizer of the reinforcement learning algorithm includes a learning rate scheduler, and the learning rate scheduler is used to establish a correlation relationship between the rate of change of the contact force and the learning rate.
[0007] Furthermore, the correlation between the change rate of the contact force and the learning rate includes: the learning rate The expression is: ; in, is the initial learning rate, is the adjustment parameter; is the rate of change of contact force; The rate of change of the contact force The expression is: ; in, and are the actual contact forces at the current time step and the previous time step respectively; Indicates the time taken to complete the current time step.
[0008] Furthermore, the loss function of the reinforcement learning algorithm includes a compensation term, and the compensation term expression is: ; in, is the entropy of the Actor network output action, is the strategy function of the Actor network; is the square of the norm of the Actor network space parameter, is a constant term, s is the state, is a function of the action with respect to the state.
[0009] Furthermore, the parameters of the loss function are The update method is: ; in, and are the parameters in the loss function for the next time step and the current time step respectively; is a small positive constant used to ensure that the divisor is not 0. and They are the first-order moment estimate and the second-order moment estimate after gradient correction, respectively.
[0010] Furthermore, the reinforcement learning algorithm adopts a deep deterministic policy gradient algorithm.
[0011] Furthermore, the control system is built in Simulink.
[0012] Furthermore, the robotic arm includes a seven-degree-of-freedom robotic arm.
[0013] Furthermore, the execution device includes a computer equipped with an Ubuntu system; the computer is equipped with an inverse kinematics algorithm.
[0014] On the other hand, the present invention provides a control method for zero steady-state error tracking of contact force of a robot arm, comprising: Collect the actual contact force between the end of the robot arm and the environment and the actual position of the end of the robot arm; Obtaining an updated position of the end of the robotic arm according to the collected actual contact force and actual position of the end of the robotic arm and the preset expected contact force and expected position; Sending the updated position of the end of the robot arm to the execution device, so that the execution device controls the robot arm to a corresponding state according to the updated position of the end of the robot arm; Wherein, obtaining the updated position of the end of the robotic arm according to the collected actual contact force and the actual position of the end of the robotic arm and the preset expected contact force and expected position includes: The force error between the actual contact force and the preset expected contact force and the actual position of the end of the robot arm are used as the input of the reinforcement learning algorithm, and the expected position adjustment amount is obtained as the output of the reinforcement learning algorithm. The expected position adjustment amount is used to adjust the preset expected position; after the expected position is adjusted, the updated position of the end of the robot arm is output according to the input force error.
[0015] Compared with the prior art, the present invention has the following beneficial effects: (1) The control system provided by the present invention adopts an admittance control system integrated with a reinforcement learning algorithm. The reinforcement learning algorithm is used to establish a mapping relationship between the error between the actual contact force and the expected contact force and the expected position adjustment amount. The expected position adjustment amount is used to adjust the preset expected position to make it more reasonable, and the end position of the robot arm is gradually adjusted to the optimal position, so that the actual contact force between the robot arm and the object is equal to the expected contact force, and the steady-state error of the system is 0; (2) The reinforcement learning algorithm used in the present invention establishes a correlation between the change rate of the contact force and the learning rate through a learning rate scheduler designed in the optimizer, and realizes the influence of the change rate of the contact force on the parameter update of the loss function through the learning rate, so that the desired position adjustment value obtained is more accurate; (3) The control method provided by the present invention only requires the operator to sit in front of the control device and set the expected contact force. The robot arm can operate remotely in a dangerous environment alone, which is simple, safe and convenient to operate. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a structural schematic diagram of a control system embodiment 1 of the robot arm contact force zero steady-state error tracking of the present invention; Figure 2 It is the control flow chart in Example 4 of the control method for zero steady-state error tracking of the contact force of the robot arm of the present invention. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention. Example 1
[0018] like Figure 1 As shown, in Example 1, a control system for zero steady-state error tracking of contact force of a robot arm is provided, comprising: a host computer, a slave computer and a force sensor installed at the end of a Baxter robot arm connected to the same local area network, the host computer is an improved admittance control system integrating a reinforcement learning algorithm, and the control system is built in simulink; the slave computer is a laptop computer equipped with an Ubuntu system and equipped with an inverse kinematics algorithm, and the control of the robot arm by the slave computer is achieved by performing kinematic modeling of the Baxter robot arm and designing an inverse kinematics algorithm on the slave computer, data is transmitted between the slave computer and the host computer via UDP, the force sensor is installed at the end of the robot arm, and communicates with the slave computer via USB.
[0019] In the existing admittance control system, the model admittance parameters and the environmental stiffness are both semi-positive definite diagonal matrices, and there will be no coupling between the models. Therefore, the admittance control model of the manipulator can be regarded as decoupled in each direction. At the same time, this also facilitates the derivation of the formula. Therefore, when only considering the manipulator being subjected to a single-directional force in space, the admittance control formula can be simply regarded as: ; in, , , They represent the acceleration, velocity and position of the end of the manipulator in one direction output by the admittance control system, respectively. , , They respectively represent the expected acceleration, velocity and position of the preset robotic arm end in one direction.
[0020] In this embodiment, the reinforcement learning algorithm uses the force error between the actual contact force and the preset expected contact force and the actual position of the robot arm end as input, and the expected position adjustment amount as output to perform reinforcement learning training; each training makes the robot arm contact objects in the environment, and observes and learns the error between the actual contact force and the expected contact force in the stable state; until the training results converge, the learned model parameters and the expected position adjustment value are obtained; then the expected position adjustment amount is used to adjust the expected acceleration, velocity and position of the robot arm end in one direction preset in the existing admittance controller, and the output acceleration, velocity and position of the robot arm end in one direction are obtained from the adjusted expected position as the updated position of the robot arm end. Example 2
[0021] Based on Example 1, this embodiment sets the reinforcement learning algorithm to a deep deterministic policy gradient algorithm, namely, a DDPG algorithm.
[0022] The adaptive learning rate and local gradient information limitations of the traditional Adam algorithm can easily cause the agent to fall into a local optimal solution. In addition, the actual contact force in the present invention will change over a large range and quickly in the early stages of training, which may cause the learning rate to be unable to be adjusted in time to adapt to the rate and magnitude of contact force changes. Therefore, this embodiment optimizes the learning rate to avoid reinforcement learning from falling into a local optimal solution during training.
[0023] In this embodiment, the optimizer of the DDPG algorithm includes a learning rate scheduler, which is used to establish a correlation relationship between the change rate of the contact force and the learning rate, specifically including: Learning Rate The expression is: ; in, is the initial learning rate, is the adjustment parameter; is the rate of change of contact force; The rate of change of the contact force The expression is: ; in, and are the actual contact forces at the current time step and the previous time step respectively; Indicates the time taken to complete the current time step. Example 3
[0024] Based on Example 2, this embodiment adds a compensation term to the loss function of the DDPG algorithm. The compensation term expression is: ; in, is the entropy of the Actor network output action, is the strategy function of the Actor network; is the square of the norm of the Actor network space parameter, is a constant term, s is the state, is a function of the action with respect to the state.
[0025] In this embodiment, the parameters of the loss function are The update method is: ; in, and are the parameters in the loss function for the next time step and the current time step respectively; is a small positive constant used to ensure that the divisor is not 0. and They are the first-order moment estimate and the second-order moment estimate after gradient correction, respectively.
[0026] Example 4 like Figure 2 As shown, this embodiment provides a control method for zero steady-state error tracking of a contact force of a robot arm, including: a host computer collects the actual position of the end of the Baxter robot arm and the actual contact force between the end of the Baxter robot arm and the environment; obtains an updated position of the end of the Baxter robot arm according to the collected actual contact force and actual position and the preset expected contact force and expected position; sends the updated position of the end of the Baxter robot arm to a lower computer, so that the lower computer controls the Baxter robot arm to a corresponding state according to the updated position of the end of the Baxter robot arm; Among them, the updated position of the end of the Baxter robot arm is obtained according to the collected actual contact force and actual position and the preset expected contact force and expected position, including: taking the force error between the actual contact force and the preset expected contact force and the actual position of the end of the Baxter robot arm as the input of the reinforcement learning algorithm, obtaining the output of the reinforcement learning algorithm - the expected position adjustment amount, and using the expected position adjustment amount to adjust the preset expected position; after the expected position is adjusted, the updated position of the end of the Baxter robot arm is output according to the input force error.
[0027] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A control system for zero steady-state error tracking of contact force of a robot arm, characterized in that: include: A collection device, used for collecting the actual contact force between the end of the robot arm and the environment and the actual position of the end of the robot arm; A control device, used for obtaining an updated position of the end of the robot arm according to the collected actual contact force and actual position of the end of the robot arm and the preset expected contact force and expected position; An execution device, used for receiving the updated position of the end of the robot arm and controlling the robot arm to a corresponding state according to the updated position of the end of the robot arm; Wherein, the control device includes an admittance controller incorporating a reinforcement learning algorithm; The reinforcement learning algorithm takes the force error between the actual contact force and the preset expected contact force and the actual position of the end of the robot arm as input, and obtains the expected position adjustment amount as output; the preset expected position is adjusted using the expected position adjustment amount, and after the expected position is adjusted, the admittance controller outputs the updated position of the end of the robot arm according to the input force error.
2. The control system according to claim 1, characterized in that: The optimizer of the reinforcement learning algorithm includes a learning rate scheduler, which is used to establish a correlation relationship between the rate of change of the contact force and the learning rate.
3. The control system according to claim 2, characterized in that: The correlation between the change rate of the contact force and the learning rate includes: The expression is: ; in, is the initial learning rate, is the adjustment parameter; is the rate of change of contact force; The rate of change of the contact force The expression is: ; in, and are the actual contact forces at the current time step and the previous time step respectively; Indicates the time taken to complete the current time step.
4. The control system according to claim 3, characterized in that: The loss function of the reinforcement learning algorithm includes a compensation term, and the compensation term expression is: ; in, is the entropy of the Actor network output action, is the strategy function of the Actor network; is the square of the norm of the Actor network space parameter, is a constant term, s is the state, is a function of the action with respect to the state.
5. The control system according to claim 4, characterized in that: The parameters of the loss function are The update method is: ; in, and are the parameters in the loss function for the next time step and the current time step respectively; is a small positive constant used to ensure that the divisor is not 0. and They are the first-order moment estimate and the second-order moment estimate after gradient correction, respectively.
6. The control system according to any one of claims 1 to 5, characterized in that: The reinforcement learning algorithm adopts a deep deterministic policy gradient algorithm.
7. The control system according to any one of claims 1 to 5, characterized in that: The control system is built in simulink.
8. The control system according to any one of claims 1 to 5, characterized in that: The robotic arm comprises a seven-degree-of-freedom robotic arm.
9. The control system according to claim 1, characterized in that: The execution device includes a computer equipped with an Ubuntu system; the computer is equipped with an inverse kinematics algorithm.
10. A control method for zero steady-state error tracking of contact force of a robot arm, characterized in that: include: Collect the actual contact force between the end of the robot arm and the environment and the actual position of the end of the robot arm; Obtaining an updated position of the end of the robotic arm according to the collected actual contact force and actual position of the end of the robotic arm and the preset expected contact force and expected position; Sending the updated position of the end of the robot arm to the execution device, so that the execution device controls the robot arm to a corresponding state according to the updated position of the end of the robot arm; Wherein, obtaining the updated position of the end of the robotic arm according to the collected actual contact force and the actual position of the end of the robotic arm and the preset expected contact force and expected position includes: The force error between the actual contact force and the preset expected contact force and the actual position of the end of the robot arm are used as the input of the reinforcement learning algorithm, and the expected position adjustment amount is obtained as the output of the reinforcement learning algorithm. The expected position adjustment amount is used to adjust the preset expected position; after the expected position is adjusted, the updated position of the end of the robot arm is output according to the input force error.
Citation Information
Patent Citations
Tracking differentiator-based cooperative control method for tail end position of mechanical arm and force-variable impedance
CN116079739A
Implementation method and device of machine learning model
CN116225687A
Robot force compliance control method based on variable speed impedance control
CN116852356A
Modeling method of robot surface treatment contact force control model based on variable impedance
CN117086880A
Variable-batch-length iterative learning optimization control method for mobile robot
WO2022088471A1
Cited By
Multi-mechanical-arm synchronous control system based on position instruction
CN119820560A
