Flexible control method and system for robot skill reproduction
By constructing dynamics and environment models, correcting the desired trajectory and verifying the stability of the impedance control model, the problem of rigidity and low safety in the robot skill reproduction process is solved, better environmental adaptability and human-machine collaboration are achieved, and the Application scope.
Patent Information
- Application Number
- CN202410728383.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing robots exhibit rigidity, low safety, and low environmental adaptability during skill reproduction, making it difficult to achieve good human-machine collaboration and having limited application scope, especially in tasks that require interaction between the robot and the environment. .
By constructing the robot's dynamic model and environment model, correcting the desired trajectory and constructing an impedance control model, using Lyapunov equations to verify stability, a compliant control method for robot skill reproduction is implemented, and the robot's adaptability and stability to the external environment are improved. .
It improves the stability and anti-interference ability of the robot, achieves better compliance and environmental adaptability, enables the robot to show compliance during the trajectory reproduction process, expands the scope of application, and achieves good human-machine collaboration.
Smart Images

Figure CN118769236A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of human-computer interaction, and in particular relates to a compliant control method and system for robot skill reproduction. Background Art
[0002] When humans and machines collaborate, humans can use their wisdom and flexibility, while robots can collaborate with humans to complete some complex, high-precision, and high-load tasks with their high precision and high reliability. In current industrial production, industrial robots are widely used with high repeatability and high reliability to replace humans in completing some simple, repetitive single tasks.
[0003] However, with the continuous improvement of production requirements, robots have shown certain limitations in the process of reproducing human skills: (1) The working area of the robot needs to be strictly specified during work, making it difficult to achieve good human-machine collaboration; (2) The robot's movement process is rigid, with low safety and robustness, and cannot be humanized, and has low accuracy; (3) Traditional skill reproduction methods assume that the robot has no contact force with the external environment or the contact force can be ignored when working, which makes it difficult to apply to some tasks that require the robot to generate interaction force with the environment, such as constant force grinding, polishing, zero-force dragging, etc., and the scope of application is small. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a compliant control method and system for robot skill reproduction, so that the robot can achieve skill reproduction more stably and improve safety and environmental adaptability.
[0005] The present invention provides the following technical solutions: In a first aspect, a compliant control method for robot skill reproduction is provided, comprising: obtaining an original desired trajectory that the robot needs to reproduce, inputting a pre-constructed impedance control model, and controlling the robot to complete skill reproduction; wherein, the construction process of the impedance control model comprises: constructing a dynamic model of the robot to obtain the dynamic parameters of the robot; based on the dynamic model of the robot and different environmental models, correcting the desired trajectory of the robot, and constructing a dynamic force tracking equation between the corrected desired trajectory and the actual trajectory; based on the dynamic force tracking equation, constructing a Lyapunov equation, and verifying the stability of the impedance control model through the Lyapunov equation, to obtain the impedance control model that meets the stability conditions.
[0006] As an optional technical solution of the present invention, the construction of the dynamic model of the robot includes: The robot is dynamically modeled using the Lagrangian method, and the dynamic parameters are expressed as: (1) Among them, t Indicates that at time stept Down, Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Indicates that at time step t The angular velocity of the robot joints, Indicates that at time step t The angular acceleration of the robot joints is , and are obtained by the encoders in the robot joints. represents the mass matrix, represents the centripetal force and the Coriolis force, Represents gravity.
[0007] As an optional technical solution of the present invention, in the time step t Under this condition, the robot joint angular displacement Through the pose transformation matrix Mapped to the end of the robot, the end of the robot produces displacement ; At time step t Under this condition, the robot joint angular velocity Through the Jacobian matrix Mapped to the end of the robot, the robot end generates speed ; At time step t Under this condition, the robot joint angular velocity and joint angular acceleration Through the Jacobian matrix and Mapped to the end of the robot, the end of the robot generates acceleration .
[0008] As an optional technical solution of the present invention, the original desired trajectory is input into a pre-acquired impedance controller, and the trajectory deviation is converted into a force deviation, which is expressed as: (2) Among them, Expressed as the stiffness matrix of the impedance controller, Expressed as the damping matrix of the impedance controller, Expressed as the inertia matrix of the impedance controller, represents the original desired trajectory of the robot, Indicates that at time step t The actual trajectory of the robot. represents the original desired velocity of the robot, Indicates that at time step tThe actual speed of the robot. represents the original expected acceleration of the robot, Indicates that at time step t The actual acceleration of the robot is Indicates that at time step t The reaction force of the downward force deviation, , and They are all orthogonal matrices; At time step t Force deviation under It is expressed as: (3) Among them, Represents the previous time step The robot end contact force under Represents the previous time step The expected contact force of the robot under The time step t Force deviation under Input the robot joint controller and get the time step based on equation (1): t The robot end contact force under , expressed as: (4) Among them, Represents the force Jacobian matrix The pseudo-inverse matrix of Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Represents gravity.
[0009] As an optional technical solution of the present invention, the desired trajectory of the corrected robot includes: Construct an impedance control model in a single direction; At time step t Actual force deviation in a single direction It is expressed as: (5) in, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient; Based on formula (5), the time step t Lower revised expected trajectory It is expressed as: (6) Among them, Represents the time step t The position compensation item under Represents the time stept The fixed offset of the desired trajectory of the robot, Indicated by The offset caused by Indicated by The offset caused by express The first derivative of .
[0010] As an optional technical solution of the present invention, the construction of the dynamic force tracking equation between the modified desired trajectory and the actual trajectory includes: Based on equation (6), the dynamic equation of the force tracking error of the impedance control model in a single direction is expressed as: (7) Among them, represents the environmental stiffness, Indicates the environment location, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient, express The second-order derivative of represents the desired force in a single direction; Based on formula (7), let: (8) The second-order ideal force tracking error dynamic equation of the impedance control model in a single direction is expressed as: (9) Among them, Represents the time step t The expected force deviation under Expressed as The first derivative of Expressed as The second-order derivative of , All represent parameters; Based on equations (7) to (9), let , The dynamic force tracking equation between the modified desired trajectory and the actual trajectory is expressed as: (10).
[0011] As an optional technical solution of the present invention, the Lyapunov equation is constructed based on the dynamic force tracking equation, and the stability of the impedance control model is verified by the Lyapunov equation, which includes: Based on formula (10), the Lyapunov equation is constructed and expressed as: (11) Among them, and denotes a second-order positive definite real symmetric matrix, , , and satisfies , , x represents any non-zero vector, , , All represent constants; For non-zero and , Always holds true if and only if and When both are 0, ; Taking the derivative of formula (11), we get: (12) Among them, , , denotes a symmetric positive definite matrix, express The first derivative of express b The first derivative of express c The first derivative of represents a fixed offset from the desired trajectory of the robot; By adjusting the parameters in equation (12) The impedance control model that meets the stability condition is obtained.
[0012] In a second aspect, a compliant control system for robot skill reproduction is provided, comprising: a reproduction module, for obtaining an original desired trajectory that the robot needs to reproduce, inputting a pre-built impedance control model, and controlling the robot to complete skill reproduction; A construction module, used to construct the impedance control model, includes: Construct a dynamic model of the robot; Based on the robot's dynamic model, the robot's expected trajectory is corrected, and a dynamic force tracking equation between the corrected expected trajectory and the actual trajectory is constructed; Based on the dynamic force tracking equation, a Lyapunov equation is constructed, and the stability of the impedance control model is verified by the Lyapunov equation, so as to obtain the impedance control model that meets the stability condition.
[0013] Compared with the prior art, the present invention has the following beneficial effects: A compliant control method for robot skill reproduction provided by the present invention improves the stability and anti-interference ability of the robot. When the external environment changes, the robot can show a certain compliance as expected. The robot shows better compliance during trajectory reproduction, which improves the robot's adaptability to the external dynamic environment. There is no need to strictly stipulate the robot's working area, the applicability is wider, and good human-machine collaboration is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a schematic diagram of a compliant control method in an embodiment of the present invention; Figure 2 Schematic diagram of an impedance control model in an embodiment of the present invention. DETAILED DESCRIPTION
[0015] 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.
[0016] Example 1 This embodiment provides a compliant control method for robot skill reproduction, which is a control method based on force control. Figure 1 As shown, the deviation between the actual trajectory of the robot end and the expected trajectory is converted into joint drive to adjust the contact force between the robot end and the environment. It includes: obtaining the original expected trajectory that the robot needs to reproduce, inputting the pre-built impedance control model, and controlling the robot to complete skill reproduction.
[0017] Among them, Figure 2 As shown, the construction process of the impedance control model specifically includes the following steps: Step 1: Build the robot's dynamic model. Specifically include: Step 1.1: Use the Lagrangian method to model the robot's dynamics. The dynamic parameters are expressed as: (1) Among them, t Indicates that at time step t Down, Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Indicates that at time step t The angular velocity of the robot joints, Indicates that at time step t The angular acceleration of the robot joints is , and are obtained by the encoders in the robot joints. represents the mass matrix, represents the centripetal force and the Coriolis force, Represents gravity.
[0018] Step 1.2: At time step t Under this condition, the robot joint angular displacement Through the pose transformation matrix Mapped to the end of the robot, the end of the robot produces displacement .
[0019] At time step t Under this condition, the robot joint angular velocity Through the Jacobian matrix Mapped to the end of the robot, the robot end generates speed .
[0020] At time step t Under this condition, the robot joint angular velocity and joint angular acceleration Through the Jacobian matrix and Mapped to the end of the robot, the end of the robot generates acceleration .
[0021] Step 2: Based on the robot's dynamic model, correct the robot's expected trajectory and construct a dynamic force tracking equation between the corrected expected trajectory and the actual trajectory. Specifically include: Step 2.1, input the original desired trajectory into the pre-acquired impedance controller, and convert the trajectory deviation into a force deviation, which is expressed as: (2) Among them, Expressed as the stiffness matrix of the impedance controller, Expressed as the damping matrix of the impedance controller, Expressed as the inertia matrix of the impedance controller, represents the original desired trajectory of the robot, Indicates that at time step t The actual trajectory of the robot. represents the original desired velocity of the robot, Indicates that at time step t The actual speed of the robot. represents the original expected acceleration of the robot, Indicates that at time step t The actual acceleration of the robot is Indicates that at time step t The reaction force of the downward force deviation, , and They are all orthogonal matrices.
[0022] At time step t Force deviation under It is expressed as: (3) Among them, Represents the previous time step The robot end contact force under Represents the previous time step The expected contact force of the robot under .
[0023] The time step t Force deviation under Input the robot joint controller and get the time step based on equation (1): t The robot end contact force under , expressed as: (4) Among them, Represents the force Jacobian matrix The pseudo-inverse matrix of Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Represents gravity.
[0024] Step 2.2, the desired trajectory of the corrected robot includes: because , and They are all orthogonal matrices, and the impedance controller will not be coupled in all directions in the Cartesian space, so it is only necessary to build an impedance control model in a single direction.
[0025] At time step t Actual force deviation in a single direction It is expressed as: (5) in, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient; Based on formula (5), the time step t Lower revised expected trajectory It is expressed as: (6) Among them, Represents the time step t The position compensation item under Represents the time step t The fixed offset of the desired trajectory of the robot, Indicated by The offset caused by Indicated by The offset caused by express The first derivative of .
[0026] Furthermore, in order to adapt to different working environment stiffness and take into account the accuracy of the robot's reproduced trajectory, a position compensation term is added to the original expected trajectory. . Taking into account the actual force deviation in a single direction and force deviation first derivative Expected trajectory for the robot impact.
[0027] Step 2.3, constructing the dynamic force tracking equation between the modified desired trajectory and the actual trajectory, comprises: Based on equation (6), the dynamic equation of the force tracking error of the impedance control model in a single direction is expressed as: (7) Among them, represents the environmental stiffness, Indicates the environment location, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient, express The second-order derivative of represents the desired force in one direction.
[0028] Based on formula (7), let: (8) The second-order ideal force tracking error dynamic equation of the impedance control model in a single direction is expressed as: (9) Among them, Represents the time step t The expected force deviation under Expressed as The first derivative of Expressed as The second-order derivative of , All represent parameters.
[0029] Based on equations (7) to (9), let , The dynamic force tracking equation between the modified desired trajectory and the actual trajectory is expressed as: (10).
[0030] Step 3: Based on the dynamic force tracking equation, construct the Lyapunov equation, and verify the stability of the impedance control model through the Lyapunov equation to obtain the impedance control model that meets the stability conditions. Specifically including: Based on formula (10), the Lyapunov equation is constructed and expressed as: (11) Among them, and denotes a second-order positive definite real symmetric matrix, , , and satisfies , , x represents any non-zero vector, , , All represent constants.
[0031] For non-zero and , Always holds true if and only if and When both are 0, .
[0032] Taking the derivative of equation (11), we get: (12) Among them, , , denotes a symmetric positive definite matrix, express The first derivative of express b The first derivative of express c The first derivative of Represents a fixed offset from the desired trajectory of the robot.
[0033] By adjusting the parameters in equation (12) The impedance control model that meets the stability condition is obtained.
[0034] In this embodiment, the impedance control module includes an external loop and an internal loop. The external loop converts the trajectory deviation into a force deviation through an impedance controller, and the internal loop uses a PID method to perform closed-loop control of the joint drive torque.
[0035] Example 2 This embodiment provides a compliant control system for robot skill reproduction, including: a reproduction module, used to obtain an original desired trajectory that the robot needs to reproduce, input a pre-built impedance control model, and control the robot to complete skill reproduction; A construction module, used to construct the impedance control model, includes: Construct a dynamic model of the robot.
[0036] Based on the dynamic model of the robot, the expected trajectory of the robot is corrected, and a dynamic force tracking equation between the corrected expected trajectory and the actual trajectory is constructed.
[0037] Based on the dynamic force tracking equation, a Lyapunov equation is constructed, and the stability of the impedance control model is verified by the Lyapunov equation, so as to obtain the impedance control model that meets the stability condition.
[0038] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0039] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0040] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0041] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0042] 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 compliant control method for robot skill reproduction, characterized in that: include: Obtain the original desired trajectory that the robot needs to reproduce, input the pre-built impedance control model, and control the robot to complete skill reproduction; The construction process of the impedance control model includes: Construct a dynamic model of the robot; Based on the dynamic model of the robot, the desired trajectory of the robot is corrected, and a dynamic force tracking equation between the corrected desired trajectory and the actual trajectory is constructed; Based on the dynamic force tracking equation, a Lyapunov equation is constructed, and the stability of the impedance control model is verified by the Lyapunov equation, so as to obtain the impedance control model that meets the stability condition.
2. The compliant control method for robot skill reproduction according to claim 1, characterized in that: The construction of the dynamic model of the robot includes: The robot is dynamically modeled using the Lagrangian method, and the dynamic parameters are expressed as: (1) Among them, t Indicates that at time step t Down, Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Indicates that at time step t The angular velocity of the robot joints, Indicates that at time step t The angular acceleration of the robot joints is , and are obtained by the encoders in the robot joints. represents the mass matrix, represents the centripetal force and the Coriolis force, Represents gravity.
3. The compliant control method for robot skill reproduction according to claim 2, characterized in that: At time step t Under this condition, the robot joint angular displacement Through the pose transformation matrix Mapped to the end of the robot, the end of the robot produces displacement ; At time step t Under this condition, the robot joint angular velocity Through the Jacobian matrix Mapped to the end of the robot, the robot end generates speed ; At time step t Under this condition, the robot joint angular velocity and joint angular acceleration Through the Jacobian matrix and Mapped to the end of the robot, the end of the robot generates acceleration .
4. The compliant control method for robot skill reproduction according to claim 3, characterized in that: The original desired trajectory is input into the pre-acquired impedance controller, and the trajectory deviation is converted into a force deviation, which is expressed as: (2) Among them, Expressed as the stiffness matrix of the impedance controller, Expressed as the damping matrix of the impedance controller, Expressed as the inertia matrix of the impedance controller, represents the original desired trajectory of the robot, Indicates that at time step t The actual trajectory of the robot. represents the original desired velocity of the robot, Indicates that at time step t The actual speed of the robot. represents the original expected acceleration of the robot, Indicates that at time step t The actual acceleration of the robot is Indicates that at time step t The reaction force of the downward force deviation, , and They are all orthogonal matrices; At time step t Force deviation under It is expressed as: (3) Among them, Represents the previous time step The robot end contact force under Represents the previous time step The expected contact force of the robot under The time step t Force deviation under Input the robot joint controller and get the time step based on equation (1): t The robot end contact force under , expressed as: (4) Among them, Represents the force Jacobian matrix The pseudo-inverse matrix of Indicates that at time step t The torque of each joint of the robot is Indicates that at time step t Angular displacement of the lower robot joint, Represents gravity.
5. The compliant control method for robot skill reproduction according to claim 4, characterized in that: The desired trajectory of the corrected robot includes: Construct an impedance control model in a single direction; At time step t Actual force deviation in a single direction It is expressed as: (5) in, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient; Based on formula (5), the time step t Lower revised expected trajectory It is expressed as: (6) Among them, Represents the time step t The position compensation term under Represents the time step t The fixed offset of the desired trajectory of the robot, Indicated by The offset caused by Indicated by The offset caused by express The first derivative of .
6. The compliant control method for robot skill reproduction according to claim 5, characterized in that: The constructing of the dynamic force tracking equation between the modified desired trajectory and the actual trajectory includes: Based on equation (6), the dynamic equation of the force tracking error of the impedance control model in a single direction is expressed as: (7) Among them, represents the environmental stiffness, Indicates the environment location, m represents the quality coefficient of the unidirectional impedance control model, k represents the stiffness coefficient of the unidirectional impedance control model, b represents the damping coefficient, express The second-order derivative of represents the desired force in a single direction; Based on formula (7), let: (8) The second-order ideal force tracking error dynamic equation of the impedance control model in a single direction is expressed as: (9) Among them, Represents the time step t The expected force deviation under Expressed as The first derivative of Expressed as The second-order derivative of , All represent parameters; Based on equations (7) to (9), let , The dynamic force tracking equation between the modified desired trajectory and the actual trajectory is expressed as: (10).
7. The compliant control method for robot skill reproduction according to claim 6, characterized in that: The method of constructing a Lyapunov equation based on the dynamic force tracking equation and verifying the stability of the impedance control model through the Lyapunov equation includes: Based on formula (10), the Lyapunov equation is constructed and expressed as: (11) Among them, and denotes a second-order positive definite real symmetric matrix, , , and satisfies , , x represents any non-zero vector, , , All represent constants; For non-zero and , Always holds true if and only if and When both are 0, ; Taking the derivative of formula (11), we get: (12) Among them, , , denotes a symmetric positive definite matrix, express The first derivative of express b The first derivative of express c The first derivative of represents a fixed offset from the desired trajectory of the robot; By adjusting the parameters in equation (12) The impedance control model that meets the stability condition is obtained.
8. A compliant control system for robot skill reproduction, characterized in that: include: The reproduction module is used to obtain the original desired trajectory that the robot needs to reproduce, input the pre-built impedance control model, and control the robot to complete skill reproduction; A construction module, used to construct the impedance control model, includes: Construct a dynamic model of the robot; Based on the dynamic model of the robot, the desired trajectory of the robot is corrected, and a dynamic force tracking equation between the corrected desired trajectory and the actual trajectory is constructed; Based on the dynamic force tracking equation, a Lyapunov equation is constructed, and the stability of the impedance control model is verified by the Lyapunov equation, so as to obtain the impedance control model that meets the stability condition.
Citation Information
Patent Citations
Impedance control method and device, impedance controller and robot
CN111730599A
Impedance control method for robot-environment compliant contact process based on Zener model
CN113400313A
Hydraulic mechanical arm contact operation self-adaptive impedance control system without tail end force sensor
CN114800522A
Lower limb rehabilitation robot compliance control method
CN114848391A
Impedance control method, and controller and robot using the same
US20220009095A1
