[go: up one dir, main page]

CN113433942B - Long-axis vehicle path tracking control method based on optimal course angle - Google Patents

Long-axis vehicle path tracking control method based on optimal course angle Download PDF

Info

Publication number
CN113433942B
CN113433942B CN202110744601.3A CN202110744601A CN113433942B CN 113433942 B CN113433942 B CN 113433942B CN 202110744601 A CN202110744601 A CN 202110744601A CN 113433942 B CN113433942 B CN 113433942B
Authority
CN
China
Prior art keywords
vehicle
long
control
path
axis
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.)
Active
Application number
CN202110744601.3A
Other languages
Chinese (zh)
Other versions
CN113433942A (en
Inventor
皮大伟
李文斌
王洪亮
谢伯元
王霞
徐伟业
王尔烈
孙晓旺
王显会
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN202110744601.3A priority Critical patent/CN113433942B/en
Publication of CN113433942A publication Critical patent/CN113433942A/en
Application granted granted Critical
Publication of CN113433942B publication Critical patent/CN113433942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0223Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving speed control of the vehicle
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Steering Control In Accordance With Driving Conditions (AREA)

Abstract

本发明公开一种基于最优航向角的长轴车辆路径跟踪控制方法。包括如下步骤:根据长轴车辆的运动学模型选取控制系统的状态量与控制量,建立参考状态点的跟踪误差方程,建立长轴车辆与参考路径的整体偏差模型,根据坐标变换的方法求解得到整体偏差的最值从而确定长轴车辆在转向中的最优航向角,基于该航向角与实际车辆之间的位姿误差方程建立MPC路径跟踪控制器,通过求解控制器中的代价函数确定长轴车辆在转向过程中的最优前轮转角,进而控制车辆沿着参考路径行驶。本发明实现了长轴车辆路径跟踪控制而且使得前轮行驶轨迹更加靠近参考路径,有效的减小长轴车辆在转向过程中前轮的扫略面积,提高了长轴车辆在狭窄区域的通过性。

Figure 202110744601

The invention discloses a long-axis vehicle path tracking control method based on an optimal heading angle. It includes the following steps: select the state quantity and control quantity of the control system according to the kinematic model of the long-axis vehicle, establish the tracking error equation of the reference state point, establish the overall deviation model between the long-axis vehicle and the reference path, and solve it according to the method of coordinate transformation to obtain The maximum value of the overall deviation is used to determine the optimal heading angle of the long-axis vehicle in steering. The MPC path tracking controller is established based on the pose error equation between the heading angle and the actual vehicle, and the long-axis is determined by solving the cost function in the controller. The optimal front wheel angle of the axle vehicle during the steering process is determined, and then the vehicle is controlled to drive along the reference path. The invention realizes the path tracking control of the long-axis vehicle and makes the driving track of the front wheels closer to the reference path, effectively reduces the sweeping area of the front wheels during the steering process of the long-axis vehicle, and improves the passability of the long-axis vehicle in narrow areas .

Figure 202110744601

Description

一种基于最优航向角的长轴车辆路径跟踪控制方法A Path Tracking Control Method for Long-axis Vehicles Based on Optimal Heading Angle

技术领域technical field

本发明属于智能车路径跟踪领域,具体涉及一种基于最优航向角的长轴车辆路径跟踪控制方法。The invention belongs to the field of intelligent vehicle path tracking, and in particular relates to a long-axis vehicle path tracking control method based on an optimal heading angle.

背景技术Background technique

智能车路径跟踪控制技术是目前研究的热点,但研究对象以乘用车为主,对商用车的研究存在不足,实现长轴车辆的路径跟踪控制是智能化交通的重要组成部分。长轴车辆的车辆参数与乘用车存在明显不同,同时长轴车在通过狭窄区域转向过程中容易与道路环境发生碰撞,同时目前常用的路径跟踪控制技术如PID,纯跟踪,MPC控制算法等都将车辆简化为质点进行控制研究,但对于长轴车辆而言上述算法不能体现长轴车辆的转向特性,故上述方法存在不足。Intelligent vehicle path tracking control technology is a hot research topic at present, but the research objects are mainly passenger vehicles, and the research on commercial vehicles is insufficient. Realizing the path tracking control of long-axis vehicles is an important part of intelligent transportation. The vehicle parameters of long-axis vehicles are obviously different from those of passenger cars. At the same time, long-axis vehicles are prone to collide with the road environment during steering through narrow areas. At the same time, the commonly used path tracking control technologies such as PID, pure tracking, MPC control algorithms, etc. Both simplify the vehicle to a mass point for control research, but for long-axis vehicles, the above algorithm cannot reflect the steering characteristics of long-axis vehicles, so the above method has shortcomings.

中国发明专利第CN202011557293.5号,2020年12月24日公开,公开了一种基于Lyapunov-MPC路径跟踪控制方法,依据车辆动力学模型建立目标值与期望值之间的跟踪误差模型,基于CLF(Control Lyapunov Function)理论设计了一种LMPC控制器,利用反步法设计辅助跟踪控制律并将其转化为MPC优化过程中的约束条件,从理论上保证整个系统的闭环稳定性。但这种方法只考虑车辆在路径跟踪过程中的稳定性和鲁棒性,不能保证长轴车辆与狭窄道路环境之间存在安全区域。Chinese Invention Patent No. CN202011557293.5, published on December 24, 2020, discloses a path tracking control method based on Lyapunov-MPC, which establishes a tracking error model between the target value and the expected value based on the vehicle dynamics model, based on CLF( Control Lyapunov Function) theory to design an LMPC controller, use the backstepping method to design the auxiliary tracking control law and convert it into the constraints in the MPC optimization process, theoretically guarantee the closed-loop stability of the entire system. However, this method only considers the stability and robustness of the vehicle during path tracking, and cannot guarantee a safe area between the long-axle vehicle and the narrow road environment.

总之,目前长轴车辆路径跟踪过程中存在的主要问题是:将长轴车辆单纯作为质点控制研究时不能体现长轴车辆的特性,长轴车辆在狭窄区域转向过程中容易与道路环境发生碰撞。In short, the main problem in the path tracking process of long-axis vehicles is that the characteristics of long-axis vehicles cannot be reflected when the long-axis vehicles are purely regarded as particle control research, and the long-axis vehicles are easy to collide with the road environment in the process of turning in a narrow area.

发明内容Contents of the invention

本发明的目的在于提供一种基于最优航向角的长轴车辆路径跟踪控制方法,能够减小长轴车辆与参考路径之间的整体偏差,使得长轴车辆安全无碰撞通过狭窄区域。The purpose of the present invention is to provide a path tracking control method for a long-axis vehicle based on an optimal heading angle, which can reduce the overall deviation between the long-axis vehicle and the reference path, so that the long-axis vehicle can safely pass through a narrow area without collision.

实现本发明目的的技术解决方案为:一种基于最优航向角的长轴车辆路径跟踪控制方法,其特征在于,包括如下步骤:The technical solution for realizing the object of the present invention is: a long-axis vehicle path tracking control method based on an optimal heading angle, which is characterized in that it includes the following steps:

步骤S1:根据车辆前后轮的速度约束建立长轴车辆的运动学模型,然后选择车辆的状态量与控制量,建立模型预测控制MPC算法的误差方程;Step S1: Establish the kinematics model of the long-axis vehicle according to the speed constraints of the front and rear wheels of the vehicle, then select the state quantity and control quantity of the vehicle, and establish the error equation of the model predictive control MPC algorithm;

步骤S2:依据给定的参考路径建立长轴车辆与参考路径之间的整体偏差模型,通过坐标变换的方法求解得到整体偏差模型的最值从而确定长轴车辆与参考路径之间的最优航向角;Step S2: Establish the overall deviation model between the long-axis vehicle and the reference route according to the given reference route, and obtain the maximum value of the overall deviation model through the method of coordinate transformation to determine the optimal heading between the long-axis vehicle and the reference route horn;

步骤S3:根据步骤S1中的误差方程和步骤S2中的最优航向角建立MPC路径跟踪控制器,建立预测方程表达式,然后根据车辆实际状态的反馈量与理想状态下的参考量建立代价函数,通过对代价函数进行求解得到长轴车辆在路径跟踪过程中的前轮最优转角;Step S3: Establish an MPC path tracking controller based on the error equation in step S1 and the optimal heading angle in step S2, establish a prediction equation expression, and then establish a cost function based on the feedback amount of the actual state of the vehicle and the reference amount in the ideal state , by solving the cost function to obtain the optimal front wheel angle of the long-axis vehicle in the path tracking process;

步骤S4:判断车辆是否走完给定参考路径,若没完成则重复步骤S2和S3,直到走完所有参考点,最终得到前后轮的行驶轨迹。Step S4: Determine whether the vehicle has completed the given reference path, if not, repeat steps S2 and S3 until all reference points have been completed, and finally obtain the driving trajectory of the front and rear wheels.

与现有技术相比,本发明具有以下几点:Compared with the prior art, the present invention has the following points:

(1)本发明不在将车辆看作单个质点进行研究,而是考虑长轴车辆与参考路径之间的整体偏差,通过求解整体偏差模型确定长轴车辆与参考路径之间的最优航向角,最终不仅实现车辆路径跟踪控制,而且与给定参考路径下的航向角相比最优航向角能够使得车辆前轮跟踪轨迹更加靠近给定参考路径,减小长轴车辆在转向过程中的扫略面积,实现长轴车辆无碰撞通过狭窄区域。(1) The present invention does not regard the vehicle as a single mass point for research, but considers the overall deviation between the long-axis vehicle and the reference path, and determines the optimal heading angle between the long-axis vehicle and the reference path by solving the overall deviation model, Finally, not only the vehicle path tracking control is realized, but also the optimal heading angle compared with the heading angle under the given reference path can make the front wheel tracking track of the vehicle closer to the given reference path, reducing the sweep of the long-axis vehicle during the steering process area, so that long-axis vehicles can pass through narrow areas without collision.

(2)本方法设计的MPC路径跟踪控制器,通过对控制量的约束和控制时域的滚动优化可以确定车辆在路径跟踪过程中的最佳控制量,能够保证车辆平稳准确的跟踪参考路径。(2) The MPC path tracking controller designed by this method can determine the optimal control quantity of the vehicle in the path tracking process through the constraint of the control quantity and the rolling optimization of the control time domain, and can ensure that the vehicle can track the reference path smoothly and accurately.

附图说明Description of drawings

图1为本发明的长轴车辆路径跟踪方法流程图。FIG. 1 is a flow chart of the long-axis vehicle path tracking method of the present invention.

图2为本发明的车辆运动学模型图。Fig. 2 is a vehicle kinematics model diagram of the present invention.

图3为本发明车辆与参考路径之间的整体偏差图。Fig. 3 is an overall deviation map between the vehicle of the present invention and the reference path.

图4为本发明MPC控制算法流程图。Fig. 4 is a flow chart of the MPC control algorithm of the present invention.

图5双移线工况下参考航向角与最优航向角图。Fig. 5 Diagram of reference heading angle and optimal heading angle under double-lane shifting conditions.

图6双移线工况下前轮轨迹图。Fig. 6 Front wheel track diagram under double lane shifting condition.

具体实施方式Detailed ways

下面结合附图对本发明作进一步详细描述。The present invention will be described in further detail below in conjunction with the accompanying drawings.

如图1-6所示,一种基于最优航向角的长轴车辆路径跟踪控制方法,包括如下步骤:As shown in Figure 1-6, a long-axis vehicle path tracking control method based on the optimal heading angle includes the following steps:

步骤S1:根据车辆前后轮的速度约束建立长轴车辆的运动学模型,然后选择车辆的状态量与控制量,并建立模型预测控制(MPC)算法的误差方程;Step S1: Establish the kinematics model of the long-axis vehicle according to the speed constraints of the front and rear wheels of the vehicle, then select the state quantity and control quantity of the vehicle, and establish the error equation of the model predictive control (MPC) algorithm;

步骤S2:依据给定的参考路径建立长轴车辆与参考路径之间的整体偏差模型,通过坐标变换的方法求解得到整体偏差模型的最值从而确定长轴车辆与参考路径之间的最优航向角;Step S2: Establish the overall deviation model between the long-axis vehicle and the reference route according to the given reference route, and obtain the maximum value of the overall deviation model through the method of coordinate transformation to determine the optimal heading between the long-axis vehicle and the reference route horn;

步骤S3:根据步骤S1中的误差方程和步骤S2中的最优航向角建立MPC路径跟踪控制器,确定预测方程表达式,然后根据车辆实际状态的反馈量与理想状态下的参考量建立代价函数,通过对代价函数进行求解得到长轴车辆在路径跟踪过程中的前轮最优转角;Step S3: Establish an MPC path tracking controller based on the error equation in step S1 and the optimal heading angle in step S2, determine the expression of the prediction equation, and then establish a cost function based on the feedback amount of the actual state of the vehicle and the reference amount in the ideal state , by solving the cost function to obtain the optimal front wheel angle of the long-axis vehicle in the path tracking process;

步骤S4:判断车辆是否走完给定参考路径,若没完成则重复步骤S2和S3,直到走完所有参考点,最终得到前后轮的行驶轨迹。Step S4: Determine whether the vehicle has completed the given reference path, if not, repeat steps S2 and S3 until all reference points have been completed, and finally obtain the driving trajectory of the front and rear wheels.

步骤S5:为了对所提方法进行验证,在MATLAB/SIMULINK和TRUCKSIM软件仿真平台搭建仿真模型,最后通过结果证明了所提方法的有效性。Step S5: In order to verify the proposed method, a simulation model is built on the MATLAB/SIMULINK and TRUCKSIM software simulation platforms, and finally the effectiveness of the proposed method is proved by the results.

具体而言,如图2所示,步骤S1中的前后轮速度约束求解步骤为:Specifically, as shown in Figure 2, the steps for solving the speed constraints of the front and rear wheels in step S1 are:

首先将车辆模型简化为单轴自行车模型,就是将两前轮和两后轮合并为单个车轮,定义车辆坐标系,车辆后轮为车辆坐标系的原点,沿着车辆前进方向为x轴,朝着x轴方向时左侧为y方向,则前后轮的速度约束为:First, the vehicle model is simplified to a single-axis bicycle model, that is, the two front wheels and the two rear wheels are combined into a single wheel, and the vehicle coordinate system is defined. When the x-axis is on the left side is the y-direction, then the speed constraints of the front and rear wheels are:

Figure BDA0003142345770000031
Figure BDA0003142345770000031

其中Xf,Yf表示前轮位置在大地坐标系下的坐标。车辆运动学模型的求解步骤包括:Among them, X f and Y f represent the coordinates of the front wheel position in the earth coordinate system. The solution steps of the vehicle kinematics model include:

首先确定后轮位置处的速度为:First determine the speed at the position of the rear wheel as:

Figure BDA0003142345770000032
Figure BDA0003142345770000032

然后根据前后轮的位置关系可以得到:Then according to the position relationship of the front and rear wheels can be obtained:

Figure BDA0003142345770000033
Figure BDA0003142345770000033

最后根据(1)(2)(3)式可以确定车辆横摆角速度ω为:Finally, according to formulas (1)(2)(3), the vehicle yaw rate ω can be determined as:

Figure BDA0003142345770000034
Figure BDA0003142345770000034

则最终得到的车辆运动学模型为:Then the final vehicle kinematics model is:

Figure BDA0003142345770000041
Figure BDA0003142345770000041

其中Xr,Yr为车辆后轮在大地坐标系下的位置坐标,vr为后轮的行驶速度,L为车辆轴长,θ为车辆轴线与大地坐标系的夹角,即为车辆航向角,δ为前轮转角,r表示在后轮位置处。Among them, X r and Y r are the position coordinates of the rear wheels of the vehicle in the earth coordinate system, v r is the driving speed of the rear wheels, L is the length of the vehicle axis, θ is the angle between the vehicle axis and the earth coordinate system, which is the heading of the vehicle angle, δ is the front wheel rotation angle, and r represents the position of the rear wheel.

将上述表达式写成一般形式为:The above expression can be written in general form as:

Figure BDA0003142345770000042
Figure BDA0003142345770000042

其中的状态量为ξ=[Xr,Yr,θ],控制量为u=[vr,δ]。Among them, the state quantity is ξ=[X r , Y r ,θ], and the control quantity is u=[v r ,δ].

进一步地,步骤S1中的误差方程建立过程包括如下步骤:Further, the error equation establishment process in step S1 includes the following steps:

首先给定参考路径,即由GPS得到的一组坐标值。Firstly, a reference path is given, that is, a set of coordinate values obtained by GPS.

则由(6)可以知道在给定参考路径上,任意点坐标都要满足(5),因此在参考位置处的状态方程表达式为:Then it can be known from (6) that on a given reference path, the coordinates of any point must satisfy (5), so the expression of the state equation at the reference position is:

Figure BDA0003142345770000043
Figure BDA0003142345770000043

其中a表示在参考路径位置处。将(6)式在参考路径处做泰勒展开变换可以得到:where a represents at the reference path position. Doing Taylor expansion transformation of formula (6) at the reference path can get:

Figure BDA0003142345770000044
Figure BDA0003142345770000044

将(8)与(7)相减可以得到MPC控制器中的误差方程:Subtracting (8) from (7) yields the error equation in the MPC controller:

Figure BDA0003142345770000045
Figure BDA0003142345770000045

上式是误差方程的连续方程表达式,为了能够设计MPC控制器,需要使用欧拉方法将上式进行离散化处理可以得到状态方程:The above formula is the continuous equation expression of the error equation. In order to be able to design the MPC controller, it is necessary to use the Euler method to discretize the above formula to obtain the state equation:

Figure BDA0003142345770000046
Figure BDA0003142345770000046

其中

Figure BDA0003142345770000047
T为离散采样时间,k表示离散处的值,取值为1,2…n。in
Figure BDA0003142345770000047
T is the discrete sampling time, k represents the value at the discrete point, and the value is 1, 2...n.

系统的控制目标是车辆后轮位置尽可能靠近参考位置,则系统的输出方程为:The control objective of the system is that the position of the rear wheels of the vehicle is as close as possible to the reference position, then the output equation of the system is:

Figure BDA0003142345770000051
Figure BDA0003142345770000051

其中,

Figure BDA0003142345770000052
in,
Figure BDA0003142345770000052

进一步地,如图3所示,步骤S2中的最优航向角获取步骤包括:Further, as shown in Figure 3, the optimal heading angle acquisition step in step S2 includes:

首先定义车辆与参考路径之间的整体偏差,当车辆后轮在参考路径上时,车辆前轮的位置由轴长与车辆航向角确定,因此同一后轮位置下不同航向角对应了不同的前轮位置,此时由参考轨迹向前轮作垂线,则将车辆轴长,垂线与参考轨迹围成的面积定义为车辆与参考路径之间的整体偏差,如图3所示的阴影部分。如上所述,不同的航向角可以确定不同的长轴车辆与参考路径之间的整体偏差,故存在一个航向角使得长轴车辆与参考轨迹之间的整体偏差最小,即此时的航向角定义为最优航向角。根据图3可以得到整体偏差的表达式为:First, define the overall deviation between the vehicle and the reference path. When the rear wheels of the vehicle are on the reference path, the position of the front wheels of the vehicle is determined by the axle length and the heading angle of the vehicle. Therefore, different heading angles under the same rear wheel position correspond to different front wheel position, at this time, draw a vertical line from the reference track to the front wheel, then define the vehicle axis length, the area enclosed by the vertical line and the reference track as the overall deviation between the vehicle and the reference track, as shown in the shaded part in Figure 3 . As mentioned above, different heading angles can determine the overall deviation between different long-axis vehicles and the reference path, so there is a heading angle that minimizes the overall deviation between the long-axis vehicle and the reference path, that is, the heading angle definition at this time is the optimal heading angle. According to Figure 3, the expression of the overall deviation can be obtained as:

Figure BDA0003142345770000053
Figure BDA0003142345770000053

其中xoy为车辆坐标系,该坐标系原点o在后轮,p(x)为参考路径在车辆坐标系下的表达式,θt为当前原点位置处的参考路径航向角,由给定的参考路径确定,ε为航向角的变化值,为了减小计算量ε取较小正值,通过求整体偏差的最小值可以确定长轴车辆与参考轨迹之间的最优航向角。Where xoy is the vehicle coordinate system, the origin o of the coordinate system is at the rear wheel, p(x) is the expression of the reference path in the vehicle coordinate system, θ t is the heading angle of the reference path at the current origin position, and the given reference The path is determined, ε is the change value of the heading angle, in order to reduce the calculation amount, ε takes a small positive value, and the optimal heading angle between the long-axis vehicle and the reference trajectory can be determined by finding the minimum value of the overall deviation.

为了求解长轴车辆与参考路径之间的整体偏差函数,需要使用车辆坐标系转换为大地坐标系的方法进行求解,其中车辆坐标上的点进行平移与旋转可以得到在大地坐标系上的坐标,则变换形式为:In order to solve the overall deviation function between the long-axis vehicle and the reference path, it is necessary to use the method of converting the vehicle coordinate system to the earth coordinate system to solve the problem, in which the points on the vehicle coordinates can be translated and rotated to obtain the coordinates on the earth coordinate system, Then the transformation form is:

Figure BDA0003142345770000054
Figure BDA0003142345770000054

其中,如图3所示,XOY为大地坐标系,f(X)是该坐标系下的参考路径表达式,xr,yr是车辆坐标系原点在大地坐标系下的坐标,则最终目标函数在大地坐标系下表示为:Among them, as shown in Figure 3, XOY is the earth coordinate system, f(X) is the reference path expression in this coordinate system, x r , y r are the coordinates of the origin of the vehicle coordinate system in the earth coordinate system, and the final goal The function is expressed in the geodetic coordinate system as:

Figure BDA0003142345770000055
Figure BDA0003142345770000055

对上式进行积分后目标函数中的参数只有θ,根据参数θ的取值范围可以确定该目标函数的最值,用

Figure BDA0003142345770000061
表示参考路径与长轴车辆之间的最优航向角。此时确定最优航向角之后可以设计MPC路径跟踪控制器。After integrating the above formula, the only parameter in the objective function is θ, and the maximum value of the objective function can be determined according to the value range of the parameter θ, using
Figure BDA0003142345770000061
Indicates the optimal heading angle between the reference path and the long-axis vehicle. At this time, after determining the optimal heading angle, the MPC path tracking controller can be designed.

如图4所示为MPC控制器的设计流程,步骤S3中根据误差方程和最优航向角设计MPC控制器,具体实施步骤为:Figure 4 shows the design process of the MPC controller. In step S3, the MPC controller is designed according to the error equation and the optimal heading angle. The specific implementation steps are:

首先为了建立预测方程需要重新定义新的状态量,将偏差状态量与控制量定义为新的状态,表示如下:First, in order to establish the prediction equation, it is necessary to redefine the new state quantity, and define the deviation state quantity and the control quantity as the new state, expressed as follows:

Figure BDA0003142345770000062
Figure BDA0003142345770000062

其中γ(k|t)为当前时刻系统新状态量,

Figure BDA0003142345770000063
为当前时刻误差方程的状态量,
Figure BDA0003142345770000064
当前时刻误差方程中控制量的前一个值。Where γ(k|t) is the new state quantity of the system at the current moment,
Figure BDA0003142345770000063
is the state quantity of the error equation at the current moment,
Figure BDA0003142345770000064
The previous value of the control quantity in the error equation at the current moment.

此时根据上面的状态方程可以建新的状态空间表达式,At this time, a new state space expression can be established according to the above state equation,

Figure BDA0003142345770000065
Figure BDA0003142345770000065

其中,

Figure BDA0003142345770000066
其中,n为状态量的维度,m为控制量的维度,Im为单位阵。为计算方便,做如下假设in,
Figure BDA0003142345770000066
Among them, n is the dimension of the state quantity, m is the dimension of the control quantity, and I m is the identity matrix. For the convenience of calculation, the following assumptions are made

Ak,t=At,t,k=1,2,…t+N-1;Bk,t=Bt,t,k=1,2,…t+N-1;Ck,t=Ct,t,k=1,2,…t+N-1,A k,t =A t,t ,k=1,2,...t+N-1; B k,t =B t,t ,k=1,2,...t+N-1; C k,t =C t,t ,k=1,2,...t+N-1,

因此可以得到新的预测输出表达式:Therefore, a new prediction output expression can be obtained:

Y(t)=ψtγ(t|t)+ΘtΔU(t) (17)Y(t)=ψt γ (t|t)+ Θt ΔU(t) (17)

其中各符号表示为:The symbols are represented as:

Figure BDA0003142345770000067
Figure BDA0003142345770000067

Figure BDA0003142345770000071
Figure BDA0003142345770000071

其中,Np为预测时域,Nc为控制时域。Among them, N p is the prediction time domain, and N c is the control time domain.

最终建立代价函数如下所示:The final establishment of the cost function is as follows:

Figure BDA0003142345770000072
Figure BDA0003142345770000072

从代价函数可知,该式第一项表示系统对给定路径的跟踪能力,Q为权重矩阵,第二项表示系统对控制增量的约束能力,保证控制量要尽可能小,R为权重矩阵,添加最后ρ权重系数和松弛因子ε是为了防止出现无解的情况。通过MATLAB中自带的QP求解器可以得到上述目标函数求取最小值,可以确定该系统的最优控制输出。It can be seen from the cost function that the first term of the formula represents the tracking ability of the system to a given path, Q is the weight matrix, the second term represents the constraint ability of the system on the control increment, and the control amount should be as small as possible, and R is the weight matrix , adding the last ρ weight coefficient and relaxation factor ε is to prevent no solution. Through the QP solver that comes with MATLAB, the above objective function can be obtained to find the minimum value, and the optimal control output of the system can be determined.

为了得到更好的控制效果需要对控制增量与控制量进行约束,在车辆路径跟踪过程中需要考虑车辆的实际运行情况,则该控制器的约束形式为:In order to obtain a better control effect, it is necessary to constrain the control increment and the control amount. In the process of vehicle path tracking, the actual operation of the vehicle needs to be considered. The constraint form of the controller is:

Figure BDA0003142345770000073
Figure BDA0003142345770000073

其中

Figure BDA0003142345770000074
Figure BDA0003142345770000075
表示克罗内克积,Im为单位阵。in
Figure BDA0003142345770000074
Figure BDA0003142345770000075
Represents the Kronecker product, and I m is the identity matrix.

ΔUmin,ΔUmax分别为控制增量的最小值和最大值,Umin,Umax分别为控制时域内的最小值和最大值集合,这些参数的取值通过实际控制系统进行确定。ΔU min and ΔU max are the minimum and maximum values of the control increment, respectively, and U min and U max are the minimum and maximum sets in the control time domain, respectively. The values of these parameters are determined by the actual control system.

通过对代价函数的求解得到控制输入增量为By solving the cost function, the control input increment is obtained as

Figure BDA0003142345770000076
Figure BDA0003142345770000076

则将该系列的第一个元素作为实际控制增量作用于被控系统,如下所示:Then the first element of the series acts on the controlled system as the actual control increment, as shown below:

u(t)=u(t-1)+Δut (21)u(t)=u(t-1)+Δu t (21)

从(21)式就可以得到MPC控制系统输出的最优前轮转角δ,在进入下一个控制周期后重复进行上面的步骤,便可实现车辆对给定路径的跟踪控制。From formula (21), the optimal front wheel angle δ output by the MPC control system can be obtained, and the above steps can be repeated after entering the next control cycle to realize the tracking control of the vehicle on a given path.

步骤S4中判断车辆是否走完给定参考路径,若没完成则重复步骤S2和S3,直到走完所有参考点,最终得到前后轮的行驶轨迹In step S4, it is judged whether the vehicle has completed the given reference path, if not, repeat steps S2 and S3 until all reference points are completed, and finally the driving trajectory of the front and rear wheels is obtained

在步骤S5中,通过在MATLAB/SIMULINK搭建MPC控制器模型,最优航向角求解模型,以及在TRUCKSIM中使用长轴车辆的车辆模型进行联合仿真验证,通过实际位姿反馈判断车辆是否完成路径跟踪控制,并且根据TRUCKSIM输出得到车辆前后轮行驶轨迹,通过图5,图6表明在最优航向角下前轮轨迹更加靠近给定参考路径,前轮在行驶过程中的扫略面积更小,证明在双移线工况下最优航向角的前后轮轨迹比参考航向角下的结果更能减小车辆整体与参考路径之间的偏差,提高长轴车辆在狭窄区域的通过性,验证了所提方法的有效行。In step S5, build the MPC controller model in MATLAB/SIMULINK, solve the optimal heading angle model, and use the vehicle model of the long-axis vehicle in TRUCKSIM for joint simulation verification, and judge whether the vehicle has completed path tracking through the actual pose feedback Control, and according to the output of TRUCKSIM, the trajectory of the front and rear wheels of the vehicle is obtained. Figure 5 and Figure 6 show that the trajectory of the front wheels is closer to the given reference path under the optimal heading angle, and the sweep area of the front wheels during driving is smaller, proving that The front and rear wheel trajectories at the optimal heading angle under double-lane-shifting conditions can reduce the deviation between the vehicle as a whole and the reference path better than the results under the reference heading angle, and improve the passability of long-axis vehicles in narrow areas. Valid lines of the mentioned method.

Claims (2)

1. A long-axis vehicle path tracking control method based on an optimal course angle is characterized by comprising the following steps:
step S1: establishing a kinematics model of a long-axis vehicle according to speed constraints of front and rear wheels of the vehicle, then selecting state quantity and control quantity of the vehicle, and establishing an error equation of a model predictive control MPC algorithm;
the step S1 specifically includes the following steps:
step S11: the solving steps of the speed constraint of the front wheel and the rear wheel are as follows:
simplify the vehicle model to unipolar bicycle model, be exactly merge two front wheels and two rear wheels into single wheel, define the vehicle coordinate system, the vehicle rear wheel is the origin of vehicle coordinate system, is the x axle along the vehicle direction of advance, and the left side is the y direction when towards the x axle direction, then the speed constraint of front and rear wheels is:
Figure FDA0003836907190000011
wherein X f ,Y f Coordinates representing the position of the front wheel in a geodetic coordinate system;
step S12: the solving step of the vehicle kinematic model comprises the following steps:
first, the speed at the rear wheel position is determined to be:
Figure FDA0003836907190000012
then, according to the position relation of the front wheel and the rear wheel, the following can be obtained:
Figure FDA0003836907190000013
finally, the vehicle yaw rate omega can be determined according to the expressions (1), (2) and (3):
Figure FDA0003836907190000014
step S13: the final vehicle kinematics model obtained is:
Figure FDA0003836907190000015
wherein X r ,Y r As position coordinates of the rear wheels of the vehicle in the geodetic coordinate system, v r The driving speed of a rear wheel, L is the axial length of the vehicle, theta is the included angle between the axis of the vehicle and a geodetic coordinate system, namely the heading angle of the vehicle, delta is the rotation angle of a front wheel, and r is the position of the rear wheel;
the above expression is written in the general form:
Figure FDA0003836907190000021
wherein the state quantity is xi = [ X ] r ,Y r ,θ]The controlled variable is u = [ v ] r ,δ];
Step S14: establishing an error equation of a model predictive control MPC algorithm:
firstly, a reference path is given, namely a group of coordinate values obtained by a GPS;
then it can be known from (6) that on a given reference path, any point coordinate satisfies (5), and therefore the equation of state at the reference position is expressed as:
Figure FDA0003836907190000022
where a is at the reference path position; the taylor expansion transform of equation (6) at the reference path can obtain:
Figure FDA0003836907190000023
subtracting (8) from (7) yields the error equation in the MPC controller:
Figure FDA0003836907190000024
the above equation is a continuous equation expression of an error equation, and in order to design an MPC controller, a state equation can be obtained by discretizing the above equation by using an euler method:
Figure FDA0003836907190000025
wherein
Figure FDA0003836907190000026
T is discrete sampling time, k represents a value at a discrete position, and the value is 1,2 … n;
the control target of the system is that the position of the rear wheel of the vehicle is as close to the reference position as possible, and the output equation of the system is:
Figure FDA0003836907190000027
wherein,
Figure FDA0003836907190000028
step S2: establishing an overall deviation model between the long-axis vehicle and the reference path according to the given reference path, and solving by a coordinate transformation method to obtain the most value of the overall deviation model so as to determine the optimal course angle between the long-axis vehicle and the reference path;
the step S2 of establishing an overall deviation model between the long-axis vehicle and the reference path specifically includes:
defining the integral deviation between a vehicle and a reference path, when a rear wheel of the vehicle is on the reference path, determining the position of a front wheel of the vehicle by the axial length and the heading angle of the vehicle, so that different heading angles under the same rear wheel position correspond to different positions of the front wheel, making a vertical line from a reference track to the front wheel at the moment, defining the axial length of the vehicle, the area enclosed by the vertical line and the reference track as the integral deviation between the vehicle and the reference path, and defining a heading angle to minimize the integral deviation between a long-axis vehicle and the reference track, namely defining the heading angle at the moment as an optimal heading angle;
the expression for the overall deviation is:
Figure FDA0003836907190000031
wherein xoy is a vehicle coordinate system with an origin o at the rear wheel, p (x) is an expression of the reference path in the vehicle coordinate system, and theta t Determining a course angle of a reference path at the current origin position by a given reference path, wherein epsilon is a change value of the course angle, and a smaller positive value is taken for reducing the calculated quantity epsilon;
the step S2 of solving by a coordinate transformation method to obtain a maximum value of the overall deviation model to determine an optimal heading angle between the long-axis vehicle and the reference path specifically includes:
and (3) solving by using a method of converting the vehicle coordinate system into a geodetic coordinate system, wherein the coordinates on the geodetic coordinate system can be obtained by translating and rotating points on the vehicle coordinate system, and the conversion form is as follows:
Figure FDA0003836907190000032
wherein XOY is a geodetic coordinate system, f (X) is a reference path expression in the coordinate system, and X r ,y r Is the coordinate of the origin of the vehicle coordinate system under the geodetic coordinate system, the final objective function is expressed as:
Figure FDA0003836907190000033
the parameter in the objective function after the integration of the above formula is only theta, the maximum value of the objective function can be determined according to the value range of the parameter theta, and the maximum value is used
Figure FDA0003836907190000034
Representing an optimal heading angle between the reference path and the long-axis vehicle;
and step S3: establishing an MPC path tracking controller according to the error equation in the step S1 and the optimal course angle in the step S2, establishing a prediction equation expression, then establishing a cost function according to the feedback quantity of the actual state of the vehicle and the reference quantity in the ideal state, and solving the cost function to obtain the optimal corner of the front wheel of the long-axis vehicle in the path tracking process;
the step S3 specifically comprises the following steps:
to establish the prediction equation, a new state quantity needs to be newly defined, and the deviation state quantity and the controlled variable are defined as a new state, which is expressed as follows:
Figure FDA0003836907190000041
where γ (k | t) is the new state quantity of the system at the current time,
Figure FDA0003836907190000042
is the state quantity of the error equation at the current moment,
Figure FDA0003836907190000043
the previous value of the controlled variable in the error equation at the current moment;
a new state space expression can now be built from the above state equation,
Figure FDA0003836907190000044
wherein,
Figure FDA0003836907190000045
where n is the dimension of the state quantity, m is the dimension of the control quantity, I m Is a unit array; for the convenience of calculation, the following assumptions were made
A k,t =A t,t ,k=1,2,…t+N-1;B k,t =B t,t ,k=1,2,…t+N-1;C k,t =C t,t ,k=1,2,…t+N-1,
A new predicted output expression can thus be derived:
Y(t)=ψ t γ(t|t)+Θ t △U(t) (17)
wherein each symbol is represented as:
Figure FDA0003836907190000046
Figure FDA0003836907190000051
wherein N is p To predict the time domain, N c Is a control time domain;
the final established cost function is as follows:
Figure FDA0003836907190000052
according to the cost function, a first term of the formula represents the tracking capacity of the system to a given path, Q is a weight matrix, a second term represents the constraint capacity of the system to a control increment, the control quantity is ensured to be as small as possible, R is the weight matrix, and the final rho weight coefficient and the relaxation factor epsilon are added to prevent the situation of no solution; the minimum value of the objective function can be obtained through a QP solver carried by the MATLAB, and the optimal control output of the system can be determined;
and constraining the control increment and the control quantity, wherein the actual running condition of the vehicle needs to be considered in the vehicle path tracking process, and the constraint form of the controller is as follows:
Figure FDA0003836907190000053
wherein
Figure FDA0003836907190000054
Figure FDA0003836907190000055
Denotes the kronecker product, I m Is a unit array;
△U min ,△U max minimum and maximum values of the control increment, U, respectively min ,U max Respectively set as the minimum value and the maximum value in the control time domain, and the values of the parameters are determined by an actual control system;
obtaining a control input increment of
Figure FDA0003836907190000056
The first element of the control input increment of equation (20) is applied to the controlled system as the actual control increment as follows:
u(t)=u(t-1)+△u t (21)
the optimal front wheel steering angle delta output by the MPC control system can be obtained from the formula (21), and the steps are repeated after the next control period is entered, so that the tracking control of the vehicle on the given path can be realized;
and step S4: and judging whether the vehicle finishes walking the given reference path or not, if not, repeating the steps S2 and S3 until all the reference points are finished, and finally obtaining the running tracks of the front wheels and the rear wheels.
2. The method of claim 1, further comprising the steps of:
step S5: the method comprises the steps of building an MPC controller model on MATLAB/SIMULINK, solving a model for an optimal course angle, performing joint simulation verification by using a vehicle model of a long-axis vehicle in TRUCKSIM, judging whether the vehicle completes path tracking control or not through actual pose feedback, obtaining driving tracks of front wheels and rear wheels of the vehicle according to the output of the TRUCKSIM, and finally, proving that the scanning area between the whole vehicle and a reference path can be reduced by the tracks of the front wheels and the rear wheels under the optimal course angle compared with the result under the reference course angle, so that the trafficability of the long-axis vehicle in a narrow area is improved.
CN202110744601.3A 2021-06-30 2021-06-30 Long-axis vehicle path tracking control method based on optimal course angle Active CN113433942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744601.3A CN113433942B (en) 2021-06-30 2021-06-30 Long-axis vehicle path tracking control method based on optimal course angle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744601.3A CN113433942B (en) 2021-06-30 2021-06-30 Long-axis vehicle path tracking control method based on optimal course angle

Publications (2)

Publication Number Publication Date
CN113433942A CN113433942A (en) 2021-09-24
CN113433942B true CN113433942B (en) 2022-11-18

Family

ID=77758416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744601.3A Active CN113433942B (en) 2021-06-30 2021-06-30 Long-axis vehicle path tracking control method based on optimal course angle

Country Status (1)

Country Link
CN (1) CN113433942B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047748B (en) * 2021-10-19 2024-05-14 江苏大学 Adaptive feedforward model predictive control method and system for automatic driving of agricultural machinery
CN114355923B (en) * 2021-12-28 2024-04-02 杭州电子科技大学 MPC-based track planning and tracking method under A-guidance
CN116501061B (en) * 2023-05-06 2025-03-21 长春理工大学 A model predictive control path tracking method based on hierarchical optimization
CN117163050B (en) * 2023-10-11 2024-03-22 成都睿芯行科技有限公司 Predictive control algorithm based on motion model

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3266747B2 (en) * 1994-11-10 2002-03-18 株式会社小松製作所 Vehicle guidance and travel control device
US10196086B2 (en) * 2016-08-11 2019-02-05 GM Global Technology Operations LLC Methods and apparatus for robust trajectory control of an autonomous vehicle
KR102406502B1 (en) * 2016-12-14 2022-06-10 현대자동차주식회사 Apparatus and method for controlling narrow road driving of vehicle
US10345812B2 (en) * 2017-01-10 2019-07-09 GM Global Technology Operations LLC Methods and apparatus for optimizing a trajectory for an autonomous vehicle
CN107015477B (en) * 2017-04-05 2019-10-18 同济大学 Vehicle Path Tracking H∞ Control Method Based on State Feedback

Also Published As

Publication number Publication date
CN113433942A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN113433942B (en) Long-axis vehicle path tracking control method based on optimal course angle
CN111497826B (en) A method and system for coordinated control of yaw stability of electric vehicle
CN112092815B (en) Vehicle track changing tracking control method based on model prediction
CN110377039A (en) A kind of vehicle obstacle-avoidance trajectory planning and tracking and controlling method
CN110780594B (en) Path tracking method and system of intelligent vehicle
CN113320542B (en) A tracking control method for an autonomous vehicle
CN112141101B (en) A method and system for previewing safe paths based on CNN and LSTM
CN113581201B (en) Potential field model-based collision avoidance control method and system for unmanned vehicle
CN110217229B (en) A Path-Following Control Method Applicable to High-speed Extreme Conditions
CN112947469A (en) Automobile track-changing track planning and dynamic track tracking control method
CN112622903A (en) Longitudinal and transverse control method for autonomous vehicle in vehicle following driving environment
CN104977933A (en) Regional path tracking control method for autonomous land vehicle
CN110217227B (en) A steering-braking combined collision avoidance control method suitable for icy and snowy road conditions
CN112109732A (en) An adaptive curve preview method for intelligent driving
CN111260956A (en) A vehicle automatic lane changing planning and control method based on model predictive control
CN111959527A (en) Automobile path tracking control method based on corner optimization sequence
Song et al. Combined longitudinal and lateral control for automated lane guidance of full drive-by-wire vehicles
CN115534938A (en) Additional yaw moment-based man-machine co-driving automobile emergency collision avoidance control method and system
CN112937571B (en) A kind of intelligent vehicle trajectory tracking control method and system
Meiling et al. Model predictive control for UGV trajectory tracking based on dynamic model
Meng et al. Real-time high-precision nonlinear tracking control of autonomous vehicles using fast iterative model predictive control
CN110703775B (en) Commercial vehicle lane keeping path planning method based on improved artificial potential field
CN114879698A (en) Robot-driven vehicle obstacle avoidance method based on improved artificial potential field and MPC
CN116501061B (en) A model predictive control path tracking method based on hierarchical optimization
WO2025010853A1 (en) Path planning method oriented to various parking scenarios

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Pi Dawei

Inventor after: Li Wenbin

Inventor after: Wang Hongliang

Inventor after: Xie Boyuan

Inventor after: Wang Xia

Inventor after: Xu Weiye

Inventor after: Wang Erlie

Inventor after: Sun Xiaowang

Inventor after: Wang Xianhui

Inventor before: Li Wenbin

Inventor before: Pi Dawei

Inventor before: Wang Hongliang

Inventor before: Xie Boyuan

Inventor before: Wang Xia

Inventor before: Xu Weiye

Inventor before: Wang Erlie

Inventor before: Sun Xiaowang

Inventor before: Wang Xianhui

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant