A sliding mode control method for main and auxiliary motor cooperative drive system based on neural network
Through the sliding mode control method based on neural networks, the problem of uncoordinated movement of the main motor and auxiliary motor in the flexible joint bionic hand is solved, high-precision trajectory tracking and stability are achieved, and the motion performance of the bionic hand is improved.
Patent Information
- Application Number
- CN202410004578.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-01-03
AI Technical Summary
Due to the nonlinear characteristics and disturbances of the main motor and auxiliary motor in the existing flexible joint bionic hand, the finger movement is uncoordinated, and the trajectory tracking error cannot be effectively controlled, affecting the movement accuracy.
The sliding mode control method of the main and auxiliary motor collaborative drive system based on neural network is adopted. The disturbance term is approximated by the neural network and the sliding mode control law is designed to achieve precise control of the main motor and auxiliary motor, ensuring that the trajectory tracking error is within a small range and improving System robustness and accuracy.
Effectively controls the trajectory tracking error of the main motor and auxiliary motor, improves finger movement accuracy and system robustness, suppresses chattering, and ensures the stability and high-precision movement of the main and auxiliary motor collaborative drive system.
Smart Images

Figure CN117955396B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a sliding mode control method for a main and auxiliary motor cooperative drive system based on a neural network. Background Art
[0002] Flexible joint bionic hands have become one of the research hotspots in the field of bionic hands in recent years due to their good mechanical compliance and shape adaptability.
[0003] Among the flexible joint bionic hands currently being studied, most of them have only the flexor tendons driven by actuators, while the extensor tendons are mostly driven by a recovery system based on energy storage elements such as springs. Although this can simplify the bionic hand system, it increases the energy loss of the bionic hand during the driving process and affects its movement accuracy, sacrificing the performance of the bionic hand to a certain extent.
[0004] Based on this, the patent "A Bionic Manipulator Based on Flexible Joints" proposes a main and auxiliary motor collaborative drive mechanism for driving the fingers of a bionic hand. It abandons the energy storage and recovery system such as springs used in traditional bionic manipulators for driving, and achieves static balance of the finger movement position through the collaborative drive of the flexor tendons and extensor tendons by the main motor and auxiliary motor.
[0005] It has the following technical problems:
[0006] Due to the nonlinear characteristics of the main motor and the auxiliary motor, various disturbances, and time-varying characteristics during the transmission process, it is easy to cause uncoordinated finger movements and the trajectory tracking errors of the main motor and the auxiliary motor cannot be controlled within a small range. Summary of the invention
[0007] In view of the problems existing in the prior art, the purpose of the present invention is to provide a sliding mode control method for the main and auxiliary motor collaborative drive system based on a neural network, which can improve the collaborative driving performance of the main motor and the auxiliary motor, control the trajectory tracking errors of the main motor and the auxiliary motor within a smaller range, and improve the finger movement accuracy.
[0008] In order to achieve the above object, the present invention adopts the following technical solution:
[0009] A sliding mode control method for a main and auxiliary motor cooperative drive system based on a neural network comprises the following steps:
[0010] Model the main and auxiliary motor cooperative drive system and determine the motion relationship between the main motor and the auxiliary motor;
[0011] Design of sliding mode controller for main and auxiliary motor cooperative drive system based on neural network, inputting preset main motor target trajectory and motion relationship between main motor and auxiliary motor into sliding mode controller to obtain sliding mode control law;
[0012] The sliding mode control law is input into the main and auxiliary motor coordinated drive system to achieve precise control of the main and auxiliary motors.
[0013] Furthermore, the motion relationship between the main motor and the auxiliary motor is:
[0014] l s =f2(l m );
[0015] l m The displacement of the tendon caused by the main motor movement, l s The displacement of the tendon caused by the movement of the auxiliary motor.
[0016] Furthermore, in the simulation example, the motion relationship between the main motor and the auxiliary motor is taken as:
[0017]
[0018] Furthermore, the controller design steps include,
[0019] The dynamic equations of the main and auxiliary motors are:
[0020]
[0021] Among them, l m and l s are the displacement of the tendon caused by the movement of the main and auxiliary motors, μ m and μ s They are the control inputs for the main motor and auxiliary motor respectively. and They are the various external disturbances suffered by the main motor and the auxiliary motor respectively;
[0022] The control target is that the main motor follows the target trajectory l t =f1(t) When the auxiliary motor moves, it follows the main motor, and the relationship between the corresponding tendon displacements of the two satisfies: l s =f2(l m );
[0023] The preset main motor target trajectory is:
[0024] f1(t)=-0.000039936t 3 +0.0032366t 2 +0.34478t-0.17236;
[0025] The disturbance term δ(x) is approximated by using RBF neural network;
[0026] The RBF neural network is designed as:
[0027]
[0028]
[0029] Where X is the input vector, C j is the center value of the jth basis function, b j represents the normalization constant for the width of the j-th center point of the basis function, is a Gaussian function, W∈R q×2 is the ideal weight of the neural network, ε(X) is the approximation error, and ε N is the upper limit of the approximation error ε(X);
[0030] The network output is:
[0031]
[0032]
[0033] in, is the estimated value of W;
[0034] For the main motor and auxiliary motor, the sliding mode functions are taken respectively:
[0035]
[0036] make
[0037] Among them, e m = l m -l t , e s = l s -f2(l m ),but α m , α s is the error amplification factor of the sliding surface function; then
[0038]
[0039] Using the exponential reaching law, we have: Where ε>0, k>0, the switching function g(s)=sgns, we get:
[0040]
[0041] Based on this, the sliding mode control law is designed as:
[0042]
[0043] Furthermore, before the sliding mode control law is input into the main and auxiliary motor cooperative drive system, there is a system stability proof step to determine whether the proposed sliding mode control law can make the system in a stable state.
[0044] Furthermore, the system stability is proved as follows,
[0045] Define the Lyapunov function as:
[0046]
[0047] Among them, β m >0,β s >0;
[0048]
[0049]
[0050] because but:
[0051]
[0052] Among them, |ε m |≤ε M ,|ε s |≤ε S ,but:
[0053]
[0054] The designed adaptive law is: but:
[0055]
[0056] when When m =s s = 0, according to the LaSalle invariant set principle, the closed-loop system is asymptotically stable, that is, when t→∞, s m →0,s s →0, therefore, the main and auxiliary motor cooperative drive system is stable under the controller.
[0057] Furthermore, the hyperbolic tangent function is introduced Instead of switching function g(s)=sgns to reduce chattering in sliding mode control,
[0058] The hyperbolic tangent function is as follows:
[0059]
[0060] In general, the present invention has the following advantages:
[0061] The present invention uses a neural network to approximate the model uncertainty and various external disturbances in the main and auxiliary motor cooperative drive system, and solves problems such as motion incoordination caused by nonlinear characteristics, various disturbances, and time-varying characteristics in the transmission process between the motors involved in the main and auxiliary motor cooperative system. When the main motor and the auxiliary motor are inconsistent in force and external disturbances, the main motor can accurately track its motion trajectory, and the auxiliary motor can follow the movement of the main motor accordingly. The present invention can control the trajectory tracking errors of the main motor and the auxiliary motor to remain within a small range, thereby improving the robustness, trajectory tracking accuracy, and vibration suppression performance of the main and auxiliary motor cooperative drive system. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a flow chart of a sliding mode control method of a main and auxiliary motor cooperative drive system based on a neural network of the present invention.
[0063] Figure 2 These are the target trajectories of the main motor and the auxiliary motor under the action of two different controllers in the embodiment of the present invention.
[0064] Figure 3 It is the trajectory tracking response of the main motor and the auxiliary motor under the action of two different controllers in the embodiment of the present invention.
[0065] Figure 4 It is the trajectory tracking error of the main motor and the auxiliary motor under the action of two different controllers in the embodiment of the present invention.
[0066] Figure 5 It is the control signal output by the controller to the main motor and the auxiliary motor in the embodiment of the present invention.
[0067] Figure 6 It is a structural schematic diagram of the main and auxiliary motor cooperative driving mechanism in an embodiment of the present invention.
[0068] In the figure:
[0069] 1- Main motor, 2- Finger, 3- Tendon, 4- Auxiliary motor. DETAILED DESCRIPTION
[0070] The present invention will be described in further detail below.
[0071] like Figure 1 , Figure 6 As shown, a sliding mode control method for a main and auxiliary motor cooperative drive system based on a neural network comprises the following steps:
[0072] S1: Modeling the main and auxiliary motor cooperative drive system to determine the motion relationship between the main motor 1 and the auxiliary motor 4;
[0073] S2. Design of sliding mode controller for main and auxiliary motor cooperative drive system based on neural network, inputting preset target trajectory of main motor 1 and motion relation between main motor 1 and auxiliary motor 4 into sliding mode controller to obtain sliding mode control law;
[0074] S3, system stability proof, confirm that the proposed sliding mode control law can make the system in a stable state;
[0075] S4. Input the sliding mode control law into the main and auxiliary motor coordinated drive system.
[0076] In the above S1, the kinematic model of the main and auxiliary motors is constructed to determine the motion relationship between the main motor 1 and the auxiliary motor 4 as follows: s =f2(l m ).
[0077] In S2, a sliding mode controller for the main and auxiliary motor cooperative drive system based on a neural network is designed, specifically:
[0078] The dynamic equations of the main and auxiliary motors are:
[0079]
[0080] Among them, l m and l s are the displacements of the tendon 3 caused by the rotation of the main motor 1 and the auxiliary motor 4, μ m and μ s They are the control inputs of the main motor 1 and the auxiliary motor 4 respectively. and They are the various external disturbances to which the main motor 1 and the auxiliary motor 4 are subjected.
[0081] The control target is that the main motor 1 follows the target trajectory l t =f1(t), the auxiliary motor 4 follows the main motor 1. The relationship between the corresponding tendon 3 displacements of the two satisfies: l s =f2(l m ).
[0082] The preset target trajectory of main motor 1 is:
[0083] f1(t)=-0.000039936t 3 +0.0032366t 2 +0.34478t-0.17236;
[0084] RBF neural network has good approximation performance and generalization ability. RBF neural network is used to approximate the disturbance term δ(x).
[0085] The RBF neural network is designed as:
[0086]
[0087]
[0088] Where X is the input vector, C j is the center value of the jth basis function, b j represents the normalization constant for the width of the j-th center point of the basis function, is a Gaussian function, W∈R q×2 is the ideal weight of the neural network. ε(X) is the approximation error, ε N is the upper limit of the approximation error ε(X).
[0089] The network output is:
[0090]
[0091]
[0092] in is the estimated value of W.
[0093] For the main motor 1 and the auxiliary motor 4, the sliding mode functions are taken respectively:
[0094]
[0095] make
[0096] where e m = l m -l t , e s = l s -f2(l m ).but
[0097] α m , α s is the error amplification factor of the sliding surface function; then
[0098]
[0099] Using the exponential reaching law, we have: Where ε>0,k>0. We get:
[0100]
[0101] Based on this, the sliding mode control law is designed as:
[0102]
[0103] The control law in S3 above is used to prove the system stability:
[0104] Define the Lyapunov function as:
[0105]
[0106] where β m >0,β s >0.
[0107]
[0108] because but:
[0109]
[0110] Among them, |ε m |≤ε M ,|ε s |≤ε S ,but:
[0111]
[0112] The designed adaptive law is: but:
[0113]
[0114] when When m =s s = 0. According to the LaSalle invariant set principle, the closed-loop system is asymptotically stable. That is, when t→∞, s m →0,s s → 0. Therefore, the main and auxiliary motor cooperative drive system is stable under the controller proposed in this paper.
[0115] The sliding mode control law is input into the main and auxiliary motor coordinated drive system to carry out simulation experiments.
[0116] like Figure 2 FIG. 2 shows the target trajectories of the main motor and the auxiliary motor under the action of two different controllers in an embodiment of the present invention. Figure 3 The figure shows the trajectory tracking response of the main motor and the auxiliary motor under the action of two different controllers in the embodiment of the present invention. Figure 4 The figure shows the trajectory tracking errors of the main motor and the auxiliary motor under the action of two different controllers in the embodiment of the present invention. Figure 5 Shown is the control signal output by the controller to the main motor and the auxiliary motor in the embodiment of the present invention.
[0117] Depend on Figure 2 , Figure 3It can be seen that the trajectory tracking responses of the main motor and the auxiliary motor under the two different controllers basically overlap with the curves of the target trajectory. Figure 4 It can be seen that the trajectory tracking errors of the main motor 1 and the auxiliary motor 4 are kept within a small range. The results of the simulation experiment prove that the proposed sliding mode controller improves the robustness, trajectory tracking accuracy and vibration suppression performance of the main and auxiliary motor cooperative drive system.
[0118] Based on the above, the advantages of the present invention are that the sliding mode control method adopted by the present invention has strong adaptability and robustness, can perform coordinated robust control of the main and auxiliary motors coordinated drive system without relying on a specific system model, can predict, estimate and suppress the environmental interference of the main and auxiliary motors coordinated drive system in real time, reduce the impact of interference on the system, and achieve the effect of precise control, and the sliding mode control method can make the control system stable by designing the sliding mode surface, and is not prone to overshoot. The present invention can accurately control the main and auxiliary motors coordinated drive system, and solve the problem of interference between the main motor 1 and the auxiliary motor 4 in the driving process of the finger 2 when the force and external disturbance are inconsistent.
[0119] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A sliding mode control method for a main and auxiliary motor cooperative drive system based on a neural network, characterized in that: The following steps are included: Model the main and auxiliary motor cooperative drive system and determine the motion relationship between the main motor and the auxiliary motor; Design of sliding mode controller for main and auxiliary motor cooperative drive system based on neural network, inputting preset main motor target trajectory and motion relationship between main motor and auxiliary motor into sliding mode controller to obtain sliding mode control law; Input the sliding mode control law into the main and auxiliary motor coordinated drive system to achieve precise control of the main and auxiliary motors; The motion relationship between the main motor and the auxiliary motor is: l s =f2(l m ); l m The displacement of the tendon caused by the main motor movement, l s The displacement of the tendon caused by the movement of the auxiliary motor; The controller design steps include: The dynamic equations of the main and auxiliary motors are: Among them, μ m and μ s They are the control inputs for the main motor and auxiliary motor respectively. and They are the various external disturbances suffered by the main motor and the auxiliary motor respectively; The control target is that the main motor follows the target trajectory l t = When f1(t) moves, the auxiliary motor follows the main motor; The preset main motor target trajectory is: f1(t)=-0.000039936t 3 +0.0032366t 2 +0.34478t-0.17236; The disturbance term δ(x) is approximated by using RBF neural network; The RBF neural network is designed as: Where X is the input vector, C j is the center value of the jth basis function, b j represents the normalization constant for the width of the j-th center point of the basis function, is a Gaussian function, W * ∈R q×2 is the ideal weight of the neural network, ε(X) is the approximation error, and ε N is the upper limit of the approximation error ε(X); The network output is: in, W * An estimated value of For the main motor and auxiliary motor, the sliding mode functions are taken respectively: make Among them, e m = l m -l t , e s = l s -f2(l m ),but α m , α s is the error amplification factor of the sliding surface function; then Using the exponential reaching law, we have: Where ε>0, k>0, the switching function g(s)=sgns, we get: Based on this, the sliding mode control law is designed as:
2. The sliding mode control method of the main and auxiliary motor cooperative drive system based on neural network according to claim 1 is characterized by: In the simulation example, the motion relationship between the main motor and the auxiliary motor is:
3. The sliding mode control method of the main and auxiliary motor cooperative drive system based on neural network according to claim 1 is characterized by: Before the sliding mode control law is input into the main and auxiliary motor cooperative drive system, there is a system stability proof step to determine whether the proposed sliding mode control law can make the system in a stable state.
4. The sliding mode control method of the main and auxiliary motor cooperative drive system based on neural network according to claim 3 is characterized by: The system stability is proved as follows, Define the Lyapunov function as: among them,b m >0,β s >0; because but: Among them, |ε m |≤ε M ,|ε s |≤ε S ,but: The designed adaptive law is: but: when When m =s s = 0, according to the LaSalle invariant set principle, the closed-loop system is asymptotically stable, that is, when t→∞, s m →0,s s →0, therefore, the main and auxiliary motor cooperative drive system is stable under the controller.
5. The sliding mode control method of the main and auxiliary motor cooperative drive system based on neural network according to claim 1 is characterized by: Introducing the hyperbolic tangent function Instead of switching function g(s)=sgns to reduce chattering in sliding mode control, The hyperbolic tangent function is as follows:
