[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116373851A - Automatic parking path planning method, automatic parking method and related device - Google Patents

Automatic parking path planning method, automatic parking method and related device Download PDF

Info

Publication number
CN116373851A
CN116373851A CN202310374102.9A CN202310374102A CN116373851A CN 116373851 A CN116373851 A CN 116373851A CN 202310374102 A CN202310374102 A CN 202310374102A CN 116373851 A CN116373851 A CN 116373851A
Authority
CN
China
Prior art keywords
parking
path
obstacle
point
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310374102.9A
Other languages
Chinese (zh)
Other versions
CN116373851B (en
Inventor
刘一鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ouye Semiconductor Co ltd
Original Assignee
Shenzhen Ouye Semiconductor Co ltd
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 Shenzhen Ouye Semiconductor Co ltd filed Critical Shenzhen Ouye Semiconductor Co ltd
Priority to CN202310374102.9A priority Critical patent/CN116373851B/en
Publication of CN116373851A publication Critical patent/CN116373851A/en
Application granted granted Critical
Publication of CN116373851B publication Critical patent/CN116373851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks
    • 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
    • B60W2420/00Indexing codes relating to the type of sensors based on the principle of their operation
    • B60W2420/40Photo, light or radio wave sensitive means, e.g. infrared sensors
    • B60W2420/403Image sensing, e.g. optical camera
    • 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
    • B60W2420/00Indexing codes relating to the type of sensors based on the principle of their operation
    • B60W2420/54Audio sensitive means, e.g. ultrasound
    • 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
    • B60W2530/00Input parameters relating to vehicle conditions or values, not covered by groups B60W2510/00 or B60W2520/00
    • 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
    • B60W2552/00Input parameters relating to infrastructure
    • B60W2552/50Barriers
    • 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
    • B60W2554/00Input parameters relating to objects
    • B60W2554/20Static objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Traffic Control Systems (AREA)
  • Steering Control In Accordance With Driving Conditions (AREA)

Abstract

本申请公开了一种自动泊车的路径规划方法、自动泊车方法及相关装置,所述路径规划方法包括获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;通过混合A*算法确定所述泊入段对应的第一规划路径;采用直线驶入方式确定所述调整段对应的第二规划路径;将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。本申请通过将泊车路径划分为泊入段和调整段,在泊入段采用混合A*算法进行路径规划,在调整段采用直线驶入方式进行路径规划,通过调整段对泊入段的所产生的车辆姿态误差进行调整,降低了对车辆泊入时的控制精度的要求,且可以很好的保证车辆的最终姿态。

Figure 202310374102

The present application discloses a path planning method for automatic parking, an automatic parking method, and related devices. The path planning method includes obtaining parking space information of a target parking space, and determining a parking segment and an adjustment segment based on the parking space information; The hybrid A* algorithm determines the first planned path corresponding to the parking section; the straight-line driving method is used to determine the second planned path corresponding to the adjustment section; the first planned path is connected to the second planned path to Form an automatic parking path. This application divides the parking path into a parking section and an adjustment section, uses a hybrid A* algorithm for path planning in the parking section, and uses a straight-line driving method for path planning in the adjustment section. The generated vehicle attitude error is adjusted, which reduces the requirements for control accuracy when the vehicle is parked, and can well guarantee the final attitude of the vehicle.

Figure 202310374102

Description

一种自动泊车的路径规划方法、自动泊车方法及相关装置A path planning method for automatic parking, an automatic parking method, and related devices

技术领域technical field

本申请涉及自动泊车技术领域,特别涉及一种自动泊车的路径规划方法、自动泊车方法及相关装置。The present application relates to the technical field of automatic parking, in particular to a path planning method for automatic parking, an automatic parking method and related devices.

背景技术Background technique

近年来,随着国内汽车行业的快速发展,自动泊车技术已经成为车辆不可或缺的功能,自动泊车技术是基于车辆位姿和车位位姿规划一条可行的泊车路径,然后自动控制车辆跟随泊车路径完成泊车。其中,泊车路径规划是自动泊车关键的环节,其基本要求是规划的路径可行并且安全无碰撞。In recent years, with the rapid development of the domestic automobile industry, automatic parking technology has become an indispensable function of vehicles. Automatic parking technology plans a feasible parking path based on vehicle pose and parking position, and then automatically controls the vehicle Follow the parking path to complete the park. Among them, parking path planning is the key link of automatic parking, and its basic requirement is that the planned path is feasible and safe without collision.

现有的泊车路径规划方法普遍采用几何曲线拼接的规划方法和采用图搜索(例如,混合A*搜索方法)的规划方法,其中,采用几何曲线拼接的规划方法对传感器与执行器的工作精度要求甚高,较难补偿系统运行的动态误差;采用图搜索的规划方法,在狭小、曲折的搜索空间内,搜索效率和路径的最优性难以保证。Existing parking path planning methods generally adopt the planning method of geometric curve splicing and the planning method of graph search (for example, hybrid A* search method), wherein, the planning method of using geometric curve splicing has a great impact on the working accuracy of sensors and actuators. The requirements are very high, and it is difficult to compensate the dynamic error of the system operation; using the graph search planning method, in the narrow and tortuous search space, it is difficult to guarantee the search efficiency and the optimality of the path.

因而现有技术还有待改进和提高。Thereby prior art still needs to improve and improve.

发明内容Contents of the invention

本申请要解决的技术问题在于,针对现有技术的不足,提供一种自动泊车的路径规划方法、自动泊车方法及相关装置。The technical problem to be solved in the present application is to provide a route planning method for automatic parking, an automatic parking method and related devices in view of the deficiencies in the prior art.

为了解决上述技术问题,本申请实施例第一方面提供了一种自动泊车的路径规划方法,所述方法包括:In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a path planning method for automatic parking, the method comprising:

获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;Acquiring the parking space information of the target parking space, and determining the parking segment and the adjustment segment based on the parking space information;

通过混合A*算法确定所述泊入段对应的第一规划路径;Determining the first planned path corresponding to the parking segment by using a hybrid A* algorithm;

采用直线驶入方式确定所述调整段对应的第二规划路径;Determining the second planned path corresponding to the adjustment section by using a straight-line approach;

将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。Connecting the first planned route and the second planned route to form an automatic parking route.

所述自动泊车的路径规划方法,其中,所述通过混合A*算法确定所述泊入段对应的第一规划路径具体包括:The path planning method for automatic parking, wherein the determining the first planned path corresponding to the parking segment through the hybrid A* algorithm specifically includes:

将车辆的起始位置作为初始路径点;Use the starting position of the vehicle as the initial waypoint;

获取所述初始路径点与所述目标车位的距离,并根据所述距离确定所述初始路径点对应的启发函数权重;Obtaining the distance between the initial waypoint and the target parking space, and determining the heuristic function weight corresponding to the initial waypoint according to the distance;

基于所述启发函数权重,通过混合A*算法在所述车辆对应的搜索区域内搜索初始路径点的下一路径节点;Based on the weight of the heuristic function, search for the next path node of the initial path point in the search area corresponding to the vehicle through a hybrid A* algorithm;

将所述下一路径节点作为初始路径点,并继续执行获取所述初始路径点与所述目标车位的距离的步骤直至泊入段的终止点以形成第一规划路径。Taking the next path node as an initial path point, and continuing to perform the step of obtaining the distance between the initial path point and the target parking space until the end point of the parking section to form a first planned path.

所述自动泊车的路径规划方法,其中,所述搜索区域的确定过程具体包括:The path planning method for automatic parking, wherein the process of determining the search area specifically includes:

基于所述车位信息确定目标车辆对应的初始障碍物区域以及初始车位区域,并对所述初始障碍物区域进行向外膨胀得到目标障碍物区域,对所述初始车位区域进行向内膨胀得到目标车位区域;Determine an initial obstacle area and an initial parking space area corresponding to the target vehicle based on the parking space information, and expand the initial obstacle area outward to obtain a target obstacle area, and expand the initial parking space area inward to obtain a target parking space area;

基于所述目标障碍物区域以及所述目标车位区域,确定搜索区域。A search area is determined based on the target obstacle area and the target parking space area.

所述自动泊车的路径规划方法,其中,所述根据所述距离确定所述初始路径点对应的启发函数权重具体包括:The path planning method for automatic parking, wherein the determining the weight of the heuristic function corresponding to the initial path point according to the distance specifically includes:

将所述距离分别与第一距离阈值和第二距离阈值进行比较;comparing the distance with a first distance threshold and a second distance threshold, respectively;

若所述距离大于第一距离阈值,则将第一预设权重设置为所述初始路径点对应的启发函数权重;If the distance is greater than a first distance threshold, setting the first preset weight as the heuristic function weight corresponding to the initial path point;

若所述距离小于或者等于第一距离阈值,且大于或者等于第二距离阈值,则将第二预设权重设置为所述初始路径点对应的启发函数权重;If the distance is less than or equal to the first distance threshold and greater than or equal to the second distance threshold, setting the second preset weight as the heuristic function weight corresponding to the initial path point;

若所述距离小于所述第二距离阈值,则将第三预设权重设置为所述初始路径点对应的启发函数权重,其中,所述第一预设权重大于所述第二预设权重,所述第二预设权重大于所述第三预设权重。If the distance is smaller than the second distance threshold, setting a third preset weight as the heuristic function weight corresponding to the initial path point, wherein the first preset weight is greater than the second preset weight, The second preset weight is greater than the third preset weight.

所述自动泊车的路径规划方法,其中,所述基于所述车位信息确定泊入段和调整段具体包括:The path planning method for automatic parking, wherein the determining the parking segment and the adjustment segment based on the parking space information specifically includes:

基于所述车位信息确定所述目标车位的泊入点,并在所述泊入点前选取一目标点作为划分点,其中,所述划分点与所述泊入点位于同一直线上,并且从所述泊入点到所述划分点的方向为车辆的车头朝向;Determine the parking point of the target parking space based on the parking space information, and select a target point before the parking point as a dividing point, wherein the dividing point and the parking point are located on the same straight line, and from The direction from the parking point to the dividing point is the front direction of the vehicle;

将车辆起始点与所述划分点间的路段作为泊入段,并将所述划分点与所述泊入点间的路段作为调整段。The road section between the starting point of the vehicle and the dividing point is used as a parking section, and the road section between the dividing point and the parking point is used as an adjustment section.

本申请实施例第二方面提供了一种自动泊车方法,应用如上所述的自动泊车的路径规划方法确定的泊车路径;所述方法包括:The second aspect of the embodiment of the present application provides an automatic parking method, using the parking path determined by the above-mentioned automatic parking path planning method; the method includes:

将泊车路径的初始路径点作为前一行驶时刻,并控制车辆行驶至所述前一行驶时刻的当前行驶时刻;Taking the initial waypoint of the parking path as the previous driving moment, and controlling the vehicle to travel to the current driving moment of the previous driving moment;

获取当前行驶时刻的候选障碍物位置以及相对于所述前一行驶时刻的新增障碍物位置;Obtain the position of the candidate obstacle at the current driving time and the position of the newly added obstacle relative to the previous driving time;

预测各新增障碍物位置对应的延伸障碍物位置,并基于所述候选障碍物位置和延伸障碍物位置确定所述当前行驶时刻对应的障碍物位置;Predicting the extended obstacle position corresponding to each newly added obstacle position, and determining the obstacle position corresponding to the current driving moment based on the candidate obstacle position and the extended obstacle position;

基于所述障碍物位置调整所述泊车路径,并继续执行控制车辆行驶至所述前一行驶时刻的当前行驶时刻的步骤,直至所述车辆完成自动泊车。Adjusting the parking path based on the position of the obstacle, and continuing to execute the step of controlling the vehicle to travel to the current travel time at the previous travel time until the vehicle completes automatic parking.

所述自动泊车方法,其中,所述基于所述障碍物位置调整所述泊车路径具体包括:The automatic parking method, wherein the adjusting the parking path based on the obstacle position specifically includes:

基于所述障碍物位置检测所述泊车路径是否发生碰撞;Detecting whether a collision occurs in the parking path based on the position of the obstacle;

若所述泊车路径发生碰撞,则重新规划泊车路径以调整所述泊车路径;If the parking path collides, replan the parking path to adjust the parking path;

若所述泊车路径不发生碰撞,则保持所述泊车路径不变。If the parking path does not collide, the parking path remains unchanged.

所述自动泊车方法,其中,所述获取当前行驶时刻的候选障碍物位置具体包括:The automatic parking method, wherein the acquisition of the position of the candidate obstacle at the current driving moment specifically includes:

通过车辆配置的传感器检测当前行驶时刻对应的可疑障碍物位置;Detect the location of suspicious obstacles corresponding to the current driving moment through the sensors configured on the vehicle;

对于每个可疑障碍物位置,获取所述可疑障碍物位置对应的观察概率以及在车辆处于前一行驶时刻时所述可疑障碍物位置对应的先验概率;For each suspicious obstacle position, obtain the observation probability corresponding to the suspicious obstacle position and the prior probability corresponding to the suspicious obstacle position when the vehicle is in the previous driving moment;

基于所述观察概率及所述先验概率计算所述可疑障碍物位置对应的后验概率;calculating a posterior probability corresponding to the position of the suspicious obstacle based on the observation probability and the prior probability;

若所述后验概率大于预设概率阈值,则将所述可疑障碍物位置作为候选障碍物位置。If the posterior probability is greater than a preset probability threshold, the suspicious obstacle position is used as a candidate obstacle position.

所述自动泊车方法,其中,所述预测各新增障碍物位置对应的延伸障碍物位置具体包括:In the automatic parking method, the predicting the position of the extended obstacle corresponding to the position of each newly added obstacle specifically includes:

获取前一行驶时刻对应的前序障碍物中心位置以及当前行驶时刻对应的当前障碍物中心位置,并将从所述前序障碍物中心位置到所述当前障碍物中心位置的方向作为延伸方向;Acquiring the center position of the previous obstacle corresponding to the previous driving time and the current center position of the obstacle corresponding to the current driving time, and using the direction from the center position of the previous obstacle to the center position of the current obstacle as the extension direction;

对于每个新增障碍物位置,沿所述延伸方向预测预设范围内的各延伸位置的延伸估计概率,并将延伸估计概率大于预设概率值的延伸位置作为延伸障碍物位置。For each newly added obstacle position, the estimated extension probability of each extended position within the preset range is predicted along the extended direction, and the extended position with the estimated extended probability greater than the preset probability value is used as the extended obstacle position.

本申请实施例第三方面提供了一种自动泊车的路径规划装置,所述路径规划装置包括:The third aspect of the embodiment of the present application provides a path planning device for automatic parking, and the path planning device includes:

获取模块,用于获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;An acquisition module, configured to acquire the parking space information of the target parking space, and determine the parking segment and the adjustment segment based on the parking space information;

第一确定模块,用于通过混合A*算法确定所述泊入段对应的第一规划路径;A first determination module, configured to determine the first planned path corresponding to the parking segment through a hybrid A* algorithm;

第二确定模块,用于采用直线驶入方式确定所述调整段对应的第二规划路径;The second determination module is used to determine the second planned path corresponding to the adjustment section by adopting a straight-line approach;

形成模块,用于将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。A forming module, configured to connect the first planned route with the second planned route to form an automatic parking route.

本申请实施例第四方面提供了一种自动泊车装置,用如上所述的自动泊车的路径规划装置确定的泊车路径;所述装置包括:The fourth aspect of the embodiment of the present application provides an automatic parking device, using the parking path determined by the above-mentioned automatic parking path planning device; the device includes:

控制模块,控制车辆按照所述泊车路径行驶,并获取当前行驶时刻的候选障碍物位置以及当前行驶时刻相对于前一行驶时刻的新增障碍物位置;A control module, controlling the vehicle to drive according to the parking route, and obtaining the position of the candidate obstacle at the current driving time and the position of the newly added obstacle at the current driving time relative to the previous driving time;

预测模块,用于预测各新增障碍物位置对应的延伸障碍物位置,并基于所述候选障碍物位置和延伸障碍物位置确定所述当前行驶时刻对应的障碍物位置;A prediction module, configured to predict the extended obstacle position corresponding to each newly added obstacle position, and determine the obstacle position corresponding to the current driving moment based on the candidate obstacle position and the extended obstacle position;

调整模块,用于基于所述障碍物位置调整所述泊车路径,并继续执行控制车辆按照所述泊车路径行驶的步骤,直至所述车辆完成自动泊车。本申请实施例第五方面提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上所述的自动泊车的路径规划方法中的步骤,和/或以实现如上所述的自动泊车方法中的步骤。An adjustment module, configured to adjust the parking path based on the position of the obstacle, and continue to execute the step of controlling the vehicle to travel along the parking path until the vehicle completes automatic parking. The fifth aspect of the embodiment of the present application provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores one or more programs, and the one or more programs can be processed by one or more The controller is executed to realize the steps in the above-mentioned automatic parking route planning method, and/or to realize the above-mentioned steps in the automatic parking method.

本申请实施例第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上任一所述的自动泊车的路径规划方法、自动泊车方法中的步骤。The third aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to Realize the steps in the path planning method and automatic parking method for automatic parking as described above.

本申请实施例第六方面提供了一种终端设备,包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;The sixth aspect of the embodiment of the present application provides a terminal device, including: a processor, a memory, and a communication bus; a computer-readable program executable by the processor is stored in the memory;

所述通信总线实现处理器和存储器之间的连接通信;The communication bus realizes connection and communication between the processor and the memory;

所述处理器执行所述计算机可读程序时实现如权利要求1-5任意一项所述的自动泊车的路径规划方法中的步骤,和/或实现如权利要求6-9任意一项所述的自动泊车方法中的步骤。When the processor executes the computer-readable program, the steps in the path planning method for automatic parking according to any one of claims 1-5 are realized, and/or the steps in any one of claims 6-9 are realized. The steps in the automatic parking method described above.

有益效果:与现有技术相比,本申请提供了一种自动泊车的路径规划方法、自动泊车方法及相关装置,所述路径规划方法包括获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;通过混合A*算法确定所述泊入段对应的第一规划路径;采用直线驶入方式确定所述调整段对应的第二规划路径;将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。本申请通过将泊车路径划分为泊入段和调整段,在泊入段采用混合A*算法进行路径规划,在调整段采用直线驶入方式进行路径规划,通过调整段对泊入段的所产生的车辆姿态误差进行调整,降低了对车辆泊入时的控制精度的要求,且可以很好的保证车辆的最终姿态。Beneficial effects: Compared with the prior art, the present application provides a path planning method for automatic parking, an automatic parking method and related devices. The path planning method includes obtaining the parking space information of the target parking space, and based on the parking space information to determine the parking section and the adjustment section; determine the first planned path corresponding to the parking section by a hybrid A* algorithm; determine the second planned path corresponding to the adjustment section by using a straight-line driving method; The path is connected with the second planned path to form an automatic parking path. This application divides the parking path into a parking section and an adjustment section, uses a hybrid A* algorithm for path planning in the parking section, and uses a straight-line driving method for path planning in the adjustment section. The generated vehicle attitude error is adjusted, which reduces the requirements for control accuracy when the vehicle is parked, and can well guarantee the final attitude of the vehicle.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员而言,在不符创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings under the premise of not conforming to creative work.

图1为本申请提供的自动泊车的路径规划方法的流程图。FIG. 1 is a flow chart of the route planning method for automatic parking provided by the present application.

图2为车位示意图。Figure 2 is a schematic diagram of the parking space.

图3为侧向停车车位的泊入姿态变化曲线。Fig. 3 is the curve of the parking attitude change of the lateral parking space.

图4为后向停车车位的泊入姿态变化曲线。Fig. 4 is a curve of the attitude change of the parking space in the rear direction.

图5为泊入段的示意图。Fig. 5 is a schematic diagram of the parking section.

图6为泊入路径的示意图。FIG. 6 is a schematic diagram of a parking path.

图7为初始障碍物区域的示意图。Fig. 7 is a schematic diagram of an initial obstacle area.

图8为车位车道可行域的多边形示意图。Fig. 8 is a polygonal schematic diagram of the feasible region of the parking lane.

图9为目标障碍物区域的示意图。FIG. 9 is a schematic diagram of a target obstacle area.

图10为自动泊车的路径规划方法的流程示意图。FIG. 10 is a schematic flowchart of a path planning method for automatic parking.

图11为本申请提供的自动泊车方法的流程图。Fig. 11 is a flow chart of the automatic parking method provided by the present application.

图12为本申请提供的自动泊车方法的流程示意图。Fig. 12 is a schematic flowchart of the automatic parking method provided by the present application.

图13为超声传感器的参数示意图。Fig. 13 is a schematic diagram of the parameters of the ultrasonic sensor.

图14为前一行驶时刻的障碍物分布示意图。Fig. 14 is a schematic diagram of obstacle distribution at the previous driving moment.

图15为当前行驶时刻的候选障碍物分布示意图。Fig. 15 is a schematic diagram of the distribution of candidate obstacles at the current driving moment.

图16为当前行驶时刻的障碍物分布示意图。Fig. 16 is a schematic diagram of obstacle distribution at the current driving moment.

图17为本申请提供的自动泊车的路径规划装置的结构原理图。FIG. 17 is a structural schematic diagram of a path planning device for automatic parking provided by the present application.

图18为本申请提供的自动泊车装置的结构原理图。FIG. 18 is a structural schematic diagram of the automatic parking device provided by the present application.

图19为本申请提供的终端设备的结构原理图。FIG. 19 is a structural schematic diagram of a terminal device provided by the present application.

具体实施方式Detailed ways

本申请提供一种自动泊车的路径规划方法、自动泊车方法及相关装置,为使本申请的目的、技术方案及效果更加清楚、明确,以下参照附图并举实施例对本申请进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。This application provides a path planning method for automatic parking, an automatic parking method and related devices. In order to make the purpose, technical solution and effect of this application clearer and clearer, the application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.

应理解,本实施例中各步骤的序号和大小并不意味着执行顺序的先后,各过程的执行顺序以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers and sizes of the steps in this embodiment do not imply the order of execution, and the execution order of each process is determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

经过研究发现,近年来,随着国内汽车行业的快速发展,自动泊车技术已经成为车辆不可或缺的功能,自动泊车技术是基于车辆位姿和车位位姿规划一条可行的泊车路径,然后自动控制车辆跟随泊车路径完成泊车。其中,泊车路径规划是自动泊车关键的环节,其基本要求是规划的路径可行并且安全无碰撞。After research, it is found that in recent years, with the rapid development of the domestic automobile industry, automatic parking technology has become an indispensable function of vehicles. Then the vehicle is automatically controlled to follow the parking path to complete parking. Among them, parking path planning is the key link of automatic parking, and its basic requirement is that the planned path is feasible and safe without collision.

现有的泊车路径规划方法普遍采用几何曲线拼接的规划方法和采用图搜索(例如,混合A*搜索方法)的规划方法,其中,采用几何曲线拼接的规划方法是采用多段曲线拼接的方法求解规划路径,其在入库点的姿态不理想、车辆入库控制过程中存在误差、出现障碍物时,入库段路线求解可能会没有解析解和路线不是最优,难以保证最终泊入的车身姿态。采用混合A*搜索的方法为根据起点、终点和障碍物位置信息确定最优规划路径,然而,由于垂直车位左右限制,侧方车位前后限制,泊车终点处于三向封闭的狭小的搜索空间内,搜索效率和路径的最优性难以保证,出现障碍物时,搜索算法可能无法找到可行路径。并且由于搜索域和检测域相同,在动态障碍物场景,会频繁出现重新规划现象。Existing parking path planning methods generally adopt the planning method of geometric curve splicing and the planning method of graph search (for example, hybrid A* search method), wherein, the planning method of adopting geometric curve splicing is to adopt the method of multi-segment curve splicing to solve When planning the path, if the posture at the storage point is not ideal, there are errors in the vehicle storage control process, and obstacles appear, the solution for the storage section route may not have an analytical solution and the route is not optimal, and it is difficult to guarantee the final vehicle body. attitude. The hybrid A* search method is used to determine the optimal planning path based on the starting point, ending point and obstacle position information. However, due to the left and right restrictions on vertical parking spaces and the front and rear restrictions on side parking spaces, the parking end point is in a narrow search space closed in three directions. , the search efficiency and the optimality of the path are difficult to guarantee, and when obstacles appear, the search algorithm may not be able to find a feasible path. And because the search domain and the detection domain are the same, frequent re-planning occurs in dynamic obstacle scenarios.

另外,在使用混合A*搜索的方法过程,部分路径规划方法将路线划分为正向行驶和倒车泊入两段,两段在混合A*搜索时使用不同的启发函数权重,但泊入段使用混合A*搜索对于车辆泊入时的控制精度要求较高,最终姿态难以保证。In addition, in the process of using the hybrid A* search method, part of the path planning method divides the route into two sections: forward driving and reverse parking. The two sections use different heuristic function weights during the hybrid A* search, but the parking section uses The hybrid A* search requires high control accuracy when the vehicle is parked, and it is difficult to guarantee the final attitude.

为了解决上述问题,在本申请实施例中,获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;通过混合A*算法确定所述泊入段对应的第一规划路径;采用直线驶入方式确定所述调整段对应的第二规划路径;将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。本申请通过将泊车路径划分为泊入段和调整段,在泊入段采用混合A*算法进行路径规划,在调整段采用直线驶入方式进行路径规划,通过调整段对泊入段的所产生的车辆姿态误差进行调整,降低了对车辆泊入时的控制精度的要求,且可以很好的保证车辆的最终姿态。In order to solve the above problems, in the embodiment of the present application, the parking space information of the target parking space is obtained, and the parking segment and the adjustment segment are determined based on the parking space information; the first planned path corresponding to the parking segment is determined by a hybrid A* algorithm ; Determine the second planned route corresponding to the adjustment section by using a straight-line approach; connect the first planned route with the second planned route to form an automatic parking route. This application divides the parking path into a parking section and an adjustment section, uses a hybrid A* algorithm for path planning in the parking section, and uses a straight-line driving method for path planning in the adjustment section. The generated vehicle attitude error is adjusted, which reduces the requirements for control accuracy when the vehicle is parked, and can well guarantee the final attitude of the vehicle.

下面结合附图,通过对实施例的描述,对申请内容作进一步说明。The content of the application will be further explained by describing the embodiments below in conjunction with the accompanying drawings.

本实施例提供了一种自动泊车的路径规划方法,如图1所示,所述方法包括:This embodiment provides a path planning method for automatic parking, as shown in Figure 1, the method includes:

S10、获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段。S10. Acquire parking space information of a target parking space, and determine a parking segment and an adjustment segment based on the parking space information.

具体地,车位信息包括车辆信息,车位几何信息以及障碍物信息,其中,车辆信息可以包括车辆型号和车辆位置,车位几何信息可以包括车位长、车位宽、车位斜度、安全距离以及车道宽度,障碍物信息可以包括前后车位置信息、左右车位置信息、车位内部障碍物信息(例如,挡车器、护栏等)。其中,所述车辆信息可以根据车辆自身携带的定位装置确定,车位几何信息可以通过超声传感器或者影像采集设备获取到,障碍物信息也可以通过超声传感器或者影像采集设备获取到。此外,当车位内部障碍物信息未被获取时,可以采用停车场设计规范标准信息。Specifically, the parking space information includes vehicle information, parking space geometric information, and obstacle information, wherein the vehicle information may include vehicle model and vehicle location, and the parking space geometric information may include parking space length, parking space width, parking space slope, safety distance, and lane width, The obstacle information may include front and rear car position information, left and right car position information, and obstacle information inside the parking space (for example, car stoppers, guardrails, etc.). Wherein, the vehicle information can be determined according to the positioning device carried by the vehicle itself, the geometric information of the parking space can be obtained through an ultrasonic sensor or an image acquisition device, and the obstacle information can also be obtained through an ultrasonic sensor or an image acquisition device. In addition, when the obstacle information inside the parking space is not obtained, the parking lot design specification standard information can be used.

泊入段和调整段为泊车路径的两个组成部分,泊入段和调整段相连接,其中,调整段用于对经过泊入段的车辆进行调整以保持车辆的最终姿态。可以理解的是,在泊车路径规划时,将泊车路径划分为一个泊入段和一个调整段,车辆在按照泊车路径进行自动泊车时,先经过泊入段再经过调整段以完成自动泊车。The parking section and the adjustment section are two components of the parking path. The parking section and the adjustment section are connected, wherein the adjustment section is used to adjust the vehicle passing through the parking section to maintain the final attitude of the vehicle. It can be understood that when planning the parking path, the parking path is divided into a parking section and an adjustment section. When the vehicle is automatically parked according to the parking path, it first passes through the parking section and then passes through the adjustment section to complete Automatic parking.

在一个实现方式中,基于所述车位信息确定泊入段和调整段具体包括:In an implementation manner, determining the parking segment and the adjustment segment based on the parking space information specifically includes:

S11、基于所述车位信息确定所述目标车位的泊入点,并在所述泊入点前选取一目标点作为划分点;S11. Determine the parking point of the target parking space based on the parking space information, and select a target point before the parking point as a dividing point;

S12、将车辆起始点与所述划分点间的路段作为泊入段,并将所述划分点与所述泊入点间的路段作为调整段。S12. Use the road section between the starting point of the vehicle and the dividing point as a parking section, and use the road section between the dividing point and the parking point as an adjustment section.

具体地,如图2所示,所述划分点与所述泊入点位于同一直线上,并且从所述泊入点到所述划分点的方向为车辆的车头朝向。也就是说,在车头方向向前预设距离设置一个划分点,将车辆起始点到划分点间的路段作为泊入段,将划分点到泊入点间的路段作为调整段,即划分点为泊入段和调整段的分割点。Specifically, as shown in FIG. 2 , the dividing point and the parking point are located on the same straight line, and the direction from the parking point to the dividing point is the front direction of the vehicle. That is to say, a division point is set at a predetermined distance forward in the direction of the front of the vehicle, the road section between the starting point of the vehicle and the division point is used as the parking section, and the road section between the division point and the parking point is used as the adjustment section, that is, the division point is The split point between the parking segment and the adjustment segment.

如图2所示,车位包括侧方车位、垂直车位和倾斜车位,其中,不同车位的车头朝向前方可以预留的位置空间不同。由此,在基于所述车位信息确定所述目标车位的泊入点时,可以基于车位信息确定车位类型,并选取所述车位类型对应的调整距离;基于调整距离确定划分点,以使得划分点与泊入点之间的距离等于调整距离,这样既可以确定调整段,又可以避免车辆通过泊入段行驶到划分点时发生碰撞或者无法规划泊入段对应的第一规划路径。其中,车位类型包括侧向停车车位和后向停车车位,侧向停车车位可以包括侧方车位,后向停车车位可以包括垂直车位和倾斜车位。As shown in FIG. 2 , the parking spaces include side parking spaces, vertical parking spaces and inclined parking spaces, wherein different parking spaces can reserve different positions with the front facing forward. Thus, when determining the parking point of the target parking space based on the parking space information, the parking space type can be determined based on the parking space information, and the adjustment distance corresponding to the parking space type can be selected; the division point is determined based on the adjustment distance, so that the division point The distance to the parking point is equal to the adjustment distance, so that the adjustment section can be determined, and the vehicle can avoid collisions when the vehicle passes the parking section and travels to the dividing point or cannot plan the first planned path corresponding to the parking section. Wherein, the types of parking spaces include lateral parking spaces and backward parking spaces, side parking spaces may include side parking spaces, and rear parking spaces may include vertical parking spaces and inclined parking spaces.

进一步,不同车位类型对应的调整距离可以不相同,其中,对于侧向停车车位,如图3所示,调整距离越大泊入姿态越好,然而随着调整距离增大会导致泊入空间越小,从而影响第一规划路径的规划甚至可能会导致无法求解到第一规划路径。因此,对于侧向停车车位,调整距离基于第一预设条件确定的,其中,第一预设条件为预先设置的,例如,第一预设条件为调整距离小于预设距离阈值,其中,预设距离阈值基于车位长度确定,如预设距离阈值等于车位长度的五分之一等。此外,在实际应用中,为了提高路径规划速度,可以调整距离可以为预设数值,例如,调整距离为0.4m等。Further, the adjustment distances corresponding to different types of parking spaces may be different. For lateral parking spaces, as shown in Figure 3, the larger the adjustment distance, the better the parking posture. However, as the adjustment distance increases, the parking space becomes smaller. , thus affecting the planning of the first planning path and may even result in the inability to solve the first planning path. Therefore, for lateral parking spaces, the adjustment distance is determined based on a first preset condition, wherein the first preset condition is preset, for example, the first preset condition is that the adjustment distance is less than a preset distance threshold, wherein the preset The distance threshold is determined based on the length of the parking space, for example, the preset distance threshold is equal to one-fifth of the length of the parking space. In addition, in practical applications, in order to increase the path planning speed, the adjusted distance can be a preset value, for example, the adjusted distance is 0.4m.

对于后向停车车位,如图4所示,调整距离越大泊入姿态越好,然而由于在泊车路径规划过程中,由车位域和车道域共同组成搜索域,随着调整距离的增大会增加对车道域的要求,并且当车道宽度不足时无法求解规划路径。由此,对于后向停车车位,调整距离可以基于第二预设条件确定的,其中,第二预设条件为预先设置的,例如,第二预设条件为调整距离小于第一距离阈值且大于第二距离阈值,其中,第一距离阈值大于第二距离阈值,且第一距离阈值和第二距离阈值均基于车位长度确定,如,第一距离等于车位长度,第二距离阈值车位长度的五分之一等。实际应用中,为了提高路径规划速度,可以调整距离可以为预设数值,例如,调整距离为4m等。For the rear-facing parking spaces, as shown in Figure 4, the larger the adjustment distance, the better the parking posture. Increased requirements on lane domains and inability to solve planned paths when lanes are not wide enough. Thus, for a rearward parking space, the adjustment distance can be determined based on a second preset condition, wherein the second preset condition is preset, for example, the second preset condition is that the adjustment distance is less than the first distance threshold and greater than The second distance threshold, wherein the first distance threshold is greater than the second distance threshold, and both the first distance threshold and the second distance threshold are determined based on the length of the parking space, such as, the first distance is equal to the length of the parking space, and the second distance threshold is five times the length of the parking space One-third and so on. In practical applications, in order to increase the path planning speed, the adjusted distance may be a preset value, for example, the adjusted distance is 4m.

S20、通过混合A*算法确定所述泊入段对应的第一规划路径。S20. Determine a first planned path corresponding to the parking segment by using a hybrid A* algorithm.

具体地,混合A*算法用于解决车位运动约束下的路径搜索问题,通过混合A*算法可以求解泊入段的第一规划路径,其中,如图5所示,第一规划路径为曲线型路径,车辆起始点为第一规划路径的起始点,划分点为第一规划路径的终止点。在混合A*算法搜索过程汇总,使用移动代价和启发函数之和作为搜索依据,并基于该搜索依据在搜索域进行搜索以形成第一规划路径。Specifically, the hybrid A* algorithm is used to solve the path search problem under the constraint of the movement of the parking space. The hybrid A* algorithm can be used to solve the first planned path of the parking section, wherein, as shown in Figure 5, the first planned path is a curve For the path, the starting point of the vehicle is the starting point of the first planned route, and the division point is the ending point of the first planned route. Summarized in the search process of the hybrid A* algorithm, the sum of the moving cost and the heuristic function is used as the search basis, and the search domain is searched based on the search basis to form the first planned path.

由于混合A*算法中的启发函数普遍使用RS曲线来衡量当前点到目标点的距离,并且无论当前点与目标点的距离远近启发函数所起的作用均相同,这样会影响路径规划效率。基于此,在一个实现方式中,所述通过混合A*算法确定所述泊入段对应的第一规划路径具体包括:Because the heuristic function in the hybrid A* algorithm generally uses the RS curve to measure the distance from the current point to the target point, and the heuristic function plays the same role regardless of the distance between the current point and the target point, which will affect the path planning efficiency. Based on this, in an implementation manner, the determining the first planned path corresponding to the parking segment through the hybrid A* algorithm specifically includes:

S21、将车辆的起始位置作为初始路径点;S21. Taking the starting position of the vehicle as the initial waypoint;

S22、获取所述初始路径点与所述目标车位的距离,并根据所述距离确定所述初始路径点对应的启发函数权重;S22. Obtain the distance between the initial waypoint and the target parking space, and determine the heuristic function weight corresponding to the initial waypoint according to the distance;

S23、基于所述启发函数权重,通过混合A*算法在所述车辆对应的搜索区域内搜索初始路径点的下一路径节点;S23. Based on the weight of the heuristic function, search for the next path node of the initial path point in the search area corresponding to the vehicle through the hybrid A* algorithm;

S24、将所述下一路径节点作为初始路径点,并继续执行获取所述初始路径点与所述目标车位的距离的步骤直至泊入段的终止点以形成第一规划路径。S24. Use the next path node as an initial path point, and continue to execute the step of obtaining the distance between the initial path point and the target parking space until the end point of the parking section to form a first planned path.

具体地,初始路径点与所述目标车位的距离指的是初始路径点与目标车位的泊入点之间的距离,用于反映车辆与目标车位的相对距离,其中,距离越大,说明车辆距离目标车位越远,反之,距离越小,说明车辆距离目标车位越近。其中,当车辆与目标车位的距离大时,可以设置大的启发函数权重来增加启发函数的占比以提高搜索速度,当车辆与目标车位的距离小时,可以设置小的启发函数权重来减低发函数的占比以确定最优路径,这样虽然可以牺牲到前端路径的最优路线,但是泊车前端路径普遍是以快速通过为主,从而最优路径的影响可以忽略,而在后段通过减少启发函数的占比,可以获取到最优路径,通过后段按照最优路径行驶以及调整段的车辆姿态调整,可以使得车辆停入目标车位时可以保证良好的姿态,从而可以既可以提高自动泊车速度,又可以使得车辆保持良好的最终姿态。Specifically, the distance between the initial waypoint and the target parking space refers to the distance between the initial waypoint and the parking point of the target parking space, which is used to reflect the relative distance between the vehicle and the target parking space. The farther the distance from the target parking space is, on the contrary, the smaller the distance is, the closer the vehicle is to the target parking space. Among them, when the distance between the vehicle and the target parking space is large, a large heuristic function weight can be set to increase the proportion of the heuristic function to improve the search speed; when the distance between the vehicle and the target parking space is small, a small heuristic function weight can be set to reduce the search speed. The proportion of the function is used to determine the optimal path. Although the optimal route to the front-end path can be sacrificed, the front-end path of parking is generally based on fast passing, so the impact of the optimal path can be ignored, and the reduction in the rear pass The proportion of the heuristic function can obtain the optimal path. By driving according to the optimal path in the later stage and adjusting the vehicle attitude in the adjustment stage, a good posture can be ensured when the vehicle parks in the target parking space, which can improve the automatic parking The speed of the vehicle can also make the vehicle maintain a good final attitude.

在一个实现方式中,所述根据所述距离确定所述初始路径点对应的启发函数权重具体包括:In an implementation manner, the determining the weight of the heuristic function corresponding to the initial path point according to the distance specifically includes:

将所述距离分别与第一距离阈值和第二距离阈值进行比较;comparing the distance with a first distance threshold and a second distance threshold, respectively;

若所述距离大于第一距离阈值,则将第一预设权重设置为所述初始路径点对应的启发函数权重;If the distance is greater than a first distance threshold, setting the first preset weight as the heuristic function weight corresponding to the initial path point;

若所述距离小于或者等于第一距离阈值,且大于或者等于第二距离阈值,则将第二预设权重设置为所述初始路径点对应的启发函数权重;If the distance is less than or equal to the first distance threshold and greater than or equal to the second distance threshold, setting the second preset weight as the heuristic function weight corresponding to the initial path point;

若所述距离小于所述第二距离阈值,则将第三预设权重设置为所述初始路径点对应的启发函数权重。If the distance is smaller than the second distance threshold, a third preset weight is set as the heuristic function weight corresponding to the initial path point.

具体地,第一距离阈值和第二距离阈值均为预先设置的,为确定启发函数权重的依据,第一距离阈值小于第二距离阈值。第一预设权重、第二预设权重和第三预设权重均为预先设置的,所述第一预设权重大于所述第二预设权重,所述第二预设权重大于所述第三预设权重,使得当距离大于第一距离阈值时,使用最大的启发函数权重,以达到快速搜索的目的;当距离小于或者等于第一距离阈值,且大于第二距离阈值时,使用中间的启发函数权重,在保证搜索速度的同时寻求最优路径;当距离小于或者等于第二距离阈值时,使用最小的启发函数权重,增加对移动代价的关注,保证泊入段的末端可以搜索到最后泊入路径,从而可以保证完成泊入段后的车辆姿态。Specifically, both the first distance threshold and the second distance threshold are preset, and as a basis for determining the weight of the heuristic function, the first distance threshold is smaller than the second distance threshold. The first preset weight, the second preset weight and the third preset weight are all preset, the first preset weight is greater than the second preset weight, and the second preset weight is greater than the first preset weight Three preset weights, so that when the distance is greater than the first distance threshold, the largest heuristic function weight is used to achieve the purpose of fast search; when the distance is less than or equal to the first distance threshold and greater than the second distance threshold, the middle one is used Heuristic function weight, to seek the optimal path while ensuring the search speed; when the distance is less than or equal to the second distance threshold, use the smallest heuristic function weight, increase the attention to the movement cost, and ensure that the end of the parking segment can be searched to the end Parking path, so as to ensure the vehicle attitude after the parking segment is completed.

基于此,所述混合A*算法的搜索目标函数可以表示为:Based on this, the search objective function of the hybrid A* algorithm can be expressed as:

Figure BDA0004169689220000121
Figure BDA0004169689220000121

其中,f(N)表示搜索目标函数,g(N)表示移动代价,h(N)表示启发函数,w1,w2,w3均表示启发函数权重,N表示搜索位置,M表示泊车位置,D1,D2,D3均表示距离阈值。Among them, f(N) represents the search objective function, g(N) represents the moving cost, h(N) represents the heuristic function, w 1 , w 2 , and w 3 represent the weight of the heuristic function, N represents the search position, and M represents the parking Position, D 1 , D 2 , D 3 all represent distance thresholds.

进一步,所述搜索区域的确定过程具体包括:Further, the process of determining the search area specifically includes:

基于所述车位信息确定目标车辆对应的初始障碍物区域以及初始车位区域,并对所述初始障碍物区域进行向外膨胀得到目标障碍物区域,对所述初始车位区域进行向内膨胀得到目标车位区域;Determine an initial obstacle area and an initial parking space area corresponding to the target vehicle based on the parking space information, and expand the initial obstacle area outward to obtain a target obstacle area, and expand the initial parking space area inward to obtain a target parking space area;

基于所述目标障碍物区域以及所述目标车位区域,确定搜索区域。A search area is determined based on the target obstacle area and the target parking space area.

具体地,所述初始障碍物区域为目标车位对应的障碍物所形成的区域,其可以在对车位信息进行采集时获取到的,例如,通过车辆装置的超声传感器或者图像采集装置采集得到的。目标障碍物区域为通过对初始障碍物区域进行向外膨胀得到的,目标障碍物区域包含初始障碍物区域。所述膨胀指的是将初始障碍物区域扩大,例如,如图6所述的初始障碍物区域通过膨胀后得到如图7所述的目标障碍物区域。其中,膨胀可以采用初始障碍物区域向外扩展预设距离的方式来实现,或者是,采用将初始障碍物区域的区域范围扩大预设倍数的方式来实现等。Specifically, the initial obstacle area is an area formed by obstacles corresponding to the target parking space, which can be obtained when collecting the parking space information, for example, through an ultrasonic sensor or an image acquisition device of the vehicle device. The target obstacle area is obtained by expanding the initial obstacle area outward, and the target obstacle area includes the initial obstacle area. The expansion refers to expanding the initial obstacle area, for example, the initial obstacle area as shown in FIG. 6 is expanded to obtain the target obstacle area as shown in FIG. 7 . The expansion can be realized by expanding the initial obstacle area outward by a preset distance, or by expanding the area range of the initial obstacle area by a preset multiple, etc.

在获取到目标障碍物区域后,将车位信息所包括的车位几何信息转换为车位车道可行域的多边形区域,其中,多边形区域包括初始车位区域和车道区域,例如,如图8所述的车位车道可行域。在初始车位区域后,车位区域向内膨胀以缩小车位区域得到目标车位区域,然后将目标车位区域和车道区域构成的目标多变形区域与目标障碍物区域的重叠部分去除,以得到搜索区域。本实现方式通过对障碍物区域进行向外膨胀和车位区域向内膨胀的方式来为障碍物预留移动区域,这样可以避免因障碍物移动、探测盲区和障碍物位置误差而导致的频繁重新规划路径的问题,提高了自动泊车的泊车效率。After the target obstacle area is obtained, the geometric information of the parking space included in the parking space information is converted into a polygonal area of the feasible area of the parking space lane, wherein the polygonal area includes the initial parking space area and the lane area, for example, the parking space lane as described in Figure 8 Feasible domain. After the initial parking space area, the parking space area expands inward to narrow the parking space area to obtain the target parking space area, and then removes the overlapping part of the target multi-deformation area formed by the target parking space area and the lane area and the target obstacle area to obtain the search area. This implementation method reserves the movement area for obstacles by expanding the obstacle area outward and the parking area inward, which can avoid frequent re-planning caused by obstacle movement, detection blind area and obstacle position error The problem of the path improves the parking efficiency of automatic parking.

S30、采用直线驶入方式确定所述调整段对应的第二规划路径。S30. Determine the second planned route corresponding to the adjustment section by using a straight-line approach.

具体地,调整段的起始点位于调整段的终端点的正前方,如图9所示,可以直接采用直线驶入方式来规划第二规划路径,通过在调整段采用以速度梯度下降的方式向末端直线的逼近运动,可以消除姿态误差,降低了对泊入点的姿态精度要求。Specifically, the starting point of the adjustment section is located directly in front of the end point of the adjustment section, as shown in Figure 9, the second planning path can be planned directly by using a straight-line driving method, and the speed gradient descent method is adopted in the adjustment section to The approaching movement of the terminal line can eliminate attitude errors and reduce the attitude accuracy requirements for the parking entry point.

S40、将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。S40. Connect the first planned route with the second planned route to form an automatic parking route.

具体地,在获取到第一规划路径和第二规划路径后,将第一规划路径和第二规划路径进行连接,即将第一规划路径的终止点与第二规划路径的起始点合并,得到自动泊车路径。此外,如图10所示,在获取到泊车路径后,还可以检测泊车路径是否会与障碍物发送碰撞,若发生碰撞在重新规划路径,若不发送碰撞,则将泊车路径的速度梯度平滑并发布泊车路径。Specifically, after the first planned path and the second planned path are obtained, the first planned path and the second planned path are connected, that is, the end point of the first planned path is merged with the starting point of the second planned path to obtain an automatic parking path. In addition, as shown in Figure 10, after the parking path is obtained, it can also be detected whether the parking path will collide with obstacles. If there is a collision, the path will be re-planned. The gradient is smoothed and the parking path is published.

综上所述,本实施例一种自动泊车的路径规划方法,所述路径规划方法包括获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;通过混合A*算法确定所述泊入段对应的第一规划路径;采用直线驶入方式确定所述调整段对应的第二规划路径;将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。本申请通过将泊车路径划分为泊入段和调整段,在泊入段采用混合A*算法进行路径规划,在调整段采用直线驶入方式进行路径规划,通过调整段对泊入段的所产生的车辆姿态误差进行调整,降低了对车辆泊入时的控制精度的要求,且可以很好的保证车辆的最终姿态。In summary, this embodiment is a path planning method for automatic parking, the path planning method includes obtaining the parking space information of the target parking space, and determining the parking segment and the adjustment segment based on the parking space information; through the hybrid A* algorithm Determining the first planned path corresponding to the parking section; determining the second planned path corresponding to the adjustment section by using a straight-line driving method; connecting the first planned path with the second planned path to form automatic parking path. This application divides the parking path into a parking section and an adjustment section, uses a hybrid A* algorithm for path planning in the parking section, and uses a straight-line driving method for path planning in the adjustment section. The generated vehicle attitude error is adjusted, which reduces the requirements for control accuracy when the vehicle is parked, and can well guarantee the final attitude of the vehicle.

基于上述自动泊车的路径规划方法,本实施例提供了一种自动泊车方法,其应用上述自动泊车的路径规划方法确定的泊车路径;如图11和12所示,所述方法包括:Based on the above-mentioned path planning method for automatic parking, this embodiment provides an automatic parking method, which applies the parking path determined by the above-mentioned path planning method for automatic parking; as shown in Figures 11 and 12, the method includes :

H10、控制车辆按照所述泊车路径行驶,并获取当前行驶时刻的候选障碍物位置以及当前行驶时刻相对于前一行驶时刻的新增障碍物位置。H10. Control the vehicle to drive according to the parking route, and obtain the position of the candidate obstacle at the current driving time and the position of the newly added obstacle at the current driving time relative to the previous driving time.

具体地,候选障碍物位置为车辆行驶至当前行驶时刻时检测到的,新增障碍物位置为车辆在当前行驶时刻检测到的候选障碍物位置相对于车辆在前一行驶时刻检测到的前序障碍物位置所新增的,即新增障碍物位置包含于候选障碍物位置内,但不包含于前序障碍物位置内。Specifically, the position of the candidate obstacle is detected when the vehicle is driving to the current driving moment, and the newly added obstacle position is the position of the candidate obstacle detected by the vehicle at the current driving moment relative to the previous position detected by the vehicle at the previous driving moment. The newly added obstacle position, that is, the newly added obstacle position is included in the candidate obstacle position, but not included in the previous obstacle position.

在一个实现方式中,所述获取当前行驶时刻的候选障碍物位置具体包括:In an implementation manner, the obtaining the position of the obstacle candidate at the current driving moment specifically includes:

H21、通过车辆配置的传感器检测当前行驶时刻对应的可疑障碍物位置;H21. Detect the position of the suspicious obstacle corresponding to the current driving time through the sensor configured in the vehicle;

H22、对于每个可疑障碍物位置,获取所述可疑障碍物位置对应的观察概率以及在车辆处于前一行驶时刻时所述可疑障碍物位置对应的先验概率;H22. For each suspicious obstacle position, obtain the observation probability corresponding to the suspicious obstacle position and the prior probability corresponding to the suspicious obstacle position when the vehicle is in the previous driving moment;

H23、基于所述观察概率及所述先验概率计算所述可疑障碍物位置对应的后验概率;H23. Calculate the posterior probability corresponding to the position of the suspicious obstacle based on the observation probability and the prior probability;

H24、若所述后验概率大于预设概率阈值,则将所述可疑障碍物位置作为候选障碍物位置。H24. If the posterior probability is greater than a preset probability threshold, use the suspicious obstacle position as a candidate obstacle position.

具体地,车辆配置有若干超声传感器,各超声传感器间相互独立,且均可以根据波束角和障碍物距离检测到可疑障碍物位置。也就是说,每个超声传感器的发射器发射超声波,并记录发射波的发射时间,从而超声波遇见障碍物则会反射,这样超声传感器的接收器接收到反射波,通过接收到反射波的时间、发射波的发射时间以及光波的传输速率作为超声距离数据,车辆终端可以根据超声距离数据、车辆的行驶速度等可以得到障碍物的相对于车辆的位置。Specifically, the vehicle is equipped with several ultrasonic sensors, each of which is independent of each other, and can detect the position of a suspicious obstacle according to the beam angle and obstacle distance. That is to say, the transmitter of each ultrasonic sensor emits ultrasonic waves, and records the emission time of the emitted waves, so that the ultrasonic waves will be reflected when they meet obstacles, so that the receiver of the ultrasonic sensor receives the reflected waves, through the time of receiving the reflected waves, The emission time of the transmitted wave and the transmission rate of the light wave are used as the ultrasonic distance data, and the vehicle terminal can obtain the position of the obstacle relative to the vehicle according to the ultrasonic distance data, the driving speed of the vehicle, and the like.

车辆配置有若干超声传感器,每个超声传感器均会检测到若干可疑障碍物位置,从而当前行驶时刻对应的可疑障碍物位置包括车辆配置的各传感器采集到的可疑障碍物位置,例如,车辆包括超声传感器1、超声传感器2、...、超声传感器N,那么可疑障碍物位置包括超声传感器1、超声传感器2、...、超声传感器N采集到的可疑障碍物位置。The vehicle is equipped with several ultrasonic sensors, and each ultrasonic sensor can detect several suspicious obstacle positions, so that the suspicious obstacle positions corresponding to the current driving time include the suspicious obstacle positions collected by the sensors configured in the vehicle, for example, the vehicle includes ultrasonic sensor 1 , ultrasonic sensor 2 , .

进一步,在获取到当前行驶时刻对应的可疑障碍物位置后,可以将各可疑障碍物位置合并后转换至地图坐标系下,以形成障碍物概率地图,其中,障碍物概率地图包含当前行驶时刻在地图坐标系中的所有可疑障碍物位置以及概率。在将各可疑障碍物位置合并并转换至地图坐标系下后,在如图13所示的超声传感器检测参数下,观察概率的计算公式可以为:Further, after obtaining the position of the suspicious obstacle corresponding to the current driving time, the positions of each suspicious obstacle can be combined and transformed into the map coordinate system to form an obstacle probability map, wherein the obstacle probability map includes the current driving time at All suspicious obstacle locations and probabilities in the map coordinate system. After merging and transforming the positions of each suspicious obstacle into the map coordinate system, under the detection parameters of the ultrasonic sensor as shown in Figure 13, the calculation formula of the observation probability can be:

Figure BDA0004169689220000151
Figure BDA0004169689220000151

其中,a表示该可疑障碍物位置与超声传感器的距离,b表示可疑障碍物位置与超声传感器中轴线的偏角,s表示超声传感器返回的距离测值,w表示超声传感器波束角,ds=0.2×s表示超声传感器的模型可信半宽,当点k(x,y)不在模型可信半宽范围内时,出现障碍物的概率视为0。Among them, a represents the distance between the position of the suspicious obstacle and the ultrasonic sensor, b represents the deflection angle between the position of the suspicious obstacle and the central axis of the ultrasonic sensor, s represents the measured value of the distance returned by the ultrasonic sensor, w represents the beam angle of the ultrasonic sensor, ds=0.2 ×s represents the credible half-width of the ultrasonic sensor model. When the point k(x, y) is not within the credible half-width range of the model, the probability of an obstacle is regarded as 0.

基于贝叶斯原理,可疑障碍物位置的后验概率可以基于可疑障碍物位置的观察概率和前一行驶时刻的先验概率确定的,即当一个可疑障碍物位置出现在超声波的障碍物可能区域时,不会立即被判定为障碍物,而是当连续一段时间,该可疑障碍物位置持续被判定为障碍物,才会被视作障碍物位置,这样使用概率来表示障碍物出现事件,可以提高对障碍物检测的准确性,避免传统超声传感器的测量误差,例如,避免因以波束角范围内的所有可能区域作为障碍物位置,导致车辆无路可走的问题,或者是,避免因使用相邻位置的两个超声波数据,判断障碍物的出现位置,判断逻辑是当两个超声传感器均探测到障碍物时,认为障碍物出现在两个超声传感器检测范围的重叠区域时,因存在两个较小的障碍物,障碍物1出现在左超声传感器的探测范围的左半侧,障碍物2出现在右超声传感器的探测范围的右半侧,而错误判断只有一个障碍物出现在左右超声传感器的重叠区域的问题。Based on the Bayesian principle, the posterior probability of a suspicious obstacle location can be determined based on the observation probability of the suspicious obstacle location and the prior probability of the previous driving moment, that is, when a suspicious obstacle location appears in the ultrasonic obstacle possible area , it will not be judged as an obstacle immediately, but will be regarded as the obstacle position when the position of the suspicious obstacle is continuously judged as an obstacle for a continuous period of time. In this way, using the probability to represent the occurrence event of an obstacle can be Improve the accuracy of obstacle detection and avoid the measurement error of traditional ultrasonic sensors, for example, avoid the problem that the vehicle has no way to go due to using all possible areas within the beam angle range as the obstacle position, or avoid the problem of using Two ultrasonic data in adjacent positions are used to determine the location of the obstacle. The judgment logic is that when both ultrasonic sensors detect an obstacle, it is considered that the obstacle appears in the overlapping area of the detection range of the two ultrasonic sensors. Two smaller obstacles, obstacle 1 appears in the left half of the detection range of the left ultrasonic sensor, obstacle 2 appears in the right half of the detection range of the right ultrasonic sensor, and it is wrongly judged that only one obstacle appears in the left and right ultrasonic sensors Problems with overlapping areas of sensors.

在一个实现方式中,可疑障碍物位置的后验概率的计算过程可以为:In an implementation, the calculation process of the posterior probability of the location of the suspicious obstacle may be:

令k(x,y)为真实有障碍物的事件为A,k(x,y)在这一时刻被探测出有障碍物的事件为B,那么根据条件概率,P(B|A)=P(A|B)P(B)/P(A),由全概率公式可得

Figure BDA0004169689220000152
基于此,超声传感器i测量下点k(x,y)在t时刻存在障碍物,且被正确检测到的后验概率Ti(t,k),其中,Ti(t,k)的计算公式可以为:Let k(x, y) be the event that actually has an obstacle as A, and the event that k(x, y) is detected as having an obstacle at this moment is B, then according to the conditional probability, P(B|A)= P(A|B)P(B)/P(A), can be obtained from the total probability formula
Figure BDA0004169689220000152
Based on this, ultrasonic sensor i measures the posterior probability T i (t, k) that there is an obstacle at point k (x, y) at time t and is correctly detected, where the calculation of T i ( t, k) The formula can be:

Figure BDA0004169689220000161
Figure BDA0004169689220000161

P(O)=P(t,k)×T(t-1,k)P(O)=P(t,k)×T(t-1,k)

Figure BDA0004169689220000162
Figure BDA0004169689220000162

其中,Ti(t,k)表示后验概率,T(T-1,k)表示先验概率,P(t,k)表示观察概率。Among them, T i (t, k) represents the posterior probability, T(T-1, k) represents the prior probability, and P(t, k) represents the observation probability.

进一步,在获取到各超声传感器的后验概率Ti(t,k)后,将各后验概率Ti(t,k)种的最大值作为可疑障碍物位置的后验概率,其中,后验概率的计算公式可以为:Further, after obtaining the posterior probability T i (t, k) of each ultrasonic sensor, the maximum value of each posterior probability T i (t, k) is used as the posterior probability of the suspicious obstacle position, where the posterior The formula for calculating the test probability can be:

Figure BDA0004169689220000163
Figure BDA0004169689220000163

其中,N表示超声传感器的数量。Among them, N represents the number of ultrasonic sensors.

H20、预测各新增障碍物位置对应的延伸障碍物位置,并基于所述候选障碍物位置和延伸障碍物位置确定所述当前行驶时刻对应的障碍物位置。H20. Predict the position of the extended obstacle corresponding to each newly added obstacle position, and determine the position of the obstacle corresponding to the current driving moment based on the position of the candidate obstacle and the position of the extended obstacle.

具体地,延伸障碍物位置为新增障碍物位置按照预设方向延伸所确定的位置,其中,预设方向可以是预先设置的,也可以是按照前一行驶时刻对应的障碍物信息以及当前行驶时刻对应的障碍物信息确定的。本实施例通过获取各新增障碍物位置的延伸障碍物位置,可以解决出现大型障碍物,传感器在某一时刻无法看清全貌,随着车辆连续移动,障碍物会连续出现的现象。Specifically, the extended obstacle position is the position determined by the extension of the new obstacle position according to the preset direction, where the preset direction can be preset, or it can be based on the obstacle information corresponding to the previous driving time and the current driving time. The obstacle information corresponding to the time is determined. In this embodiment, by obtaining the extended obstacle position of each newly added obstacle position, it can solve the phenomenon that large obstacles appear, the sensor cannot see the whole picture at a certain moment, and as the vehicle continues to move, obstacles will appear continuously.

在一个实现方式中,所述预测各新增障碍物位置对应的延伸障碍物位置具体包括:In an implementation manner, the predicting the position of the extended obstacle corresponding to the position of each newly added obstacle specifically includes:

获取前一行驶时刻对应的前序障碍物中心位置以及当前行驶时刻对应的当前障碍物中心位置,并将从所述前序障碍物中心位置到所述当前障碍物中心位置的方向作为延伸方向;Acquiring the center position of the previous obstacle corresponding to the previous driving time and the current center position of the obstacle corresponding to the current driving time, and using the direction from the center position of the previous obstacle to the center position of the current obstacle as the extension direction;

对于每个新增障碍物位置,沿所述延伸方向预测预设范围内的各延伸位置的延伸估计概率,并将延伸估计概率大于预设概率值的延伸位置作为延伸障碍物位置。For each newly added obstacle position, the estimated extension probability of each extended position within the preset range is predicted along the extended direction, and the extended position with the estimated extended probability greater than the preset probability value is used as the extended obstacle position.

具体地,前一行驶时刻经过贝叶斯估计得到的障碍物分布图可以如图14所示,其中,颜色越深代表概率越高,十字箭头表示t-1时刻的障碍中心位置。当前行驶时刻经过贝叶斯估计得到的障碍物分布图可以如图15所示,其中,圆形十字表示的障碍中心位置障向右侧移动。由此,延伸方向为从前一行驶时刻的十字箭头至当前行驶时刻的圆形十字的连线方向。换句话说,延伸方向为从所述前序障碍物中心位置到所述当前障碍物中心位置的方向。Specifically, the obstacle distribution map obtained by Bayesian estimation at the previous driving moment can be shown in Figure 14, where the darker the color, the higher the probability, and the cross arrow indicates the center position of the obstacle at time t-1. The obstacle distribution diagram obtained through Bayesian estimation at the current driving moment can be shown in FIG. 15 , where the center position of the obstacle indicated by the circular cross moves to the right. Thus, the extending direction is the direction of the line connecting the cross arrow at the previous driving time to the circular cross at the current driving time. In other words, the extension direction is a direction from the center position of the previous obstacle to the center position of the current obstacle.

在获取到延伸方向后,沿所述延伸方向预测预设范围内的各延伸位置的延伸估计概率,其中,延伸估计概率可以表示为:After the extension direction is obtained, the extension estimation probability of each extension position within the preset range is predicted along the extension direction, wherein the extension estimation probability can be expressed as:

Figure BDA0004169689220000171
Figure BDA0004169689220000171

其中,g表示预测点j的概率计算公式,新增障碍物位置k的后验概率T(t,k),新增障碍物位置k与预测点j之间的距离d,ds表示预设距离阈值。Among them, g represents the probability calculation formula of the predicted point j, the posterior probability T(t,k) of the newly added obstacle position k, the distance d between the newly added obstacle position k and the predicted point j, and ds represents the preset distance threshold.

在获取到候选障碍物位置和延伸障碍物位置后,将候选障碍物位置和延伸障碍物位置构成的障碍物区域作为当前行驶时刻对应的障碍物位置,如图16所示。After the candidate obstacle position and the extended obstacle position are obtained, the obstacle area formed by the candidate obstacle position and the extended obstacle position is used as the obstacle position corresponding to the current driving moment, as shown in FIG. 16 .

H30、基于所述障碍物位置调整所述泊车路径,并继续执行控制车辆按照所述泊车路径行驶的步骤,直至所述车辆完成自动泊车。H30. Adjust the parking path based on the position of the obstacle, and continue to execute the step of controlling the vehicle to travel along the parking path until the vehicle completes automatic parking.

具体地,在获取到障碍物位置后,可以基于所述障碍物位置检测所述泊车路径是否发生碰撞,这样可以避免在自动泊车过程中发生碰撞。其中,在基于所述障碍物位置检测所述泊车路径是否发生碰撞时,若所述泊车路径发生碰撞,则重新规划泊车路径以调整所述泊车路径;若所述泊车路径不发生碰撞,则保持所述泊车路径不变。此外,在重新规划泊车路径时,可以采用上述实施例所述提供的自动泊车的路径规划方法进行重新路径规划,也可以采用其他现有方式进行路径规划,例如,直接采用混合A*算法进行路径规划等。Specifically, after obtaining the position of the obstacle, it may be detected based on the position of the obstacle whether a collision occurs in the parking path, so as to avoid a collision during automatic parking. Wherein, when detecting whether the parking path collides based on the position of the obstacle, if the parking path collides, replan the parking path to adjust the parking path; if the parking path does not If a collision occurs, the parking path remains unchanged. In addition, when re-planning the parking route, the route planning method for automatic parking provided in the above-mentioned embodiments can be used for re-routing planning, or other existing methods can be used for route planning, for example, directly using the hybrid A* algorithm Perform path planning, etc.

本实施例在使用贝叶斯估计预测障碍物时,利用超声波原始数据以及前一时刻的先验经验对障碍物进行估计,这样可以提高障碍物估计的准确性。同时,在障碍物估计的时候,根据与上一时刻障碍物位置发生的变化作为预测依据,对障碍物的可能位置在其生长方向上进行预测。这样一方面在车辆在移动过程中逐渐逼近障碍物,真实的障碍物位置经过不断的估计迭代,最终被确信为障碍物,而非障碍物位置,在迭代过程中,满足不了估计阈值,尽管某些时刻被含在超声波的探测范围内,但不会被视为障碍物。提高了对于障碍物位置的估计精准度,进而让车辆在自主泊车中具有更大的行驶空间。另一方面用障碍物在相邻时刻的变化作为预测依据,相较于现有的以超声波全部探测区域预测障碍物的方法,在障碍物的生长方向上进行预测,且预测的依据是上一步贝叶斯计算得到的更加真实的障碍物分布概率,使得预测结果更加合理,能够减小障碍物尺寸超过探测范围而导致的估计盲区。In this embodiment, when Bayesian estimation is used to predict obstacles, the original ultrasonic data and prior experience at the previous moment are used to estimate obstacles, which can improve the accuracy of obstacle estimation. At the same time, when estimating the obstacle, the possible position of the obstacle is predicted in its growth direction according to the change of the obstacle position at the previous moment as the prediction basis. In this way, on the one hand, when the vehicle is gradually approaching the obstacle during the moving process, the real obstacle position is finally determined to be an obstacle rather than the obstacle position after continuous estimation iterations. During the iteration process, the estimation threshold cannot be satisfied, although a certain These moments are contained within the detection range of ultrasonic waves, but will not be considered as obstacles. The estimation accuracy of the obstacle position is improved, which in turn allows the vehicle to have more driving space in autonomous parking. On the other hand, the change of obstacles at adjacent moments is used as the prediction basis. Compared with the existing method of predicting obstacles in the entire ultrasonic detection area, the prediction is made in the direction of the growth of the obstacle, and the basis of the prediction is the previous step. The more realistic obstacle distribution probability obtained by Bayesian calculation makes the prediction result more reasonable and can reduce the estimated blind area caused by the obstacle size exceeding the detection range.

基于上述自动泊车的路径规划方法,本实施例通过了一种自动泊车的路径规划装置,如图17所示,所述路径规划装置包括:Based on the above path planning method for automatic parking, this embodiment adopts a path planning device for automatic parking, as shown in Figure 17, the path planning device includes:

获取模块101,用于获取目标车位的车位信息,并基于所述车位信息确定泊入段和调整段;An acquisition module 101, configured to acquire parking space information of a target parking space, and determine a parking segment and an adjustment segment based on the parking space information;

第一确定模块102,用于通过混合A*算法确定所述泊入段对应的第一规划路径;The first determination module 102 is configured to determine the first planned path corresponding to the parking segment through a hybrid A* algorithm;

第二确定模块103,用于采用直线驶入方式确定所述调整段对应的第二规划路径;The second determination module 103 is configured to determine the second planned path corresponding to the adjustment section in a straight-line approach;

形成模块104,用于将所述第一规划路径和所第二规划路径连接,以形成自动泊车路径。The forming module 104 is configured to connect the first planned route and the second planned route to form an automatic parking route.

基于上述自动泊车方法,本实施例提供了一种自动泊车装置,如图18所示,所述装置包括:Based on the above automatic parking method, this embodiment provides an automatic parking device, as shown in Figure 18, the device includes:

控制模块201,控制车辆按照所述泊车路径行驶,并获取当前行驶时刻的候选障碍物位置以及当前行驶时刻相对于前一行驶时刻的新增障碍物位置;The control module 201 controls the vehicle to drive according to the parking route, and obtains the position of the candidate obstacle at the current driving time and the position of the newly added obstacle at the current driving time relative to the previous driving time;

预测模块202,用于预测各新增障碍物位置对应的延伸障碍物位置,并基于所述候选障碍物位置和延伸障碍物位置确定所述当前行驶时刻对应的障碍物位置;A prediction module 202, configured to predict the extended obstacle position corresponding to each newly added obstacle position, and determine the obstacle position corresponding to the current driving moment based on the candidate obstacle position and the extended obstacle position;

调整模块203,用于基于所述障碍物位置调整所述泊车路径,并继续执行控制车辆按照所述泊车路径行驶的步骤,直至所述车辆完成自动泊车。The adjustment module 203 is configured to adjust the parking path based on the position of the obstacle, and continue to execute the step of controlling the vehicle to follow the parking path until the vehicle completes automatic parking.

本实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上述实施例所述的自动泊车的路径规划方法和/或所述自动泊车方法中的步骤。This embodiment provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement the above-mentioned implementation The path planning method for automatic parking described in the example and/or the steps in the automatic parking method.

本申请还提供了一种终端设备,如图19所示,其包括至少一个处理器(processor)20;显示屏21;以及存储器(memory)22,还可以包括通信接口(Communications Interface)23和总线24。其中,处理器20、显示屏21、存储器22和通信接口23可以通过总线24完成相互间的通信。显示屏21设置为显示初始设置模式中预设的用户引导界面。通信接口23可以传输信息。处理器20可以调用存储器22中的逻辑指令,以执行上述实施例中的方法。The present application also provides a terminal device, as shown in FIG. 19 , which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, and may also include a communication interface (Communications Interface) 23 and a bus twenty four. Wherein, the processor 20 , the display screen 21 , the memory 22 and the communication interface 23 can communicate with each other through the bus 24 . The display screen 21 is configured to display the preset user guidance interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can invoke logic instructions in the memory 22 to execute the methods in the above-mentioned embodiments.

此外,上述的存储器22中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logic instructions in the memory 22 may be implemented in the form of software functional units and when sold or used as an independent product, may be stored in a computer-readable storage medium.

存储器22作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令或模块。处理器20通过运行存储在存储器22中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。As a computer-readable storage medium, the memory 22 can be configured to store software programs and computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 runs software programs, instructions or modules stored in the memory 22 to execute functional applications and data processing, ie to implement the methods in the above-mentioned embodiments.

存储器22可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required by a function; the data storage area may store data created according to the use of the terminal device, and the like. In addition, the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory. For example, U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes can also be temporary state storage medium.

此外,上述存储介质以及终端设备中的多条指令处理器加载并执行的具体过程在上述方法中已经详细说明,在这里就不再一一陈述。In addition, the specific process of loading and executing multiple instruction processors in the storage medium and the terminal device has been described in detail in the above method, and will not be described here one by one.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (13)

1. A method for path planning for automatic parking, the method comprising:
acquiring parking space information of a target parking space, and determining a parking section and an adjusting section based on the parking space information;
determining a first planning path corresponding to the parking section through a mixed A-algorithm;
determining a second planning path corresponding to the adjusting section in a straight-line driving-in mode;
and connecting the first planned path and the second planned path to form an automatic parking path.
2. The method for planning a path for automatic parking according to claim 1, wherein the determining, by using a hybrid a-x algorithm, the first planned path corresponding to the parking segment specifically includes:
taking the starting position of the vehicle as an initial path point;
acquiring the distance between the initial path point and the target parking space, and determining heuristic function weights corresponding to the initial path point according to the distance;
searching a next path node of an initial path point in a search area corresponding to the vehicle through a mixed A algorithm based on the heuristic function weight;
and taking the next path node as an initial path point, and continuously executing the step of acquiring the distance between the initial path point and the target parking space until the end point of the parking section is reached to form a first planning path.
3. The automatic parking path planning method according to claim 2, wherein the determining process of the search area specifically includes:
determining an initial obstacle area and an initial parking space area corresponding to a target vehicle based on the parking space information, expanding the initial obstacle area outwards to obtain a target obstacle area, and expanding the initial parking space area inwards to obtain a target parking space area;
And determining a search area based on the target obstacle area and the target parking space area.
4. The method for planning a path for automatic parking according to claim 2, wherein determining the heuristic function weight corresponding to the initial path point according to the distance specifically comprises:
comparing the distance with a first distance threshold and a second distance threshold, respectively;
if the distance is greater than a first distance threshold, setting a first preset weight as a heuristic function weight corresponding to the initial path point;
if the distance is smaller than or equal to a first distance threshold and larger than or equal to a second distance threshold, setting a second preset weight as a heuristic function weight corresponding to the initial path point;
and if the distance is smaller than the second distance threshold, setting a third preset weight as a heuristic function weight corresponding to the initial path point, wherein the first preset weight is larger than the second preset weight, and the second preset weight is larger than the third preset weight.
5. The method for planning a path for automatic parking according to claim 1, wherein the determining the parking section and the adjustment section based on the parking space information specifically includes:
Determining a parking point of the target parking space based on the parking space information, and selecting a target point in front of the parking point as a dividing point, wherein the dividing point and the parking point are on the same straight line, and the direction from the parking point to the dividing point is the head direction of a vehicle;
taking a road section between a vehicle starting point and the dividing point as a parking section, and taking a road section between the dividing point and the parking point as an adjusting section.
6. An automatic parking method, characterized by applying the parking path determined by the path planning method for automatic parking according to any one of claims 1 to 5; the method comprises the following steps:
controlling the vehicle to run according to the parking path, and acquiring candidate obstacle positions at the current running time and newly-increased obstacle positions at the current running time relative to the previous running time;
predicting extended obstacle positions corresponding to the newly added obstacle positions, and determining the obstacle positions corresponding to the current running time based on the candidate obstacle positions and the extended obstacle positions;
and adjusting the parking path based on the obstacle position, and continuously executing the step of controlling the vehicle to run according to the parking path until the vehicle finishes automatic parking.
7. The automatic parking method of claim 6, wherein the adjusting the parking path based on the obstacle location specifically comprises:
detecting whether a collision of the parking path occurs based on the obstacle position;
if the parking path collides, re-planning the parking path to adjust the parking path;
and if the parking path is not collided, keeping the parking path unchanged.
8. The automatic parking method according to claim 6, wherein the obtaining the candidate obstacle position at the current driving time specifically includes:
detecting the position of a suspicious obstacle corresponding to the current running time through a sensor configured by the vehicle;
for each suspicious obstacle position, obtaining an observation probability corresponding to the suspicious obstacle position and a priori probability corresponding to the suspicious obstacle position when the vehicle is at a previous driving moment;
calculating posterior probability corresponding to the suspicious obstacle position based on the observation probability and the prior probability;
and if the posterior probability is greater than a preset probability threshold, taking the suspicious obstacle position as a candidate obstacle position.
9. The automatic parking method according to claim 6, wherein predicting the extended obstacle position corresponding to each newly added obstacle position specifically includes:
Acquiring a preamble obstacle center position corresponding to a previous driving moment and a current obstacle center position corresponding to a current driving moment, and taking a direction from the preamble obstacle center position to the current obstacle center position as an extension direction;
for each newly added obstacle position, predicting the extension estimation probability of each extension position within a preset range along the extension direction, and taking the extension position with the extension estimation probability larger than a preset probability value as the extension obstacle position.
10. A path planning apparatus for automatic parking, the path planning apparatus comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring parking space information of a target parking space and determining a parking section and an adjustment section based on the parking space information;
the first determining module is used for determining a first planning path corresponding to the parking section through a mixed A-algorithm;
the second determining module is used for determining a second planning path corresponding to the adjusting section in a straight-line driving-in mode;
and the forming module is used for connecting the first planning path and the second planning path to form an automatic parking path.
11. An automatic parking apparatus, characterized by applying the parking path determined by the path planning apparatus for automatic parking according to claim 10; the device comprises:
The control module is used for controlling the vehicle to run according to the parking path and acquiring candidate obstacle positions at the current running time and newly-increased obstacle positions at the current running time relative to the previous running time;
the prediction module is used for predicting extended obstacle positions corresponding to the newly-added obstacle positions and determining the obstacle positions corresponding to the current running time based on the candidate obstacle positions and the extended obstacle positions;
and the adjusting module is used for adjusting the parking path based on the obstacle position and continuously executing the step of controlling the vehicle to run according to the parking path until the vehicle finishes automatic parking.
12. A computer-readable storage medium storing one or more programs executable by one or more processors to perform the steps of the method of path planning for automatic parking according to any one of claims 1-5 and/or to perform the steps of the method of automatic parking according to any one of claims 6-9.
13. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
The communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of the path planning method of automatic parking according to any one of claims 1-5 and/or the steps of the automatic parking method according to any one of claims 6-9.
CN202310374102.9A 2023-03-29 2023-03-29 Automatic parking path planning method, automatic parking method and related device Active CN116373851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310374102.9A CN116373851B (en) 2023-03-29 2023-03-29 Automatic parking path planning method, automatic parking method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310374102.9A CN116373851B (en) 2023-03-29 2023-03-29 Automatic parking path planning method, automatic parking method and related device

Publications (2)

Publication Number Publication Date
CN116373851A true CN116373851A (en) 2023-07-04
CN116373851B CN116373851B (en) 2025-06-24

Family

ID=86965308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310374102.9A Active CN116373851B (en) 2023-03-29 2023-03-29 Automatic parking path planning method, automatic parking method and related device

Country Status (1)

Country Link
CN (1) CN116373851B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116605211A (en) * 2023-07-19 2023-08-18 广汽埃安新能源汽车股份有限公司 Parking path planning method and device, electronic equipment and storage medium
CN116923382A (en) * 2023-09-01 2023-10-24 杭州海康威视数字技术股份有限公司 Parking method and device
CN117416342A (en) * 2023-12-18 2024-01-19 上海伯镭智能科技有限公司 Intelligent parking method for unmanned vehicle
CN118545087A (en) * 2024-05-15 2024-08-27 理工雷科智途(北京)科技有限公司 A method for avoiding vehicles passing each other in underground mines by unmanned transport vehicles

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112644480A (en) * 2021-01-18 2021-04-13 广州小鹏自动驾驶科技有限公司 Obstacle detection method, obstacle detection system, computer device and storage medium
CN113147739A (en) * 2021-03-08 2021-07-23 北京科技大学 Heuristic automatic parking method and device for unmanned vehicle
CN114347982A (en) * 2021-12-24 2022-04-15 北京经纬恒润科技股份有限公司 Path planning method and system for automatic parking
CN115774443A (en) * 2021-09-09 2023-03-10 北京机械设备研究所 Unmanned mine card path planning method for strip mine loading and unloading area
CN115826586A (en) * 2023-02-14 2023-03-21 泉州装备制造研究所 Path planning method and system fusing global algorithm and local algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112644480A (en) * 2021-01-18 2021-04-13 广州小鹏自动驾驶科技有限公司 Obstacle detection method, obstacle detection system, computer device and storage medium
CN113147739A (en) * 2021-03-08 2021-07-23 北京科技大学 Heuristic automatic parking method and device for unmanned vehicle
CN115774443A (en) * 2021-09-09 2023-03-10 北京机械设备研究所 Unmanned mine card path planning method for strip mine loading and unloading area
CN114347982A (en) * 2021-12-24 2022-04-15 北京经纬恒润科技股份有限公司 Path planning method and system for automatic parking
CN115826586A (en) * 2023-02-14 2023-03-21 泉州装备制造研究所 Path planning method and system fusing global algorithm and local algorithm

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116605211A (en) * 2023-07-19 2023-08-18 广汽埃安新能源汽车股份有限公司 Parking path planning method and device, electronic equipment and storage medium
CN116605211B (en) * 2023-07-19 2023-09-26 广汽埃安新能源汽车股份有限公司 Parking path planning method and device, electronic equipment and storage medium
CN116923382A (en) * 2023-09-01 2023-10-24 杭州海康威视数字技术股份有限公司 Parking method and device
CN117416342A (en) * 2023-12-18 2024-01-19 上海伯镭智能科技有限公司 Intelligent parking method for unmanned vehicle
CN117416342B (en) * 2023-12-18 2024-03-08 上海伯镭智能科技有限公司 Intelligent parking method for unmanned vehicle
CN118545087A (en) * 2024-05-15 2024-08-27 理工雷科智途(北京)科技有限公司 A method for avoiding vehicles passing each other in underground mines by unmanned transport vehicles

Also Published As

Publication number Publication date
CN116373851B (en) 2025-06-24

Similar Documents

Publication Publication Date Title
CN116373851A (en) Automatic parking path planning method, automatic parking method and related device
CN112673234B (en) Path planning method and path planning device
US11460311B2 (en) Path planning method, system and device for autonomous driving
US11561542B2 (en) Safety and comfort constraints for navigation
EP3929046B1 (en) Vertical parking method
CN112639849A (en) Route selection method and route selection device
JP2023531831A (en) Autonomous parking using hybrid search for parking spaces
US11499834B2 (en) Aligning road information for navigation
CN113932823A (en) Unmanned multi-target-point track parallel planning method based on semantic road map
CN110834644A (en) Vehicle control method and device, vehicle to be controlled and storage medium
KR20210121595A (en) Optimal route finding device and operating method thereof
CN110345957A (en) Vehicle route identification
JP2020514158A (en) Own vehicle control method and own vehicle control system
CN111142530B (en) Method for determining running track of robot, robot and storage medium
EP4320020B1 (en) Lane changing based only on local information
CN115140096A (en) Spline curve and polynomial curve-based automatic driving track planning method
CN116476840B (en) Lane changing driving method, device, equipment and storage medium
CN114264307B (en) Path generation method, device, vehicle and storage medium
CN110843767A (en) A method and system for automatic warehousing and parking based on spline theory
CN113561992B (en) Automatic driving vehicle track generation method, device, terminal equipment and medium
CN114620070A (en) Driving track planning method, device, equipment and storage medium
CN116758741A (en) A multi-dimensional uncertainty-aware smart car collision probability prediction method
CN115158299A (en) A parking path planning method, device, vehicle and readable storage medium
CN114167872A (en) Robot obstacle avoidance method and system, computer and robot
CN112762950A (en) Hybrid A-autonomous parking path planning method based on artificial potential field guidance

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