[go: up one dir, main page]

CN116653930A - A Path Planning Method for Various Parking Scenarios - Google Patents

A Path Planning Method for Various Parking Scenarios Download PDF

Info

Publication number
CN116653930A
CN116653930A CN202310842127.7A CN202310842127A CN116653930A CN 116653930 A CN116653930 A CN 116653930A CN 202310842127 A CN202310842127 A CN 202310842127A CN 116653930 A CN116653930 A CN 116653930A
Authority
CN
China
Prior art keywords
vehicle
representing
parking
time
model
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.)
Pending
Application number
CN202310842127.7A
Other languages
Chinese (zh)
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN202310842127.7A priority Critical patent/CN116653930A/en
Publication of CN116653930A publication Critical patent/CN116653930A/en
Priority to PCT/CN2023/124184 priority patent/WO2025010853A1/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/06Automatic manoeuvring for parking
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0019Control system elements or transfer functions
    • B60W2050/0028Mathematical models, e.g. for simulation
    • B60W2050/0031Mathematical model of the vehicle
    • B60W2050/0034Multiple-track, 2D vehicle model, e.g. four-wheel model
    • 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)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Feedback Control In General (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention relates to the technical field of unmanned vehicles, in particular to a path planning method for various parking scenes, which comprises the steps of building a whole vehicle kinematics model and designing a multi-stage nonlinear predictive control model; designing a multi-stage nonlinear predictive controller and a constraint function taking a vehicle starting point position, a target point position, a parking speed, a parking steering angle, incomplete kinematic constraint and a minimum obstacle avoidance safety distance as basic constraints; integrating the parking system constraint into an optimal control problem meeting the multi-stage nonlinear predictive control model and the parking system constraint; solving an optimal control problem by adopting an interior point method to obtain an optimal control sequence, and applying a first column element in the sequence to vehicle bottom layer control; the invention can ensure the controllability and the accuracy during parking, can improve the flexibility and the high efficiency of the parking process, and greatly optimizes the architecture of an automatic parking control system.

Description

一种面向多种泊车场景的路径规划方法A Path Planning Method for Various Parking Scenarios

技术领域technical field

本发明涉及无人驾驶车辆技术领域,特别涉及一种面向多种泊车场景的路径规划方法。The invention relates to the technical field of unmanned vehicles, in particular to a path planning method for various parking scenarios.

背景技术Background technique

随着汽车行业的发展,乘用车的普及,城市泊车空间越来越小,为了提高泊车效率,节约出行时间,因此自动泊车技术在汽车智能技术中愈来愈重要。泊车过程中路径规划和轨迹跟踪是无人驾驶车辆的关键属性,路径规划不仅基于算法找到一条从起始点到目标点的无碰撞路径,还要求无人驾驶车辆在复杂环境中完成自适应避障。轨迹跟踪需要对规划出的停车路径进行跟踪,完成车辆自主停车过程。目前现有的自动泊车技术中,路径规划算法(如混合A*算法、RRT*算法)和轨迹跟踪算法(如纯追踪法、PID算法、LQR算法)是分离的,导致泊车过程算法复杂,泊车耗时较长,泊车过程有顿挫感,不能满足泊车场景下的无人驾驶车辆的驾驶需求。With the development of the automobile industry and the popularization of passenger cars, the parking space in cities is getting smaller and smaller. In order to improve parking efficiency and save travel time, automatic parking technology is becoming more and more important in automotive intelligent technology. Path planning and trajectory tracking in the parking process are the key attributes of unmanned vehicles. Path planning is not only based on algorithms to find a collision-free path from the starting point to the target point, but also requires unmanned vehicles to complete adaptive avoidance in complex environments. barrier. Trajectory tracking needs to track the planned parking path to complete the autonomous parking process of the vehicle. In the existing automatic parking technology, path planning algorithms (such as hybrid A* algorithm, RRT* algorithm) and trajectory tracking algorithms (such as pure tracking method, PID algorithm, LQR algorithm) are separated, resulting in complex parking process algorithms , Parking takes a long time, and the parking process is frustrating, which cannot meet the driving needs of unmanned vehicles in parking scenarios.

发明内容Contents of the invention

为了解决自动泊车场景下,现有全局路径规划算法和轨迹跟踪算法分离导致的低效保守的动态泊车问题,本发明提出一种面向多种泊车场景的路径规划方法,具体包括以下步骤:In order to solve the inefficient and conservative dynamic parking problem caused by the separation of the existing global path planning algorithm and the trajectory tracking algorithm in the automatic parking scene, the present invention proposes a path planning method for various parking scenes, which specifically includes the following steps :

搭建整车运动学模型;Build the vehicle kinematics model;

基于整车运动学模型,设计多阶段非线性预测控制模型;Based on the vehicle kinematics model, design a multi-stage nonlinear predictive control model;

基于多阶段非线性预测控制模型,构建多阶段非线性预测控制器并将不确定参数在时间上的演变过程通过场景树的形式表示出来;Based on the multi-stage nonlinear predictive control model, a multi-stage nonlinear predictive controller is constructed and the evolution process of uncertain parameters in time is expressed in the form of scene tree;

设计泊车系统约束;Design parking system constraints;

基于泊车系统约束,设计自动泊车系统的代价函数,将车辆的速度规划、路径规划和轨迹跟踪整合为一个优化控制问题,该优化控制问题满足上述多阶段非线性预测控制模型和泊车系统约束;Based on the constraints of the parking system, the cost function of the automatic parking system is designed, and the speed planning, path planning and trajectory tracking of the vehicle are integrated into an optimal control problem, which satisfies the above multi-stage nonlinear predictive control model and the constraints of the parking system ;

采用内点法求解优化控制问题,得到系统控制问题的最优控制序列,该控制序列将泊车系统的代价函数最小化,并满足预测范围内指定的约束条件,将该序列中的第一列元素应用于车辆底层控制,实现泊车时车辆的转向和速度控制。The interior point method is used to solve the optimization control problem, and the optimal control sequence of the system control problem is obtained. This control sequence minimizes the cost function of the parking system and satisfies the specified constraints within the prediction range. The first column in the sequence The element is applied to the underlying control of the vehicle to realize the steering and speed control of the vehicle when parking.

进一步的,构建整车运动学模型时,以车辆后轴中心点为整车状态参考点,所述整车运动学模型表达式为:Further, when constructing the kinematics model of the whole vehicle, the center point of the rear axle of the vehicle is taken as the reference point of the vehicle state, and the expression of the kinematics model of the whole vehicle is:

车辆纵向运动的连续系统状态方程可表示为:The continuous system state equation of vehicle longitudinal motion can be expressed as:

根据车辆的运动学模型求得车辆状态雅可比矩阵:According to the kinematic model of the vehicle, the Jacobian matrix of the vehicle state is obtained:

其中,为车辆航向角,L为车辆的轴距,v为后轴车速,δ为前轮转向角,/>和/>分别为车辆在X和Y方向上的速度分量,A表示为车辆状态矩阵,B表示车辆控制矩阵,x表示车辆状态量,u表示控制输入量,/>表示在航向角方向上的速度分量。in, is the heading angle of the vehicle, L is the wheelbase of the vehicle, v is the speed of the rear axle, δ is the steering angle of the front wheel, /> and /> are the velocity components of the vehicle in the X and Y directions, A is the vehicle state matrix, B is the vehicle control matrix, x is the vehicle state quantity, u is the control input quantity, /> Indicates the velocity component in the direction of the heading angle.

进一步的,基于车辆运动学模型,设计多阶段非线性预测控制模型,包括:Further, based on the vehicle kinematics model, a multi-stage nonlinear predictive control model is designed, including:

将车辆运动学方程向量化,得到时域预测模型:Vectorize the vehicle kinematics equation to obtain the time domain prediction model:

其中,fu(t)()表示向量化后的时域预测模型;为时域的状态变量,u(t)=v(t),δ(t)]T为时域的控制输入,x(t)和y(t)为时域的车辆后轴中心位置的状态量,/>为时域的车辆航向角,v(t)为时域的后轴车速表示,δ(t)为时域的前轮转向角;Among them, f u(t) () represents the time-domain prediction model after vectorization; is the state variable in the time domain, u(t)=v(t),δ(t)] T is the control input in the time domain, x(t) and y(t) are the state of the center position of the rear axle of the vehicle in the time domain amount, /> is the vehicle heading angle in the time domain, v(t) is the rear axle speed in the time domain, and δ(t) is the front wheel steering angle in the time domain;

将所述时域预测模型转化空间域预测模型,表示为:The time domain prediction model is transformed into a space domain prediction model, expressed as:

其中,和/>分别表示车辆在空间域状态下在X和Y方向的速度分量,/>表示空间域的车辆航向角分量;s为车辆行驶过的路程,/>为车辆行驶过的路程的变化率,L表示车辆的轴距;得到空间域预测模型如下:in, and /> respectively represent the velocity components of the vehicle in the X and Y directions in the space domain state, /> Indicates the vehicle heading angle component in the space domain; s is the distance traveled by the vehicle, /> is the rate of change of the distance traveled by the vehicle, and L represents the wheelbase of the vehicle; the spatial domain prediction model is obtained as follows:

其中,fu(s)(·)表示向量化后的空间域预测模型;ξ(s)为空间域的状态变量;u(s)为空间域的控制输入;Among them, f u(s) ( ) represents the spatial domain prediction model after vectorization; ξ(s) is the state variable of the spatial domain; u(s) is the control input of the spatial domain;

将所述空间域预测模型离散化,得到离散化的预测模型,离散化的空间域预测模型:Discretizing the spatial domain prediction model to obtain a discretized prediction model, the discretized spatial domain prediction model:

ξ(ks+1)=fu(ks)(ξ(ks),u(ks))ξ(k s +1)=f u(ks) (ξ(k s ),u(k s ))

其中,ξ(ks+1)表示相对当前采样点位置ks下一个步长对应的位置离散化后的预测,表示离散化后的预测模型,ξ(ks)为空间域采样点位置ks的状态变量,u(ks)为空间域采样点位置ks的控制输入;Among them, ξ(k s +1) represents the prediction after the discretization of the position corresponding to the next step of the current sampling point position k s , Represents the discretized prediction model, ξ(k s ) is the state variable of the sampling point k s in the spatial domain, u(k s ) is the control input of the sampling point k s in the spatial domain;

将离散化的预测模型转化为增量预测模型:Convert a discretized forecasting model to an incremental forecasting model:

其中,ξ(ks+1)表示在ks+1采样时刻的状态变量,为增量预测模型;Δu(ks)=u(ks)-u(ks-1)表示当前采样点位置ks与前一时刻采样点位置ks-1状态变量的差值。Among them, ξ(k s +1) represents the state variable at the sampling moment of k s +1, is an incremental prediction model; Δu(k s )=u(k s )-u(k s -1) represents the difference between the current sampling point position k s and the previous sampling point position k s -1 state variable.

进一步的,设计多阶段非线性预测控制器,在控制过程中将不确定参数在时间上的演变过程通过建立场景树模型表示出来,包括:Furthermore, a multi-stage nonlinear predictive controller is designed, and the evolution process of uncertain parameters in time is expressed by establishing a scene tree model during the control process, including:

场景树设定假设一个不确定非线性系统的离散时间公式,表示为:The scene tree setting assumes a discrete-time formulation of an uncertain nonlinear system, expressed as:

其中,表示k+1采样时刻的场景树上第j个节点的状态变量,/>表示k采样时刻的p(j)父节点车辆状态变量;/>表示k采样时刻j节点的控制输入,/>表示k采样时刻的不确定参数,j表示场景树上的状态节点,P(j)表示场景树上具有相同父节点的节点,r(j)表示场景树上j节点不确定性的相应实现;f(·)表示离散时间的不确定非线性系统表达式;in, Indicates the state variable of the jth node on the scene tree at k+1 sampling time, /> Represents the p(j) parent node vehicle state variable at k sampling time; /> Indicates the control input of node j at sampling time k, /> Indicates the uncertain parameter at k sampling time, j indicates the state node on the scene tree, P(j) indicates the node with the same parent node on the scene tree, r(j) indicates the corresponding realization of the uncertainty of node j on the scene tree; f( ) represents the discrete-time uncertain nonlinear system expression;

假设场景树在所有节点上具有相同数量的分支,在时间步k由给出不确定性的s个不同可能值,Si表示从根节点x0到其中一个叶节点的第i个场景。Assuming the scene tree has the same number of branches on all nodes, at time step k by Given s different possible values of uncertainty, S i represents the ith scenario from the root node x0 to one of the leaf nodes.

进一步的,在每个时间步k基于场景的多阶段公式的最优控制问题可以表示为:Further, the optimal control problem of the scenario-based multi-stage formulation at each time step k can be expressed as:

约束条件: Restrictions:

则/> like Then />

其中,I表示场景树所覆盖的节点相对应的所有索引组合(j,k),S表示场景的数目,ωi表示每个场景Si对应的权重;和/>表示在k时刻具有相同父节点的状态,P(j)和P(l)分别表示具有相同父节点的j和l两个节点,/>和/>表示具有相同父节点的控制输入;/>表示每个场景Si的代价函数;S个场景中每个场景的代价函数定义为:Among them, I represents all index combinations (j, k) corresponding to the nodes covered by the scene tree, S represents the number of scenes, and ω i represents the weight corresponding to each scene S i ; and /> Indicates the state with the same parent node at time k, P(j) and P(l) respectively represent two nodes j and l with the same parent node, /> and /> Indicates a control input with the same parent node; /> Represents the cost function of each scene S i ; the cost function of each scene in S scenes is defined as:

其中,表示阶段代价函数,Np表示预测时域;in, Represents the stage cost function, N p represents the prediction time domain;

过程控制领域的模型在连续时域中由一组常微分方程表示,可以写成:Models in the domain of process control are represented by a set of ordinary differential equations in the continuous time domain, which can be written as:

其中,表示在连续时域下的预测模型,Φ(·)表示在连续时域下的预测模型具体表达式,x表示状态量,u表示控制输入量,d表示不确定因素;in, Indicates the prediction model in the continuous time domain, Φ( ) represents the specific expression of the prediction model in the continuous time domain, x represents the state quantity, u represents the control input quantity, and d represents the uncertain factor;

场景树的离散性质要求系统的时间离散模型,选择隐式欧拉离散化,离散化模型可以写成:The discrete nature of the scene tree requires a time-discrete model of the system. If the implicit Euler discretization is selected, the discretization model can be written as:

通过离散化,每个欧拉离散点对应于场景树的一个阶段,为保证离散化的精确性,在场景树的一个阶段内使用几个欧拉离散点。Through discretization, each Euler discrete point corresponds to a stage of the scene tree. To ensure the accuracy of discretization, several Euler discrete points are used in one stage of the scene tree.

进一步的,基于离散化预测模型可以得到的非线性规划问题,表示为:Furthermore, the nonlinear programming problem that can be obtained based on the discretized prediction model is expressed as:

约束条件:xl≤xopt≤xu Constraints: x l ≤ x opt ≤ x u

bl≤Axopt≤bu b l ≤Ax opt ≤b u

cl≤c(xopt)≤cu c l ≤c(x opt )≤c u

其中,f()表示目标函数;xopt表示增广优化向量,表示为:Among them, f() represents the objective function; x opt represents the augmented optimization vector, expressed as:

其中,x0表示初始时刻的状态量,表示在预测时域Np下第N个状态量,/>表示在预测时域Np第N个控制输入量;xl和xu表示施加在实际系统上的状态和控制约束,bl和bu表示系统的非预期性约束,A为增广系数,cl和cu表示预测模型的非线性约束,c(xopt)表示增广预测模型下的非线性约束。Among them, x 0 represents the state quantity at the initial moment, Indicates the Nth state quantity in the prediction time domain N p , /> Indicates the Nth control input in the prediction time domain N p ; x l and x u indicate the state and control constraints imposed on the actual system, b l and b u indicate the unexpected constraints of the system, A is the augmentation coefficient, c l and c u represent the nonlinear constraints of the prediction model, and c(x opt ) represents the nonlinear constraints under the augmented prediction model.

进一步的,对于基于多阶段非线性规划控制器的自动泊车系统,采用隐式欧拉对模型微分方程进行离散化,在每个采样时间点所要求解的多阶段优化问题可写为:Furthermore, for an automatic parking system based on a multi-stage nonlinear programming controller, implicit Euler is used to discretize the model differential equation, and the multi-stage optimization problem to be solved at each sampling time point can be written as:

约束条件: Restrictions:

则/> like Then />

其中,Q和R表示加权因子;()'表示每个采样时刻所要求解的多阶段优化问题表达式,Δu'k表示控制输入的增量,RΔ表示加权因子的增量,表示k+1时刻j节点的状态量,xs表示空间域下的状态量,/>表示k+1时刻j节点的控制输入量,us表示空间域下的控制输入量,X表示状态量集合,U表示控制输入量集合,Δt表示时间增量,Φ(·)表示在连续时域下的预测模型具体表达式。Among them, Q and R represent the weighting factors; ()' represents the multi-stage optimization problem expression to be solved at each sampling moment, Δu' k represents the increment of the control input, R Δ represents the increment of the weighting factor, Indicates the state quantity of node j at time k+1, x s represents the state quantity in the space domain, /> Indicates the control input of node j at time k+1, u s represents the control input in the space domain, X represents the set of state quantities, U represents the set of control inputs, Δt represents the time increment, Φ(·) represents The specific expression of the prediction model under the domain.

进一步的,构建泊车系统的约束,包括:Further, construct the constraints of the parking system, including:

设计泊车目标位置和姿态约束,对终止时刻车辆速度和车身姿态进行约束:Design the parking target position and attitude constraints, and constrain the vehicle speed and body attitude at the end time:

其中,(xref,yref)为泊车目标点的位置;v(ks+Np)表示终止时刻车辆速度,表示终止时刻车辆的航向角,x(ks+Np)表示终止时刻车辆横向位置,y(ks+Np)表示终止时刻车辆纵向位置;ks表示当前采样位置,Np表示预测步长;Among them, (x ref , y ref ) is the position of the parking target point; v(k s +N p ) represents the vehicle speed at the end time, Indicates the heading angle of the vehicle at the time of termination, x(k s +N p ) represents the lateral position of the vehicle at the time of termination, y(k s +N p ) represents the longitudinal position of the vehicle at the time of termination; k s represents the current sampling position, N p represents the prediction step long;

设计安全约束,对泊车过程中车辆的横向位置和纵向位置进行约束:Design safety constraints to constrain the lateral and longitudinal positions of the vehicle during parking:

Xleft+b≤x(ks+1)≤Xright-aX left +b≤x(k s +1)≤X right -a

y(ks+1)≥Ybound+w/2y(k s +1)≥Y bound +w/2

i=1,2,3,…,Np i=1,2,3,..., Np

distmin≥distsafe dist min ≥ dist safe

其中,Xleft和Xright分别为库位的左右边界位置,a为前悬长度与轴距以及车头安全裕度之和,b为后悬长度与车尾安全裕度之和,Ybound为车库的侧边界,w为车辆的宽度,distmin表示车辆到障碍物的最小距离,distsafe表示泊车安全距离;Among them, X left and X right are the left and right boundary positions of the warehouse respectively, a is the sum of the front overhang length, wheelbase and front safety margin, b is the sum of the rear overhang length and the rear safety margin, and Y bound is the garage The side boundary of , w is the width of the vehicle, dist min represents the minimum distance from the vehicle to the obstacle, and dist safe represents the parking safety distance;

设计执行器约束,对执行器进行约束:Design actuator constraints and constrain the actuators:

Δvmin≤Δv≤Δvmax Δv min ≤ Δv ≤ Δv max

δmin≤δ≤δmax δ min ≤ δ ≤ δ max

Δδmin≤Δδ≤Δδmax Δδ min ≤ Δδ ≤ Δδ max

其中,Δvmin和Δvmax是设定的速度增量输入的上、下限,Δδmin和Δδmax是设定的前轮转向角变化量输入的上、下限,δmin和δmax是前轮转角的上、下限。Among them, Δv min and Δv max are the upper and lower limits of the set speed increment input, Δδ min and Δδ max are the upper and lower limits of the set front wheel steering angle change input, and δ min and δ max are the front wheel angle upper and lower limits.

进一步的,在自动泊车过程中,对于多阶非线性MPC控制器,确定不确定参数的数量及相应的取值范围(本发明中不确定因素包括速度转向以及泊车过程中外界的不确定因素,在本发明中的不确定因素是指突发事件,例如车辆在行驶过程中检测到行驶路径上突然出现行人或者障碍物,需要进行刹车制动、改变行进路径的因素),构造初始不确定性集利用多阶非线性MPC算法缩小不确定性集D,包括以下阶段:Further, in the automatic parking process, for the multi-order nonlinear MPC controller, determine the quantity of uncertain parameters and the corresponding value range (uncertain factors in the present invention include speed steering and external uncertainties in the parking process Factors, uncertain factors in the present invention refer to unexpected events, for example, the vehicle detects that pedestrians or obstacles suddenly appear on the driving path during driving, and it is necessary to perform braking and change the driving path), and the structure is initially uncertain. deterministic set The uncertainty set D is reduced using the multi-order nonlinear MPC algorithm, including the following stages:

(1)初始化每个场景的权重P(0,j)=1/S,j∈{1,…,S},其中S为场景树的总场景数,初始化不确定性集D;(1) Initialize the weight of each scene P (0, j) = 1/S, j∈{1,...,S}, where S is the total number of scenes in the scene tree, and initialize the uncertainty set D;

(2)计算当前时间步k中S个场景对应的模型预测值y(k,j)(2) Calculate the model prediction value y (k,j) corresponding to the S scenes in the current time step k:

然后根据当前时间步k的模型预测值y(k,j)和过程测量值yk,即通过车辆当前状态、控制输入和不确定因素三项来预测下一时刻的泊车状态,计算残差ε(k,j),表示为:Then, according to the model prediction value y (k,j) of the current time step k and the process measurement value y k , that is, the parking state at the next moment is predicted through the current vehicle state, control input and uncertain factors, and the residual error is calculated ε (k,j) , expressed as:

ε(k,j)=yk-y(k,j) ε (k,j) = y k -y (k,j)

其中,ε(k,j)=[ε1,…εn]T1,…εn为对应的n个状态的残差值;Among them, ε (k,j) = [ε 1 ,…ε n ] T1 ,…ε n are the residual values of the corresponding n states;

(3)利用残差信息ε(k,j)和前一时间步的每个场景权重P(k-1,j)计算当前时间步k的贝叶斯概率权重P(k,j),表示为:(3) Calculate the Bayesian probability weight P (k,j) of the current time step k by using the residual information ε (k,j) and each scene weight P (k-1,j) of the previous time step, expressing for:

其中,K是一个加权矩阵,表示为:Among them, K is a weighting matrix expressed as:

其中,cov(·)表示计算协方差;Among them, cov( ) means to calculate the covariance;

(4)根据当前时间步k的每个场景的贝叶斯概率权重P(k,j),找到S个场景中最大的权重对应的场景pmax和最小的权重对应的场景pmin(4) According to the Bayesian probability weight P(k, j) of each scene of the current time step k, find the scene p max corresponding to the maximum weight and the scene p min corresponding to the minimum weight among the S scenes;

(5)通过将最不可能的场景pmin移向最有可能的场景pmax来更新pmin和Dk+1更新过程包括:(5) Update pmin and Dk +1 by moving the least likely scenario pmin to the most probable scenario pmax . The update process includes:

pmin=pmin+β(pmax-pmin)p min =p min +β(p max -p min )

Dk+1∈Dk∈…∈D1 D k+1 ∈D k ∈…∈D 1

其中,β为自适应步长;Among them, β is the adaptive step size;

(6)在下一个时间步k+1,根据新的不确定集合构建的场景树求解多阶段非线性MPC最优控制问题获得最优控制动作包括:(6) At the next time step k+1, solve the multi-stage nonlinear MPC optimal control problem based on the scene tree constructed by the new uncertain set to obtain the optimal control action include:

约束条件: Restrictions:

则/> like Then />

(7)重新初始化每个场景的初始权重P(0,j)=1/S,j∈{1,…,S};(7) Reinitialize the initial weight of each scene P (0, j) = 1/S, j∈{1,...,S};

(8)重复步骤(2)~(7),直至自动泊车过程结束,实现自动泊车。(8) Steps (2) to (7) are repeated until the automatic parking process ends, and automatic parking is realized.

进一步的,采用内点法求解所述控制问题,得到最优开环控制序列,选取所述最优开环控制序列中的第一列元素用于控制车辆,实现自动泊车,包括:Further, the interior point method is used to solve the control problem to obtain the optimal open-loop control sequence, and the first column element in the optimal open-loop control sequence is selected to control the vehicle to realize automatic parking, including:

采用内点法求解所述控制问题,得到最优开环控制序列Δu,将最优开环控制序列中的第一列元素用于控制车辆,实现自动泊车,最优开环控制序列Δu表示为:The interior point method is used to solve the control problem, and the optimal open-loop control sequence Δu is obtained, and the first column elements in the optimal open-loop control sequence are used to control the vehicle to realize automatic parking. The optimal open-loop control sequence Δu is represented by for:

其中,vref为期望的车辆纵向速度,Δu为最优开环控制序列。Among them, v ref is the desired vehicle longitudinal speed, Δu is the optimal open-loop control sequence.

本发明基于多阶非线性MPC算法设计,可以充分考虑到系统的约束和不确定参数,而且具有很好的鲁棒性;而且,本发明设计的多阶非线性MPC控制器将路径规划和轨迹跟踪整合成一个优化问题求解,可以保证泊车时的可控性和准确性,同时能够提高泊车过程的灵活性和高效性,大大优化了自动泊车控制系统的架构。The present invention is based on multi-order nonlinear MPC algorithm design, can fully take into account the constraints and uncertain parameters of the system, and has good robustness; moreover, the multi-order nonlinear MPC controller designed by the present invention combines path planning and trajectory Tracking is integrated into an optimization problem solution, which can ensure the controllability and accuracy of parking, and at the same time improve the flexibility and efficiency of the parking process, greatly optimizing the architecture of the automatic parking control system.

附图说明Description of drawings

图1为本发明一种面向多种泊车场景的路径规划方法中的车辆运动学模型示意图1;1 is a schematic diagram 1 of a vehicle kinematics model in a path planning method for various parking scenarios according to the present invention;

图2为本发明一种面向多种泊车场景的路径规划方法中的车辆运动学模型示意图2;FIG. 2 is a schematic diagram 2 of a vehicle kinematics model in a path planning method for various parking scenarios according to the present invention;

图3为本发明一种面向多种泊车场景的路径规划方法中多阶非线性MPC的场景树示意图;3 is a schematic diagram of a scene tree of a multi-order nonlinear MPC in a path planning method for multiple parking scenarios according to the present invention;

图4为本发明一种面向多种泊车场景的路径规划方法中MSNMPC场景更新方法;Fig. 4 is MSNMPC scene update method in a kind of path planning method facing multiple parking scenes of the present invention;

图5为本发明一种面向多种泊车场景的路径规划方法中垂直泊车场景示意图;5 is a schematic diagram of a vertical parking scene in a path planning method for multiple parking scenes according to the present invention;

图6为本发明一种面向多种泊车场景的路径规划方法中平行泊车场景示意图;6 is a schematic diagram of parallel parking scenarios in a path planning method for multiple parking scenarios according to the present invention;

图7为本发明一种面向多种泊车场景的路径规划方法中倾斜泊车场景示意图。FIG. 7 is a schematic diagram of an inclined parking scene in a path planning method for various parking scenes according to the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明提出一种面向多种泊车场景的路径规划方法,具体包括以下步骤:The present invention proposes a path planning method for various parking scenarios, which specifically includes the following steps:

搭建整车运动学模型;Build the vehicle kinematics model;

基于整车运动学模型,设计多阶段非线性预测控制模型;Based on the vehicle kinematics model, design a multi-stage nonlinear predictive control model;

基于多阶段非线性预测控制模型,设计多阶段非线性预测控制器和设计以车辆起始点位姿、目标点位姿、泊车车速、泊车转向角度、非完整运动学约束以及最小避障安全距离为基本约束的约束函数,同时并将不确定参数在时间上的演变过程通过场景树的形式表示出来;设计自动泊车系统的代价函数,将车辆的速度规划、路径规划和轨迹跟踪整合为一个优化控制问题,该优化控制问题满足上述多阶段非线性预测控制模型和泊车系统约束;Based on the multi-stage nonlinear predictive control model, design a multi-stage nonlinear predictive controller and design a vehicle starting point pose, target point pose, parking speed, parking steering angle, nonholonomic kinematic constraints and minimum obstacle avoidance safety Distance is the constraint function of the basic constraints, and at the same time, the evolution process of uncertain parameters in time is expressed in the form of a scene tree; the cost function of the automatic parking system is designed, and the speed planning, path planning and trajectory tracking of the vehicle are integrated into An optimal control problem that satisfies the aforementioned multi-stage nonlinear predictive control model and parking system constraints;

采用内点法求解优化控制问题,得到由路径规划、泊车速度和系统约束整合在一起的最优控制序列,该控制序列将泊车系统的代价函数最小化,并满足预测范围内指定的约束条件,将该序列中的第一列元素应用于车辆底层控制,实现泊车时车辆的转向和速度控制。The interior point method is used to solve the optimization control problem, and the optimal control sequence is obtained by integrating path planning, parking speed and system constraints. The control sequence minimizes the cost function of the parking system and satisfies the specified constraints within the prediction range. Conditions, apply the elements in the first column of the sequence to the bottom layer control of the vehicle to realize the steering and speed control of the vehicle when parking.

在本实施例中,为了实现一种面向多种泊车场景的路径规划方法,具体包括以下步骤:In this embodiment, in order to realize a path planning method for various parking scenarios, the following steps are specifically included:

搭建整车运动学模型;Build the vehicle kinematics model;

基于整车运动学模型,设计多阶段非线性模型预测控制(Multi-stage NonlinearModel Predictive Control,MSNMPC)模型;Based on the vehicle kinematics model, design a multi-stage nonlinear model predictive control (Multi-stage Nonlinear Model Predictive Control, MSNMPC) model;

基于多阶段非线性模型预测控制器,将不确定参数在时间上的演变过程通过场景树的形式表示出来;Based on the multi-stage nonlinear model predictive controller, the evolution process of uncertain parameters in time is expressed in the form of scene tree;

设计泊车系统约束;Design parking system constraints;

基于泊车系统约束,设计自动泊车系统的代价函数,将车辆的速度规划、路径规划和轨迹跟踪整合为一个优化控制问题,该优化控制问题满足上述多阶段非线性预测控制模型和泊车系统约束;Based on the constraints of the parking system, the cost function of the automatic parking system is designed, and the speed planning, path planning and trajectory tracking of the vehicle are integrated into an optimal control problem, which satisfies the above multi-stage nonlinear predictive control model and the constraints of the parking system ;

采用内点法求解优化控制问题,得到系统控制问题的最优控制序列,该控制序列将泊车系统的代价函数最小化,并满足预测范围内指定的约束条件,将该序列中的第一列元素应用于车辆底层控制,实现泊车时车辆的转向和速度控制。The interior point method is used to solve the optimization control problem, and the optimal control sequence of the system control problem is obtained. This control sequence minimizes the cost function of the parking system and satisfies the specified constraints within the prediction range. The first column in the sequence The element is applied to the underlying control of the vehicle to realize the steering and speed control of the vehicle when parking.

基于多阶段非线性MPC控制器,控制器根据起始点位置和目标点位置规划生成一条最优泊车路径,然后在轨迹跟踪过程中下一时刻的车辆姿态是根据上一时刻车辆姿态实时预测得到,当前姿态和下一时刻姿态是实时变化的,相邻时刻车辆预测步长相同,能够进一步优化自动泊车过程。Based on the multi-stage nonlinear MPC controller, the controller generates an optimal parking path according to the starting point position and the target point position planning, and then the vehicle attitude at the next moment in the trajectory tracking process is obtained according to the real-time prediction of the vehicle attitude at the previous moment , the current attitude and the attitude of the next moment change in real time, and the vehicle prediction steps at adjacent moments are the same, which can further optimize the automatic parking process.

多阶段非线性MPC提供了一种利用反馈信息闭环优化的思路,该方法通过将泊车过程看作一个闭环系统,并将预测时域上的不确定性传播用离散的场景树表示,然后针对不同的场景计算不同的控制输入轨迹,使泊车过程安全可靠。Multi-stage nonlinear MPC provides a closed-loop optimization idea using feedback information. This method regards the parking process as a closed-loop system, and expresses the uncertainty propagation in the prediction time domain as a discrete scene tree, and then for Different scenarios calculate different control input trajectories to make the parking process safe and reliable.

车辆运动学模型如图1~2,基于整车运动学模型,图1中vf表示车辆前轴中心速度,表示车辆前轴侧向速度,通过则两个速度可以计算得到车辆后轴的速度,图2中/>表示车辆期望转向角,构建泊车场景下的运动学约束,该过程具体包括:The vehicle kinematics model is shown in Figure 1-2, based on the vehicle kinematics model, v f in Figure 1 represents the center velocity of the front axle of the vehicle, Indicates the lateral velocity of the front axle of the vehicle, and the velocity of the rear axle of the vehicle can be calculated by passing the two velocities, as shown in Figure 2 Indicates the expected steering angle of the vehicle and constructs the kinematic constraints in the parking scene. The process specifically includes:

以车辆后轴中点为整车状态参考点,整车的位姿状态向量为所述整车运动学模型表达式为:Taking the midpoint of the rear axle of the vehicle as the reference point of the vehicle state, the pose state vector of the vehicle is The vehicle kinematics model expression is:

其中,(x,y)为后轴中点坐标,为车辆航向角,L为轴距,v为后轴车速,δ为前轮转向角;/>和/>分别为车辆在X和Y方向上的速度分量,/>表示在航向角方向上的速度分量。Among them, (x, y) is the coordinates of the midpoint of the rear axis, is the heading angle of the vehicle, L is the wheelbase, v is the speed of the rear axle, δ is the steering angle of the front wheel; /> and /> are the velocity components of the vehicle in the X and Y directions, respectively, /> Indicates the velocity component in the direction of the heading angle.

车辆纵向运动的连续系统状态方程可表示为:The continuous system state equation of vehicle longitudinal motion can be expressed as:

根据车辆的运动学模型求得车辆状态雅可比矩阵:According to the kinematic model of the vehicle, the Jacobian matrix of the vehicle state is obtained:

其中,u表示控制输入量;Among them, u represents the control input quantity;

多阶非线性MPC控制器采用了基于预测的轨迹跟踪方法,将车辆横向动力学状态空间转化为离散时间形式:The multi-order nonlinear MPC controller uses a prediction-based trajectory tracking method to transform the vehicle lateral dynamics state space into a discrete-time form:

其中,fu(t)(·)表示向量化后的时域预测模型;为时域的状态变量,u(t)=[v(t),δ(t)]T为时域的控制输入,x(t)和y(t)为时域的车辆后轴中心位置的状态量,/>为时域的车辆航向角,v(t)为时域的后轴车速表示,δ(t)为时域的前轮转向角,(t)表示时域。Among them, f u(t) ( ) represents the time-domain prediction model after vectorization; is the state variable in the time domain, u(t)=[v(t),δ(t)] T is the control input in the time domain, x(t) and y(t) are the center position of the rear axle of the vehicle in the time domain state quantity, /> is the vehicle heading angle in the time domain, v(t) is the rear axle speed in the time domain, δ(t) is the front wheel steering angle in the time domain, and (t) is the time domain.

采用式(6),将所述时域预测模型转化空间域预测模型,即时域的状态变量在空间域求导,得到空间域预测模型,转换过程具体包括:Using formula (6), the time domain prediction model is converted into a space domain prediction model, and the state variables of the time domain are derived in the space domain to obtain the space domain prediction model. The conversion process specifically includes:

其中,和/>分别表示车辆在空间域状态下在X和Y方向的速度分量,/>表示空间域的车辆航向角分量;s为车辆行驶过的路程,/>为车辆行驶过的路程的变化率,L表示车辆的轴距;(s)在本实施例中均表示空间域。in, and /> respectively represent the velocity components of the vehicle in the X and Y directions in the space domain state, /> Indicates the vehicle heading angle component in the space domain; s is the distance traveled by the vehicle, /> is the rate of change of the distance traveled by the vehicle, L represents the wheelbase of the vehicle; (s) both represent the space domain in this embodiment.

得到空间域预测模型如下:The spatial domain prediction model is obtained as follows:

其中,fu(s)(·)表示傅里叶变换操作;ξ(s)为空间域的状态变量;u(s)为空间域的控制输入;将所述空间域预测模型离散化,得到离散化的预测模型,离散化的空间域预测模型:Among them, f u(s) ( ) represents the Fourier transform operation; ξ(s) is the state variable in the space domain; u(s) is the control input in the space domain; discretize the prediction model in the space domain to obtain Discretized prediction model, discretized spatial domain prediction model:

其中,(ks+1)表示相对当前采样点位置(ks)下一个步长对应的位置,即ξ(ks+1)表示相对当前采样点位置ks下一个步长对应的位置离散化后的预测;表示离散操作,ξ(ks)为空间域采样点位置ks的状态变量,u(ks)为空间域采样点位置ks的控制输入;Among them, (k s +1) represents the position corresponding to the next step relative to the current sampling point position (k s ), that is, ξ(k s +1) represents the discrete position corresponding to the next step relative to the current sampling point position k s The predicted forecast; Indicates a discrete operation, ξ(k s ) is the state variable of the sampling point k s in the spatial domain, u(k s ) is the control input of the sampling point k s in the spatial domain;

将离散化的空间域预测模型转化为增量预测模型:Transform the discretized spatial domain forecasting model into an incremental forecasting model:

其中,ξ(ks+1)表示在ks+1采样时刻的状态变量,为增量预测模型,即将公式(8)中空间域采样点位置ks的控制输入替换为Δu(ks)得到增量预测模型;Δu(ks)=u(ks)-u(ks-1)表示当前采样点位置ks与前一时刻采样点位置ks-1状态变量的差值。Among them, ξ(k s +1) represents the state variable at the sampling moment of k s +1, is an incremental prediction model, that is, the control input of the sampling point position k s in the space domain in formula (8) is replaced by Δu(k s ) to obtain an incremental prediction model; Δu(k s )=u(k s )-u(k s -1) represents the difference between the current sampling point position k s and the previous sampling point position k s -1 state variable.

设计多阶段NMPC控制器,建立合适的场景树模型,如图3所示。图3中的场景树模型表示在某一场景下,在控制向量和不确定因素的驱动下转移到另一场景的过程,例如在k时刻(当前时刻)的车辆状态表示为xk,在k时刻第1个场景下的控制向量和k时刻第1个场景下的不确定因素/>的驱动下转移到k+1时刻下的第1个场景的车辆状态/>以此类推建立场景树模型。在图3中,k时刻的车辆状态xk,在3个场景下的控制变量(本发明中的控制变量是指控制车辆的速度和转向角等以驱动车辆到达目标位置的变量)和不确定因素(本发明中的不确定因素是指在控制变量的驱动过程中车辆在既定航迹中可以遇到的意外因素,例如路途中突然出现障碍物、行人或者需要与往来车辆错车、会车等可能造成车辆航迹变化或者刹车等情况的意外因素)的驱动下在k+1时刻可能会有三个状态,以第1个场景为例,即k+1时刻得到的状态为/>该状态在三个场景下的控制变量和不确定因素驱动下在k+2时刻也会产生三个不同的状态量,依次类推产生场景树。Design a multi-stage NMPC controller and establish a suitable scene tree model, as shown in Figure 3. The scene tree model in Figure 3 represents the process of transferring to another scene driven by the control vector and uncertain factors in a certain scene. For example, the vehicle state at time k (current time) is expressed as x k , The control vector in the first scene at time and the uncertain factors in the first scenario at time k/> Transfer to the vehicle state of the first scene at time k+1 under the drive of Build a scene tree model by analogy. In Figure 3, the vehicle state x k at time k, the control variables in three scenarios (the control variables in the present invention refer to the variables that control the speed and steering angle of the vehicle to drive the vehicle to reach the target position) and uncertain Factors (uncertain factors in the present invention refer to the accident factor that vehicle can run into in the predetermined track in the driving process of control variable, such as obstacles, pedestrians suddenly appearing in the road, or need to pass the car with passing vehicles, meet cars, etc. Driven by unexpected factors that may cause vehicle track changes or braking, there may be three states at time k+1. Take the first scene as an example, that is, the state obtained at time k+1 is /> Driven by the control variables and uncertain factors in the three scenarios, this state will also generate three different state quantities at k+2 time, and so on to generate the scenario tree.

多阶段NMPC的主要假设是,不确定性因素可以用离散场景树表示。场景树设定假设一个不确定非线性系统的离散时间公式,可以写成:The main assumption of multi-stage NMPC is that uncertainty factors can be represented by discrete scene trees. The scene tree setting assumes a discrete-time formulation of an uncertain nonlinear system, which can be written as:

其中,表示k+1采样时刻的场景树上第j个节点的状态变量,/>表示k采样时刻的p(j)父节点车辆状态量;/>表示k采样时刻j节点的控制输入,/>表示k采样时刻的不确定参数,j表示场景树上的状态节点;P(j)表示场景树上具有相同父节点的节点,例如图3中,/>表示在3个场景下得到的不同车辆状态,其拥有相同的父节点/>r(j)表示场景树上j节点不确定性的相应实现,即某时刻某场景下一个控制向量和一个不确定因素组成的实现;f()为状态转移函数,在本实施例中通过有限状态机实现状态转移的映射,即将k时刻的的p(j)父节点车辆状态量/>k采样时刻的不确定参数/>以及k时刻的第j个场景下的控制变量/>作为有限状态机的输入,有限状态机输出下一时刻在第j个场景下的车辆状态量/> in, Indicates the state variable of the jth node on the scene tree at k+1 sampling time, /> Indicates the p(j) parent node vehicle state quantity at k sampling time; /> Indicates the control input of node j at sampling time k, /> Indicates the uncertain parameter at k sampling time, j indicates the state node on the scene tree; P(j) indicates the node with the same parent node on the scene tree, for example, in Figure 3, /> Represents different vehicle states obtained in three scenarios, which have the same parent node /> r(j) represents the corresponding realization of the uncertainty of node j on the scene tree, that is, the realization composed of a control vector and an uncertainty factor in a certain scene at a certain moment; The state machine realizes the mapping of state transition, that is, the state quantity of p(j) parent node vehicle at time k/> Uncertain parameter at k sampling instant /> And the control variable in the jth scene at time k/> As the input of the finite state machine, the finite state machine outputs the vehicle state quantity in the j scene at the next moment />

假设场景树在所有节点上具有相同数量的分支,在时间步k由给出不确定性的s个不同可能值,Si表示从根节点x0到其中一个叶节点的第i个场景。Assuming the scene tree has the same number of branches on all nodes, at time step k by Given s different possible values of uncertainty, S i represents the ith scenario from the root node x0 to one of the leaf nodes.

根据构建的场景树模型,随着预测时域的增加,优化问题的规模呈指数增加,通过假设不确定性在特定鲁棒时域后保持不变。在每个时间步k基于场景的多阶段公式的最优控制问题可以表示为:According to the constructed scene tree model, the size of the optimization problem increases exponentially with the increase of the forecast time domain, by assuming that the uncertainty remains constant after a certain robust time domain. The optimal control problem of the scenario-based multi-stage formulation at each time step k can be formulated as:

约束条件:Restrictions:

其中,I表示场景树所覆盖的节点相对应的所有索引组合(j,k),S表示场景的数目,ωi表示每个场景Si对应的权重;和/>表示在k时刻具有相同父节点的状态,P(j)和P(l)分别表示具有相同父节点的j和l两个节点,/>和/>表示具有相同父节点的控制输入;/>表示每个场景Si的代价函数,S个场景中每个场景的代价函数定义为:Among them, I represents all index combinations (j, k) corresponding to the nodes covered by the scene tree, S represents the number of scenes, and ω i represents the weight corresponding to each scene S i ; and /> Indicates the state with the same parent node at time k, P(j) and P(l) respectively represent two nodes j and l with the same parent node, /> and /> Indicates a control input with the same parent node; /> Represents the cost function of each scene S i , and the cost function of each scene in S scenes is defined as:

其中,Np表示预测时域;表示阶段代价函数,表示为:Among them, N p represents the prediction time domain; Represents the stage cost function, expressed as:

场景树的离散性质要求系统的时间离散模型,但过程控制领域的大多数模型在连续时域中由一组常微分方程表示,可以写成:The discrete nature of the scene tree requires a time-discrete model of the system, but most models in the process control domain are represented in the continuous time domain by a set of ordinary differential equations, which can be written as:

上式表明,在系统离散过程中是将控制输入和状态都离散化,并作为优化变量包含在由此产生的非线性规划问题(NLP)中,因此微分方程的离散化是必要的。这里选择隐式欧拉离散化,因为它提供了足够的精度和简单。离散化模型可以写成:The above formula shows that in the discretization process of the system, both the control input and the state are discretized and included as optimization variables in the resulting nonlinear programming problem (NLP), so the discretization of the differential equation is necessary. Implicit Euler discretization is chosen here because it provides sufficient accuracy and simplicity. The discretization model can be written as:

通过离散化,每个欧拉离散点对应于场景树的一个阶段,为保证离散化的精确性,在场景树的一个阶段内使用几个欧拉离散点。Through discretization, each Euler discrete point corresponds to a stage of the scene tree. To ensure the accuracy of discretization, several Euler discrete points are used in one stage of the scene tree.

设计预测模型中的NLP问题,基于上述离散化预测模型可以得到的NLP为:To design the NLP problem in the prediction model, the NLP that can be obtained based on the above discrete prediction model is:

约束条件:xl≤xopt≤xu (17)Constraints: x l ≤ x opt ≤ x u (17)

bl≤Axopt≤bu (18)b l ≤Ax opt ≤b u (18)

cl≤c(xopt)≤cu (19)c l ≤ c(x opt ) ≤ c u (19)

其中,f(·)表示目标函数,在本实施例中目标函数是指xopt表示增广优化向量,表示为:Among them, f( ) represents the objective function, and in this embodiment the objective function refers to x opt represents the augmented optimization vector, expressed as:

其中,x0表示初始时刻的状态量,表示在预测时域Np下第N个状态量,/>表示在预测时域Np第N个控制输入量;xl和xu表示施加在实际系统上的状态和控制约束,bl和bu表示系统的非预期性约束,A为增广系数,cl和cu表示预测模型的非线性约束,c(xopt)表示增广预测模型下的非线性约束。Among them, x 0 represents the state quantity at the initial moment, Indicates the Nth state quantity in the prediction time domain N p , /> Indicates the Nth control input in the prediction time domain N p ; x l and x u indicate the state and control constraints imposed on the actual system, b l and b u indicate the unexpected constraints of the system, A is the augmentation coefficient, c l and c u represent the nonlinear constraints of the prediction model, and c(x opt ) represents the nonlinear constraints under the augmented prediction model.

公式(16)中的目标函数f包含创建公式(11)形式的目标函数所需的所有项;公式(17)中的约束表示施加在实际系统上的状态和控制约束;线性(相等)约束(18)包括非预期约束,非线性约束(19)包括树中所有节点的离散模型。The objective function f in Equation (16) contains all the terms needed to create the objective function in the form of Equation (11); the constraints in Equation (17) represent the state and control constraints imposed on the actual system; the linear (equal) constraints ( 18) includes unexpected constraints, nonlinear constraints (19) include discrete models of all nodes in the tree.

在本实施例中,对于基于多阶段NMPC的自动泊车系统,采用隐式欧拉对模型微分方程进行离散化,在每个采样时间点所要求解的多阶段优化问题可写为:In this embodiment, for the automatic parking system based on multi-stage NMPC, implicit Euler is used to discretize the model differential equation, and the multi-stage optimization problem to be solved at each sampling time point can be written as:

约束条件: Restrictions:

其中,Q和R表示加权因子;(·)'表示每个采样时刻所要求解的多阶段优化问题表达式,Δu'k表示控制输入的增量,RΔ表示加权因子的增量,表示k+1时刻j节点的状态量,xs表示空间域下的状态量,/>表示k+1时刻j节点的控制输入量,us表示空间域下的控制输入量,X表示状态量集合,U表示控制输入量集合,Δt表示时间增量,Φ(·)表示在连续时域下的预测模型具体表达式。Among them, Q and R represent the weighting factors; ( )' represents the multi-stage optimization problem expression to be solved at each sampling moment, Δu' k represents the increment of the control input, R Δ represents the increment of the weighting factor, Indicates the state quantity of node j at time k+1, x s represents the state quantity in the space domain, /> Indicates the control input of node j at time k+1, u s represents the control input in the space domain, X represents the set of state quantities, U represents the set of control inputs, Δt represents the time increment, Φ(·) represents The specific expression of the prediction model under the domain.

代价函数(21)包括每个场景的代价之和乘以它的概率ωi,在这种情况下,每个场景的成本包括三个不同的项,用三个不同的调优参数进行加权(Q、R和RΔ)第一项是用于跟踪状态上的设定点的惩罚项,第二项是用于跟踪控制输入中的设定点的惩罚项,第三项包括正则化项,以惩罚控制运动以避免控制输入的振荡行为;约束包括状态(22)和输入(23)的边界、非预期约束(24)和离散化动力学(25)。The cost function (21) consists of the sum of the cost of each scenario multiplied by its probability ω i , in this case the cost of each scenario consists of three different terms, weighted by three different tuning parameters ( Q, R, and R Δ ) The first term is the penalty term for tracking the set point on the state, the second term is the penalty term for tracking the set point in the control input, and the third term includes the regularization term, Motion is controlled with penalties to avoid oscillatory behavior of control inputs; constraints include boundaries of states (22) and inputs (23), unexpected constraints (24), and discretized dynamics (25).

在本实施例中设计泊车系统的约束的过程具体包括:In this embodiment, the process of designing the constraints of the parking system specifically includes:

设计泊车目标位置和姿态约束,对终止时刻车辆速度和车身姿态进行约束:Design the parking target position and attitude constraints, and constrain the vehicle speed and body attitude at the end time:

其中,(xref,yref)为泊车目标点的位置;v(ks+Np)表示终止时刻车辆速度,表示终止时刻车辆的航向角,x(ks+Np)表示终止时刻车辆横向位置,y(ks+Np)表示终止时刻车辆纵向位置;ks表示当前采样位置,Np表示预测步长;Among them, (x ref , y ref ) is the position of the parking target point; v(k s +N p ) represents the vehicle speed at the end time, Indicates the heading angle of the vehicle at the time of termination, x(k s +N p ) represents the lateral position of the vehicle at the time of termination, y(k s +N p ) represents the longitudinal position of the vehicle at the time of termination; k s represents the current sampling position, N p represents the prediction step long;

设计安全约束,对泊车过程中车辆的横向位置和纵向位置进行约束:Design safety constraints to constrain the lateral and longitudinal positions of the vehicle during parking:

其中,Xleft和Xright分别为库位的左右边界位置,a为前悬长度与轴距以及车头安全裕度之和,b为后悬长度与车尾安全裕度之和,Ybound为车库的侧边界,w为车辆的宽度,distmin表示车辆到障碍物的最小距离,distsafe表示泊车安全距离;Among them, X left and X right are the left and right boundary positions of the warehouse respectively, a is the sum of the front overhang length, wheelbase and front safety margin, b is the sum of the rear overhang length and the rear safety margin, and Y bound is the garage The side boundary of , w is the width of the vehicle, dist min represents the minimum distance from the vehicle to the obstacle, and dist safe represents the parking safety distance;

设计执行器约束,对执行器进行约束:Design actuator constraints and constrain the actuators:

其中,Δvmin和Δvmax是设定的速度增量输入的上、下限,Δδmin和Δδmax是设定的前轮转向角变化量输入的上、下限,δmin和δmax是前轮转角的上、下限。Among them, Δv min and Δv max are the upper and lower limits of the set speed increment input, Δδ min and Δδ max are the upper and lower limits of the set front wheel steering angle change input, and δ min and δ max are the front wheel angle upper and lower limits.

在自动泊车过程中,对于多阶非线性MPC控制器,首先确定不确定参数的数量及相应的取值范围,构造初始不确定性集其中/>和/>表示在第n个状态节点中取L×U范围的不确定参数,nd表示第n个状态节点的不确定参数;然后利用多阶非线性MPC算法缩小不确定性集D,包括以下阶段:In the process of automatic parking, for the multi-order nonlinear MPC controller, first determine the number of uncertain parameters and the corresponding value range, and construct the initial uncertainty set where /> and /> Indicates that the uncertain parameter in the range of L×U is taken in the nth state node, and n d represents the uncertain parameter of the nth state node; then the uncertainty set D is reduced by using the multi-order nonlinear MPC algorithm, including the following stages:

(1)初始化每个场景的权重P(0,j)=1/S,j∈{1,…,S},其中S为场景树的总场景数,初始化不确定性集D;(1) Initialize the weight of each scene P (0, j) = 1/S, j∈{1,...,S}, where S is the total number of scenes in the scene tree, and initialize the uncertainty set D;

(2)计算当前时间步k中S个场景对应的模型预测值,时间步k中第j个场景的模型预测值y(k,j)表示为:(2) Calculate the model prediction values corresponding to the S scenes in the current time step k, and the model prediction value y (k, j) of the jth scene in the time step k is expressed as:

然后根据当前时间步k的模型预测值y(k,j)和k时刻的过程测量值yk计算残差ε(k,j),表示为:Then calculate the residual ε (k,j) according to the model prediction value y (k,j) at the current time step k and the process measurement value y k at time k , expressed as:

ε(k,j)=yk-y(k,j) (30)ε (k, j) = y k - y (k, j) (30)

其中,ε(k,j)=[ε1,…εn]T1,…εn为对应的n个状态的残差值;上标T表示转置操作;Among them, ε (k, j) = [ε 1 ,...ε n ] T , ε 1 ,...ε n are the residual values of the corresponding n states; the superscript T represents the transpose operation;

(3)利用残差信息ε(k,j)和前一时间步的每个场景权重P(k-1,j)计算当前时间步k的贝叶斯概率权重P(k,j),表示为:(3) Calculate the Bayesian probability weight P (k,j) of the current time step k by using the residual information ε (k,j) and each scene weight P (k-1,j) of the previous time step, expressing for:

其中,K是一个加权矩阵,表示为:Among them, K is a weighting matrix expressed as:

其中,cov(·)表示计算协方差;Among them, cov( ) means to calculate the covariance;

(4)根据当前时间步k的每个场景的贝叶斯概率权重P(k,j),找到S个场景中最大的权重对应的场景pmax和最小的权重对应的场景pmin(4) According to the Bayesian probability weight P(k,j) of each scene at the current time step k, find the scene p max corresponding to the largest weight and the scene p min corresponding to the smallest weight among the S scenes;

(5)通过将最不可能的场景pmin移向最有可能的场景pmax来更新pmin和Dk+1更新过程包括:(5) Update pmin and Dk +1 by moving the least likely scenario pmin to the most probable scenario pmax . The update process includes:

其中,β为自适应步长;Among them, β is the adaptive step size;

(6)在下一个时间步k+1,根据新的不确定集合构建的场景树求解多阶段非线性MPC最优控制问题获得最优控制动作包括:(6) At the next time step k+1, solve the multi-stage nonlinear MPC optimal control problem based on the scene tree constructed by the new uncertain set to obtain the optimal control action include:

约束条件:Restrictions:

(7)重新初始化每个场景的初始权重P(0,j)=1/S,j∈{1,…,S};(7) Reinitialize the initial weight of each scene P (0, j) = 1/S, j∈{1,...,S};

(8)重复步骤(2)~(7),直至自动泊车过程结束,实现自动泊车。(8) Steps (2) to (7) are repeated until the automatic parking process ends, and automatic parking is realized.

多阶段NMPC场景更新方法如图4,根据设定值以及预测模型的输出进行优化计算,其中优化计算根据性能指标和约束条件,得出优化计算的输出即最优控制动作根据最优控制动作/>以及不同场景计算每个场景的偏差;同时根据最优控制动作/>进行滚动控制,根据被控对象及其不确定性得出yk,根据yk以及场景偏差输入预测模型,得到模型的预测值;在本实施例中,作为输入的设定值为车辆实时的速度和转向角,约束条件为泊车系统的约束,本实施例进行在线场景更新时,根据预测值和实际值计算场景偏差,利用场景偏差计算贝叶斯概率权重,根据权重信息以固定的步长在线更新场景以预测不确定性值的真实实现,使场景树建模逼近不确定性的真实值。The multi-stage NMPC scene update method is shown in Figure 4, and the optimization calculation is performed according to the set value and the output of the prediction model. The optimization calculation is based on the performance index and constraint conditions, and the output of the optimization calculation is the optimal control action. According to the optimal control action /> And calculate the deviation of each scene in different scenes; at the same time, according to the optimal control action /> Carry out rolling control, obtain y k according to the controlled object and its uncertainty, input the prediction model according to y k and the scene deviation, and obtain the predicted value of the model; in this embodiment, the set value as the input is the real-time value of the vehicle Speed and steering angle, the constraint conditions are the constraints of the parking system. When the present embodiment performs online scene update, the scene deviation is calculated according to the predicted value and the actual value, and the Bayesian probability weight is calculated by using the scene deviation. The scene is updated online to predict the real realization of the uncertainty value, so that the scene tree modeling approaches the real value of the uncertainty.

采用内点法求解所述控制问题,得到最优开环控制序列,选取所述最优开环控制序列中的第一列元素用于控制车辆,实现自动泊车,包括:The interior point method is used to solve the control problem to obtain an optimal open-loop control sequence, and the first column element in the optimal open-loop control sequence is selected for controlling the vehicle to realize automatic parking, including:

采用内点法求解所述控制问题,得到最优开环控制序列Δu,将最优开环控制序列中的第一列元素用于控制车辆,实现自动泊车,最优开环控制序列Δu表示为:The interior point method is used to solve the control problem, and the optimal open-loop control sequence Δu is obtained, and the first column elements in the optimal open-loop control sequence are used to control the vehicle to realize automatic parking. The optimal open-loop control sequence Δu is represented by for:

其中,vref为期望的车辆纵向速度,Δu为最优开环控制序列。Among them, v ref is the desired vehicle longitudinal speed, Δu is the optimal open-loop control sequence.

通过以上控制方法,本实施例给出图5~6三种场景下的泊车仿真示意图,包括垂直泊车、平行泊车以及倾斜泊车。Through the above control method, this embodiment provides schematic diagrams of parking simulation in the three scenarios shown in FIGS. 5-6 , including vertical parking, parallel parking, and inclined parking.

尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.

Claims (10)

1. A path planning method for various parking scenes is characterized by comprising the following steps:
building a whole vehicle kinematic model;
based on the whole vehicle kinematics model, designing a multi-stage nonlinear prediction control model;
based on the multi-stage nonlinear predictive control model, constructing a multi-stage nonlinear predictive controller and representing the evolution process of the uncertain parameters in time in the form of a scene tree;
designing a parking system constraint;
based on the constraint of the parking system, designing a cost function of the automatic parking system, and integrating the speed planning, path planning and track tracking of the vehicle into an optimal control problem, wherein the optimal control problem meets the multi-stage nonlinear predictive control model and the constraint of the parking system;
solving the optimal control problem by adopting an interior point method to obtain an optimal control sequence of the system control problem, wherein the control sequence minimizes a cost function of the parking system and meets a constraint condition appointed in a prediction range, and a first element in the sequence is applied to vehicle bottom layer control to realize steering and speed control of a vehicle during parking.
2. The path planning method for multiple parking scenes according to claim 1, wherein when a vehicle kinematic model is constructed, a vehicle rear axle center point is taken as a vehicle state reference point, and the vehicle kinematic model expression is:
the continuous system state equation for longitudinal motion of a vehicle can be expressed as:
according to a kinematic model of the vehicle, a vehicle state jacobian matrix is obtained:
wherein ,is the course angle of the vehicle, L is the wheelbase of the vehicle, v is the speed of the rear axle, delta is the steering angle of the front wheels, +.> and />The speed components of the vehicle in the X and Y directions, respectively, A being the vehicle state matrix, B being the vehicle control matrix, X being the vehicle state quantity, u being the control input quantity,/->Representing the velocity component in the heading angle direction.
3. The method for path planning for multiple parking scenarios according to claim 1, wherein designing a multi-stage nonlinear predictive control model based on a vehicle kinematic model comprises:
vectorizing a vehicle kinematic equation to obtain a time domain prediction model:
wherein ,fu(t) (. Cndot.) represents the vectorized time domain prediction model;as state variables in the time domain, u (t) = [ v (t), δ (t)] T For the time-domain control input, x (t) and y (t) are the state quantities of the central position of the rear axle of the vehicle in the time domain, +.>V (t) is the rear axle speed representation of the time domain, and delta (t) is the front wheel steering angle of the time domain;
converting the time domain prediction model into a spatial domain prediction model, and representing the spatial domain prediction model as:
wherein , and />Representing the velocity components of the vehicle in the X and Y directions in the spatial domain state, respectively, +.>A vehicle heading angle component representing a spatial domain; s is the distance travelled by the vehicle, +.>The change rate of the distance travelled by the vehicle is represented by L, wherein L represents the wheelbase of the vehicle; the spatial domain prediction model is obtained as follows:
wherein ,fu(s) (. Cndot.) represents the vectorized spatial domain prediction model; ζ(s) is a state variable of the spatial domain; u(s) is the control input of the spatial domain;
discretizing the spatial domain prediction model to obtain a discretized prediction model, wherein the discretized spatial domain prediction model is as follows:
wherein ,ξ(ks +1) represents the relative current sampling point position k s The position corresponding to the next step is predicted after discretization,representing the discretized predictive model, ζ (k) s ) Sampling the point position k for the spatial domain s State variables of u (k) s ) Sampling the point position k for the spatial domain s Control input of (a);
converting the discretized predictive model into an incremental predictive model:
wherein ,ξ(ks +1) is represented at k s The state variable at the +1 sample time,the method is an incremental prediction model; deltau (k) s )=u(k s )-u(k s -1) represents the current sampling point position k s From the sampling point position k at the previous moment s -1 difference in state variables.
4. The method for path planning for multiple parking scenarios according to claim 1, wherein designing a multi-stage nonlinear predictive controller, the evolution of uncertain parameters over time during control is represented by building a scenario tree model, comprises:
the scene tree setting assumes a discrete time formula of an uncertain nonlinear system expressed as:
wherein ,j-th section on scene tree representing k+1 sampling timeState variables of points>A p (j) parent node vehicle state variable representing a k sample time; />Control input representing node j at k sample time, < ->An uncertainty parameter representing a k sampling instant, j representing a state node on the scene tree, P (j) representing a node on the scene tree having the same parent node, r (j) representing a corresponding implementation of the j node uncertainty on the scene tree; f (·) represents an uncertainty nonlinear system expression for discrete time;
assuming that the scene tree has the same number of branches on all nodes, at time step k the scene tree is composed ofGiving S different possible values of uncertainty, S i Representing slave root node x 0 An ith scene to one of the leaf nodes.
5. The method of claim 4, wherein the optimal control problem of the multi-stage scene-based formula at each time step k can be expressed as:
constraint conditions:
wherein I represents all index combinations (j, k) corresponding to the nodes covered by the scene tree, S represents the number of scenes, ω i Representing each scene S i Corresponding weights; and />Representing the state with the same parent node at time k, P (j) and P (l) represent the two nodes j and l, respectively, with the same parent node, +.> and />Representing control inputs having the same parent node;representing each scene S i Is used for the cost function of (a),
the cost function for each of the S scenes is defined as:
wherein ,representing a phase cost function, N p Representing a prediction time domain;
the model in the process control domain is represented in the continuous time domain by a set of ordinary differential equations, which can be written as:
wherein ,representing a prediction model in a continuous time domain, wherein phi (·) represents a specific expression of the prediction model in the continuous time domain, x represents a state quantity, u represents a control input quantity, and d represents an uncertainty factor;
the discrete nature of the scene tree requires a time discrete model of the system, an implicit Euler discretization is selected, and the discretization model can be written as:
by discretizing, each Euler discrete point corresponds to a stage of the scene tree, and to ensure the accuracy of the discretization, several Euler discrete points are used within a stage of the scene tree.
6. The path planning method for multiple parking scenarios according to claim 5, characterized in that the nonlinear programming problem available based on the discretized prediction model is expressed as:
constraint conditions:
wherein f (·) represents the objective function; x is x opt Representing an augmented optimization vector, expressed as:
wherein ,x0 The state quantity representing the initial moment in time,represented in the prediction time domain N p The next Nth state quantity,/->Represented in the prediction time domain N p An nth control input amount; x is x l and xu Representing the state and control constraints imposed on the actual system, b l and bu Representing an unexpected constraint of the system, A is an augmentation factor, c l and cu Representation predictionNonlinear constraint of model, c (x opt ) Representing nonlinear constraints under the augmented prediction model.
7. The method for path planning for multiple parking scenarios according to claim 5, characterized in that for an automatic parking system based on a multi-stage nonlinear programming controller, discretizing the model differential equation with implicit euler, the multi-stage optimization problem of the solution required at each sampling time point can be written as:
constraint conditions:
if it isThen->
Wherein Q and R represent weighting factors; () 'represents a multi-stage optimization problem expression to be solved for each sampling instant, deltau' k Representing the increment of the control input, R Δ Representing the increment of the weighting factor,represents the state quantity of the j node at the time of k+1, x s Representing the state quantity in the spatial domain, +.>Represents the control input quantity of the j node at the time of k+1, u s Representing the control input quantity in the spatial domain, X representing the state quantity set, U representing the control input quantity set, Δt representing the time increment, Φ (·) representing the prediction model specific expression in the continuous time domain.
8. The method of path planning for multiple parking scenarios of claim 1, wherein constructing constraints for the parking system comprises:
designing the constraint of the position and the gesture of a parking target, and constraining the speed and the gesture of a vehicle body at the termination moment:
wherein ,(xref ,y ref ) The position of the parking target point; v (k) s +N p ) The vehicle speed at the time of termination is indicated,indicating the heading angle of the vehicle at the termination time, x (k) s +N p ) Represents the lateral position of the vehicle at the termination time, y (k) s +N p ) Indicating the longitudinal position of the vehicle at the termination time; k (k) s Represents the current sampling position, N p Representing a prediction step size;
designing safety constraint, and constraining the transverse position and the longitudinal position of a vehicle in the parking process:
X left +b≤x(k s +1)≤X right -a
y(k s +1)≥Y bound +w/2
i=1,2,3,…,N p
dist min ≥dist safe
wherein ,Xleft and Xright The left and right boundary positions of the garage position are respectively, a is the sum of the front overhang length and the wheelbase as well as the safety margin of the vehicle head, b is the sum of the rear overhang length and the safety margin of the vehicle tail, and Y bound Is the side boundary of the garage, w is the width of the vehicle, dist min Representing the minimum distance of the vehicle from the obstacle, dist safe Indicating a parking safety distance;
designing an actuator constraint, and constraining the actuator:
Δv min ≤Δv≤Δv max
δ min ≤δ≤δ max
Δδ min ≤Δδ≤Δδ max
wherein ,Δvmin and Δvmax Is the upper and lower limits of the set speed increment input, delta min and Δδmax Is the upper and lower limits of the set front wheel steering angle change quantity input, delta min and δmax Is the upper and lower limits of the front wheel corner.
9. The method for planning a path for multiple parking scenarios according to claim 1, wherein, during automatic parking, for the multi-stage nonlinear MPC controller, the number of uncertainty parameters and corresponding value ranges are determined, and an initial uncertainty set is constructedThe uncertainty set D is scaled down using a multi-order nonlinear MPC algorithm, comprising the following stages:
(1) Initializing the weight P of each scene (0,j) =1/S, j e {1, …, S }, where S is the total number of scenes of the scene tree, initializing the uncertainty set D;
(2) Calculating model predicted values y corresponding to S scenes in current time step k (k,j)
And then according to the currentModel predictive value y of time step k (k,j) And process measurement y k Calculating residual epsilon (k,j) Expressed as:
ε (k,j) =y k -y (k,j)
wherein ,ε(k,j) =[ε 1 ,…ε n ] T1 ,…ε n Residual values for the corresponding n states;
(3) Using residual information epsilon (k,j) And each scene weight P of the previous time step (k-1,j) Calculating Bayesian probability weight P of current time step k (k,j) Expressed as:
where K is a weight matrix expressed as:
wherein cov (·) represents the computational covariance;
(4) According to the Bayesian probability weight P (k, j) of each scene in the current time step k, finding the scene P corresponding to the largest weight in the S scenes max Scene p corresponding to the smallest weight min
(5) By combining the least probable scenes p min Move to the most likely scene p max To update p min and Dk+1 The updating process comprises the following steps:
p min =p min +β(p max -p min )
D k+1 ∈D k ∈…∈D 1
wherein, beta is the self-adaptive step length;
(6) At the next time step k+1, solving a multi-stage nonlinear MPC optimal control problem according to the scene tree constructed by the new uncertain set to obtain an optimal control actionComprising the following steps:
constraint conditions:
(7) Reinitializing the initial weights P for each scene (0,j) =1/S,j∈{1,…,S};
(8) Repeating the steps (2) - (7) until the automatic parking process is finished, and realizing automatic parking.
10. The method for planning paths for multiple parking scenes according to claim 1, wherein solving the control problem by using an interior point method to obtain an optimal open-loop control sequence, selecting a first element in the optimal open-loop control sequence for controlling a vehicle, and realizing automatic parking, comprises:
solving the control problem by adopting an interior point method to obtain an optimal open-loop control sequence delta u, and using a first column element in the optimal open-loop control sequence for controlling a vehicle to realize automatic parking, wherein the optimal open-loop control sequence delta u is expressed as:
wherein ,vref For a desired vehicle longitudinal speed, deltau is the optimal open loop control sequence.
CN202310842127.7A 2023-07-10 2023-07-10 A Path Planning Method for Various Parking Scenarios Pending CN116653930A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310842127.7A CN116653930A (en) 2023-07-10 2023-07-10 A Path Planning Method for Various Parking Scenarios
PCT/CN2023/124184 WO2025010853A1 (en) 2023-07-10 2023-10-12 Path planning method oriented to various parking scenarios

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310842127.7A CN116653930A (en) 2023-07-10 2023-07-10 A Path Planning Method for Various Parking Scenarios

Publications (1)

Publication Number Publication Date
CN116653930A true CN116653930A (en) 2023-08-29

Family

ID=87722547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310842127.7A Pending CN116653930A (en) 2023-07-10 2023-07-10 A Path Planning Method for Various Parking Scenarios

Country Status (2)

Country Link
CN (1) CN116653930A (en)
WO (1) WO2025010853A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117922548A (en) * 2024-01-29 2024-04-26 哈尔滨工业大学(威海) Automatic parking track planning method based on model predictive control

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119828480B (en) * 2025-02-28 2025-11-07 合肥工业大学 Four-rotor unmanned aerial vehicle control method, medium and equipment of self-adaptive MPC

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11731651B2 (en) * 2020-09-30 2023-08-22 Baidu Usa Llc Automatic parameter tuning framework for controllers used in autonomous driving vehicles
CN112731806B (en) * 2020-12-08 2022-05-31 合肥工业大学 Real-time optimization method for stochastic model predictive control of intelligent networked vehicles
CN113635891A (en) * 2021-08-02 2021-11-12 北京科技大学 Integrated parallel parking trajectory planning and tracking control method and system
CN114954437B (en) * 2022-05-24 2024-08-02 重庆邮电大学 A parking trajectory planning and tracking control method and system for articulated vehicles

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117922548A (en) * 2024-01-29 2024-04-26 哈尔滨工业大学(威海) Automatic parking track planning method based on model predictive control

Also Published As

Publication number Publication date
WO2025010853A1 (en) 2025-01-16

Similar Documents

Publication Publication Date Title
Zhang et al. Trajectory planning and tracking for autonomous vehicle based on state lattice and model predictive control
Yu et al. Model predictive control for autonomous ground vehicles: a review
CN109375632B (en) Real-time trajectory planning method for automatic driving vehicle
Kebbati et al. Lateral control for autonomous wheeled vehicles: A technical review
CN111413966B (en) A progressive model predicting unmanned driving planning tracking collaborative control method
Yang et al. Automatic parking path planning of tracked vehicle based on improved A* and DWA algorithms
CN114945885A (en) Adaptive control of autonomous or semi-autonomous vehicles
CN114684199B (en) Mechanism analysis-data driven vehicle dynamics series hybrid model, intelligent automobile track tracking control method and controller
CN111258323A (en) A joint control method for intelligent vehicle trajectory planning and tracking
CN111338346A (en) Automatic driving control method and device, vehicle and storage medium
Chen et al. Deep reinforcement learning in autonomous car path planning and control: A survey
Tian et al. Personalized lane change planning and control by imitation learning from drivers
CN116653930A (en) A Path Planning Method for Various Parking Scenarios
CN113465625B (en) Local path planning method and device
Farag Complex-track following in real-time using model-based predictive control
CN118025223B (en) Unmanned automobile learning type predictive control method based on long-short-term memory network
CN117429431A (en) Channel switching decision and time delay compensation control method and device based on prediction information
Li et al. Combining local trajectory planning and tracking control for autonomous ground vehicles navigating along a reference path
CN116225004A (en) An obstacle avoidance method for a six-wheel independent drive independent steering robot
CN117873061A (en) Integrated path planning and model predictive control method for multi-axle vehicles
CN118131628B (en) Mobile robot tracking control method based on multi-target point information fusion
Moghadam et al. A deep reinforcement learning approach for long-term short-term planning on frenet frame
Kim et al. Data-Driven LSTM model and predictive control for vehicle lateral motion
CN115343950A (en) Vehicle path tracking control method and control system suitable for complex road surface
CN120595803A (en) A method and system for tracking trajectory of unmanned vehicles in coal mines

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