CN105320129A - Method for tracking and controlling locus of unmanned bicycle - Google Patents
Method for tracking and controlling locus of unmanned bicycle Download PDFInfo
- Publication number
- CN105320129A CN105320129A CN201510690834.4A CN201510690834A CN105320129A CN 105320129 A CN105320129 A CN 105320129A CN 201510690834 A CN201510690834 A CN 201510690834A CN 105320129 A CN105320129 A CN 105320129A
- Authority
- CN
- China
- Prior art keywords
- bicycle
- model
- centerdot
- psi
- self
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005070 sampling Methods 0.000 claims abstract description 19
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 18
- 238000004364 calculation method Methods 0.000 claims abstract description 11
- 239000011159 matrix material Substances 0.000 claims description 28
- 230000005484 gravity Effects 0.000 claims description 9
- 101000802640 Homo sapiens Lactosylceramide 4-alpha-galactosyltransferase Proteins 0.000 claims description 3
- 102100035838 Lactosylceramide 4-alpha-galactosyltransferase Human genes 0.000 claims description 3
- 230000001133 acceleration Effects 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 9
- 238000012545 processing Methods 0.000 abstract description 2
- 238000004088 simulation Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 238000005096 rolling process Methods 0.000 description 4
- 238000005457 optimization Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 229920000535 Tan II Polymers 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Landscapes
- Feedback Control In General (AREA)
Abstract
The invention belongs to the technical field of movement controlling of unmanned vehicles, and especially relates to a method for tracking and controlling a locus of an unmanned bicycle. The method comprises the steps of: firstly, establishing a balance dynamic model of the bicycle, and establishing discrete state equations of a bicycle self-balance control system into which a self-balance controller is added; secondly, establishing a discrete kinetic model of the bicycle, and carrying out linearization; then combining the kinetic model with the self-balance control system, carrying out corresponding simplification processing, and establishing a seven-dimension state predicting model of the bicycle; and finally, using the seven-dimension state predicting model as a prediction model of a bicycle locus tracking algorithm, carrying out locus tracking and controlling on the bicycle, and solving optimal control input of each sampling moment on line. The bicycle locus tracking and controlling method based on the seven-dimension state predicting model is capable of accurately predicting the state of the bicycle in the future time, the calculation amount is small, and a good control effect is ensured by the on-line real-time performance.
Description
Technical Field
The invention belongs to the technical field of motion control of an unmanned bicycle, and particularly relates to a method for tracking and controlling a track of the unmanned bicycle.
Background
Compared with an automobile, the unmanned bicycle has the advantages of low price, lightness, portability, flexibility, mobility, environmental protection, energy conservation and the like. However, the two-wheel structure of the bicycle has instability relative to the four-wheel structure of the automobile, and the bicycle cannot maintain balance without human control. Therefore, in order to achieve the unmanned function of the bicycle, the bicycle must first be balanced to control itself. Therefore, the difficulty of the unmanned bicycle is far greater than that of an unmanned automobile.
On the basis of realizing self-balancing control of the bicycle, the bicycle can be completely driven by controlling the movement of the bicycle and matching with the functions of machine vision, trajectory planning and the like on the upper layer. Path tracking means that in an inertial coordinate system, a mobile robot must start from a given initial state to reach and follow a given target track, and an initial point of the robot may be on the track or not, which is an important problem in the research field of mobile robots. At present, most research objects of the track tracking problem are wheel-type mobile robots, unmanned vehicles and unmanned aerial vehicles, and the research on bicycles is less.
Many researchers have adopted many different approaches to trajectory tracking control. Among these methods, the model predictive control algorithm is an online real-time control method, which can achieve a good control effect with a small amount of calculation required. The most important factor in the algorithm is the choice of the prediction model. Because the balance problem does not need to be considered in automobiles and other wheeled mobile robots, only a kinematic model of the automobile and other wheeled mobile robots needs to be established. However, in the case of a bicycle, the balance dynamics model of the bicycle causes a relatively complicated dynamic process when the handlebar of the bicycle is turned to the target turning angle, which has a large influence on the movement track of the bicycle. Therefore, in the bicycle trajectory tracking problem, it is not reasonable to predict the bicycle trajectory only by using a kinematic model, and thus the optimal tracking effect cannot be obtained.
For bicycles, it is impossible to achieve the best effect by using a kinematic model as a prediction model of a model prediction control algorithm to perform trajectory tracking control.
Disclosure of Invention
The invention provides a method for tracking and controlling a track of an unmanned bicycle, which is characterized in that a complex multi-dimensional kinematic model is established for the bicycle, the kinematic model is added with the dynamic characteristic that the bicycle turns under a self-balancing controller, the state of the bicycle at the future moment can be more accurately predicted by using the model, and the good effect can be achieved by adopting a model prediction control algorithm to track and control the bicycle.
A trajectory tracking control method of an unmanned bicycle is characterized by comprising the following steps:
step 1, establishing a balance dynamic model of a bicycle, and establishing a discrete state equation of a self-balancing control system of the bicycle after a self-balancing controller is added;
step 2, establishing a discrete kinematics model of the bicycle, and carrying out linearization;
step 3, combining the kinematic model with a self-balancing control system to establish a seven-dimensional state prediction model of the bicycle;
and 4, adopting the seven-dimensional state prediction model in the step 3 as a prediction model of a bicycle track tracking algorithm to perform bicycle track tracking control, and solving the optimal control input of each sampling moment on line.
The process for establishing the discrete state equation of the bicycle self-balancing control system in the step 1 is as follows:
the balance dynamic model of the bicycle is established as follows:
wherein,the inclination angle of the bicycle body and the steering angle of the handlebar of the bicycle, a is the gravity center G and the rear wheel landing point P of the bicycle1H is the distance from the center of gravity of the bicycle to the ground when the bicycle body is not inclined, lambda is the front fork angle of the bicycle, vxThe forward speed of the rear wheel of the bicycle, c the trailing of the bicycle, b the wheel base of the bicycle, g the acceleration of gravity, and s the laplacian operator;
the self-balancing control of the bicycle adopts a control structure of proportional-differential control and feedforward, and the expression of a control law is as follows:
wherein,dis the steering angle command of the handlebar of the bicycle, namely the output of the self-balancing controller,the target body inclination angle for the bicycle, i.e. the input to the self-balancing controller,to relate toFirst derivative of (k)1Is a proportionality coefficient, k2Is a differential coefficient, 1/k3Is a feedforward coefficient;
steering angle command for handlebardA low-pass filtering link exists between the steering angle of the actual handlebarThe link is a first-order inertia link, TSIs a time constant;
the discrete state equation of the bicycle self-balancing control system is as follows:
matrix array
Matrix array
Wherein the intermediate variable K1 ═ mh2Intermediate variablesIntermediate variable K3 ═ mgh, intermediate variableCoefficient of feedforwardm is the mass of the bicycle,is the inclination angle of the bicycle body of the bicycle,to relate toIs related to the handlebar steering angle of the bicycle, T is the sampling period of the discrete system, and k is the sampling time sequence number.
The specific process of the step 2 is as follows:
the forward speed v of the bicycle is the forward speed v of the rear wheel of the bicyclexI.e. v ═ vx(ii) a Vehicle body inclination angleNeglecting the influence on the kinematics, obtaining a kinematic model of the bicycle:
wherein psiaIs the yaw angle of the bicycle,to about psiaThe first derivative of (a) is,fis the effective steering angle of the bicycle, i.e. the projection of the steering angle on the ground, b is the wheel base of the bicycle, R is the turning radius of the bicycle during its movement, xaFor the rear wheel landing point P of a bicycle1The coordinate of X direction on the ground coordinate system O-XYZ,to relate to xaFirst derivative of, yaFor the rear wheel landing point P of a bicycle1The coordinate of Y direction on the ground coordinate system O-XYZ,as to yaFirst derivative of (2) since the bicycle is only moving at ground levelMoving, therefore, the bicycle's coordinates in the Z direction are not considered;
handlebar steering angle and effective handlebar steering angle for bicyclefHave the following relationship between:
the body inclination angle of the bicycle is shown, and lambda is the front fork angle of the bicycle;
the bicycle moves at a constant speed v (k) ═ v, and the kinematic model is discretized to obtain:
wherein, T is the sampling period of the discrete system, and k is the sampling time sequence number;
the discrete kinematic model is nonlinear, and the kinematic model is linearized near a reference trajectory to obtain a linear kinematic model:
wherein, the matrix Matrix array
Indicating the deviation amount of the actual state of the bicycle from the reference state;indicating the amount of deviation of the bicycle actual input from the reference input.
The seven-dimensional state prediction model of the bicycle in the step 3 is as follows:
combining a discrete state equation of a bicycle self-balancing control system with a kinematic model of a bicycle, and obtaining the following seven-dimensional state prediction model by sorting:
x(k+1)=A·x(k)+B·u(k)
matrix array
Matrix array
x (k) are the state variables of the bicycle prediction model, and u (k) are the input variables of the bicycle prediction model.
The bicycle track tracking control algorithm in the step 4 comprises the following specific steps:
the index function J of model predictive control generally adopts a linear quadratic form, and in the track tracking problem of the bicycle, the control system is a discrete system, and the index function becomes:
wherein k is0For the current time, N is the prediction range,t0For the model predictive control of the starting time, tfQ (t) is a semi-positive definite matrix with n × n dimensions, R (t) is a positive definite matrix with r × r dimensions, and Q is the end time of model predictive control0Is a n × n-dimensional semi-positive definite matrix;
the current optimal input is obtained by solving the minimum value of the index function J, and the solving steps are as follows:
step 401: initially, let k equal to k0+N,P(k0+N)=Q0
Step 402: the input u (k) at the k-th time is g (k) · x (k), where g (k) is a state feedback coefficient matrix, and the expression is
G(k)=-(R(k)+B(k)TP(k+1)B(k))-1B(k)TP(k+1)A(k)
Wherein P (k +1) is the positive solution of the discrete time-varying system Riccati equation, and the expression of the discrete time-varying system Riccati equation is
P(k)=Q(k)+A(k)T(P(k+1))-P(k+1))B(k)(R(k)
+B(k)TP(k+1)B(k))-1B(k)TP(k+1))A(k)
Step 403: k is all self-decreasing by 1, when k is k0If so, the calculation is finished, otherwise, the step 402 is returned to;
after N times of reverse iteration, the optimal input sequence u (k) is obtained0),u(k0+1),.....u(k0+ N-1), using the input value u (k) at the current time0) The residual input value is discarded as the input of the current time of the system, and the calculation is repeated at each sampling time; and circulating according to the principle to obtain the optimal input value of each control period of the system.
Advantageous effects
The seven-dimensional state prediction model provided by the invention combines a bicycle kinematic model with the balance dynamics characteristic of a bicycle under a self-balancing controller, so that the control input of the bicycle is changed from the target handlebar steering angle of the bicycle to the target body inclination angle of the bicycle, the model can accurately reflect the actual situation of the running movement, and the state of the bicycle at the future moment is accurately predicted; therefore, the model predictive control algorithm can be better ensured to exert the advantages, and the bicycle can obtain good effect of tracking the target track; because the model is linear, the calculated amount is much smaller than that of a nonlinear model, and therefore the model is very suitable for the online and high-frequency control method of model predictive control. The bicycle trajectory tracking control is carried out by utilizing a model predictive control algorithm, the optimal control input is obtained through matrix iterative calculation, the calculated amount is small, the characteristic of online real-time control of the algorithm is ensured, and the online real-time performance of the algorithm also ensures the good control effect of the algorithm.
Drawings
FIG. 1 is a schematic view of a bicycle
FIG. 2 is a block diagram of a self-balancing control system for a bicycle
FIG. 3 is a schematic diagram of a model predictive control algorithm
FIG. 4 is a schematic diagram of a bicycle tracking simulation system
FIG. 5 is a simulation result of a bicycle tracking straight-line trajectory
FIG. 6 shows the simulation result of the circular track tracing of the bicycle
FIG. 7 is a simulation result of a bicycle tracking straight line-circle combined track
FIG. 8 is a flow chart of a method for controlling the trajectory tracking of an unmanned bicycle according to the present invention
Detailed Description
The following describes a trajectory tracking control method for an unmanned bicycle according to the present invention in detail with reference to the accompanying drawings.
The invention carries out the track following control of the bicycle by a model predictive control algorithm. Firstly, aiming at a bicycle, establishing a balance dynamic model of the bicycle, and establishing a system state equation after a self-balancing controller is added; secondly, establishing a kinematic model of the bicycle and carrying out linearization; then combining the kinematic model with a self-balancing control system, and establishing a seven-dimensional state prediction model after corresponding simplification processing; and finally, selecting an index function of a linear quadratic form, setting weight matrix parameters of the index function, and solving the optimal control input at each sampling moment on line. Fig. 8 is a flowchart of a trajectory tracking control method of the unmanned bicycle of the present invention.
1. Establishing a discrete state equation of a bicycle self-balancing control system:
first, a schematic structural view of a bicycle is given, as shown in fig. 1.
Establishing a balance dynamic model of the bicycle as shown in formula (1):
wherein,the inclination angle of the bicycle body and the steering angle of the handlebar of the bicycle, a is the gravity center G and the rear wheel landing point P of the bicycle1H is the distance from the center of gravity of the bicycle to the ground when the bicycle body is not inclined, lambda is the front fork angle of the bicycle, vxForward speed of the rear wheel of the bicycle, c trailing of the bicycle, i.e. P2P3B is the bicycle wheelbase, i.e. C1C2G is the acceleration of gravity and s is the laplace operator.
The self-balancing control system of a bicycle is illustrated in fig. 2. The self-balancing control of the bicycle adopts a control structure of proportional-differential control and feedforward, and the expression of a control law is shown as a formula (2):
wherein,dis the steering angle command of the handlebar of the bicycle, namely the output of the self-balancing controller,for a target body inclination of the bicycle, i.e. input from a self-balancing controller, k1Is a proportionality coefficient, k2Is a differential coefficient, 1/k3Is a feed forward coefficient.
Wherein, as shown in FIG. 2, the steering angle command of the handlebardA low-pass filtering link exists between the steering angle of the actual handlebarThe link is a first-order inertia link, TSIs a time constant.
In summary, the equation of state of the bicycle self-balancing control system is expressed in the form:
wherein the intermediate variable K1 ═ mh2Intermediate variablesIntermediate variable K3 ═ mgh, intermediate variableCoefficient of feedforwardm is the mass of the bicycle,is the inclination angle of the bicycle body of the bicycle,to relate toThe first derivative of (a) is,to relate toThe second derivative of (a), with respect to the handlebar steering angle of the bicycle,is the first derivative of interest;
discretizing the state equation by using an Euler method to obtain a discrete state equation of the bicycle self-balancing control system:
wherein, T is the sampling period of the discrete system, and k is the sampling time sequence number.
2. Establishing a discrete kinematic model of the bicycle:
the structure of a common electric bicycle is that a front wheel controls steering and a rear wheel controls speed. Wherein, the establishment of the kinematic model is based on the following two assumptions:
wheel side slip is not considered. In this case, the bicycle forward speed is the rear wheel forward speed, i.e. v ═ vx(ii) a Due to the angle of inclination of the vehicle bodySmall and therefore has negligible effect on kinematics.
Thus, referring to fig. 1, a kinematic model of the bicycle is derived:
wherein psiaIs the yaw angle of the bicycle,to about psiaThe first derivative of (a) is,fis the effective steering angle of the bicycle, i.e. the projection of the steering angle on the ground, b is the wheel base of the bicycle, R is the turning radius of the bicycle during its movement, xaFor the rear wheel landing point P of a bicycle1The coordinate of X direction on the ground coordinate system O-XYZ,to relate to xaFirst derivative of, yaFor the rear wheel landing point P of a bicycle1The coordinate of Y direction on the ground coordinate system O-XYZ,as to yaThe first derivative of (c), since the bicycle only moves at ground level, does not take into account the coordinates of the bicycle in the Z direction.
Discretizing the continuous kinematic model is obtained from a discrete kinematic model of the vehicle:
since the bicycle is moving at a constant speed, v (k) ═ v.
Handlebar steering angle and effective handlebar steering angle for bicyclefHave the following relationship between:
substituting the formula (6) to obtain:
the bicycle kinematic model shown in the formula (8) is nonlinear, and is developed by directly taking the target track as a reference by using a Taylor formula to establish a bicycle linear kinematic model related to errors.
Target trajectory is denoted xr(k)=[xr(k),yr(k),ψr(k)]T,ur(k)=[r(k)]T. Wherein x isr(k) Reference state variable, u, for the target trajectoryr(k) Reference input variable, x, for the target trajectoryrFor the rear wheel landing point P of a bicycle1In the X direction, y, of the ground coordinate system O-XYZrFor the rear wheel landing point P of a bicycle1And target coordinate values in the Y direction on the ground coordinate system O-XYZ. PsirIs the target yaw angle of the bicycle,rfor a target handlebar steering angle of a bicycle, the expression of the first order Taylor formula after omitting the high order term is as follows:
fx,rpartial derivative of bicycle kinematics model with respect to x is xrThe value of time; f. ofu,rPartial derivative of bicycle kinematics model with respect to u in u ═ urThe value of time;indicating the deviation amount of the actual state of the bicycle from the reference state;indicating the amount of deviation of the bicycle actual input from the reference input.
Since only the first order term is retained, the bicycle kinematic model derived from this equation is a linear model, and equation (8) is substituted into (9):
wherein,
3. establishing a bicycle state prediction model:
combining the bicycle dynamic state equation with the balance controller and the bicycle kinematic state equation, the following set of differential equations is listed:
transforming the sixth differential equation into the form:
the equation set is arranged to obtain the following seven-dimensional state prediction model:
x(k+1)=A·x(k)+B·u(k)(11)
x (k) are the state variables of the bicycle prediction model, u (k) are the input variables of the bicycle prediction model, the specific definitions are indicated below,
4. bicycle track tracking control algorithm based on model predictive control
Model predictive control, also known as rolling horizon control or rolling optimal control, originated in the last 60 s. The method utilizes the explicit model of the controlled object to predict the state of the controlled object at a future moment from the current state of the controlled object. The prediction capability can calculate a control sequence which enables a target control index to be optimal on line in real time, so that the behavior of a controlled object at a future moment is optimized. The result of the optimization will act on the system according to the principle of the rolling time domain. Therefore, the core of the model prediction control is three parts of model prediction, rolling optimization and feedback correction.
Model predictive control has been widely used for decades in industrial process control because it can explicitly integrate control objectives and operational constraints into an optimization problem and solve it online in each control cycle. Since on-line calculation is required and the time is slow, model predictive control is generally applied to a field such as a factory where the control frequency is low. However, in recent years, with the rapid increase in computer computation speed, model predictive control has been increasingly applied to the field of high-frequency control such as mobile robots.
The principle of model predictive control is shown in fig. 3. For a discrete system, at a certain time T, a model predictive control algorithm calculates the optimal control input u of the system at a certain time sequence T, T + T, at,ut+T,....,ut+(N-1)T. Wherein T is a system sampling period, and N is a prediction range of model prediction control. But only the input value u at the current timetIs adopted as the input of the current time of the system, and the rest of the input value ut+T,....,ut+(N-1)TIs discarded and at the next sampling instant T + T the calculation at the previous instant is repeated. And circulating according to the principle to obtain the optimal input value of each control period of the system. Therefore, model predictive control is an on-line real-time control method that automatically adjusts to the current state of the system and to predicted future conditionsAnd (6) outputting the most appropriate control strategy.
The index function J of model predictive control generally takes the form of a linear quadratic form, and the expression is as follows:
in the formula t0For the model predictive control of the starting time, tfQ (t) is a semi-positive definite matrix with n × n dimensions, R (t) is a positive definite matrix with r × r dimensions, and Q is the end time of model predictive control0Is a n × n-dimensional semi-positive definite matrix;
in practical engineering, since the components of the state variable and the input variable are generally independent of each other, and the cross terms are meaningless, q (t) and r (t) often take diagonal matrices. In general, the objective of the linear quadratic form is to minimize J, and the practical significance is to optimize the combination of the error index and energy consumption by keeping the state error small with a small input.
Since in the bicycle tracking problem the control system is a discrete system, the indicator function (12) becomes of the form:
wherein k is0And N is the prediction range at the current moment.
And solving the minimum value of the index function J to obtain the current optimal input. The bicycle prediction model is a linear model, and the solving steps are as follows:
step 1: initially, let k equal to k0+N,P(k0+N)=Q0
Step 2: the input u (k) at the k-th time is g (k) · x (k), where g (k) is a state feedback coefficient matrix, and the expression is
G(k)=-(R(k)+B(k)TP(k+1)B(k))-1B(k)TP(k+1)A(k)
Wherein, P (k +1) is the positive solution of the discrete time varying system Riccati equation, and the discrete time varying system Riccati equation expression is as follows:
P(k)=Q(k)+A(k)T(P(k+1))-P(k+1))B(k)(R(k)
+B(k)TP(k+1)B(k))-1B(k)TP(k+1))A(k)
and step 3: k is all self-decreasing by 1, when k is k0If so, the calculation is finished, otherwise, the step 2 is returned.
Thus, after N reverse iterations, the optimal input sequence u (k) is obtained0),u(k0+1),.....u(k0+ N-1), but only the input value u (k) at the current time0) Is taken as input to the system at the current time, and the remaining input values are discarded, after which the above calculations are repeated at each sampling time. Circulating according to the principle to obtain each control period of the systemThe optimum input value of (2).
It should be noted that the target for the bicycle track following control is to make four deviations xa(k)-xr(k),ya(k)-yr(k),ψa(k)-ψr(k) And (k) -r(k) And the weight value tends to 0, and the values of other state quantities and the input u in the state vector x are not concerned, so that the weight values of the four deviation quantities are required to be set to be far larger than the other state quantities when the weight matrix Q and the weight matrix R are selected. Furthermore, since dynamic programming is unconstrained to solve for the optimal target body-tilt angle of the bicycle, in practical situations, the target body-tilt angle of the bicycle cannot be too large, otherwise the bicycle will not be able to remain balanced. Therefore, the obtained target body lean angle needs to be limited.
FIG. 4 is a diagram of a bicycle trajectory tracking simulation system. Several typical target tracks are selected for carrying out the dynamics simulation of bicycle track tracking control, and the simulation results are respectively shown as a bicycle tracking straight line track simulation result in fig. 5, a bicycle tracking circular track simulation result in fig. 6 and a bicycle tracking straight line-circle combined track simulation result in fig. 7.
Claims (5)
1. A trajectory tracking control method of an unmanned bicycle is characterized by comprising the following steps:
step 1, establishing a balance dynamic model of a bicycle, and establishing a discrete state equation of a self-balancing control system of the bicycle after a self-balancing controller is added;
step 2, establishing a discrete kinematics model of the bicycle, and carrying out linearization;
step 3, combining the kinematic model with a self-balancing control system to establish a seven-dimensional state prediction model of the bicycle;
and 4, adopting the seven-dimensional state prediction model in the step 3 as a prediction model of a bicycle track tracking algorithm to perform bicycle track tracking control, and solving the optimal control input of each sampling moment on line.
2. The method for controlling the trajectory tracking of the unmanned bicycle according to claim 1, wherein the discrete state equation of the bicycle self-balancing control system in step 1 is established by:
the balance dynamic model of the bicycle is established as follows:
wherein,the inclination angle of the bicycle body and the steering angle of the handlebar of the bicycle, a is the gravity center G and the rear wheel landing point P of the bicycle1H is the distance from the center of gravity of the bicycle to the ground when the bicycle body is not inclined, lambda is the front fork angle of the bicycle, vxThe forward speed of the rear wheel of the bicycle, c the trailing of the bicycle, b the wheel base of the bicycle, g the acceleration of gravity, and s the laplacian operator;
the self-balancing control of the bicycle adopts a control structure of proportional-differential control and feedforward, and the expression of a control law is as follows:
wherein,dis the steering angle command of the handlebar of the bicycle, namely the output of the self-balancing controller,the target body inclination angle for the bicycle, i.e. the input to the self-balancing controller,to relate toFirst derivative of (k)1Is a proportionality coefficient, k2Is a differential coefficient, 1/k3Is a feedforward coefficient;
steering angle command for handlebardA low-pass filtering link exists between the steering angle of the actual handlebarThe link is a first-order inertia link, TSIs a time constant;
the discrete state equation of the bicycle self-balancing control system is as follows:
matrix array
Matrix array
Wherein the intermediate variable K1 ═ mh2Intermediate variablesIntermediate variable K3 ═ mgh, intermediate variable Coefficient of feedforward m is the mass of the bicycle,is the inclination angle of the bicycle body of the bicycle,to relate toIs related to the handlebar steering angle of the bicycle, T is the sampling period of the discrete system, and k is the sampling time sequence number.
3. The method for controlling the trajectory tracking of the unmanned bicycle as claimed in claim 2, wherein the specific process of step 2 is as follows:
the forward speed v of the bicycle is the forward speed v of the rear wheel of the bicyclexI.e. v ═ vx(ii) a Vehicle body inclination angleNeglecting the influence on the kinematics, obtaining a kinematic model of the bicycle:
wherein psiaIs the yaw angle of the bicycle,to about psiaThe first derivative of (a) is,fis the effective steering angle of the bicycle, i.e. the projection of the steering angle on the ground, b is the wheel base of the bicycle, R is the turning radius of the bicycle during its movement, xaFor the rear wheel landing point P of a bicycle1The coordinate of X direction on the ground coordinate system O-XYZ,to relate to xaFirst derivative of, yaFor the rear wheel landing point P of a bicycle1The coordinate of Y direction on the ground coordinate system O-XYZ,as to yaThe first derivative of (a), since the bicycle only moves at ground level, the coordinates of the bicycle in the Z direction are not taken into account;
handlebar steering angle and effective handlebar steering angle for bicyclefHave the following relationship between:
the body inclination angle of the bicycle is shown, and lambda is the front fork angle of the bicycle;
the bicycle moves at a constant speed v (k) ═ v, and the kinematic model is discretized to obtain:
wherein, T is the sampling period of the discrete system, and k is the sampling time sequence number;
the discrete kinematic model is nonlinear, and the kinematic model is linearized near a reference trajectory to obtain a linear kinematic model:
wherein, the matrix Matrix array
Indicating the deviation amount of the actual state of the bicycle from the reference state;indicating the amount of deviation of the bicycle actual input from the reference input.
4. The method as claimed in claim 3, wherein the seven-dimensional state prediction model of the bicycle in step 3 is:
combining a discrete state equation of a bicycle self-balancing control system with a kinematic model of a bicycle, and obtaining the following seven-dimensional state prediction model by sorting:
x(k+1)=A·x(k)+B·u(k)
matrix array
Matrix array
x (k) are the state variables of the bicycle prediction model, and u (k) are the input variables of the bicycle prediction model.
5. The method for controlling the trajectory tracking of the unmanned bicycle according to claim 4, wherein the bicycle trajectory tracking control algorithm in the step 4 comprises the following specific steps:
the index function J of model predictive control generally adopts a linear quadratic form, and in the track tracking problem of the bicycle, the control system is a discrete system, and the index function becomes:
wherein k is0Is the current time, N is the prediction range, t0For the model predictive control of the starting time, tfQ (t) is a semi-positive definite matrix with n × n dimensions, R (t) is a positive definite matrix with r × r dimensions, and Q is the end time of model predictive control0Is a n × n-dimensional semi-positive definite matrix;
the current optimal input is obtained by solving the minimum value of the index function J, and the solving steps are as follows:
step 401: initially, let k equal to k0+N,P(k0+N)=Q0
Step 402: the input u (k) at the k-th time is g (k) · x (k), where g (k) is a state feedback coefficient matrix, and the expression is
G(k)=-(R(k)+B(k)TP(k+1)B(k))-1B(k)TP(k+1)A(k)
Wherein P (k +1) is the positive solution of the discrete time-varying system Riccati equation, and the expression of the discrete time-varying system Riccati equation is
P(k)=Q(k)+A(k)T(P(k+1))-P(k+1))B(k)(R(k)
+B(k)TP(k+1)B(k))-1B(k)TP(k+1))A(k)
Step 403: k is all self-decreasing by 1, when k is k0If so, the calculation is finished, otherwise, the step 402 is returned to;
after N times of reverse iteration, the optimal input sequence u (k) is obtained0),u(k0+1),.....u(k0+ N-1), using the input value u (k) at the current time0) The residual input value is discarded as the input of the current time of the system, and the calculation is repeated at each sampling time; and circulating according to the principle to obtain the optimal input value of each control period of the system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510690834.4A CN105320129B (en) | 2015-10-22 | 2015-10-22 | A kind of method of unmanned bicycle Trajectory Tracking Control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510690834.4A CN105320129B (en) | 2015-10-22 | 2015-10-22 | A kind of method of unmanned bicycle Trajectory Tracking Control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105320129A true CN105320129A (en) | 2016-02-10 |
CN105320129B CN105320129B (en) | 2018-05-29 |
Family
ID=55247708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510690834.4A Active CN105320129B (en) | 2015-10-22 | 2015-10-22 | A kind of method of unmanned bicycle Trajectory Tracking Control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105320129B (en) |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105539679A (en) * | 2016-02-19 | 2016-05-04 | 桂林电子科技大学 | Pull type multi-section modularized bicycle robot mechanism |
CN106080941A (en) * | 2016-08-04 | 2016-11-09 | 清华大学 | A kind of unmanned bicycle realizing speed change balance control |
CN106919177A (en) * | 2017-03-31 | 2017-07-04 | 深圳市靖洲科技有限公司 | A kind of unmanned balance of bicycle control method based on rate gyroscope |
CN106997664A (en) * | 2017-05-19 | 2017-08-01 | 苏州寅初信息科技有限公司 | It is a kind of to be used to share control method and its system that bicycle is intelligently travelled |
CN107357168A (en) * | 2017-06-01 | 2017-11-17 | 同济大学 | A kind of unmanned vehicle barrier-avoiding method based on Chance-constrained Model PREDICTIVE CONTROL |
CN107932489A (en) * | 2018-01-15 | 2018-04-20 | 哈尔滨理工大学 | A kind of robot cycling device and control method |
CN108334086A (en) * | 2018-01-25 | 2018-07-27 | 江苏大学 | A kind of automatic driving vehicle path tracking control method based on soft-constraint quadratic programming MPC |
CN108327841A (en) * | 2018-01-26 | 2018-07-27 | 浙江大学 | A kind of unmanned bicycle of self-balancing and its control method |
CN108357595A (en) * | 2018-01-26 | 2018-08-03 | 浙江大学 | A kind of control method of the unmanned bicycle of self-balancing based on model and its model-driven |
CN108646734A (en) * | 2018-04-27 | 2018-10-12 | 天津大学 | Nonlinear model predictive control method based on quanta particle swarm optimization |
CN108762244A (en) * | 2018-01-26 | 2018-11-06 | 浙江大学 | A kind of control method for the unmanned bicycle of self-balancing and its equivalent mappings that Behavior-based control drives |
CN108762095A (en) * | 2018-07-12 | 2018-11-06 | 清华大学 | A kind of real time partitioned stable control method of the multi-agent system that controlled quentity controlled variable is discrete |
CN109017808A (en) * | 2018-08-16 | 2018-12-18 | 天津大学 | A kind of pilotless automobile model predictive controller design method |
CN109945885A (en) * | 2019-04-16 | 2019-06-28 | 清华大学 | The dynamic barrier obstacle-avoiding route planning calculation method of unmanned motor |
CN109948830A (en) * | 2019-01-29 | 2019-06-28 | 青岛科技大学 | Mix bicycle trajectory predictions method, equipment and the medium of environment certainly towards people |
CN110032187A (en) * | 2019-04-09 | 2019-07-19 | 清华大学 | Unmanned motor static-obstacle obstacle-avoiding route planning calculation method |
CN110134136A (en) * | 2019-05-29 | 2019-08-16 | 清华大学 | Unmanned motorcycle vision navigation system |
CN110221611A (en) * | 2019-06-11 | 2019-09-10 | 北京三快在线科技有限公司 | A kind of Trajectory Tracking Control method, apparatus and automatic driving vehicle |
CN110348140A (en) * | 2019-07-15 | 2019-10-18 | 清华大学 | Based on towing away from two-wheel robot modeling and static balance method and device |
CN111361681A (en) * | 2020-03-19 | 2020-07-03 | 北京大学 | Device and method capable of realizing self-balancing of bicycle and bicycle |
CN112445232A (en) * | 2020-06-23 | 2021-03-05 | 国网浙江温岭市供电有限公司 | Portable somatosensory control autonomous inspection robot |
CN112477880A (en) * | 2020-11-30 | 2021-03-12 | 天津大学 | Longitudinal control method for unmanned automobile |
CN113771837A (en) * | 2021-09-03 | 2021-12-10 | 长安大学 | Unmanned bicycle control method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103085816A (en) * | 2013-01-30 | 2013-05-08 | 同济大学 | Trajectory tracking control method and control device for driverless vehicle |
US20130218396A1 (en) * | 2011-07-14 | 2013-08-22 | GM Global Technology Operations LLC | System and method for enhanced vehicle control |
CN103631142A (en) * | 2013-12-09 | 2014-03-12 | 天津工业大学 | Iterative learning algorithm for trajectory tracking of wheeled robot |
CN103926839A (en) * | 2014-04-23 | 2014-07-16 | 浙江师范大学 | Movement subdivision control method of wheeled mobile robot |
CN104181923A (en) * | 2014-08-29 | 2014-12-03 | 武汉大学 | Intelligent automobile curve tracking method based on linear controller |
-
2015
- 2015-10-22 CN CN201510690834.4A patent/CN105320129B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130218396A1 (en) * | 2011-07-14 | 2013-08-22 | GM Global Technology Operations LLC | System and method for enhanced vehicle control |
CN103085816A (en) * | 2013-01-30 | 2013-05-08 | 同济大学 | Trajectory tracking control method and control device for driverless vehicle |
CN103631142A (en) * | 2013-12-09 | 2014-03-12 | 天津工业大学 | Iterative learning algorithm for trajectory tracking of wheeled robot |
CN103926839A (en) * | 2014-04-23 | 2014-07-16 | 浙江师范大学 | Movement subdivision control method of wheeled mobile robot |
CN104181923A (en) * | 2014-08-29 | 2014-12-03 | 武汉大学 | Intelligent automobile curve tracking method based on linear controller |
Non-Patent Citations (2)
Title |
---|
LUCIANO ALONSO 等: "Self-Tuning PID Controller for Autonomous Car Tracking in Urban Traffic", 《PROC OF SYSTEM THEORY,CONTROL AND COMPUTING(ICSTCC)》 * |
余永超 等: "自主驾驶自行车的改进路径跟踪算法", 《华中科技大学学报(自然科学版)》 * |
Cited By (36)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105539679B (en) * | 2016-02-19 | 2017-12-15 | 桂林电子科技大学 | Pulling type more piece modul bicycle machines robot mechanism |
CN105539679A (en) * | 2016-02-19 | 2016-05-04 | 桂林电子科技大学 | Pull type multi-section modularized bicycle robot mechanism |
CN106080941B (en) * | 2016-08-04 | 2018-12-18 | 清华大学 | A kind of unmanned bicycle for realizing speed change balance control |
CN106080941A (en) * | 2016-08-04 | 2016-11-09 | 清华大学 | A kind of unmanned bicycle realizing speed change balance control |
CN106919177A (en) * | 2017-03-31 | 2017-07-04 | 深圳市靖洲科技有限公司 | A kind of unmanned balance of bicycle control method based on rate gyroscope |
CN106997664A (en) * | 2017-05-19 | 2017-08-01 | 苏州寅初信息科技有限公司 | It is a kind of to be used to share control method and its system that bicycle is intelligently travelled |
CN106997664B (en) * | 2017-05-19 | 2020-01-17 | 宁波齐心科技股份有限公司 | Control method and system for sharing intelligent driving of bicycle |
CN107357168A (en) * | 2017-06-01 | 2017-11-17 | 同济大学 | A kind of unmanned vehicle barrier-avoiding method based on Chance-constrained Model PREDICTIVE CONTROL |
CN107357168B (en) * | 2017-06-01 | 2019-12-31 | 同济大学 | Unmanned vehicle obstacle avoidance method based on opportunity constraint model predictive control |
CN107932489A (en) * | 2018-01-15 | 2018-04-20 | 哈尔滨理工大学 | A kind of robot cycling device and control method |
CN108334086A (en) * | 2018-01-25 | 2018-07-27 | 江苏大学 | A kind of automatic driving vehicle path tracking control method based on soft-constraint quadratic programming MPC |
CN108334086B (en) * | 2018-01-25 | 2021-06-22 | 江苏大学 | Unmanned vehicle path tracking control method based on soft-constraint quadratic programming MPC |
CN108762244A (en) * | 2018-01-26 | 2018-11-06 | 浙江大学 | A kind of control method for the unmanned bicycle of self-balancing and its equivalent mappings that Behavior-based control drives |
CN108357595A (en) * | 2018-01-26 | 2018-08-03 | 浙江大学 | A kind of control method of the unmanned bicycle of self-balancing based on model and its model-driven |
CN108762244B (en) * | 2018-01-26 | 2020-06-23 | 浙江大学 | Behavior-driven self-balancing unmanned bicycle and control method of equivalent mapping thereof |
CN108327841A (en) * | 2018-01-26 | 2018-07-27 | 浙江大学 | A kind of unmanned bicycle of self-balancing and its control method |
CN108646734B (en) * | 2018-04-27 | 2021-04-02 | 天津大学 | Nonlinear model prediction control method based on quantum particle swarm algorithm |
CN108646734A (en) * | 2018-04-27 | 2018-10-12 | 天津大学 | Nonlinear model predictive control method based on quanta particle swarm optimization |
CN108762095A (en) * | 2018-07-12 | 2018-11-06 | 清华大学 | A kind of real time partitioned stable control method of the multi-agent system that controlled quentity controlled variable is discrete |
CN108762095B (en) * | 2018-07-12 | 2020-05-12 | 清华大学 | Real-time partition stable control method for multi-agent system with discrete control quantity |
CN109017808A (en) * | 2018-08-16 | 2018-12-18 | 天津大学 | A kind of pilotless automobile model predictive controller design method |
CN109948830A (en) * | 2019-01-29 | 2019-06-28 | 青岛科技大学 | Mix bicycle trajectory predictions method, equipment and the medium of environment certainly towards people |
CN109948830B (en) * | 2019-01-29 | 2021-03-02 | 青岛科技大学 | Bicycle track prediction method, equipment and medium oriented to self-mixed environment |
CN110032187A (en) * | 2019-04-09 | 2019-07-19 | 清华大学 | Unmanned motor static-obstacle obstacle-avoiding route planning calculation method |
CN110032187B (en) * | 2019-04-09 | 2020-08-28 | 清华大学 | Unmanned motorcycle static obstacle avoidance path planning calculation method |
CN109945885A (en) * | 2019-04-16 | 2019-06-28 | 清华大学 | The dynamic barrier obstacle-avoiding route planning calculation method of unmanned motor |
CN110134136A (en) * | 2019-05-29 | 2019-08-16 | 清华大学 | Unmanned motorcycle vision navigation system |
CN110221611B (en) * | 2019-06-11 | 2020-09-04 | 北京三快在线科技有限公司 | Trajectory tracking control method and device and unmanned vehicle |
CN110221611A (en) * | 2019-06-11 | 2019-09-10 | 北京三快在线科技有限公司 | A kind of Trajectory Tracking Control method, apparatus and automatic driving vehicle |
CN110348140A (en) * | 2019-07-15 | 2019-10-18 | 清华大学 | Based on towing away from two-wheel robot modeling and static balance method and device |
CN111361681B (en) * | 2020-03-19 | 2021-02-09 | 北京大学 | Device and method capable of realizing self-balancing of bicycle and bicycle |
CN111361681A (en) * | 2020-03-19 | 2020-07-03 | 北京大学 | Device and method capable of realizing self-balancing of bicycle and bicycle |
CN112445232A (en) * | 2020-06-23 | 2021-03-05 | 国网浙江温岭市供电有限公司 | Portable somatosensory control autonomous inspection robot |
CN112477880A (en) * | 2020-11-30 | 2021-03-12 | 天津大学 | Longitudinal control method for unmanned automobile |
CN113771837A (en) * | 2021-09-03 | 2021-12-10 | 长安大学 | Unmanned bicycle control method and system |
CN113771837B (en) * | 2021-09-03 | 2023-02-28 | 长安大学 | Unmanned bicycle control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105320129B (en) | 2018-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105320129B (en) | A kind of method of unmanned bicycle Trajectory Tracking Control | |
Hu et al. | Robust H∞ output-feedback control for path following of autonomous ground vehicles | |
CN111273551B (en) | Double-steering wheel automatic guided vehicle trajectory tracking control method and system | |
CN110244735B (en) | Heuristic dynamic programming control method for tracking preset track by mobile robot | |
Villagra et al. | Flatness-based vehicle steering control strategy with SDRE feedback gains tuned via a sensitivity approach | |
CN108227491B (en) | Intelligent vehicle track tracking control method based on sliding mode neural network | |
Guo et al. | Intelligent vehicle trajectory tracking based on neural networks sliding mode control | |
CN108958246A (en) | Trajectory Tracking Control method of the unmanned vehicle in U-Turn scene | |
CN101794153B (en) | Point-stabilized control method of intelligent trolley | |
Meiling et al. | Model predictive control for UGV trajectory tracking based on dynamic model | |
CN115268450B (en) | Six-wheel independent driving independent steering robot complex terrain track tracking control method | |
Jiang et al. | Active disturbance rejection control based on adaptive differential evolution for two-wheeled self-balancing robot | |
Jaramillo-Morales et al. | Predictive power estimation for a differential drive mobile robot based on motor and robot dynamic models | |
Chang et al. | Adaptive tracking controller based on the PID for mobile robot path tracking | |
Sahoo et al. | Design and development of a heading angle controller for an unmanned ground vehicle | |
He et al. | Composite deep learning control for autonomous bicycles by using deep deterministic policy gradient | |
Lee et al. | Predictive control of a vehicle trajectory using a coupled vector with vehicle velocity and sideslip angle | |
Tsai et al. | Modeling and hierarchical tracking control of tri-wheeled mobile robots | |
Bacha et al. | Autonomous vehicle path tracking using nonlinear steering control and input-output state feedback linearization | |
Tourajizadeh et al. | Modeling and Optimal Contol of 4 Wheel Steering Vehicle Using LQR and its Comparison with 2 Wheel Steering Vehicle | |
Defoort et al. | Second order sliding mode control with disturbance observer for bicycle stabilization | |
Vilca et al. | An overall control strategy based on target reaching for the navigation of an urban electric vehicle | |
Uddin | Adaptive trajectory tracking control system of two-wheeled robot | |
Gong et al. | Path tracking of unmanned vehicle based on parameters self-tuning fuzzy control | |
Qi et al. | Trajectory tracking control for double-steering automated guided vehicle based on model predictive control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |