CN112793562B - A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device - Google Patents
A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device Download PDFInfo
- Publication number
- CN112793562B CN112793562B CN202110146895.XA CN202110146895A CN112793562B CN 112793562 B CN112793562 B CN 112793562B CN 202110146895 A CN202110146895 A CN 202110146895A CN 112793562 B CN112793562 B CN 112793562B
- Authority
- CN
- China
- Prior art keywords
- vehicle
- parking
- point
- parking space
- trajectory
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 24
- 238000004364 calculation method Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000012407 engineering method Methods 0.000 claims description 4
- 239000000725 suspension Substances 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 4
- 230000035484 reaction time Effects 0.000 claims description 2
- 238000005457 optimization Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000009499 grossing Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT 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/00—Purposes 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/06—Automatic manoeuvring for parking
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT 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/00—Estimation 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/02—Estimation 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 ambient conditions
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT 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/00—Estimation 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/12—Estimation 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 parameters of the vehicle itself, e.g. tyre models
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT 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
- B60W2530/00—Input parameters relating to vehicle conditions or values, not covered by groups B60W2510/00 or B60W2520/00
- B60W2530/201—Dimensions of vehicle
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT 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
- B60W2552/00—Input parameters relating to infrastructure
- B60W2552/50—Barriers
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
- Steering Control In Accordance With Driving Conditions (AREA)
Abstract
Description
技术领域technical field
本发明涉及汽车辅助驾驶技术领域,尤其涉及一种自动泊车路径的规划和跟踪控制方法、规划装置、存储介质和计算机设备。The invention relates to the technical field of automobile assisted driving, in particular to a planning and tracking control method of an automatic parking path, a planning device, a storage medium and a computer device.
背景技术Background technique
随着汽车工业的飞速发展,汽车辅助驾驶的功能日趋完善;自动泊车功能也是汽车辅助驾驶功能之一。目前的自动泊车系统的组成主要由环境感知模块、控制决策模块和执行模块组成,泊车过程可以分为车位探测、轨迹规划和轨迹跟踪3个部分。With the rapid development of the automobile industry, the functions of automobile auxiliary driving are becoming more and more perfect; the automatic parking function is also one of the functions of automobile auxiliary driving. The current automatic parking system is mainly composed of environment perception module, control decision-making module and execution module. The parking process can be divided into three parts: parking space detection, trajectory planning and trajectory tracking.
目前,实现泊车轨迹规划主要依据车辆运动模型和阿克曼转角原理将泊车的过程分解成直线、圆弧、曲线,通过分段拼接形成泊车轨迹,从而计算出相应的期望车速、期望方向盘转角和档位。但是,现有的泊车路径规划主要为静态规划,其分段轨迹的精度受边界约束和车辆运动学模型以及标定参数的影响大。而且,静态规划不能确保车辆在泊车过程中遇到障碍物或环境条件发生改变时动态调整泊车轨迹,泊车的失败率较高。At present, the realization of parking trajectory planning is mainly based on the vehicle motion model and the Ackerman angle principle to decompose the parking process into straight lines, arcs, and curves, and form the parking trajectory through segmented splicing, so as to calculate the corresponding expected vehicle speed, expected Steering wheel angle and gear position. However, the existing parking path planning is mainly static planning, and the accuracy of its segmented trajectory is greatly affected by boundary constraints, vehicle kinematics models, and calibration parameters. Moreover, static planning cannot ensure that the parking trajectory is dynamically adjusted when the vehicle encounters obstacles or changes in environmental conditions during parking, and the failure rate of parking is high.
发明内容Contents of the invention
本发明所解决的技术问题是提供一种自动泊车路径的规划和跟踪控制方法、规划装置、存储介质和计算机设备,其可以根据车辆的实时位置、车位信息以及车辆动力学约束和泊车边界约束等实时推算泊车轨迹,泊车精度高。The technical problem solved by the present invention is to provide a planning and tracking control method, planning device, storage medium and computer equipment of an automatic parking path, which can be based on the real-time position of the vehicle, parking space information, vehicle dynamics constraints and parking boundary constraints Etc. Real-time calculation of parking trajectory, high parking accuracy.
为解决上述技术问题,本发明所采用的技术方案内容具体如下:In order to solve the problems of the technologies described above, the content of the technical solution adopted in the present invention is specifically as follows:
一种自动泊车路径的规划和跟踪控制方法,包括如下步骤:A method for planning and tracking control of an automatic parking path, comprising the steps of:
获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标;所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;Acquire parking space information and vehicle information, the parking space information includes the coordinates of the four vertices of the parking space; the vehicle information includes the initial position coordinates of the vehicle, the way the vehicle is parked, the length of the vehicle body, the width of the vehicle body, the front of the vehicle Overhang length and rear overhang length of the vehicle;
对获取的数据进行处理,计算出边界约束,通过坐标转换,计算目标车位与当前车辆的实际位置,确定目标停车点;Process the acquired data, calculate the boundary constraints, calculate the target parking space and the actual position of the current vehicle through coordinate conversion, and determine the target parking point;
根据车位信息、车辆信息和障碍物信息得到泊车轨迹;Obtain the parking trajectory according to the parking space information, vehicle information and obstacle information;
利用跟踪算法对车辆进行控制,完成对规划轨迹的跟踪。Use the tracking algorithm to control the vehicle and complete the tracking of the planned trajectory.
作为上述方案的优选,根据车位信息、车辆信息和障碍物信息得到泊车轨迹包括如下步骤:As an optimization of the above scheme, obtaining the parking trajectory according to the parking space information, vehicle information and obstacle information includes the following steps:
根据车辆信息和车位信息确定车辆的目标停车点;Determine the target parking point of the vehicle according to the vehicle information and parking space information;
在P坐标系中,以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合;In the P coordinate system, with the target parking point as the end point and the initial vehicle position as the starting point, the trajectory curve combination between the target parking point and the initial vehicle position is determined by using the Dubins path planning method;
根据车辆信息得到车辆轮廓参数;Get the vehicle profile parameters according to the vehicle information;
根据车位信息得到车位边界;Get the parking space boundary according to the parking space information;
根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;According to the vehicle contour parameters and the parking space boundary, the trajectory curves in the trajectory curve combination are verified by boundary constraints and dynamic constraints in turn, and the trajectory curves that meet the boundary constraints and dynamic constraints are confirmed as parking curves;
利用贝塞尔公式对泊车曲线进行平滑处理;Use the Bessel formula to smooth the parking curve;
针对经过平滑处理的泊车曲线,利用车辆运动模型分解出车辆的运动信息,即得到泊车轨迹。For the smoothed parking curve, the vehicle motion model is used to decompose the vehicle motion information, that is, the parking trajectory is obtained.
作为上述方案的优选,根据车辆信息和车位信息确定车辆的目标停车点包括如下步骤:As a preference of the above scheme, determining the target parking spot of the vehicle according to the vehicle information and the parking space information includes the following steps:
根据车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长,确定车辆的后轴中心;Determine the rear axle center of the vehicle according to the length of the vehicle body, the width of the vehicle body, the length of the front overhang of the vehicle and the length of the rear overhang of the vehicle;
根据车位的四个顶点的坐标,确定车辆停泊至车位时车辆的后轴中心在车位的投影点,该投影点即为目标停车点。According to the coordinates of the four vertices of the parking space, determine the projection point of the center of the rear axle of the vehicle on the parking space when the vehicle is parked in the parking space, and the projection point is the target parking point.
作为上述方案的优选,所述车辆轮廓参数为车辆的四个顶点相对于车辆的后轴中心的坐标值。As a preference of the above solution, the vehicle profile parameter is the coordinate values of the four vertices of the vehicle relative to the center of the rear axle of the vehicle.
作为上述方案的优选,利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪包括如下步骤:As an optimization of the above scheme, using a tracking algorithm to control the vehicle to realize parking trajectory tracking includes the following steps:
对车辆进行横向控制,得到车辆的方向盘转角;Perform lateral control on the vehicle to obtain the steering wheel angle of the vehicle;
对车辆进行纵向控制,得到车辆的控制模式、纵向路程和纵向速度控制模块;Perform longitudinal control on the vehicle to obtain the control mode, longitudinal distance and longitudinal speed control module of the vehicle;
根据方向盘转角、车辆的控制模式、纵向路程和纵向速度控制模块对泊车轨迹进行修正,得到泊车路径。According to the steering wheel angle, the control mode of the vehicle, the longitudinal distance and the longitudinal speed control module, the parking trajectory is corrected to obtain the parking path.
作为上述方案的优选,对车辆进行横向控制,得到车辆的方向盘转角包括如下步骤:As an optimization of the above scheme, performing lateral control on the vehicle to obtain the steering wheel angle of the vehicle includes the following steps:
根据车辆的车身参数确定纯跟踪算法预瞄距离公式的二次项与一次项系数分别为1/6和1/5;According to the body parameters of the vehicle, the coefficients of the quadratic term and the first term of the preview distance formula of the pure tracking algorithm are determined to be 1/6 and 1/5 respectively;
确定跟踪算法的预瞄距离,获取预瞄点,且预瞄距离ld的计算公式为Determine the preview distance of the tracking algorithm, obtain the preview point, and the calculation formula of the preview distance ld is
计算预瞄点在车辆坐标系下的坐标,预瞄点在车辆坐标系下的纵坐标即为预瞄偏差;Calculate the coordinates of the preview point in the vehicle coordinate system, and the ordinate of the preview point in the vehicle coordinate system is the preview deviation;
以预瞄偏差作为控制量,使用PID控制算法闭环控制方向盘转角。Taking the preview deviation as the control quantity, the PID control algorithm is used to control the steering wheel angle in closed loop.
本发明还提供了自动泊车路径的规划装置,包括获取模块和路径规划模块,所述获取模块获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标;所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;所述路径规划模块根据车位信息、车辆信息和障碍物信息得到泊车轨迹。The present invention also provides a planning device for an automatic parking path, including an acquisition module and a path planning module, the acquisition module acquires parking space information and vehicle information, and the parking space information includes the coordinates of four vertices of the parking space; the vehicle information includes The initial position coordinates of the vehicle, the parking mode of the vehicle, the body length of the vehicle, the width of the vehicle body, the front overhang length of the vehicle and the rear overhang length of the vehicle; the path planning module obtains parking track.
作为上述方案的优选,所述获取模块包括第一获取单元、第一确定单元、第二确定单元、第三确定单元、第四确定单元和平滑处理单元,所述第一获取单元根据车辆信息和车位信息确定车辆的目标停车点;在P坐标系中,所述第一确定单元以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合;所述第二确定单元根据车辆信息得到车辆轮廓参数;所述第三确定单元根据车位信息得到车位边界;所述第四确定单元根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;所述平滑处理单元利用贝塞尔公式对泊车曲线进行平滑处理。As a preference of the above scheme, the acquisition module includes a first acquisition unit, a first determination unit, a second determination unit, a third determination unit, a fourth determination unit and a smoothing processing unit, and the first acquisition unit is based on vehicle information and The parking space information determines the target parking point of the vehicle; in the P coordinate system, the first determination unit takes the target parking point as the end point and the initial position of the vehicle as the starting point, and uses the Dubins path planning method to determine the distance between the target parking point and the initial position of the vehicle. The trajectory curve combination; the second determination unit obtains the vehicle contour parameters according to the vehicle information; the third determination unit obtains the parking space boundary according to the parking space information; The trajectory curve of the trajectory curve is verified by boundary constraints and dynamic constraints in turn, and the trajectory curve that meets the boundary constraints and dynamic constraints is confirmed as the parking curve; the smoothing processing unit uses the Bessel formula to smooth the parking curve deal with.
本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现所述的规划方法的步骤。The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the planning method are realized.
本发明还提供了一种计算机设备,包括存储器以及与所述存储器相连接的处理器,所述存储器存储计算机程序,所述计算机程序被所述处理器执行时实现所述的规划方法的步骤。The present invention also provides a computer device, including a memory and a processor connected to the memory, the memory stores a computer program, and when the computer program is executed by the processor, the steps of the planning method are implemented.
与现有技术相比,本发明的有益效果在于:Compared with prior art, the beneficial effect of the present invention is:
本发明提供的自动泊车路径的规划和跟踪控制方法,其采用动态的泊车轨迹规划方法,实时根据定位信息和障碍物信息更新泊车轨迹,在满足边界约束和车辆动力学约束的前提下最大限度的适应各种停车环境。而且,所述规划方法采用预瞄跟踪算法,闭环转向控制和速度控制,分段跟踪轨迹点,实时消除运动累积误差,保证轨迹跟踪的精度。泊车完成后的距离偏差不大于20cm,车身中心与车位中心线的角度不超过2°,完全满足泊车系统的性能要求。The automatic parking path planning and tracking control method provided by the present invention adopts a dynamic parking trajectory planning method to update the parking trajectory in real time according to positioning information and obstacle information, under the premise of satisfying boundary constraints and vehicle dynamic constraints Adapt to various parking environments to the greatest extent. Moreover, the planning method adopts a preview tracking algorithm, closed-loop steering control and speed control, tracks track points in segments, eliminates motion accumulation errors in real time, and ensures track tracking accuracy. The distance deviation after parking is not greater than 20cm, and the angle between the center of the vehicle body and the centerline of the parking space is not more than 2°, fully meeting the performance requirements of the parking system.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
图1为较优选实施例的自动泊车路径的规划和跟踪控制方法的应用环境图;Fig. 1 is an application environment diagram of the planning and tracking control method of the automatic parking path of a more preferred embodiment;
图2为较优选实施例的自动泊车路径的规划和跟踪控制方法的流程示意图;Fig. 2 is a schematic flowchart of a method for planning and tracking control of an automatic parking path in a more preferred embodiment;
图3为较优选实施例的自动泊车路径的规划装置的结构框图;Fig. 3 is a structural block diagram of a planning device for an automatic parking path in a more preferred embodiment;
图4为较优选实施例的计算机设备的结构框图;Fig. 4 is the structural block diagram of the computer equipment of more preferred embodiment;
图5为车位信息参数图;Fig. 5 is a parking space information parameter map;
其中,各附图的附图标记为:Wherein, the reference numerals of each accompanying drawing are:
1、终端;2、服务器;3、获取模块;4、路径规划模块;5、第一获取单元;6、第一确定单元;7、第二确定单元;8、第三确定单元;9、第四确定单元;10、平滑处理单元。1. Terminal; 2. Server; 3. Acquisition module; 4. Path planning module; 5. First acquisition unit; 6. First determination unit; 7. Second determination unit; 8. Third determination unit; 9. The first Four determination unit; 10, smoothing processing unit.
具体实施方式Detailed ways
为更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明的具体实施方式、结构、特征及其功效,详细说明如下:In order to further elaborate the technical means and effects that the present invention adopts for reaching the intended invention purpose, below in conjunction with the accompanying drawings and preferred embodiments, the specific implementation, structure, features and effects of the present invention are described in detail as follows:
实施例一Embodiment one
如图1所示是本发明的自动泊车路径的规划和跟踪控制方法的应用环境图,所述自动泊车路径的规划和跟踪控制方法应用于自动泊车路径的规划系统,该自动泊车路径的规划系统包括终端1和服务器2,所述终端1和所述服务器2通过网络连接,所述终端1具体可以是台式终端或移动终端,移动终端具体可以手机、平板电脑、笔记本电脑、便携式可穿戴设备等中的至少一种,所述服务器2可以用独立的服务器或者是多个服务器组成的服务器集群来实现。As shown in Figure 1 is the application environment diagram of the planning and tracking control method of the automatic parking path of the present invention, the planning and tracking control method of the automatic parking path is applied to the planning system of the automatic parking path, the automatic parking The path planning system includes a
如图2所示,在一个实施例中,本发明提供了自动泊车路径的规划和跟踪控制方法,以该方法应用于图1中的服务器2为例进行说明,包括:As shown in FIG. 2 , in one embodiment, the present invention provides a method for planning and tracking control of an automatic parking path, which is described by taking the method applied to the
获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标;所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;Acquire parking space information and vehicle information, the parking space information includes the coordinates of the four vertices of the parking space; the vehicle information includes the initial position coordinates of the vehicle, the way the vehicle is parked, the length of the vehicle body, the width of the vehicle body, the front of the vehicle Overhang length and rear overhang length of the vehicle;
对获取的数据进行处理,计算出边界约束,通过坐标转换,计算目标车位与当前车辆的实际位置,确定目标停车点;Process the acquired data, calculate the boundary constraints, calculate the target parking space and the actual position of the current vehicle through coordinate conversion, and determine the target parking point;
根据车位信息、车辆信息和障碍物信息得到泊车轨迹;Obtain the parking trajectory according to the parking space information, vehicle information and obstacle information;
利用跟踪算法对车辆进行控制,完成对规划轨迹的跟踪。Use the tracking algorithm to control the vehicle and complete the tracking of the planned trajectory.
具体地,如图5所示的车位为例,A、B、C、D为该车位的四个顶点,且A、B、C、D四个点在大地坐标系中的坐标分别为(xA,yA)、(xB,yB)、(xC,yC)和(xD,yD),则车位的宽度Wid的计算公式为:Wid=xB-xA=xC-xD;车位的深度Dep的计算公式为Dep=yD-yA=yC-yB。Specifically, taking the parking space shown in Figure 5 as an example, A, B, C, and D are the four vertices of the parking space, and the coordinates of the four points A, B, C, and D in the earth coordinate system are respectively (x A , y A ), (x B , y B ), (x C , y C ) and (x D , y D ), the formula for calculating the width Wid of the parking space is: Wid=x B -x A =x C -x D ; the calculation formula of the depth Dep of the parking space is Dep=y D -y A =y C -y B .
作为上述方案的优选,根据车位信息、车辆信息和障碍物信息得到泊车轨迹包括如下步骤:As an optimization of the above scheme, obtaining the parking trajectory according to the parking space information, vehicle information and obstacle information includes the following steps:
根据车辆信息和车位信息确定车辆的目标停车点;在大地坐标系下,目标停车点坐标xo=Wid/2=(xB-xA)/2,yo=Dep/2-lr-ls=(yD-yA)/2-lr-ls;其中,lr为车辆后悬长,ls为后方预留安全距离。Determine the target parking point of the vehicle according to the vehicle information and parking space information; in the geodetic coordinate system, the coordinates of the target parking point x o =Wid/2=(x B -x A )/2, y o =Dep/2-l r - l s = (y D -y A )/2-l r -l s ; where, l r is the length of the rear overhang of the vehicle, and l s is the reserved safety distance behind.
在P坐标系中,以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合,具体地,使用CSC类型(即曲线+直线+曲线)组合,假设起点为S=(xs,ys,α1),终点g=(xg,yg,α2),最小转弯半径为rmin,则三段路径的计算公式分别为:In the P coordinate system, with the target parking point as the end point and the vehicle’s initial position as the starting point, the Dubins path planning method is used to determine the trajectory curve combination between the target parking point and the vehicle’s initial position. Specifically, the CSC type (ie, curve + straight line + curve) combination, assuming that the starting point is S=(x s ,y s ,α1), the end point g=(x g ,y g ,α2), and the minimum turning radius is r min , then the calculation formulas of the three sections of paths are respectively :
则路径LCSC=p1+p2+p3。Then the path L CSC =p1+p2+p3.
根据车辆信息得到车辆轮廓参数;Get the vehicle profile parameters according to the vehicle information;
根据车位信息得到车位边界;Get the parking space boundary according to the parking space information;
根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;According to the vehicle contour parameters and the parking space boundary, the trajectory curves in the trajectory curve combination are verified by boundary constraints and dynamic constraints in turn, and the trajectory curves that meet the boundary constraints and dynamic constraints are confirmed as parking curves;
利用贝塞尔公式对泊车曲线进行平滑处理;Use the Bessel formula to smooth the parking curve;
针对经过平滑处理的泊车曲线,利用车辆运动模型分解出车辆的运动信息,即得到泊车轨迹。For the smoothed parking curve, the vehicle motion model is used to decompose the vehicle motion information, that is, the parking trajectory is obtained.
具体地,任意时刻上述路径曲线上的点向量为(xr(t),yr(t),α),其中,xr(t)为轨迹横坐标,yr(t)为轨迹纵坐标,α为轨迹切向角。假设车辆后轴中心点跟踪该路径曲线,则任意时刻车辆后轴中心点的坐标也即曲线上的点坐标,根据车辆运动学方程,在低速下不考虑车辆侧滑,则有:Specifically, the point vector on the above-mentioned path curve at any moment is (x r (t), y r (t), α), where x r (t) is the abscissa of the trajectory, and y r (t) is the ordinate of the trajectory , α is the tangential angle of the trajectory. Assuming that the center point of the rear axle of the vehicle tracks the path curve, the coordinates of the center point of the rear axle of the vehicle at any time are also the point coordinates on the curve. According to the vehicle kinematics equation, without considering the sideslip of the vehicle at low speeds, there are:
其中,L为车辆前后轴的轴距,V为车速(匀速),β为前轮转向角。Among them, L is the wheelbase of the front and rear axles of the vehicle, V is the vehicle speed (constant speed), and β is the front wheel steering angle.
作为上述方案的优选,根据车辆信息和车位信息确定车辆的目标停车点包括如下步骤:As a preference of the above scheme, determining the target parking spot of the vehicle according to the vehicle information and the parking space information includes the following steps:
根据车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长,确定车辆的后轴中心,具体地,以左前轮外侧中心为原点,则后轴点坐标xr=LC/2,yr=Ll-Lr-Lf,其中,LC为车辆宽度,Ll为车长,Lr、Lf分别为车的后悬和前悬长;Determine the center of the rear axle of the vehicle according to the length of the vehicle body, the width of the vehicle body, the length of the front overhang of the vehicle, and the length of the rear overhang of the vehicle. Specifically, taking the center of the outer side of the left front wheel as the origin, the coordinates of the rear axle point x r = L C /2, y r =L l -L r -L f , wherein, L C is the width of the vehicle, L l is the length of the vehicle, L r and L f are the lengths of the rear suspension and the front suspension of the vehicle respectively;
根据车位的四个顶点的坐标,确定车辆停泊至车位时车辆的后轴中心在车位的投影点,该投影点即为目标停车点。According to the coordinates of the four vertices of the parking space, determine the projection point of the center of the rear axle of the vehicle on the parking space when the vehicle is parked in the parking space, and the projection point is the target parking point.
作为上述方案的优选,所述车辆轮廓参数为车辆的四个顶点相对于车辆的后轴中心的坐标值。As a preference of the above solution, the vehicle profile parameter is the coordinate values of the four vertices of the vehicle relative to the center of the rear axle of the vehicle.
作为上述方案的优选,利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪包括如下步骤:As an optimization of the above scheme, using a tracking algorithm to control the vehicle to realize parking trajectory tracking includes the following steps:
对车辆进行横向控制,得到车辆的方向盘转角;Perform lateral control on the vehicle to obtain the steering wheel angle of the vehicle;
对车辆进行纵向控制,得到车辆的控制模式、纵向路程和纵向速度控制模块;Perform longitudinal control on the vehicle to obtain the control mode, longitudinal distance and longitudinal speed control module of the vehicle;
根据方向盘转角、车辆的控制模式、纵向路程和纵向速度控制模块对泊车轨迹进行修正,得到泊车路径。According to the steering wheel angle, the control mode of the vehicle, the longitudinal distance and the longitudinal speed control module, the parking trajectory is corrected to obtain the parking path.
作为上述方案的优选,对车辆进行横向控制,得到车辆的方向盘转角包括如下步骤:As an optimization of the above scheme, performing lateral control on the vehicle to obtain the steering wheel angle of the vehicle includes the following steps:
根据车辆的车身参数确定纯跟踪算法预瞄距离公式的二次项系数A与一次项系数B分别为1/6和1/5,具体计算时:其中,amax为最大减速度,本案例中取3m/s^2;B为反应时间,本发明中B的取值为0.2s。According to the body parameters of the vehicle, the quadratic coefficient A and the primary coefficient B of the preview distance formula of the pure tracking algorithm are determined to be 1/6 and 1/5 respectively. When calculating: Wherein, a max is the maximum deceleration, which is 3m/s^2 in this case; B is the reaction time, and the value of B among the present invention is 0.2s.
确定跟踪算法的预瞄距离,获取预瞄点,且预瞄距离ld的计算公式为具体地,Cons通常为车辆的最小转弯半径rmin,本发明采用工程化方法标定出Cons,通过对不同车位形式,不同泊入泊出方式,不同阶段下的车辆运动轨迹实车测试标定而得;Determine the preview distance of the tracking algorithm, obtain the preview point, and the calculation formula of the preview distance ld is Specifically, Cons is usually the minimum turning radius r min of the vehicle. The present invention adopts an engineering method to calibrate Cons, which is obtained through actual vehicle test calibration of vehicle motion trajectories in different parking spaces, different parking modes, and different stages. ;
计算预瞄点在车辆坐标系下的坐标,预瞄点在车辆坐标系下的纵坐标即为预瞄偏差,具体为通过旋转和平移变化,将预瞄点在大地坐标系下的坐标转换至车辆坐标系下,且坐标转换公式为:Calculate the coordinates of the preview point in the vehicle coordinate system. The ordinate of the preview point in the vehicle coordinate system is the preview deviation. Specifically, the coordinates of the preview point in the earth coordinate system are converted to In the vehicle coordinate system, and the coordinate conversion formula is:
其中:x’、y’为转换后车辆坐标系下预瞄点坐标,xlp、ylp为大地坐标系下预瞄点坐标,θ为坐标旋转角度,xcar、ycar为车辆在大地坐标系下坐标;y′就是预瞄偏差Among them: x', y' are the coordinates of the preview point in the converted vehicle coordinate system, x lp and y lp are the coordinates of the preview point in the earth coordinate system, θ is the coordinate rotation angle, x car and y car are the coordinates of the vehicle in the earth Coordinates under the system; y′ is the preview deviation
以预瞄偏差作为控制量,使用PID控制算法闭环控制方向盘转角,具体地,根据预瞄偏差,通过PID计算待停泊车辆的车轮转角,且车轮转角的计算公式为:Taking the preview deviation as the control amount, the PID control algorithm is used to control the steering wheel angle in a closed loop. Specifically, according to the preview deviation, the wheel angle of the vehicle to be parked is calculated by PID, and the calculation formula of the wheel angle is:
其中:δwheel是车轮转角;err是预瞄偏差;kp是比例控制系数;kd是微分控制系数;Among them: δ wheel is the wheel angle; err is the preview deviation; kp is the proportional control coefficient; kd is the differential control coefficient;
根据车轮转角查表即可求得请求方向盘转角。The requested steering wheel angle can be obtained by looking up the table according to the wheel angle.
应该理解的是,虽然图2的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of FIG. 2 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in FIG. 2 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The order is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
实施例二Embodiment two
如图3所示,本实施例提供了自动泊车路径的规划装置,包括获取模块3和路径规划模块4,所述获取模块3获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标,所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;所述路径规划模块4根据车位信息、车辆信息和障碍物信息得到泊车轨迹。As shown in Figure 3, the present embodiment provides a planning device for an automatic parking path, including an acquisition module 3 and a path planning module 4, the acquisition module 3 acquires parking space information and vehicle information, and the parking space information includes four parking spaces. The coordinates of the vertex, the vehicle information includes the initial position coordinates of the vehicle, the parking mode of the vehicle, the body length of the vehicle, the width of the vehicle body, the front overhang length of the vehicle and the rear overhang length of the vehicle; the path planning module 4 according to Parking space information, vehicle information and obstacle information are used to obtain the parking trajectory.
作为进一步优选的方案,所述获取模块3包括第一获取单元5、第一确定单元6、第二确定单元7、第三确定单元8、第四确定单元9和平滑处理单元10,所述第一获取单元5根据车辆信息和车位信息确定车辆的目标停车点;在P坐标系中,所述第一确定单元6以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合;所述第二确定单元7根据车辆信息得到车辆轮廓参数;所述第三确定单元8根据车位信息得到车位边界;所述第四确定单元9根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;所述平滑处理单元10利用贝塞尔公式对泊车曲线进行平滑处理。As a further preferred solution, the acquisition module 3 includes a first acquisition unit 5, a first determination unit 6, a second determination unit 7, a third determination unit 8, a fourth determination unit 9 and a smoothing processing unit 10, the first An acquisition unit 5 determines the target parking point of the vehicle according to the vehicle information and the parking space information; in the P coordinate system, the first determination unit 6 takes the target parking point as the end point and the initial position of the vehicle as the starting point, and uses the Dubins path planning method to determine The trajectory curve combination between the target parking point and the initial position of the vehicle; the second determination unit 7 obtains the vehicle profile parameters according to the vehicle information; the third determination unit 8 obtains the parking space boundary according to the parking space information; the fourth determination unit 9 According to the vehicle profile parameters and the parking space boundary, the trajectory curve in the trajectory curve combination is verified by boundary constraint verification and dynamic constraint in turn, and the trajectory curve that meets the boundary constraint and dynamic constraint is confirmed as the parking curve; the smoothing process Unit 10 uses the Bessel formula to smooth the parking curve.
需要说明的是,所述自动泊车路径的规划装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。It should be noted that each module in the automatic parking path planning device can be fully or partially realized by software, hardware or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
实施例三Embodiment Three
本实施例提供了一种计算机设备,所述计算机设备可以为服务器,如图4所示,所述计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储操作行为数据、商品信息数据等等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时实现所述寻找项目的方法的步骤。This embodiment provides a computer device. The computer device may be a server. As shown in FIG. 4 , the computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store operation behavior data, commodity information data and the like. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps of the method for finding items are realized.
本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation to the computer equipment on which the solution of the application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在其他实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In other embodiments, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标;所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;根据车位信息、车辆信息和障碍物信息得到泊车轨迹;利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪。Acquire parking space information and vehicle information, the parking space information includes the coordinates of the four vertices of the parking space; the vehicle information includes the initial position coordinates of the vehicle, the way the vehicle is parked, the length of the vehicle body, the width of the vehicle body, the front of the vehicle The overhang length and the rear overhang length of the vehicle; the parking trajectory is obtained according to the parking space information, vehicle information and obstacle information; the vehicle is controlled by the tracking algorithm to realize the parking trajectory tracking.
在其他一些实施例中,处理器执行计算机程序时实现根据车位信息、车辆信息和障碍物信息得到泊车轨迹的步骤,具体包括以下步骤:根据车辆信息和车位信息确定车辆的目标停车点;在P坐标系中,以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合;根据车辆信息得到车辆轮廓参数;根据车位信息得到车位边界;根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;利用贝塞尔公式对泊车曲线进行平滑处理;针对经过平滑处理的泊车曲线,利用车辆运动模型分解出车辆的运动信息,即得到泊车轨迹。In some other embodiments, when the processor executes the computer program, the step of obtaining the parking track according to the parking space information, the vehicle information and the obstacle information specifically includes the following steps: determining the target parking point of the vehicle according to the vehicle information and the parking space information; In the P coordinate system, with the target parking point as the end point and the initial position of the vehicle as the starting point, the Dubins path planning method is used to determine the trajectory curve combination between the target parking point and the initial position of the vehicle; the vehicle profile parameters are obtained according to the vehicle information; according to the parking space information Obtain the parking space boundary; perform boundary constraint verification and dynamic constraint verification on the trajectory curve in the trajectory curve combination according to the vehicle contour parameters and the parking space boundary, and confirm the trajectory curve that meets the boundary constraint and dynamic constraint as the parking curve; The Bessel formula is used to smooth the parking curve; for the smoothed parking curve, the vehicle motion model is used to decompose the vehicle's motion information, that is, the parking trajectory is obtained.
在其他一些实施例中,处理器执行计算机程序时实现根据车辆信息和车位信息确定车辆的目标停车点的步骤,具体包括以下步骤:根据车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长,确定车辆的后轴中心;根据车位的四个顶点的坐标,确定车辆停泊至车位时车辆的后轴中心在车位的投影点,该投影点即为目标停车点。In some other embodiments, when the processor executes the computer program, the step of determining the target parking spot of the vehicle according to the vehicle information and the parking space information specifically includes the following steps: and the rear overhang length of the vehicle to determine the center of the rear axle of the vehicle; according to the coordinates of the four vertices of the parking space, determine the projection point of the center of the rear axle of the vehicle on the parking space when the vehicle is parked in the parking space, and the projection point is the target parking point.
在其他一些实施例中,处理器执行计算机程序时实现利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪的步骤,具体包括以下步骤:对车辆进行横向控制,得到车辆的方向盘转角;对车辆进行纵向控制,得到车辆的控制模式、纵向路程和纵向速度控制模块;根据方向盘转角、车辆的控制模式、纵向路程和纵向速度控制模块对泊车轨迹进行修正,得到泊车路径。In some other embodiments, when the processor executes the computer program, the step of using the tracking algorithm to control the vehicle and realize the tracking of the parking trajectory includes the following steps: performing lateral control on the vehicle to obtain the steering wheel angle of the vehicle; For longitudinal control, the control mode, longitudinal distance and longitudinal speed control module of the vehicle are obtained; the parking trajectory is corrected according to the steering wheel angle, the control mode of the vehicle, the longitudinal distance and the longitudinal speed control module, and the parking path is obtained.
在其他一些实施例中,处理器执行计算机程序时实现对车辆进行横向控制,得到车辆的方向盘转角的步骤,具体包括以下步骤:根据车辆的车身参数确定纯跟踪算法预瞄距离公式的二次项与一次项系数分别为1/6和1/5;确定跟踪算法的预瞄距离,获取预瞄点,且预瞄距离ld的计算公式为采用工程化方法标定出Cons,通过对不同车位形式,不同泊入泊出方式,不同阶段下的车辆运动轨迹实车测试标定而得;计算预瞄点在车辆坐标系下的坐标,预瞄点在车辆坐标系下的纵坐标即为预瞄偏差;以预瞄偏差作为控制量,使用PID控制算法闭环控制方向盘转角。In some other embodiments, when the processor executes the computer program, the step of laterally controlling the vehicle and obtaining the steering wheel angle of the vehicle specifically includes the following steps: determining the quadratic term of the preview distance formula of the pure tracking algorithm according to the body parameters of the vehicle The first-order coefficients are 1/6 and 1/5 respectively; determine the preview distance of the tracking algorithm, obtain the preview point, and the calculation formula of the preview distance ld is The Cons is calibrated by engineering methods, which are obtained through the actual vehicle test calibration of different parking spaces, different parking in and out methods, and vehicle motion trajectories at different stages; calculate the coordinates of the preview point in the vehicle coordinate system, and the preview point The ordinate in the vehicle coordinate system is the preview deviation; the preview deviation is used as the control amount, and the PID control algorithm is used to control the steering wheel angle in a closed loop.
实施例四Embodiment Four
本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:获取车位信息和车辆信息,所述车位信息包括车位的四个顶点的坐标;所述车辆信息包括车辆的初始位置坐标、车辆的泊入方式、车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长;根据车位信息、车辆信息和障碍物信息得到泊车轨迹;利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪。This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining parking space information and vehicle information, and the parking space information includes four vertices of the parking space The coordinates of the vehicle; the vehicle information includes the initial position coordinates of the vehicle, the way the vehicle is parked, the length of the vehicle body, the width of the vehicle body, the length of the front overhang of the vehicle and the length of the rear overhang of the vehicle; according to the parking space information, vehicle information and obstacles The parking trajectory is obtained from the object information; the vehicle is controlled by the tracking algorithm to realize the parking trajectory tracking.
在其他一些实施例中,计算机程序被处理器执行实现根据车位信息、车辆信息和障碍物信息得到泊车轨迹的步骤,具体包括以下步骤:根据车辆信息和车位信息确定车辆的目标停车点;在P坐标系中,以目标停车点为终点、以车辆初始位置为起点,利用Dubins路径规划方法确定目标停车点和车辆初始位置之间的轨迹曲线组合;根据车辆信息得到车辆轮廓参数;根据车位信息得到车位边界;根据车辆轮廓参数和车位边界对轨迹曲线组合中的轨迹曲线依次进行边界约束验证和动力学约束进行验证,并将其中符合边界约束和动力学约束的轨迹曲线确认为泊车曲线;利用贝塞尔公式对泊车曲线进行平滑处理;针对经过平滑处理的泊车曲线,利用车辆运动模型分解出车辆的运动信息,即得到泊车轨迹。In some other embodiments, the computer program is executed by the processor to realize the step of obtaining the parking trajectory according to the parking space information, the vehicle information and the obstacle information, which specifically includes the following steps: determining the target parking point of the vehicle according to the vehicle information and the parking space information; In the P coordinate system, with the target parking point as the end point and the initial position of the vehicle as the starting point, the Dubins path planning method is used to determine the trajectory curve combination between the target parking point and the initial position of the vehicle; the vehicle profile parameters are obtained according to the vehicle information; according to the parking space information Obtain the parking space boundary; perform boundary constraint verification and dynamic constraint verification on the trajectory curve in the trajectory curve combination according to the vehicle contour parameters and the parking space boundary, and confirm the trajectory curve that meets the boundary constraint and dynamic constraint as the parking curve; The Bessel formula is used to smooth the parking curve; for the smoothed parking curve, the vehicle motion model is used to decompose the vehicle's motion information, that is, the parking trajectory is obtained.
在其他一些实施例中,计算机程序被处理器执行实现根据车辆信息和车位信息确定车辆的目标停车点的步骤,具体包括以下步骤:根据车辆的车身长度、车辆的车身宽度、车辆的前悬长和车辆的后悬长,确定车辆的后轴中心;根据车位的四个顶点的坐标,确定车辆停泊至车位时车辆的后轴中心在车位的投影点,该投影点即为目标停车点。In some other embodiments, the computer program is executed by the processor to realize the step of determining the target parking spot of the vehicle according to the vehicle information and the parking space information, which specifically includes the following steps: according to the vehicle body length, vehicle body width, and vehicle front overhang length and the rear overhang length of the vehicle to determine the center of the rear axle of the vehicle; according to the coordinates of the four vertices of the parking space, determine the projection point of the center of the rear axle of the vehicle on the parking space when the vehicle is parked in the parking space, and the projection point is the target parking point.
在其他一些实施例中,计算机程序被处理器执行实现利用跟踪算法对车辆进行控制,实现泊车轨迹跟踪的步骤,具体包括以下步骤:对车辆进行横向控制,得到车辆的方向盘转角;对车辆进行纵向控制,得到车辆的控制模式、纵向路程和纵向速度控制模块;根据方向盘转角、车辆的控制模式、纵向路程和纵向速度控制模块对泊车轨迹进行修正,得到泊车路径。In some other embodiments, the computer program is executed by the processor to realize the steps of using the tracking algorithm to control the vehicle and realize the tracking of the parking trajectory, which specifically includes the following steps: performing lateral control on the vehicle to obtain the steering wheel angle of the vehicle; For longitudinal control, the control mode, longitudinal distance and longitudinal speed control module of the vehicle are obtained; the parking trajectory is corrected according to the steering wheel angle, the control mode of the vehicle, the longitudinal distance and the longitudinal speed control module, and the parking path is obtained.
在其他一些实施例中,计算机程序被处理器执行实现对车辆进行横向控制,得到车辆的方向盘转角的步骤,具体包括以下步骤:根据车辆的车身参数确定纯跟踪算法预瞄距离公式的二次项与一次项系数分别为1/6和1/5;确定跟踪算法的预瞄距离,获取预瞄点,且预瞄距离ld的计算公式为采用工程化方法标定出Cons,通过对不同车位形式,不同泊入泊出方式,不同阶段下的车辆运动轨迹实车测试标定而得;计算预瞄点在车辆坐标系下的坐标,预瞄点在车辆坐标系下的纵坐标即为预瞄偏差;以预瞄偏差作为控制量,使用PID控制算法闭环控制方向盘转角。In some other embodiments, the computer program is executed by the processor to realize the lateral control of the vehicle and the step of obtaining the steering wheel angle of the vehicle, which specifically includes the following steps: determining the quadratic term of the preview distance formula of the pure tracking algorithm according to the body parameters of the vehicle The first-order coefficients are 1/6 and 1/5 respectively; determine the preview distance of the tracking algorithm, obtain the preview point, and the calculation formula of the preview distance ld is The Cons is calibrated by engineering methods, which are obtained through the actual vehicle test calibration of different parking spaces, different parking in and out methods, and vehicle motion trajectories at different stages; calculate the coordinates of the preview point in the vehicle coordinate system, and the preview point The ordinate in the vehicle coordinate system is the preview deviation; the preview deviation is used as the control amount, and the PID control algorithm is used to control the steering wheel angle in a closed loop.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性存储器和/或易失性存储器,其中:(1)非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存;(2)易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to memory, database or other media used in the various embodiments provided by the application may include non-volatile memory and/or volatile memory, wherein: (1) non-volatile memory Memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory; (2) volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The above-mentioned embodiment is only a preferred embodiment of the present invention, and cannot be used to limit the protection scope of the present invention. Any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the scope of the present invention. Scope of protection claimed.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110146895.XA CN112793562B (en) | 2021-02-03 | 2021-02-03 | A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110146895.XA CN112793562B (en) | 2021-02-03 | 2021-02-03 | A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112793562A CN112793562A (en) | 2021-05-14 |
CN112793562B true CN112793562B (en) | 2023-02-28 |
Family
ID=75813821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110146895.XA Active CN112793562B (en) | 2021-02-03 | 2021-02-03 | A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112793562B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113212424B (en) * | 2021-05-24 | 2022-10-11 | 郑州睿行汽车科技有限公司 | Vehicle and automatic parking method and device thereof |
CN113510047B (en) * | 2021-05-26 | 2023-05-12 | 飓蜂科技(苏州)有限公司 | Dispensing method and device for planning dispensing track |
CN113701756B (en) * | 2021-08-04 | 2024-05-31 | 东南大学 | Novel self-adaptive unmanned vehicle reversing and warehousing path planning and tracking method |
CN114132304B (en) * | 2021-10-13 | 2023-10-13 | 武汉光庭信息技术股份有限公司 | Speed planning method and device in autonomous parking |
CN114103934B (en) * | 2021-12-23 | 2023-06-16 | 岚图汽车科技有限公司 | Automatic parking path planning method, device, equipment and readable storage medium |
CN114564005A (en) * | 2022-01-14 | 2022-05-31 | 长沙行深智能科技有限公司 | An automatic U-turn control method and device for an unmanned vehicle and an unmanned vehicle |
CN114228703B (en) * | 2022-01-29 | 2023-11-17 | 中国第一汽车股份有限公司 | Automatic parking method, system, vehicle and storage medium |
CN114701488B (en) * | 2022-03-31 | 2024-06-25 | 重庆长安汽车股份有限公司 | Automatic parking path tracking method based on horizontal and longitudinal decoupling |
CN114987452B (en) * | 2022-07-19 | 2022-11-04 | 中国第一汽车股份有限公司 | Automatic parking control method and device, vehicle and storage medium |
CN115489515B (en) * | 2022-08-29 | 2024-11-19 | 武汉理工大学 | Automatic parking track planning method for narrow vertical parking space and electronic equipment |
CN116373912B (en) * | 2023-06-05 | 2023-09-12 | 禾多科技(北京)有限公司 | Vehicle parking lateral control method, device, equipment and computer readable medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105539430A (en) * | 2015-12-29 | 2016-05-04 | 北京理工大学 | Intelligent man-car interaction parking method based on hand-held terminal |
WO2017205278A1 (en) * | 2016-05-23 | 2017-11-30 | nuTonomy Inc. | Supervisory control of vehicles |
WO2018179535A1 (en) * | 2017-03-29 | 2018-10-04 | Mitsubishi Electric Corporation | System and method for controlling motion of vehicle |
CN109017793A (en) * | 2018-07-26 | 2018-12-18 | 中南大学 | The navigation of autonomous trick vehicle and control method based on antero posterior axis fusion reference |
CN110696818A (en) * | 2019-10-12 | 2020-01-17 | 深圳市布谷鸟科技有限公司 | Automatic parking method and system based on optimal path |
CN111196271A (en) * | 2020-01-21 | 2020-05-26 | 北京百度网讯科技有限公司 | Automatic parking method, device, equipment and storage medium |
CN111338349A (en) * | 2020-03-09 | 2020-06-26 | 兰剑智能科技股份有限公司 | Bezier curve control method and system for AGV |
CN111731269A (en) * | 2019-03-22 | 2020-10-02 | 广州汽车集团股份有限公司 | A kind of automatic parking path planning method and system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102005058809A1 (en) * | 2005-12-09 | 2007-06-14 | Hella Kgaa Hueck & Co. | path planning |
AU2012243484B2 (en) * | 2011-04-11 | 2014-10-30 | Crown Equipment Corporation | Method and apparatus for efficient scheduling for multiple automated non-holonomic vehicles using a coordinated path planner |
US9464913B2 (en) * | 2015-02-16 | 2016-10-11 | Jaybridge Robotics, Inc. | Assistive vehicular guidance system and method |
CN105336008A (en) * | 2015-09-24 | 2016-02-17 | 湖南大学 | Two-dimension code scanning self-parking system and method oriented to unattended operation |
US10829116B2 (en) * | 2016-07-01 | 2020-11-10 | nuTonomy Inc. | Affecting functions of a vehicle based on function-related information about its environment |
CN106225789A (en) * | 2016-07-12 | 2016-12-14 | 武汉理工大学 | A kind of onboard navigation system with high security and bootstrap technique thereof |
IT201700073722A1 (en) * | 2017-06-30 | 2018-12-30 | Magneti Marelli Spa | "Route planning procedure for calculating optimal parking maneuvers for road vehicles and the corresponding system" |
CN109798911B (en) * | 2019-02-28 | 2020-12-25 | 北京智行者科技有限公司 | Global path planning method for passenger-riding parking |
CN110949374B (en) * | 2019-11-14 | 2021-06-18 | 江苏大学 | Automatic parallel parking path planning method based on two-section second-order Bezier curve |
CN111674391A (en) * | 2020-05-26 | 2020-09-18 | 坤泰车辆系统(常州)有限公司 | Full-autonomous parking method based on combined inertial navigation and ultrasonic radar |
-
2021
- 2021-02-03 CN CN202110146895.XA patent/CN112793562B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105539430A (en) * | 2015-12-29 | 2016-05-04 | 北京理工大学 | Intelligent man-car interaction parking method based on hand-held terminal |
WO2017205278A1 (en) * | 2016-05-23 | 2017-11-30 | nuTonomy Inc. | Supervisory control of vehicles |
WO2018179535A1 (en) * | 2017-03-29 | 2018-10-04 | Mitsubishi Electric Corporation | System and method for controlling motion of vehicle |
CN110462542A (en) * | 2017-03-29 | 2019-11-15 | 三菱电机株式会社 | System and method for controlling motion of a vehicle |
CN109017793A (en) * | 2018-07-26 | 2018-12-18 | 中南大学 | The navigation of autonomous trick vehicle and control method based on antero posterior axis fusion reference |
CN111731269A (en) * | 2019-03-22 | 2020-10-02 | 广州汽车集团股份有限公司 | A kind of automatic parking path planning method and system |
CN110696818A (en) * | 2019-10-12 | 2020-01-17 | 深圳市布谷鸟科技有限公司 | Automatic parking method and system based on optimal path |
CN111196271A (en) * | 2020-01-21 | 2020-05-26 | 北京百度网讯科技有限公司 | Automatic parking method, device, equipment and storage medium |
CN111338349A (en) * | 2020-03-09 | 2020-06-26 | 兰剑智能科技股份有限公司 | Bezier curve control method and system for AGV |
Non-Patent Citations (2)
Title |
---|
Dubins曲线的计算与实现;master_cheng;《CSDN网站:https://blog.csdn.net/clong139/article/details/》;20181011;1-5 * |
基于Pure Pursuit算法的智能车路径跟踪;段建民等;《北京工业大学学报》;20160906;第42卷(第9期);1301-1306 * |
Also Published As
Publication number | Publication date |
---|---|
CN112793562A (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112793562B (en) | A planning and tracking control method for an automatic parking path, a planning device, a storage medium and a computer device | |
CN109131325B (en) | Lane keeping control method for 3D extension preview switching of intelligent driving vehicles | |
CN109799828B (en) | Transverse and longitudinal coordination control method for automatic driving vehicle | |
CN108958258A (en) | A kind of track follow-up control method, control system and the relevant apparatus of unmanned vehicle | |
CN112519882B (en) | Vehicle reference track tracking method and system | |
CN109683614B (en) | Vehicle path control method and device for unmanned mining vehicle | |
CN110502009A (en) | Path tracking control method for unmanned vehicles based on heading estimation | |
CN112904849A (en) | Integrated automatic driving automobile lane change track planning and tracking control method and system | |
CN115285145A (en) | Unmanned curve collision avoidance trajectory planning and tracking control method | |
CN116331208A (en) | Reversing control method and controller for semi-trailer train, system and semi-trailer | |
CN115489543A (en) | Vehicle lateral control method, device, system, electronic device and storage medium | |
CN117022279A (en) | Method and system for controlling bidirectional running path tracking of articulated steering vehicle | |
CN114852085A (en) | Vehicle automatic driving trajectory planning method based on right of way intrusion | |
Miao et al. | Research on decoupling control for the longitudinal and lateral dynamics of a tractor considering steering delay | |
CN113759707A (en) | Predictive control optimization method and device for autonomous vehicle | |
CN115675459A (en) | Intelligent vehicle and control method, device and storage medium for path tracking of intelligent vehicle | |
CN114879698A (en) | Robot-driven vehicle obstacle avoidance method based on improved artificial potential field and MPC | |
CN113525366A (en) | Transverse control method for hydraulic transverse controller of steel-wheel road roller | |
CN116946138A (en) | Steering control method and device for vehicle, computer equipment and storage medium | |
CN114802200B (en) | A trajectory tracking and stability control method for intelligent vehicles under extreme working conditions | |
CN115892208A (en) | Vehicle terminal, vehicle turning control method and device | |
CN115542899A (en) | Method and device for tracking vehicle path, vehicle, electronic equipment and medium | |
Kumar et al. | An optimal lateral trajectory stabilization of vehicle using differential dynamic programming | |
CN114859936A (en) | Path tracking control method, device and system and vehicle | |
CN115214715A (en) | Lateral control method and control device for automatic driving of vehicle, vehicle |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |