Disclosure of Invention
The present invention aims to solve at least one of the above three technical problems.
In order to achieve the above purpose, the present invention provides a finite time tracking control method suitable for four-wheel mobile robot lane change early warning, which specifically comprises the following steps:
S1, constructing a dynamic model of a four-wheel mobile robot;
S2, constructing a minimum distance early warning model according to the dynamics model, combining a machine learning GMM-HMM method with the minimum distance early warning model to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, and realizing safety early warning of the four-wheel mobile robot in the lane change process;
s3, constructing a time-varying constraint-containing finite time controller of the four-wheel mobile robot for safely constraining the yaw rate of the four-wheel mobile robot in the lane changing process;
and S4, judging whether the lane change is dangerous or not according to a lane change early warning safety algorithm of the four-wheel mobile robot, if so, executing a limited time controller, and realizing the limited time stability of the four-wheel mobile robot under the limited time controller.
Further, in step S1, the expression of the kinetic model of the four-wheel mobile robot is as follows:
Kf,kr is the front axle tire rigidity and the rear axle tire rigidity of the four-wheel mobile robot, lf,lr is the front axle length and the rear axle length of the four-wheel mobile robot, M is the mass of the four-wheel mobile robot, vx is the longitudinal speed of the four-wheel mobile robot, Iz is the moment of inertia of the whole four-wheel mobile robot, deltaf is the front wheel corner, Mz is the additional yaw moment of the four-wheel mobile robot, Fyf,Fyr is the front wheel lateral force and the rear wheel lateral force of the four-wheel mobile robot;
by introducing the coordinate transformation uc=Mz, y=β, the above formula can be converted as follows:
y=β
Wherein the values of the formulae are:
further, in step S2, the minimum distance early warning model of the four-wheel mobile robot is set to include three four-wheel mobile robots, which are a target robot, a first reference robot and a second reference robot, wherein the target robot and the second reference robot are located in the same lane, the target robot and the first reference robot are located in adjacent lanes, and the expression of the constructed minimum distance early warning model is as follows:
The longitudinal speed of the target robot, the first reference robot and the second reference robot is obtained by using a laser radar, vr=vx-vp is the relative longitudinal speed of the target robot and the second reference robot, vx is the longitudinal speed of the target robot, vp is the longitudinal speed of the second reference robot, Dr is the minimum safety distance kept between the target robot and the first reference robot or the second reference robot, Ds is the relative distance between the target robot and the second reference robot, Dm is the moving distance of the target robot, Dp is the moving distance of the second reference robot, tau1+τ2 represents the time from the reaction to the starting of braking of the target robot,G is the gravity acceleration rate of the gravity,Is the road adhesion coefficient.
Further, in step S2, the method for applying the machine learning GMM-HMM method and combining with the minimum distance early warning model to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, so as to realize the safety early warning of the four-wheel mobile robot in the lane change process, including:
on the basis of establishing a minimum distance early warning model, when the motion behavior of the four-wheeled mobile robot is identified by using a machine learning GMM-HMM method, the probability distribution of the GHH-HMM model is described as follows:
Wherein cim is the mixed weight coefficient of the m-th single Gaussian function of the hidden state si, Uim is the weight matrix of the m-th single Gaussian function of the hidden state si, Uim is the covariance matrix of the m-th single Gaussian function of the hidden state si, O= (vx,vy,xy) is the selected observation matrix, vx,vy,xy is the longitudinal speed, the transverse speed and the transverse displacement of the four-wheeled mobile robot respectively;
GHH-the mixed weight probability of the HMM model is bi(O),N(O,uim,Uim), and the hidden probability of the next step is calculated as follows: defining a probability function with a hidden state si at the moment t and an observation sequence k;
Wherein Ωi (i) represents the observation sequence from the previous part to time t under GMM-HMM parameter λ= (pi, a, c, U), Ωi (i) represents the observation sequence from the previous and subsequent parts to time t under GMM-HMM parameter λ= (pi, a, c, U), cik is the mixed weight coefficient of the kth single gaussian function of the hidden state si, Ot is the given observation sequence, Uik is the weight matrix of the kth single gaussian function of the hidden state si, Uik is the covariance matrix of the kth single gaussian function of the hidden state si, l (Ot,uik,Uik) represents that the hidden state at time t is si and the probability value of the hidden state sequence formed by the hidden state si and the previous t-1 hidden state is the largest;
The following are the followingThe probability estimated for the GMM-HMM model is approximately equal to cik,uik,Uik, which can be taken into the above calculation
Setting the transition of the motion behavior from the current state to the next state to be random based on the probability distribution characteristics of GHH-HMM model of the motion behavior of the four-wheel mobile robot, setting T to be a time sequence, setting the number of hidden states to be N=3 and the Gaussian mixture number to be M=3, setting the initial values pi0、A0 of parameters pi and A to be evenly distributed due to the fact that the hidden states are transferred to any state with the same probability, automatically initializing c, U and U by a K-mean clustering algorithm, and obtaining corresponding lane change early warning parameter values by training GHH-HMM modelThus, lane change behavior of the adjacent four-wheel mobile robot is recognized.
Further, in step S3, constructing a mobile robot finite time controller including a time-varying constraint specifically includes:
S31, defining a first error amount xi1=β-yd, wherein yd is a desired centroid slip angle, selecting a proper Lyapunov function based on a barrier exponentiation integral technology to control the centroid slip angle in the four-wheel mobile robot lane changing process, selecting a Lyapunov function V1 meeting a system constraint condition, then solving a first derivative of the selected function, scaling and simplifying the function, and simultaneously selecting a proper virtual control law alpha1 to enable the selected function to be in a proper virtual control law alpha1 to enableWherein a >0,0< delta <1 are constants, namely the designed virtual control law alpha1 can restrict the centroid slip angle state of the four-wheel mobile robot and achieve limited time stability;
s32, first defining the second error amountWherein the method comprises the steps ofIs constant, then selects proper Lyapunov function based on obstacle exponentiation integral technique to control yaw rate in the course of four-wheel mobile robot lane change, selects proper Lyapunov function V2 as S31, and makes it through derivative reduction and modern control methodAnd then performing Backstepping back-stepping to obtain an actual control input uc, so that the yaw rate omega of the four-wheel mobile robot in the course of changing the track can be stable for a limited time under the condition of not breaking through time-changing constraint conditions.
In addition, in order to achieve the above purpose, the invention also provides a finite time tracking control device suitable for the lane change early warning of the four-wheel mobile robot, which comprises the following modules:
the dynamics modeling module is used for constructing a dynamics model of the four-wheel mobile robot;
The lane change safety early warning module is used for constructing a minimum distance early warning model according to the dynamics model, combining the minimum distance early warning model by using a machine learning (GMM-HMM) method to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, and realizing the safety early warning of the four-wheel mobile robot in the lane change process;
The controller construction module is used for constructing a time-varying constraint-containing finite time controller of the four-wheel mobile robot for safely constraining the yaw rate of the four-wheel mobile robot in the lane changing process;
And the controller execution module is used for judging whether the lane change is dangerous or not according to the lane change early warning safety algorithm of the four-wheel mobile robot, if so, executing a limited time controller, and realizing the limited time stability of the four-wheel mobile robot under the limited time controller.
In addition, in order to achieve the above object, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the finite time tracking control method suitable for lane change early warning of a four-wheel mobile robot when executing the program.
In addition, in order to achieve the above object, the present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the finite time tracking control method suitable for lane change early warning of a four-wheeled mobile robot.
The technical scheme provided by the invention has the following beneficial effects:
1. the invention designs a machine learning method of lane change early warning, combines a minimum distance early warning model, mainly trains lane change parameters of GMM-HMM, synthesizes control requirements of a four-wheel mobile robot system, and designs an algorithm more in line with lane change safety early warning.
2. The invention performs limited time control on the four-wheel mobile robot lane change early warning, and considers time-varying constraint control, including output constraint limitation and input saturation constraint. By designing the time-varying barrier Lyapunov function, the time-varying constraint is guaranteed not to be destroyed.
3. The controller designed by the invention ensures that the four-wheel mobile robot system is stable for a limited time, and the controller is designed for the state of the system by using a time-varying obstacle power integrator technology, so that the system can reach a stable state for a limited time.
Detailed Description
For a clearer understanding of technical features, objects and effects of the present invention, a detailed description of embodiments of the present invention will be made with reference to the accompanying drawings.
Referring to fig. 1, the invention provides a finite time tracking control method suitable for four-wheel mobile robot lane change early warning, which comprises the following steps:
S1, constructing a dynamic model of a four-wheel mobile robot system;
S2, constructing a minimum distance early warning model according to the dynamics model, combining a machine learning GMM-HMM method with the minimum distance early warning model to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, and realizing safety early warning of the four-wheel mobile robot in the lane change process;
s3, constructing a time-varying constraint-containing finite time controller of the four-wheel mobile robot for safely constraining the yaw rate of the four-wheel mobile robot in the lane changing process;
and S4, judging whether the lane change is dangerous or not according to a lane change early warning safety algorithm of the four-wheel mobile robot, if so, executing a limited time controller, and realizing the limited time stability of the four-wheel mobile robot under the limited time controller.
Based on but not limited to the above method, the implementation procedure of step S1 is as follows:
the problem of kinematic constraint is often encountered in lane change early warning limited time control of a four-wheel mobile robot, and a two-degree-of-freedom mobile robot system shown in fig. 2 is considered, and a kinetic model equation is as follows:
Wherein β, ω is the centroid slip angle and yaw rate of the four-wheel mobile robot, kf,kr is the front axle tire stiffness and rear axle tire stiffness of the robot, lf,lr is the front axle length and rear axle length of the robot, M is the mass of the mobile robot, vx is the mobile robot longitudinal speed, Iz is the moment of inertia of the mobile robot in its entirety, δf is the front wheel corner, Mz is the additional yaw moment of the four-wheel mobile robot, Fyf,Fyr is the front wheel lateral force and rear wheel lateral force of the mobile robot. By introducing a coordinate transformation, uc=Mz, y=β, the above formula can be converted as follows:
y=β
Wherein the values of the formulae are:
based on but not limited to the above method, the specific implementation procedure of step S2 is as follows:
Firstly, setting a minimum distance early warning model of a four-wheel mobile robot to comprise three four-wheel mobile robots, namely a target robot, a first reference robot and a second reference robot, wherein the target robot and the second reference robot are positioned in the same lane, the target robot and the first reference robot are positioned in adjacent lanes, analyzing a lane changing process of the target robot, and predicting the movement behaviors of the first reference robot and the second reference robot by using a machine learning method so as to avoid obstacles and ensure the safety of the lane changing process of the target robot.
The expression of the minimum distance warning model constructed according to fig. 2 is as follows:
The longitudinal speed of the target robot, the first reference robot and the second reference robot is obtained by using a laser radar, vr=vx-vp is the relative longitudinal speed of the target robot and the second reference robot, vx is the longitudinal speed of the target robot, vp is the longitudinal speed of the second reference robot, Dr is the minimum safety distance kept between the target robot and the first reference robot or the second reference robot, Ds is the relative distance between the target robot and the second reference robot, Dm is the moving distance of the target robot, Dp is the moving distance of the second reference robot, tau1+τ2 represents the time from the reaction to the starting of braking of the target robot,G is the gravity acceleration rate of the gravity,Is the road adhesion coefficient.
On the basis of establishing a minimum distance early warning model, when a machine learning (GMM-HMM) method is used for identifying the motion behavior of a mobile robot, the probability distribution of the GHH-HMM model is described as follows:
Wherein cim is the mixed weight coefficient of the m-th single Gaussian function of the hidden state si, Uim is the weight matrix of the m-th single Gaussian function of the hidden state si, Uim is the covariance matrix of the m-th single Gaussian function of the hidden state si, O= (vx,vy,xy) is the selected observation matrix, vx,vy,xy is the longitudinal speed, the transverse speed and the transverse displacement of the four-wheeled mobile robot respectively;
GHH-the mixed weight probability of the HMM model is bi(O),N(O,uim,Uim), and the hidden probability of the next step is calculated as follows: defining a probability function with a hidden state si at the moment t and an observation sequence k;
wherein Ωi (i) represents the observation sequence from the GMM-HMM parameter λ= (pi, a, c, U) to the front part of time t, Ωi (i) represents the observation sequence from the GMM-HMM parameter λ= (pi, a, c, U) to the front and rear parts of time t, cik is the mixed weight coefficient of the kth single gaussian function of the hidden state si, Ot is the given observation sequence, Uik is the weight matrix of the kth single gaussian function of the hidden state si, Uik is the covariance matrix of the kth single gaussian function of the hidden state si, l (Ot,uik,Uik) represents that the hidden state at time t is si and the probability value of the hidden state sequence formed by the hidden state si and the previous t-1 hidden state is the largest;
The following are the followingThe probability estimated for the GMM-HMM model is approximately equal to cik,uik,Uik, which can be taken into the above calculation
Setting the transition of the motion behavior from the current state to the next state to be random based on the probability distribution characteristics of GHH-HMM model of the motion behavior of the four-wheel mobile robot, setting T to be a time sequence, setting the number of hidden states to be N=3 and the Gaussian mixture number to be M=3, setting the initial values pi0,A0 of parameters pi and A to be evenly distributed due to the fact that the hidden states are transferred to any state with the same probability, automatically initializing c, U and U by a K-mean clustering algorithm, and obtaining corresponding lane change early warning parameter values by training GHH-HMM modelThus, lane change behavior of the adjacent four-wheel mobile robot is recognized.
Based on but not limited to the above method, the specific implementation idea of step S3 is as follows:
Firstly, aiming at time-varying constraint conditions suffered by a four-wheel mobile robot system, a proper obstacle Lyapunov function can be designed through an obstacle Lyapunov exponentiation integration technology, and the centroid slip angle and the yaw rate can be ensured not to break through the upper limit in the whole process through a stability theorem under the time-varying constraint finite time controller.
Secondly, as known from a two-degree-of-freedom mobile robot model, a research object is a second-order nonlinear system, so that a Backstepping back-stepping method can be adopted to design a finite time controller, and meanwhile, a design thought containing time-varying constraints is considered, namely, a barrier-exponentiation integral technology containing time-varying constraints is added in each step of back-stepping design to design a barrier Lyapunov function, the constructed function is led and scaled, a virtual control law alpha1 is designed, then back-stepping recursion is carried out, and a controller uc is obtained in the last step, so that the stability of finite time is achieved.
Finally, through the above analysis, the design of virtual control laws and controllers can begin.
The specific implementation procedure of step S3 therefore comprises the following two steps:
Defining a first error quantity xi1=β-yd, wherein yd is a desired centroid slip angle, selecting a proper Lyapunov function based on a barrier exponentiation integration technology to control a centroid slip angle beta in the four-wheel mobile robot lane changing process, selecting a Lyapunov function V1 meeting a system constraint condition, then solving a first derivative of the selected function, scaling and simplifying the function, and simultaneously selecting a proper virtual control law alpha1 to enable the selected function to be in a proper virtual control law alpha1 to enableWherein a >0,0< delta <1, i.e., the designed virtual control law alpha1 can constrain the centroid slip angle state of the four-wheeled mobile robot and achieve limited time stability.
In the first step, first let ζ1=β-yd,yd be the desired centroid yaw angle. The following barrier Lyapunov function V1 was constructed:
the first derivative of V1 is known:
Therefore, virtual control alpha1 is designed to carry out finite time constraint on the state beta of the mass center slip angle:
wherein the relevant numerical parameters areBy designing the virtual control law alpha1 in this way, the centroid slip angle beta of the four-wheeled mobile robot can be stabilized within a finite time containing time-varying constraints, and then the back-stepping method is used to design the yaw rate state omega of the four-wheeled mobile robot.
Second step, defining a second error amountThen selecting a proper Lyapunov function based on the obstacle exponentiation integration technology to control the yaw rate in the track changing process of the four-wheeled mobile robot, selecting a proper Lyapunov function V2 as in the first step, and simplifying the derivation and a modern control method to enable the four-wheeled mobile robot to beAnd then performing Backstepping to obtain an actual control input uc, so that the yaw rate omega of the four-wheel mobile robot in the course of changing the track is stable for a limited time under the condition of not breaking through time-changing constraint.
In the second step, in order to better restrict the yaw rate omega of the four-wheel mobile robot, letSelecting a Lyapunov function V2 meeting constraint conditions by using a power integrator-based exponentiation integration technology:
Wherein the method comprises the steps of
The first derivative is taken for V2 and the fuzzy logic and radial basis function network processing is used to know:
meanwhile, the designed finite time controller is as follows:
where v12,v22 is a positive constant and,Is a positive known function.
The control input uc is thus designed using the above design procedure:
Wherein:
The design of the finite time controller uc with time-varying constraint is completed, and the control input designed by the control method can enable the four-wheel mobile robot to achieve finite time tracking control within the finite time under the time-varying constraint.
Simulation verification:
In order to verify the effect of the limited time controller of the four-wheel mobile robot designed by the invention on the condition that the system meets time-varying constraint conditions, the change of the state of each centroid side deflection angle and yaw angle speed and the tracking error of the controller, in Matlab software, the following parameters are selected, namely the mass m1 = 12.5kg of the four-wheel mobile robot, the moment of inertia of the robot is Iz=2.1kg*m2, the front wheelbase lf = 0.112m, the rear wheelbase lr = 0.156m, the rigidity kf = 102N/rad of the front wheels of the robot, the rigidity kr = 116N/rad of the rear wheels of the robot, the longitudinal speed of the four-wheel mobile robot is vx = 1.2m/s, and the time-varying upper and lower limit state constraints are as follows: initial states of the four-wheel mobile robot mass yaw angle and yaw rate, β (0) =0.3 rad, ω (0) =0.2 rad/s, the finite time controller parameters are: v11=3,v12=1,v21=5,v22=4,K1 = 3, s (·) is composed of a gaussian relation functionAnd θ1 |=1. The controller is designed and system simulation is performed by using the controller parameter design method. By designing the limited time controller, the centroid slip angle and the yaw rate of the four-wheel mobile robot can be well controlled in a limited time, and time-varying constraint is not broken through.
The following simulation diagrams may effectively demonstrate the effectiveness of the controller of the present design:
In fig. 4 and 5, β, ω represent the system states of the four-wheeled mobile robot, that is, the centroid side deviation angle and the yaw rate of the four-wheeled mobile robot, alpha1 represents the virtual control law in the design process of the controller, eta1, -eta2 represents the upper and lower bounds of the centroid side deviation angle time-varying constraint, uc represents the additional yaw moment control input, and as can be seen from the simulation results fig. 4 (a) and 4 (b), the centroid side deviation angle and the yaw rate of the four-wheeled mobile robot system in the lane change process can be constrained in a stable interval, and a good effect can be maintained, and as can be seen from the simulation results fig. 5 (a) and 5 (b), the tracking error of the designed time-varying limited time controller does not break through the time-varying constraint. In the simulation result of fig. 6, the designed additional yaw moment controller input can well enable the four-wheel mobile robot system state to be tracked and controlled in a limited time, the convergence speed is high, and the effect in engineering can be achieved.
The limited time tracking control device suitable for the lane change early warning of the four-wheeled mobile robot is described below, and the limited time tracking control device described below and the limited time tracking control method described above can be correspondingly referred to each other.
As shown in fig. 7, a finite time tracking control device suitable for lane change early warning of a four-wheeled mobile robot comprises the following modules:
the dynamics modeling module 710 is configured to construct a dynamics model of the four-wheel mobile robot;
the lane change safety early warning module 720 is used for constructing a minimum distance early warning model according to the dynamics model, combining the minimum distance early warning model by using a machine learning (GMM-HMM) method to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, and realizing the safety early warning of the four-wheel mobile robot in the lane change process;
the controller construction module 730 is configured to construct a finite time controller of the four-wheel mobile robot with time-varying constraints for safely constraining the yaw rate of the four-wheel mobile robot during the lane-changing process;
the controller execution module 740 is configured to determine whether there is a danger in the lane change according to the lane change early warning safety algorithm of the four-wheel mobile robot, if so, execute a limited time controller, and implement limited time stabilization of the four-wheel mobile robot under the limited time controller.
As shown in fig. 8, a physical schematic of an electronic device is illustrated, which may include a processor 810, a communication interface (Communications Interface) 820, a memory 830, and a communication bus 840, where the processor 810, the communication interface 820, and the memory 830 perform communication with each other through the communication bus 840. The processor 810 can call logic instructions in the memory 830 to execute the steps of the finite time tracking control method suitable for the lane change early warning of the four-wheeled mobile robot, which concretely comprises the steps of S1, constructing a dynamics model of the four-wheeled mobile robot, S2, constructing a minimum distance early warning model according to the dynamics model, obtaining a lane change early warning safety algorithm of the four-wheeled mobile robot by combining a machine learning GMM-HMM method with the minimum distance early warning model, realizing the safety early warning of the four-wheeled mobile robot in the lane change process, S3, constructing a finite time controller of the four-wheeled mobile robot with time change constraint for safely constraining the yaw rate of the four-wheeled mobile robot in the lane change process, and S4, judging whether the lane change is dangerous according to the lane change early warning safety algorithm of the four-wheeled mobile robot, if so, executing the finite time controller, and realizing the finite time stability of the four-wheeled mobile robot under the finite time controller.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes various media capable of storing program codes, such as a usb (universal serial bus), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In still another aspect, the embodiment of the invention further provides a storage medium, wherein a computer program is stored on the storage medium, the computer program is executed by a processor to realize the steps of the finite time tracking control method suitable for the lane change early warning of the four-wheel mobile robot, and the method specifically comprises the steps of S1, constructing a dynamic model of the four-wheel mobile robot, S2, constructing a minimum distance early warning model according to the dynamic model, using a machine learning GMM-HMM method and combining the minimum distance early warning model to obtain a lane change early warning safety algorithm of the four-wheel mobile robot, realizing the safety early warning of the four-wheel mobile robot in the lane change process, S3, constructing a finite time controller of the four-wheel mobile robot with time change constraint for safely constraining the yaw angular velocity of the four-wheel mobile robot in the lane change process, and S4, judging whether the lane change has danger according to the lane change early warning safety algorithm of the four-wheel mobile robot, if so, executing the finite time controller, and realizing the finite time stability of the four-wheel mobile robot under the finite time controller.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as labels.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.