[go: up one dir, main page]

CN114371709A - Path planning method, device, storage medium and program product - Google Patents

Path planning method, device, storage medium and program product Download PDF

Info

Publication number
CN114371709A
CN114371709A CN202210006107.1A CN202210006107A CN114371709A CN 114371709 A CN114371709 A CN 114371709A CN 202210006107 A CN202210006107 A CN 202210006107A CN 114371709 A CN114371709 A CN 114371709A
Authority
CN
China
Prior art keywords
grid
path
target
driving situation
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.)
Pending
Application number
CN202210006107.1A
Other languages
Chinese (zh)
Inventor
徐鑫
张亮亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Kunpeng Jiangsu Technology Co Ltd
Original Assignee
Jingdong Kunpeng Jiangsu Technology 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 Jingdong Kunpeng Jiangsu Technology Co Ltd filed Critical Jingdong Kunpeng Jiangsu Technology Co Ltd
Priority to CN202210006107.1A priority Critical patent/CN114371709A/en
Publication of CN114371709A publication Critical patent/CN114371709A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明实施例涉及智能驾驶技术领域,提供一种路径规划方法、设备、存储介质及程序产品,该方法包括获取驾驶态势认知图,所述驾驶态势认知图被划分为多个栅格,并包括障碍物的信息和先验规划轨迹,根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值,根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。本发明实施例通过对驾驶态势认知图进行代价值赋值,并基于该代价值进行启发式搜索,能够大大简化运算,提高计算效率,从而提高实时性,满足无人驾驶车辆的需求。

Figure 202210006107

Embodiments of the present invention relate to the technical field of intelligent driving, and provide a path planning method, device, storage medium and program product. The method includes acquiring a driving situation awareness map, wherein the driving situation awareness map is divided into a plurality of grids, and includes the information of obstacles and a priori planned trajectory, according to the information of the obstacles and the a priori planned trajectory, the cost value is assigned to each grid in the driving situation awareness map, according to the driving situation The cost value of each grid in the cognitive graph is used to obtain the target path of the vehicle through heuristic search. In the embodiment of the present invention, by assigning a cost value to the driving situation cognition map, and performing heuristic search based on the cost value, the operation can be greatly simplified, the calculation efficiency can be improved, and the real-time performance can be improved to meet the needs of unmanned vehicles.

Figure 202210006107

Description

路径规划方法、设备、存储介质及程序产品Path planning method, device, storage medium and program product

技术领域technical field

本发明实施例涉及智能驾驶技术领域,尤其涉及一种路径规划方法、设备、存储介质及程序产品。The embodiments of the present invention relate to the technical field of intelligent driving, and in particular, to a path planning method, device, storage medium and program product.

背景技术Background technique

机器人路径规划是基于周边动态与静态障碍物分布,综合考虑机器人外形尺寸与动力学特性,寻找从起始位置到目标位置的无碰撞运动轨迹。在机器人学中,路径规划问题通常被转换为构形空间的路径搜索问题。Robot path planning is based on the distribution of surrounding dynamic and static obstacles, taking into account the overall dimensions and dynamic characteristics of the robot, to find a collision-free motion trajectory from the starting position to the target position. In robotics, path planning problems are often transformed into path search problems in configuration spaces.

在现有技术中,通过直接计算构形空间中障碍物区域与自由区域来进行无碰撞的路径搜索。In the prior art, a collision-free path search is performed by directly calculating the obstacle area and the free area in the configuration space.

然而,实现本发明过程中,发明人发现现有技术中至少存在如下问题:上述直接计算的方式,具有很高的计算复杂度,而且无人驾驶车辆是一种特殊的轮式移动机器人,其只有前轮可以主动转向,需要符合车辆动力学限制,并且无人驾驶环境中动态障碍物较多,这些因素更加加大了的计算的复杂度,影响了计算效率,从而也无法满足实时性要求。However, in the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: the above-mentioned direct calculation method has high computational complexity, and the unmanned vehicle is a special wheeled mobile robot, which Only the front wheels can be actively steered, which needs to meet the vehicle dynamics constraints, and there are many dynamic obstacles in the unmanned environment. These factors increase the computational complexity and affect the computational efficiency, so that the real-time requirements cannot be met. .

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种路径规划方法、设备、存储介质及程序产品,以降低无人驾驶车辆的计算复杂度,提高计算效率,从而提高实时性。The embodiments of the present invention provide a path planning method, device, storage medium and program product, so as to reduce the computational complexity of the unmanned vehicle, improve the computational efficiency, and thereby improve the real-time performance.

第一方面,本发明实施例提供一种路径规划方法,包括:In a first aspect, an embodiment of the present invention provides a path planning method, including:

获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格;Obtain a driving situation awareness map, wherein the driving situation awareness map is a spatial layout map of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is divided into multiple grid;

根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值;According to the information of the obstacle and the prior planning trajectory, assign a cost value to each grid in the driving situation awareness map;

根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。According to the cost value of each grid in the driving situation awareness map, the target path of the vehicle is obtained through heuristic search.

第二方面,本发明实施例提供一种路径规划设备,包括:In a second aspect, an embodiment of the present invention provides a path planning device, including:

获取模块,用于获取驾驶态势认知图;所述驾驶态势认知图被划分为多个栅格,并包括障碍物的信息和先验规划轨迹;an acquisition module for acquiring a driving situation awareness map; the driving situation awareness map is divided into a plurality of grids and includes obstacle information and a priori planning trajectory;

赋值模块,用于根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值;an assignment module, configured to assign an assignment value to each grid in the driving situation awareness map according to the information of the obstacle and the prior planning trajectory;

搜索模块,用于根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。The search module is used for obtaining the target path of the vehicle through heuristic search according to the cost value of each grid in the driving situation awareness map.

第三方面,本发明实施例提供一种路径规划设备,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present invention provides a path planning device, including: at least one processor and a memory;

所述存储器存储计算机执行指令;the memory stores computer-executable instructions;

所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的方法。The at least one processor executes computer-implemented instructions stored in the memory to cause the at least one processor to perform the methods described in the first aspect and various possible designs of the first aspect above.

第四方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the first aspect and the first Aspects various possible designs of the described method.

第五方面,本发明实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的方法。In a fifth aspect, embodiments of the present invention provide a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect and various possible designs of the first aspect.

本实施例提供的路径规划方法、设备、存储介质及程序产品,该方法包括获取驾驶态势认知图,所述驾驶态势认知图被划分为多个栅格,并包括障碍物的信息和先验规划轨迹,根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值,根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。通过对驾驶态势认知图进行代价值赋值,并基于该代价值进行启发式搜索,能够大大简化运算,提高计算效率,从而提高实时性,满足无人驾驶车辆的需求。The path planning method, device, storage medium, and program product provided in this embodiment include acquiring a driving situation awareness map, where the driving situation awareness map is divided into multiple grids and includes information about obstacles and prior information. According to the information of the obstacle and the prior planning trajectory, a cost value is assigned to each grid in the driving situation awareness map, according to the driving situation awareness map of each grid. The cost value, the target path of the vehicle is obtained through heuristic search. By assigning the cost value to the driving situation cognitive map, and performing heuristic search based on the cost value, the operation can be greatly simplified, the calculation efficiency can be improved, and the real-time performance can be improved to meet the needs of unmanned vehicles.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1为本发明实施例提供的基于驾驶认知态势图的路径规划原理示意图;FIG. 1 is a schematic diagram of a route planning principle based on a driving cognitive situation diagram provided by an embodiment of the present invention;

图2为本发明实施例提供的路径规划方法的流程示意图一;FIG. 2 is a schematic flowchart 1 of a path planning method provided by an embodiment of the present invention;

图3为本发明实施例提供的路径规划方法的流程示意图二;3 is a second schematic flowchart of a path planning method provided by an embodiment of the present invention;

图4为本发明实施例提供的对驾驶认知态势图进行代价值赋值的原理示意图;FIG. 4 is a schematic diagram of the principle of assigning a cost value to a driving cognitive situation map according to an embodiment of the present invention;

图5为本发明实施例提供的对驾驶认知态势图进行代价值赋值过程的对比图;5 is a comparison diagram of a process of assigning a cost value to a driving cognitive situation map according to an embodiment of the present invention;

图6为本发明实施例提供的路径规划方法的流程示意图三;6 is a third schematic flowchart of a path planning method provided by an embodiment of the present invention;

图7为本发明实施例提供的包含目标路径的驾驶认知态势图的示意图;7 is a schematic diagram of a driving cognitive situation diagram including a target path according to an embodiment of the present invention;

图8为本发明实施例提供的路径规划方法的流程示意图四;FIG. 8 is a fourth schematic flowchart of a path planning method provided by an embodiment of the present invention;

图9为本发明实施例提供的目标路径优化前后的对比图;9 is a comparison diagram before and after target path optimization provided by an embodiment of the present invention;

图10为本发明实施例提供的路径规划方法中碰撞优化的流程示意图;10 is a schematic flowchart of collision optimization in a path planning method provided by an embodiment of the present invention;

图11为本发明实施例提供的路径规划设备的结构示意图;11 is a schematic structural diagram of a path planning device according to an embodiment of the present invention;

图12为本发明实施例提供的一种终端设备的框图。FIG. 12 is a block diagram of a terminal device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

机器人路径规划是基于周边动态与静态障碍物分布,综合考虑机器人外形尺寸与动力学特性,寻找从起始位置到目标位置的无碰撞运动轨迹。在机器人学中,路径规划问题通常被转换为构形空间的路径搜索问题。在室内人工环境下,机器人路径规划的研究已经相当成熟。但广域、复杂、时变的真实交通环境下的路径规划,仍然是一个开放的问题。在现有技术中,基于构型空间的路径规划中,通常可以直接计算构型空间中的障碍物区域

Figure BDA0003455527600000031
与自由区域
Figure BDA0003455527600000032
来进行。该直接计算的方式,具有很高的计算复杂度。Robot path planning is based on the distribution of surrounding dynamic and static obstacles, taking into account the overall dimensions and dynamic characteristics of the robot, to find a collision-free motion trajectory from the starting position to the target position. In robotics, path planning problems are often transformed into path search problems in configuration spaces. In the indoor artificial environment, the research of robot path planning has been quite mature. However, route planning in a wide-area, complex, and time-varying real traffic environment is still an open problem. In the prior art, in the path planning based on the configuration space, the obstacle area in the configuration space can usually be directly calculated
Figure BDA0003455527600000031
with free area
Figure BDA0003455527600000032
to proceed. This direct calculation method has high computational complexity.

无人驾驶车辆路径规划要处理大尺度、动态变化的环境地图,障碍物种类、数量繁多,运动趋势也很复杂,无人驾驶车辆运动还要符合车辆动力学限制。无人驾驶车辆路径规划还需要考虑驾驶行为及驾驶意图。因此,相比一般意义的机器人路径规划问题,无人驾驶车辆需要考虑的环境要素数量繁多,且具有高度不确定性。更加加大了的计算的复杂度,影响了计算效率,从而也无法满足实时性要求。The path planning of unmanned vehicles needs to deal with large-scale and dynamically changing environmental maps. There are many types and numbers of obstacles, and the motion trends are also very complex. The motion of unmanned vehicles must also meet the constraints of vehicle dynamics. Autonomous vehicle path planning also needs to consider driving behavior and driving intent. Therefore, compared with the general robot path planning problem, unmanned vehicles need to consider a large number of environmental elements and have a high degree of uncertainty. The increased computational complexity affects the computational efficiency, so that the real-time requirements cannot be met.

针对上述技术问题,发明人经过研究发现,可以将驾驶认知态势图栅格化,并根据驾驶认知态势图中先验规划轨迹和障碍物的信息对驾驶认知态势图中各栅格进行合理的代价值赋值,基于赋值后的驾驶认知态势图进行启发式搜索来快速查找目标路径,能够大大减少运算量。基于此,本发明实施例提供一种路径规划方法,能够降低计算复杂度,从而能够实现更高的实时性,满足无人驾驶车辆的行驶需求。In view of the above technical problems, the inventor found through research that the driving cognitive situation map can be rasterized, and each grid in the driving cognitive situation map can be processed according to the information of the prior planned trajectory and obstacles in the driving cognitive situation map. Reasonable cost value assignment, heuristic search based on the assigned driving cognitive situation map to quickly find the target path, can greatly reduce the amount of computation. Based on this, the embodiments of the present invention provide a path planning method, which can reduce the computational complexity, thereby achieving higher real-time performance and meeting the driving requirements of unmanned vehicles.

示例性的,如图1所示,驾驶认知态势图被划分为多个栅格,驾驶认知态势图中包括障碍物A、障碍物B、障碍物C的位置信息以及先验规划轨迹。各障碍物占据不同的栅格。在对驾驶认知图进行代价值赋值时,可以综合考虑车辆到先验规划轨迹的距离以及车辆到各障碍物的距离对与障碍物无碰撞的可行驶区域进行赋值,进而根据赋值后的驾驶认知态势图进行目标路径的启发式搜索,从而能够大大减少运算量,降低计算复杂度,从而能够实现更高的实时性,满足无人驾驶车辆的行驶需求。Exemplarily, as shown in FIG. 1 , the driving cognitive situation graph is divided into multiple grids, and the driving cognitive situation graph includes the position information of obstacle A, obstacle B, obstacle C and a priori planned trajectory. Each obstacle occupies a different grid. When assigning the cost value to the driving cognitive map, the distance from the vehicle to the prior planning trajectory and the distance from the vehicle to each obstacle can be comprehensively considered to assign a value to the drivable area without collision with the obstacle, and then according to the assigned driving value Cognitive situation graphs perform heuristic search of target paths, which can greatly reduce the amount of computation and computational complexity, so as to achieve higher real-time performance and meet the driving needs of unmanned vehicles.

下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图2为本发明实施例提供的路径规划方法的流程示意图一。如图2所示,该方法包括:FIG. 2 is a schematic flowchart 1 of a path planning method provided by an embodiment of the present invention. As shown in Figure 2, the method includes:

201、获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格。201. Obtain a driving situation awareness map, wherein the driving situation awareness map is a spatial layout diagram of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is divided into for multiple grids.

本实施例的执行主体可以为计算机等能够进行路径规划的处理设备。该处理设备可以设置在无人驾驶车辆上,以使无人驾驶车辆根据规划的路径行驶。The execution body of this embodiment may be a processing device such as a computer that can perform path planning. The processing device can be provided on the unmanned vehicle, so that the unmanned vehicle travels according to the planned path.

本实施例中,驾驶态势认知图为车辆当前所处环境的空间布局图,可以表明车辆可以达到的空间方位及通行状态。驾驶态势认知图可以包括:障碍物高度与置信度态势图(CT1)、障碍物速度大小及方向态势图(CT2)、可行驶区域边缘态势图(CT3)、先验规划轨迹态势图(CT4)。可以理解,在无人驾驶车辆的行驶环境中存在静态障碍物和动态障碍物,障碍物的平面尺寸和高度等信息均可以从驾驶态势认知图中获得。本实施例中先验规划轨迹为无人车辆的历史行驶轨迹。In this embodiment, the driving situation awareness map is a spatial layout map of the environment in which the vehicle is currently located, which can indicate the spatial orientation and traffic state that the vehicle can reach. The driving situation awareness map can include: obstacle height and confidence situation map (CT1), obstacle speed and direction situation map (CT2), drivable area edge situation map (CT3), prior planning trajectory situation map (CT4) ). It can be understood that there are static obstacles and dynamic obstacles in the driving environment of unmanned vehicles, and information such as the plane size and height of obstacles can be obtained from the driving situation awareness map. In this embodiment, the a priori planned trajectory is the historical travel trajectory of the unmanned vehicle.

本实施例中,驾驶态势认知图被划分为的多个栅格,每个栅格的尺寸可以根据实际需要进行设定,例如可以设定为1米×1米。In this embodiment, the driving situation awareness map is divided into multiple grids, and the size of each grid can be set according to actual needs, for example, it can be set to 1 meter×1 meter.

202、根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值。202. According to the information of the obstacle and the a priori planned trajectory, assign a cost value to each grid in the driving situation awareness map.

考虑到不与障碍物发生碰撞以及沿先验规划轨迹行驶是无人驾驶车辆在行驶过程中的两个主要影响因素。因此,可以基于这两个因素为驾驶态势认知图中的每个栅格进行代价值赋值。Considering that not colliding with obstacles and driving along a priori planned trajectory are the two main influencing factors for the driving process of the unmanned vehicle. Therefore, each grid in the driving situation awareness map can be assigned a cost value based on these two factors.

实际应用中,根据不同的驾驶目的,可以将驾驶行为分为多种,例如沿先验规划轨迹行驶、避障行驶、倒车脱困、正向脱困等,针对不同的驾驶行为可以对驾驶态势认知图采取不同的赋值策略,基本策略是综合考虑驾驶认知CT图中的周边交通环境信息,为驾驶态势认知图中每个栅格赋予代价值。代价值越高,说明选择该栅格距离先验规划轨迹较远、距离障碍物较近,路径经由该栅格将付出较大的代价。In practical applications, according to different driving purposes, driving behaviors can be divided into various types, such as driving along a priori planned trajectory, avoiding obstacles, reversing and getting out of trouble, and getting out of trouble in the forward direction. The map adopts different assignment strategies. The basic strategy is to comprehensively consider the surrounding traffic environment information in the driving cognitive CT map, and assign a cost value to each grid in the driving situation cognitive map. The higher the cost value, the higher the cost of choosing the grid, which is farther from the prior planning trajectory and closer to the obstacle.

203、根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。203. According to the cost value of each grid in the driving situation awareness map, obtain the target path of the vehicle through heuristic search.

在对驾驶态势认知图中的各栅格进行代价值赋值后,可以基于各栅格的代价值,进行启发式搜索来获得车辆的目标路径。After the cost value is assigned to each grid in the driving situation awareness map, a heuristic search can be performed based on the cost value of each grid to obtain the target path of the vehicle.

本实施例提供的路径规划方法,包括获取驾驶态势认知图,所述驾驶态势认知图被划分为多个栅格,并包括障碍物的信息和先验规划轨迹,根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值,根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。通过对驾驶态势认知图进行代价值赋值,并基于该代价值进行启发式搜索,能够大大简化运算,提高计算效率,从而提高实时性,满足无人驾驶车辆的需求。The path planning method provided by this embodiment includes acquiring a driving situation awareness map, where the driving situation awareness map is divided into multiple grids and includes information on obstacles and a priori planned trajectory. information and the prior planning trajectory, assign a cost value to each grid in the driving situation awareness map, and obtain the vehicle's value through heuristic search according to the cost value of each grid in the driving situation awareness map. Target path. By assigning the cost value to the driving situation cognitive map, and performing heuristic search based on the cost value, the operation can be greatly simplified, the calculation efficiency can be improved, and the real-time performance can be improved to meet the needs of unmanned vehicles.

图3为本发明实施例提供的路径规划方法的流程示意图二。如图3所示,在上述实施例的基础上,例如在图2所示实施例的基础上,本实施例对代价值赋值的方式进行了详细说明,该方法包括:FIG. 3 is a second schematic flowchart of a path planning method provided by an embodiment of the present invention. As shown in FIG. 3 , on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in FIG. 2 , the present embodiment describes in detail the way of assigning the value of the value, and the method includes:

301、获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格。301. Obtain a driving situation awareness map, wherein the driving situation awareness map is a spatial layout diagram of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is divided into for multiple grids.

本实施例中步骤301与步骤201相类似,此处不再赘述。In this embodiment, step 301 is similar to step 201, and details are not repeated here.

302、根据所述障碍物的信息,确定车辆不可行驶的第一栅格集合,并对所述第一栅格集合中的每个栅格赋值最大代价值。302. Determine a first grid set in which the vehicle cannot travel according to the information of the obstacle, and assign a maximum cost value to each grid in the first grid set.

在一些实施例中,所述驾驶态势认知图包括障碍物高度与置信度态势图和可行驶区域边缘态势图;所述根据所述障碍物的信息,确定车辆不可行驶的第一栅格集合,包括:确定所述障碍物高度与置信度态势图中的静态障碍物占据的各第一目标栅格和所述可行驶区域边缘态势图中可行驶区域边缘外的各第二目标栅格;将所述第一目标栅格和所述第二目标栅格所形成的栅格集合确定为所述第一栅格集合。In some embodiments, the driving situation awareness map includes an obstacle height and confidence level situation map and a drivable area edge situation map; the first grid set for which the vehicle cannot be driven is determined according to the information of the obstacles , including: determining each first target grid occupied by static obstacles in the situation map of the obstacle height and confidence level and each second target grid outside the edge of the drivable area in the drivable area edge situation map; A grid set formed by the first target grid and the second target grid is determined as the first grid set.

本实施例中,将一定与障碍物发生碰撞的栅格,即不可行驶栅格,赋值代价值为最大值ρmax=1In this embodiment, the grid that must collide with the obstacle, that is, the non-driving grid, is assigned the cost value as the maximum value ρ max =1

如图4所示,以点填充的栅格表示不可行驶栅格,其中,不可行驶栅格可以包括CT3中可行驶区域边缘外的所有栅格,即第二目标栅格,CT1中静态障碍物内部的所有栅格,即第一目标栅格。可以将车辆模型转换为单点模型,从而可以方便的计算出那些不论车辆位于什么姿态,都会与障碍物发生碰撞的栅格。As shown in Figure 4, the grid filled with dots represents the non-drivable grid, wherein the non-drivable grid can include all grids outside the edge of the drivable area in CT3, namely the second target grid, the static obstacle in CT1 All grids inside, i.e. the first target grid. The vehicle model can be converted to a single-point model, so that the grids that will collide with obstacles can be easily calculated regardless of the position of the vehicle.

在一些实施例中,所述根据所述障碍物的信息,确定车辆不可行驶的第一栅格集合,还包括:根据车辆边缘到车辆中心点的距离,确定第一半径;分别以所述静态障碍物的边缘线各点和所述可行驶区域边缘线各点为圆心,以所述第一半径为半径,确定多个圆;将所述多个圆占据的各第三目标栅格加入所述第一栅格集合。In some embodiments, the determining the first grid set that the vehicle cannot drive according to the information of the obstacle further includes: determining the first radius according to the distance from the edge of the vehicle to the center point of the vehicle; Each point on the edge line of the obstacle and each point on the edge line of the drivable area is the center of the circle, and the first radius is used as the radius to determine a plurality of circles; each third target grid occupied by the plurality of circles is added to all the third target grids. Describe the first grid set.

本实施例中,为了扩大不可行驶栅格的范围,可以将车辆的实际的尺寸考虑进去,而且为了简化计算可以仅考虑车辆边缘到车辆中心点的额最短距离。在具体实现过程中,可以设车辆边缘到车辆中心点的最短距离为μ,例如μ可以等于半车宽。则可以以道路边缘与静态障碍物边缘点为圆心,半径r=μ作圆,得到多个圆。当车辆中心位于圆内部栅格时,不论车辆处于什么姿态,都会与障碍物发生碰撞。基于此,各圆所占据的第三目标栅格的代价值也被赋予ρmax=1,至此,所有未被赋值的栅格,都至少有一种可能姿态,使车辆不与障碍物发生碰撞。In this embodiment, in order to expand the range of the non-drivable grid, the actual size of the vehicle may be considered, and in order to simplify the calculation, only the shortest distance from the edge of the vehicle to the center point of the vehicle may be considered. In the specific implementation process, the shortest distance from the edge of the vehicle to the center point of the vehicle may be set as μ, for example, μ may be equal to the half vehicle width. Then, the edge of the road and the edge of the static obstacle can be used as the center of the circle, and the radius r=μ can be used as a circle to obtain a plurality of circles. When the center of the vehicle is on the inner grid of the circle, it will collide with obstacles regardless of the vehicle's attitude. Based on this, the cost value of the third target grid occupied by each circle is also assigned ρ max =1. So far, all grids that have not been assigned have at least one possible attitude, so that the vehicle does not collide with obstacles.

在一些实施例中,所述分别以所述静态障碍物的边缘线各点和所述可行驶区域边缘线各点为圆心,以所述第一半径为半径,确定多个圆之前,还包括:根据车辆的当前速度,确定安全裕量;根据所述第一半径和所述安全裕量,确定第二半径;分别以所述静态障碍物的边缘线各点和所述可行驶区域边缘线各点为圆心,以所述第二半径为半径,确定多个圆。In some embodiments, before determining the plurality of circles, the method further includes taking each point of the edge line of the static obstacle and each point of the edge line of the drivable area as the center of the circle and the first radius as the radius, before determining the plurality of circles. : Determine the safety margin according to the current speed of the vehicle; determine the second radius according to the first radius and the safety margin; use the points on the edge line of the static obstacle and the edge line of the drivable area respectively Each point is the center of the circle, and a plurality of circles are determined with the second radius as the radius.

本实施例中,考虑到在工程实践中,由于车辆控制并非完全精确,基于此可以设置安全裕量,防止因控制精度不够而导致车辆与障碍物发生碰撞。安全裕量大小与控制精度相关,可以是车辆自身速度的函数。车辆速度越快,控制精度也随之变差,就可以针对更大的车速设置更大的安全裕量。因此,可以考虑安全裕量后的半径r=μ+S(v)。应用该半径按照上述方式进行作圆,得到各圆所占据的第三目标栅格。In this embodiment, considering that in engineering practice, since the vehicle control is not completely accurate, a safety margin can be set based on this to prevent the vehicle from colliding with obstacles due to insufficient control accuracy. The size of the safety margin is related to the control accuracy and can be a function of the vehicle's own speed. The faster the vehicle is, the worse the control accuracy is, and a larger safety margin can be set for higher vehicle speeds. Therefore, the radius r=μ+S(v) after the safety margin can be considered. Using this radius to make circles in the above-mentioned manner, the third target grid occupied by each circle is obtained.

在一些实施例中,所述驾驶态势认知图包括障碍物高度与置信度态势图和障碍物速度大小及方向态势图;所述根据所述障碍物的信息,确定车辆不可行驶的第一栅格集合,包括:根据所述障碍物高度与置信度态势图中动态障碍物的位置信息,确定所述动态障碍物自身占据的各第四目标栅格,并将所述第四目标栅格加入所述第一栅格集合;根据所述障碍物速度大小及方向态势图中动态障碍物的速度,对所述动态障碍物自身占据的各栅格进行膨胀操作,并将膨胀后新增的各第五目标栅格加入所述第一栅格集合。In some embodiments, the driving situation awareness map includes a situation map of obstacle heights and confidence levels, and a situation map of obstacle speed and direction; the first grid is determined according to the information of the obstacles where the vehicle cannot be driven. The grid set includes: determining each fourth target grid occupied by the dynamic obstacle itself according to the position information of the dynamic obstacle in the obstacle height and the confidence level situation map, and adding the fourth target grid to the the first grid set; according to the speed of the obstacle and the speed of the dynamic obstacle in the directional situation diagram, the expansion operation is performed on each grid occupied by the dynamic obstacle itself, and the newly added grids are expanded after expansion. A fifth target grid is added to the first grid set.

本实施例中,对于动态障碍物,除考虑将CT2中动态障碍物本身占据的各第四目标栅格确定为不可行驶栅格外,还可以根据CT3中的动态障碍物的速度,对动态障碍在速度方向上进行膨胀操作。将膨胀新增的第五目标栅格也确定为不可行驶栅格。速度越快,则膨胀范围越大,即需要膨胀的栅格数量越多,将障碍物未来可能状态对当前路径规划产生的影响也考虑在内。In this embodiment, for the dynamic obstacle, in addition to considering the determination of each fourth target grid occupied by the dynamic obstacle itself in CT2 as a non-drivable grid, the dynamic obstacle can also be determined according to the speed of the dynamic obstacle in CT3. The expansion operation is performed in the direction of velocity. The fifth target grid added by expansion is also determined as a non-drivable grid. The faster the speed, the larger the expansion range, that is, the more grids need to be expanded, and the influence of the possible future states of obstacles on the current path planning is also taken into account.

303、根据所述第一栅格集合和所述先验规划轨迹,对第二栅格集合中每个栅格进行代价值赋值;所述第二栅格集合包括所述驾驶态势认知图中除第一栅格集合外的各栅格。303. According to the first grid set and the prior planning trajectory, assign a cost value to each grid in the second grid set; the second grid set includes the driving situation awareness map. Each grid except the first grid set.

在一些实施例中,所述根据所述第一栅格集合和所述先验规划轨迹,对第二栅格集合中每个栅格进行代价值赋值,包括:In some embodiments, the performing cost value assignment to each grid in the second grid set according to the first grid set and the prior planning trajectory includes:

针对所述第二栅格集合中的每个第六目标栅格,根据所述第六目标栅格与所述第一栅格集合中距离所述第六目标栅格最近的栅格之间的第一距离,和所述第六目标栅格与所述先验规划轨迹之间的第二距离,确定所述第六目标栅格的代价值。For each sixth target grid in the second grid set, according to the difference between the sixth target grid and the grid closest to the sixth target grid in the first grid set The first distance, and the second distance between the sixth target grid and the a priori planned trajectory, determine the cost value of the sixth target grid.

可选地,所述第六目标栅格的代价值与所述第一距离成反比,且与所述第二距离成正比。Optionally, the cost value of the sixth target grid is inversely proportional to the first distance and proportional to the second distance.

在一些实施例中,所述根据所述第六目标栅格与所述第一栅格集合中距离所述第六目标栅格最近的栅格之间的第一距离,和所述第六目标栅格与所述先验规划轨迹之间的第二距离,确定所述第六目标栅格的代价值,包括:In some embodiments, according to the first distance between the sixth target grid and the grid closest to the sixth target grid in the first grid set, and the sixth target The second distance between the grid and the prior planning trajectory, to determine the cost value of the sixth target grid, includes:

根据所述第一距离、所述第二距离和衰减参数,确定所述第六目标栅格的代价值;所述衰减参数与所述代价值随所述第一距离增大而发生衰减的衰减速度成反比。The cost value of the sixth target grid is determined according to the first distance, the second distance and the attenuation parameter; the attenuation parameter and the cost value are attenuated as the first distance increases Speed is inversely proportional.

在一些实施例中,所述根据所述第六目标栅格与所述第一栅格集合中距离所述第六目标栅格最近的栅格之间的第一距离,和所述第六目标栅格与所述先验规划轨迹之间的第二距离,确定所述第六目标栅格的代价值,包括:In some embodiments, according to the first distance between the sixth target grid and the grid closest to the sixth target grid in the first grid set, and the sixth target The second distance between the grid and the prior planning trajectory, to determine the cost value of the sixth target grid, includes:

根据所述第一距离、所述第二距离和权重参数,确定所述第六目标栅格的代价值;所述权重参数与所述第一距离对所述第六目标栅格的代价值的影响力度成正比,且与所述第二距离对所述第六目标栅格的代价值的影响力度成反比。Determine the cost value of the sixth target grid according to the first distance, the second distance and the weight parameter; the weight parameter and the cost value of the sixth target grid from the first distance The influence strength is proportional to and inversely proportional to the influence strength of the second distance on the cost value of the sixth target grid.

示例性的,以下综合考虑障碍物位置信息与先验规划轨迹,计算驾驶态势认知图中除第一栅格集合外的剩余栅格的代价值,也即第二栅格集合中各第六目标栅格的代价值。计算第六目标栅格的代价值时,可以不考虑车辆行驶至第六目标栅格时的角度,而仅考虑第六目标栅格与障碍物及先验规划轨迹之间的相对位置。基于此,可以设计如下势函数进行代价值的计算:Exemplarily, the following comprehensively considers the obstacle position information and the prior planning trajectory, and calculates the cost value of the remaining grids in the driving situation awareness map except the first grid set, that is, each sixth grid in the second grid set is calculated. The cost value of the target raster. When calculating the cost value of the sixth target grid, the angle when the vehicle travels to the sixth target grid may not be considered, but only the relative positions between the sixth target grid and the obstacle and the prior planned trajectory are considered. Based on this, the following potential function can be designed to calculate the cost value:

Figure BDA0003455527600000081
Figure BDA0003455527600000081

其中,dobs(i,j)为当前栅格到最近的一个不可行驶栅格的欧式距离;dtra(i,j)为当前栅格到先验规划轨迹的欧式距离。第一个乘数描述势函数随dobs(i,j)增加而衰减,衰减参数α是正常数,描述势函数随aobs(l,j)的衰减速度,α越大则曲线越平缓,说明势函数随dobs(i,j)衰减的慢,反之亦然。第二个乘数描述势函数随dtra(i,j)增加而增加,距离先验规划轨迹越近,此项数值越小,反之亦然。权重参数P是正常数,描述在势函数计算中,dtra(i,j)与dobs(i,j)之间的权重关系。β越小,势函数计算中先验规划轨迹所占权重越高,设置β越小越倾向于沿先验规划轨迹行驶;β越大,势函数计算中先验规划轨迹所占权重越低,设置β越大越倾向于远离障碍物行驶,而对于偏离先验规划轨迹距离不敏感。p(i,j)的值域为(0,1],随dobs(i,j)增加而增大,随dtra(i,j)增加而减小。当dobs(i,j)→0时,ρ(i,j)→1,势函数在可行驶栅格与不可行驶栅格的分界线处连续。对于固定的dobs(i,j),p(i,j)随dtra(i,j)的减小而减小,说明越靠近先验规划轨迹的栅格,其势函数越小,选择该栅格所付出的代价也越小。Among them, d obs (i, j) is the Euclidean distance from the current grid to the nearest non-drivable grid; d tra (i, j) is the Euclidean distance from the current grid to the prior planned trajectory. The first multiplier describes the decay of the potential function with the increase of d obs (i, j). The decay parameter α is a constant, which describes the decay speed of the potential function with a obs (l, j). The larger the α, the smoother the curve. Explain that the potential function decays slowly with d obs (i, j) and vice versa. The second multiplier describes that the potential function increases as d tra (i, j) increases, and the closer to the prior planned trajectory, the smaller the value of this term, and vice versa. The weight parameter P is a constant, which describes the weight relationship between d tra (i, j) and d obs (i, j) in the calculation of the potential function. The smaller the β, the higher the weight of the prior planning trajectory in the potential function calculation, the smaller the setting β, the more likely to drive along the prior planning trajectory; the larger the β, the lower the weight of the prior planning trajectory in the potential function calculation, The larger the setting β, the more likely it is to drive away from obstacles, but is insensitive to the deviation from the prior planned trajectory distance. The value range of p(i, j) is (0, 1], which increases with the increase of d obs (i, j) and decreases with the increase of d tra (i, j). When d obs (i, j) →0, ρ(i,j)→1, the potential function is continuous at the boundary between the drivable grid and the non-drivable grid. For a fixed d obs (i, j), p(i, j) varies with d The decrease of tra (i, j) decreases, indicating that the closer to the grid of the prior planning trajectory, the smaller the potential function, and the smaller the cost of selecting the grid.

代价值计算的过程可参考图5。如图5所示,左边图示意了驾驶认知态势图中的障碍物分布,中间图示意了对不可行驶栅格进行赋值后的伪构形空间,右边图示意了对可行驶栅格进行势函数计算代价值后的驾驶认知态势图。颜色越深的栅格被赋值的代价值越大,颜色越浅的栅格被赋值的代价值越小,并且有图可知,离障碍物越远的区域被赋值的代价值会变小。The process of calculating the cost value can refer to Figure 5. As shown in Figure 5, the left figure shows the distribution of obstacles in the driving cognitive situation map, the middle figure shows the pseudo-configuration space after assigning the non-drivable grid, and the right figure shows the potential of the drivable grid. The driving cognitive situation diagram after the function calculates the cost value. The darker grid is assigned a greater cost value, and the lighter color grid is assigned a smaller cost value, and the figure shows that the area farther away from the obstacle is assigned a smaller cost value.

本实施例中,势函数综合考虑了栅格到障碍物的距离与偏离先验规划轨迹的距离,为三维空间{x,y,θ}的路径搜索提供了合适的代价值。可以通过调节势函数的两个参数α,β改变函数值随dobs(i,j)、dtra(i,j)的变化关系。由于不同的驾驶行为,有些侧重沿先验规划轨迹行驶,有些侧重避开障碍物,因此不同驾驶行为需通过调节参数α,β,选择不同侧重的势函数。In this embodiment, the potential function comprehensively considers the distance from the grid to the obstacle and the distance from the a priori planned trajectory, which provides a suitable cost value for the path search in the three-dimensional space {x, y, θ}. The relationship between the function value and d obs (i, j) and d tra (i, j) can be changed by adjusting the two parameters α and β of the potential function. Due to different driving behaviors, some focus on driving along the prior planned trajectory, and some focus on avoiding obstacles. Therefore, different driving behaviors need to adjust the parameters α, β, and select potential functions with different emphasis.

304、根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。304. According to the cost value of each grid in the driving situation awareness map, obtain the target path of the vehicle through heuristic search.

本实施例中步骤304与步骤203相类似,此处不再赘述。In this embodiment, step 304 is similar to step 203, and details are not repeated here.

本实施例提供的路径规划方法,通过对不可行驶栅格赋值最大代价值,对非不可行驶栅格,根据先验规划轨迹与障碍物的位置信息进行代价值的赋值,能够在简化运算的前提下对各栅格赋予准确的代价值,此外,针对非不可行驶栅格,通过巧妙设计的势函数,根据第一距离、第二距离、权重参数、衰减参数,便捷的获得各栅格合理的代价值,为后续路径的快速准确的搜索打好基础,并且权重参数和衰减参数的调节可以适用于不同的驾驶行为,应用场景广泛。The path planning method provided in this embodiment, by assigning the maximum cost value to the non-drivable grid, assigns the cost value to the non-drivable grid according to the location information of the a priori planned trajectory and the obstacle, which can simplify the operation on the premise of Next, assign accurate cost values to each grid. In addition, for non-drivable grids, through cleverly designed potential functions, according to the first distance, second distance, weight parameters, and attenuation parameters, the reasonable value of each grid can be easily obtained. The cost value lays a solid foundation for the fast and accurate search of the subsequent path, and the adjustment of the weight parameters and attenuation parameters can be applied to different driving behaviors and has a wide range of application scenarios.

图6为本发明实施例提供的路径规划方法的流程示意图三。如图6所示,在上述实施例的基础上,例如在图2所示实施例的基础上,本实施例对启发式搜索采用的估值函数进行了详细说明,该方法包括:FIG. 6 is a third schematic flowchart of a path planning method provided by an embodiment of the present invention. As shown in FIG. 6 , on the basis of the above embodiment, for example, on the basis of the embodiment shown in FIG. 2 , the present embodiment describes in detail the evaluation function used in the heuristic search, and the method includes:

601、获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格。601. Obtain a driving situation awareness map, wherein the driving situation awareness map is a spatial layout diagram of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is divided into for multiple grids.

602、根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值。602. According to the information of the obstacle and the a priori planned trajectory, assign a cost value to each grid in the driving situation awareness map.

本实施例中步骤601至602与上述实施例中步骤201至步骤202相类似,此处不再赘述。Steps 601 to 602 in this embodiment are similar to steps 201 to 202 in the above-mentioned embodiment, and are not repeated here.

603、根据所述驾驶态势认知图中各栅格的代价值,基于第一估值函数和第二估值函数,进行启发式搜索,获得车辆的目标路径;所述第一估值函数与车辆可转向角度范围相关,所述第二估值函数与障碍物的位置信息相关。603. According to the cost value of each grid in the driving situation awareness map, based on the first evaluation function and the second evaluation function, perform a heuristic search to obtain the target path of the vehicle; the first evaluation function and The steerable angle range of the vehicle is related, and the second evaluation function is related to the position information of the obstacle.

本实施例中,车辆路径搜索可以在三维空间{x,y,θ}进行,这是因为对于同一栅格,虽然车辆中心都位于该栅格,但车辆的朝向可能会有多种,不同的朝向对应着多种不同的车辆姿态。同一个栅格中部分的车辆姿态有利于车辆驶向目标位姿,也有部分的车辆姿态倾向于使车辆偏离目标位姿。对于距离障碍物较近的栅格,有些姿态是无碰撞的,而有些姿态会与障碍物发生碰撞。由于将车辆抽象成为质点时,并未严格计算构形空间

Figure BDA0003455527600000101
仅以车辆边缘到车辆中心点的最短距离μ为半径,进行碰撞判断,因此势函数ρ(i,j)=ρmax=1只是碰撞发生的充分而非必要条件。然而,在实际搜索中,对于距离不可行驶栅格较近的栅格,需对其对应的车辆位姿进行碰撞检测。此外,路径还需要满足车辆的动力学要求,基于此,下面介绍如何设计启发式搜索算法,保证搜索得到的路径满足既能满足车辆动力学要求,并且能够加快搜索速度。In this embodiment, the vehicle path search can be performed in the three-dimensional space {x, y, θ}, because for the same grid, although the center of the vehicle is located in the grid, there may be various vehicle orientations. The orientation corresponds to a variety of different vehicle poses. Some vehicle poses in the same grid are favorable for the vehicle to drive towards the target pose, and some vehicle poses tend to make the vehicle deviate from the target pose. For grids that are closer to the obstacle, some poses are collision-free, and some poses collide with the obstacle. Since the vehicle is abstracted into a mass point, the configuration space is not strictly calculated
Figure BDA0003455527600000101
Only the shortest distance μ from the vehicle edge to the center point of the vehicle is used as the radius to judge the collision, so the potential function ρ(i,j)= ρmax =1 is only a sufficient but not a necessary condition for the collision to occur. However, in the actual search, for grids that are close to the non-drivable grid, collision detection needs to be performed on the corresponding vehicle poses. In addition, the path also needs to meet the dynamic requirements of the vehicle. Based on this, the following describes how to design a heuristic search algorithm to ensure that the searched path can meet the vehicle dynamics requirements and speed up the search.

本实施例提供的启发式搜索算法中,搜索空间被栅格离散化,每个栅格对应待搜索的架势态势图中的一个节点,栅格之间的连通性形成节点之间的边。并且,驾驶态势认知图的每个栅格(i,j)均关联了一个连续的方向角θ∈[0,2π),对应车辆在该栅格时的朝向。搜索将在驾驶态势认知图的三维空间{i,j,θ}上进行。In the heuristic search algorithm provided in this embodiment, the search space is discretized by grids, each grid corresponds to a node in the posture graph to be searched, and the connectivity between grids forms an edge between nodes. In addition, each grid (i, j) of the driving situation awareness map is associated with a continuous direction angle θ∈[0, 2π), which corresponds to the direction of the vehicle on the grid. The search will be performed on the three-dimensional space {i, j, θ} of the driving situation awareness map.

具体实现过程中,从起始节点开始,若当前扩展节点的子节点中包括目标节点,则结束搜索,若当前扩展节点的子节点中不包括目标节点,则将当前节点的多个子节点作为待扩展节点加入扩展列表中,并根据估值函数分别计算多个待扩展节点的路径总价值,按照总价值的大小进行排序,选定扩展列表中路径总价值最小的待扩展节点为被扩展节点,即当前扩展节点,重复上述步骤,直至扩展到目标节点。In the specific implementation process, starting from the starting node, if the target node is included in the child nodes of the current extension node, the search is ended. The expansion node is added to the expansion list, and the total value of the paths of multiple nodes to be expanded is calculated according to the evaluation function, sorted according to the size of the total value, and the node to be expanded with the smallest total path value in the expansion list is selected as the expanded node. That is, the current extension node, repeat the above steps until the target node is extended.

在本实施例中,需要注意的是,从扩展列表中按照上述方式选定被扩展节点后,可以按照如下规则获取当前扩展节点的子节点,进行扩展。首先,在车辆动力学模型的约束下,设车辆当前速度所对应的最大转角为γ,在角度范围[-γ,γ]之间,平均选取n个转角,按照车辆动力学模型使车辆前进一小段距离δ,产生n个新状态作为当前扩展节点的子节点。其次,针对每个新状态,确定所述新状态落入的栅格。如果出现该栅格已被扩展过的情况,则根据估值函数计算新扩展出的状态对应的路径的总代价值。如果新路径总代价值小于到达该栅格原有路径的总代价值,则更新到达该栅格的路径与总代价值,同时更新该栅格在扩展列表中的排序。则重复此过程,直到扩展出的新状态,与目标位姿的误差小于阈值。In this embodiment, it should be noted that, after the node to be expanded is selected from the expansion list in the above manner, the child nodes of the current expansion node can be obtained and expanded according to the following rules. First, under the constraints of the vehicle dynamics model, let the maximum turning angle corresponding to the current speed of the vehicle be γ, and select n turns on average between the angle range [-γ, γ], and make the vehicle move forward one step according to the vehicle dynamics model. A small distance δ generates n new states as children of the current extended node. Second, for each new state, the grid into which the new state falls is determined. If the grid has been expanded, the total cost value of the path corresponding to the newly expanded state is calculated according to the evaluation function. If the total cost value of the new path is less than the total cost value of the original path to the grid, the path to the grid and the total cost value are updated, and the sorting of the grid in the expanded list is updated. This process is repeated until the extended new state has an error with the target pose that is less than the threshold.

由于每个新状态的产生,均遵循车辆动力学模型,因此搜索出的路径是可被车辆执行的。方向角θ连续变化,即便这些新状态落于同一栅格,也都属于不同的状态。由于状态总数呈指数级别增加,所以根据合适的估值函数,进行启发式搜索,合理确定节点扩展顺序,才能够实现在满足实时性要求的前提下,搜索出可用路径。车辆的路径规划,既不能与障碍物发生碰撞,又要符合车辆动力学限制。基于此,本实施例采用第一估值函数和第二估值函数,两个估值函数,来分别考虑这两个限制因素,综合使用这两个估值函数进行启发式搜索。Since the generation of each new state follows the vehicle dynamics model, the searched path is executable by the vehicle. The direction angle θ changes continuously, even if these new states fall in the same grid, they all belong to different states. Since the total number of states increases exponentially, a heuristic search is performed according to a suitable evaluation function, and the node expansion order is reasonably determined, so that the available paths can be searched under the premise of meeting the real-time requirements. The path planning of the vehicle must not collide with obstacles, but also meet the vehicle dynamics constraints. Based on this, the present embodiment adopts the first evaluation function and the second evaluation function, two evaluation functions, respectively, to consider these two restriction factors, and comprehensively use the two evaluation functions to perform heuristic search.

具体的,所述驾驶态势认知图中的每个栅格均对应一个节点,所述根据第一估值函数和第二估值函数,进行启发式搜索,可以具体包括以下步骤:Specifically, each grid in the driving situation awareness map corresponds to a node, and performing the heuristic search according to the first evaluation function and the second evaluation function may specifically include the following steps:

根据所述驾驶态势认知图中各栅格的代价值,基于所述第一估值函数,计算待扩展节点的第一路径总价值。According to the cost value of each grid in the driving situation awareness map, and based on the first evaluation function, the total value of the first path of the node to be expanded is calculated.

根据所述驾驶态势认知图中各栅格的代价值,基于所述第二估值函数,计算所述待扩展节点的第二路径总价值。According to the cost value of each grid in the driving situation awareness map, and based on the second evaluation function, the total value of the second path of the node to be expanded is calculated.

将所述第一路径总价值和所述第二路径总价值进行比较,根据比较结果确定待扩展节点的第三路径总价值。The total value of the first path is compared with the total value of the second path, and the total value of the third path of the node to be expanded is determined according to the comparison result.

根据所述待扩展节点的第三路径总价值,进行启发式搜索,获得车辆的目标路径。According to the total value of the third path of the node to be expanded, a heuristic search is performed to obtain the target path of the vehicle.

在一些实施例中,所述根据所述驾驶态势认知图中各栅格的代价值,基于所述第一估值函数,计算待扩展节点的第一路径总价值,可以包括:In some embodiments, calculating the total value of the first path of the node to be expanded based on the first evaluation function according to the cost value of each grid in the driving situation awareness map may include:

将所述待扩展节点的可转向角度范围进行离散化,得到多个离散状态。The steerable angle range of the node to be expanded is discretized to obtain a plurality of discrete states.

根据车辆运动模型,计算所述多个离散状态分别对应的最短路径的总价值。Calculate the total value of the shortest paths corresponding to the plurality of discrete states according to the vehicle motion model.

通过查表法,从多个最短路径的总价值中选取最小值对应的最短路径作为所述待扩展节点的最短路径。Through the table lookup method, the shortest path corresponding to the minimum value is selected from the total value of multiple shortest paths as the shortest path of the node to be expanded.

将所述待扩展节点的最短路径的总价值与所述驾驶态势认知图中各栅格的代价值中的最小代价值相乘,得到所述待扩展节点的第一路径总价值。The total value of the shortest path of the node to be expanded is multiplied by the minimum cost value among the cost values of the grids in the driving situation awareness map to obtain the total value of the first path of the node to be expanded.

本实施例中,第一估值函数假设环境中没有障碍物,只考虑车辆动力学限制,计算三维空间状态{i,j,θ}到目标位姿符合车辆动力学要求的最短路径。由于该最短路径假设环境中没有障碍物,因此对方向角θ进行离散化后,可以离线枚举计算并保存每个离散状态到目标位姿的最短路径。在实时计算时,可以采用查表法,快速获取最短路径。将该最短路径的总价值乘以驾驶态势认知图中栅格的最小代价值ρmin,即可得到第一估值函数的函数值,即第一路径总价值。第一估值函数对偏离目标位姿的位置及朝向进行了惩罚,防止无用支路大量扩展,综合考虑车辆朝向与车辆动力学限制,大幅提升了第一估值函数的有效性。In this embodiment, the first evaluation function assumes that there are no obstacles in the environment, and only considers the vehicle dynamics constraints, and calculates the shortest path from the three-dimensional space state {i, j, θ} to the target pose that meets the vehicle dynamics requirements. Since the shortest path assumes that there are no obstacles in the environment, after discretizing the direction angle θ, the shortest path from each discrete state to the target pose can be calculated and saved offline. In real-time calculation, the table look-up method can be used to quickly obtain the shortest path. By multiplying the total value of the shortest path by the minimum cost value ρ min of the grid in the driving situation awareness map, the function value of the first evaluation function, that is, the total value of the first path can be obtained. The first evaluation function penalizes the position and orientation that deviates from the target pose, preventing a large number of useless branches from expanding, and comprehensively considering the vehicle orientation and vehicle dynamics constraints, which greatly improves the effectiveness of the first evaluation function.

需要说明的是,第一估值函数的第一路径总价值除上述通过最短路径的总价值乘以驾驶态势认知图中栅格的最小代价值ρmin得到以外,还可以通过将最短路径的总价值乘以驾驶态势认知图中该最短路径所经各栅格的平均代价值得到,还可以采用其他方式,具体可以根据需要进行设定,本实施例对此不做限定。It should be noted that the total value of the first path of the first evaluation function can be obtained by multiplying the above-mentioned total value of the shortest path by the minimum cost value ρ min of the grid in the driving situation awareness map. The total value is obtained by multiplying the average cost value of the grids passed by the shortest path in the driving situation awareness map, and other methods may also be used, which may be specifically set as required, which is not limited in this embodiment.

在一些实施例中,所述根据所述驾驶态势认知图中各栅格的代价值,基于所述第二估值函数,计算所述待扩展节点的第二路径总价值,包括:In some embodiments, calculating the total value of the second path of the node to be expanded based on the second evaluation function according to the cost value of each grid in the driving situation awareness map includes:

通过动态规划算法,计算所述待扩展节点的最短路径的总价值。Through a dynamic programming algorithm, the total value of the shortest path of the node to be expanded is calculated.

将所述待扩展节点的最短路径的总价值与所述驾驶态势认知图中各栅格的代价值中的最小代价值相乘,得到所述待扩展节点的第二路径总价值。The total value of the shortest path of the node to be expanded is multiplied by the minimum cost value among the cost values of each grid in the driving situation awareness map to obtain the total value of the second path of the node to be expanded.

具体的,第二估值函数假设车辆无动力学限制,即可以原地任意转向,仅考虑环境中的障碍物分布。由于车辆可以原地任意转向,因此三维空间状态{i,j,θ}可以退化为二维空间状态[i,j},只要在二维空间中计算各栅格到目标位姿的无碰撞轨迹。由于代价值p(i,j)=ρmax=1对应任何位姿都会发生碰撞的栅格,则ρ(i,j)<1的栅格至少有一种位姿可不与障碍物发生碰撞。在车辆没有动力学限制的条件下,ρ(i,j)=1的栅格为不可驶入栅格,而ρ(i,j)<1的所有栅格均为可用栅格,基于此可以将驾驶态势认知图中的栅格按是否可以驶入进行二值化。此时,非碰撞最短路径可由动态规划算法快速计算。将该最短路径的总价值乘以驾驶态势认知图中代价值的最小值Pmin,即可得到第二估值函数的函数值,即第二路径总价值。第二估值函数可以引导搜索方向,防止搜索陷入死胡同或需要绕远才能到达目的位姿的方向。Specifically, the second evaluation function assumes that the vehicle has no dynamic constraints, that is, it can turn arbitrarily in place, and only considers the distribution of obstacles in the environment. Since the vehicle can turn arbitrarily in situ, the three-dimensional space state {i, j, θ} can be degenerated into a two-dimensional space state [i, j}, as long as the collision-free trajectory from each grid to the target pose is calculated in the two-dimensional space . Since the cost value p(i, j) = ρ max = 1 corresponds to a grid that collides with any pose, the grid with ρ(i, j) < 1 has at least one pose that does not collide with an obstacle. Under the condition that the vehicle has no dynamic constraints, the grid with ρ(i, j) = 1 is the inaccessible grid, and all the grids with ρ(i, j) < 1 are available grids. Based on this, we can Binarize the grid in the driving situation awareness map according to whether it can be driven. At this time, the non-collision shortest path can be quickly calculated by the dynamic programming algorithm. The function value of the second evaluation function, that is, the total value of the second path, can be obtained by multiplying the total value of the shortest path by the minimum value P min of the cost value in the driving situation awareness map. The second evaluation function can guide the search direction, preventing the search from falling into a dead end or requiring a detour to reach the direction of the target pose.

需要说明的是,第二估值函数的第二路径总价值除上述通过最短路径的总价值乘以驾驶态势认知图中栅格的最小代价值ρmin得到以外,还可以通过将最短路径的总价值乘以驾驶态势认知图中该最短路径所经各栅格的平均代价值得到,还可以采用其他方式,具体可以根据需要进行设定,本实施例对此不做限定。It should be noted that the total value of the second path of the second evaluation function can be obtained by multiplying the above-mentioned total value of the shortest path by the minimum cost value ρ min of the grid in the driving situation awareness graph. The total value is obtained by multiplying the average cost value of the grids passed by the shortest path in the driving situation awareness map, and other methods may also be used, which may be specifically set as required, which is not limited in this embodiment.

可选地,所述将所述第一路径总价值和所述第二路径总价值进行比较,根据比较结果确定待扩展节点的第三路径总价值,可以包括:将所述第一路径总价值和所述第二路径总价值中的较大值,确定为待扩展节点的第三路径总价值。Optionally, the comparing the total value of the first path with the total value of the second path, and determining the total value of the third path of the node to be expanded according to the comparison result may include: comparing the total value of the first path. and the larger value of the total value of the second path is determined as the total value of the third path of the node to be expanded.

具体的,第一估值函数和第二估值函数在启发式算法中可以单独使用,也可以同时使用。Specifically, the first evaluation function and the second evaluation function may be used independently in the heuristic algorithm, or may be used simultaneously.

本实施例中,为了提高搜索速度,且由于车辆既要满足动力学限制,也要满足无碰撞的要求,因此对于每种状态,估值函数的最终数值取第一估值函数的第一路径总价值和第二估值函数的第二路径总价值中的较大值。对图5中的场景进行启发式搜索,得到路径如图7所示。图7中的左边图包含了障碍物的分布区,右边图包含了目标路径和障碍物的分布。In this embodiment, in order to improve the search speed, and because the vehicle must meet both the dynamic constraints and the collision-free requirements, for each state, the final value of the evaluation function takes the first path of the first evaluation function The greater of the total value and the second path total value of the second evaluation function. A heuristic search is performed on the scene in Figure 5, and the path is obtained as shown in Figure 7. The left image in Figure 7 contains the distribution of obstacles, and the right image contains the distribution of target paths and obstacles.

典型场景下,不采用任何估值函数进行搜索、采用一种估值函数进行搜索、同时采用两种估值函数进行搜索的扩展节点总数,如表1所示。In a typical scenario, the total number of extended nodes that do not use any evaluation function to search, use one evaluation function to search, and use two evaluation functions to search at the same time, as shown in Table 1.

表1估值函数与扩展节点数量的关系Table 1 The relationship between the evaluation function and the number of extension nodes

Figure BDA0003455527600000141
Figure BDA0003455527600000141

如表1所示,采用估值函数能有效减少扩展节点总数。在图7所示的情况下,同时采用两种估值函数效果优于只采用一种估值函数。考虑障碍物位置的估值函数优于考虑车辆动力学性能的估值函数。通常,在非结构化环境中,同时考虑两种估值函数效果优于只采用一种估值函数;两种估值函数之间无明显优劣,与环境中障碍物具体分布有关。As shown in Table 1, using the evaluation function can effectively reduce the total number of extended nodes. In the case shown in Figure 7, the effect of using two evaluation functions at the same time is better than using only one evaluation function. The estimation function considering the position of the obstacle is better than the estimation function considering the vehicle dynamics. Usually, in an unstructured environment, considering two evaluation functions at the same time is better than using only one evaluation function; there is no obvious advantage or disadvantage between the two evaluation functions, which is related to the specific distribution of obstacles in the environment.

本实施例提供的路径规划方法,通过同时采用第一估值函数和第二估值函数进行启发式搜索,既考虑到了车辆朝向与车辆动力学限制,又考虑到了对搜索方向的引导,防止搜索陷入死局,避免绕远路径,从而可以减少扩展节点的数量,减少运算量,快速搜索获得目标路径。In the path planning method provided in this embodiment, by using the first evaluation function and the second evaluation function for heuristic search at the same time, not only the vehicle orientation and vehicle dynamics constraints are considered, but also the guidance of the search direction is taken into account, preventing search Fall into a dead end and avoid detours, so as to reduce the number of extended nodes, reduce the amount of computation, and quickly search to obtain the target path.

图8为本发明实施例提供的路径规划方法的流程示意图四。如图8所示,在上述实施例的基础上,例如在图2所示实施例的基础上,本实施例对目标路径的优化方式进行了详细说明,该方法包括:FIG. 8 is a fourth schematic flowchart of a path planning method provided by an embodiment of the present invention. As shown in FIG. 8 , on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in FIG. 2 , this embodiment describes in detail the optimization method of the target path, and the method includes:

801、获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格。801. Obtain a driving situation awareness map, wherein the driving situation awareness map is a spatial layout diagram of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is divided into for multiple grids.

802、根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值。802. According to the information of the obstacle and the a priori planned trajectory, assign a cost value to each grid in the driving situation awareness map.

803、根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。803. According to the cost value of each grid in the driving situation awareness map, obtain the target path of the vehicle through heuristic search.

本实施例中步骤801至步骤803与上述实施例中步骤201至步骤203相类似,此处不再赘述。Steps 801 to 803 in this embodiment are similar to steps 201 to 203 in the foregoing embodiment, and details are not described herein again.

804、通过共轭梯度下降法,对所述目标路径进行平滑优化,得到优化后的目标路径。804. Perform smooth optimization on the target path by using the conjugate gradient descent method to obtain an optimized target path.

本实施例中,通过启发式搜索获得的车辆的目标路径满足车辆动力学性质,且不与障碍物碰撞,通常情况下,车辆直接跟踪该路径可行驶至目标位姿。然而,该目标路径通常会包含一些不自然的弯,导致额外的方向盘转动,影响乘坐舒适性。基于此,本发明实施例对启发式搜索获得的车辆的目标路径进行了平滑优化。In this embodiment, the target path of the vehicle obtained through the heuristic search satisfies the dynamic properties of the vehicle and does not collide with obstacles. In general, the vehicle can directly track the path and travel to the target pose. However, this target path will often contain some unnatural bends, resulting in additional steering wheel turns, affecting ride comfort. Based on this, the embodiment of the present invention performs smooth optimization on the target path of the vehicle obtained by the heuristic search.

在一些实施例中,可以通过共轭梯度下降法,对所述目标路径进行平滑优化。可选地,该平滑优化步骤可以具体包括:根据目标函数,计算所述目标路径在各顶点处的梯度;根据所述梯度,计算得到使所述目标函数最小化的优化路径;所述目标函数包括顶点到障碍物的安全距离惩罚项、顶点最大曲率惩罚项和路径平滑度的度量项;将所述优化路径作为所述优化后的目标路径。其中,可选地,所述顶点最大曲率惩罚项中最大曲率是根据车辆的车速与最小转弯半径确定的。可选地,所述路径平滑度的度量项为两个连续的相邻顶点位移之间的差值的二次函数。In some embodiments, the target path may be smoothly optimized by conjugate gradient descent. Optionally, the smooth optimization step may specifically include: calculating the gradient of the target path at each vertex according to an objective function; calculating and obtaining an optimization path that minimizes the objective function according to the gradient; the objective function It includes the penalty item of the safe distance from the vertex to the obstacle, the penalty item of the maximum curvature of the vertex, and the measurement item of the smoothness of the path; the optimized path is used as the optimized target path. Wherein, optionally, the maximum curvature in the maximum curvature penalty item of the vertex is determined according to the speed of the vehicle and the minimum turning radius. Optionally, the measure of the path smoothness is a quadratic function of the difference between the displacements of two consecutive adjacent vertices.

示例性的,由于优化后的目标路径的顶点连续变化,不再适合用驾驶态势认知图的栅格粒度描述,本实施例中采用平面直角坐标描述路径顶点。Exemplarily, since the vertices of the optimized target path change continuously, it is no longer suitable to use the grid granularity description of the driving situation awareness graph. In this embodiment, plane rectangular coordinates are used to describe the path vertices.

设平滑前通过启发式搜索获得的目标路径的顶点为pi=(xi,yi),i∈[1,N],顶点pi周边,距顶点pi最近的障碍点为oi,目标路径中两个相邻顶点的位移为Δpi=pi-pi-1,相邻两个顶点与原点夹角的变化量为

Figure BDA0003455527600000151
定义共轭梯度下降法的目标函数如下:Let the vertex of the target path obtained by heuristic search before smoothing be p i =( xi , y i ), i∈[1,N], the periphery of vertex p i , the nearest obstacle point to vertex p i is o i , The displacement of two adjacent vertices in the target path is Δp i = p i -p i-1 , and the change of the angle between the two adjacent vertices and the origin is
Figure BDA0003455527600000151
The objective function of the conjugate gradient descent method is defined as follows:

Figure BDA0003455527600000152
Figure BDA0003455527600000152

其中,第一项为顶点到障碍物的安全距离惩罚项,用于惩罚与障碍物距离较近的顶点,dm为距离安全阈值,到障碍物的距离大于dm的顶点pi是安全无惩罚的;第二项是顶点最大曲率惩罚项,给出每个顶点处曲率的上界,为确保路径符合动力学特性,κm是最大曲率,κm可以根据车速与车辆最小转弯半径确定,超过最大曲率的顶点pi将被惩罚,通常wκ取较大值。σo和σκ是惩罚函数;第三项是路径平滑度的度量项,可以采用多次函数,例如可以采用二次函数实现。wo、wκ、ws为三项各自的权重。Among them, the first item is the penalty item of the safe distance from the vertex to the obstacle, which is used to punish the vertices that are closer to the obstacle, d m is the distance safety threshold, and the vertex p i whose distance to the obstacle is greater than d m is safe without The second term is the maximum curvature penalty term of the vertex, which gives the upper bound of the curvature at each vertex. To ensure that the path conforms to the dynamic characteristics, κ m is the maximum curvature, and κ m can be determined according to the vehicle speed and the minimum turning radius of the vehicle, Vertices pi exceeding the maximum curvature will be penalized, usually w κ takes a large value. σ o and σ κ are penalty functions; the third item is a measure of path smoothness, which can be implemented by multiple functions, such as quadratic functions. w o , w κ , and ws are the respective weights of the three items.

本实施例中,目标函数在每个顶点处可微,下面计算目标函数在顶点处的梯度。In this embodiment, the objective function is differentiable at each vertex, and the gradient of the objective function at the vertex is calculated below.

第一项,安全距离惩罚项:The first item, the safe distance penalty item:

Figure BDA0003455527600000161
Figure BDA0003455527600000161

当|pi-oi|<dm时,梯度为:When |p i -o i |<d m , the gradient is:

Figure BDA0003455527600000162
Figure BDA0003455527600000162

顶点pi处的曲率不仅取决于顶点pi,还取决于前后相邻的两个顶点pi-1,pi+1。顶点pi的角度变化为:The curvature at the vertex pi depends not only on the vertex pi , but also on the two adjacent vertices pi -1 , pi +1 . The angle change of vertex pi is:

Figure BDA0003455527600000163
Figure BDA0003455527600000163

顶点pi处的曲率

Figure BDA0003455527600000164
κi相对pi、pi-1、pi+1三个顶点的梯度分别为: curvature at vertex pi
Figure BDA0003455527600000164
The gradients of κ i relative to the three vertices of p i , p i-1 , and p i+1 are:

Figure BDA0003455527600000165
Figure BDA0003455527600000165

Figure BDA0003455527600000166
Figure BDA0003455527600000166

Figure BDA0003455527600000167
Figure BDA0003455527600000167

其中,

Figure BDA0003455527600000168
in,
Figure BDA0003455527600000168

Figure BDA0003455527600000169
在pi处的梯度可用正交补进行表达与计算,向量a,b的正交补为:
Figure BDA0003455527600000169
The gradient at p i can be expressed and calculated by the orthogonal complement. The orthogonal complement of the vectors a and b is:

Figure BDA00034555276000001610
Figure BDA00034555276000001610

定义如下归一化正交补:The normalized orthogonal complement is defined as follows:

Figure BDA00034555276000001611
Figure BDA00034555276000001611

Figure BDA00034555276000001612
Figure BDA00034555276000001612

则:but:

Figure BDA00034555276000001613
Figure BDA00034555276000001613

Figure BDA00034555276000001614
Figure BDA00034555276000001614

Figure BDA00034555276000001615
Figure BDA00034555276000001615

由此,根据上式计算梯度,采用梯度下降方法,可以计算得到使目标函数最小化的优化后的目标路径。通常,优化后的目标路径比平滑优化前启发式搜索获得的优化路径要更加平滑,能够提供更高的乘坐舒适度。如图9所示,左边图包含目标路径和障碍物分布,右边图包含目标路径、优化后的目标路径和障碍物分布,通过对比可以发现,优化后的目标路径相对于目标路径更加平滑。Therefore, the gradient is calculated according to the above formula, and the optimized target path that minimizes the objective function can be obtained by using the gradient descent method. Generally, the optimized target path is smoother than the optimized path obtained by heuristic search before smooth optimization, which can provide higher ride comfort. As shown in Figure 9, the left graph contains the target path and obstacle distribution, and the right graph contains the target path, the optimized target path, and the obstacle distribution. By comparison, it can be found that the optimized target path is smoother than the target path.

上述目标函数中虽包含与障碍物发生碰撞的惩罚项,倾向于将优化后的目标路径引导至距离障碍物较远的区域,但由于优化过程中综合考虑了车辆动力学限制与路径平滑度两个因素,使得优化后的目标路径有可能存在发生碰撞的顶点。为确保最终的目标路径能够在保证一定平滑度的前提下实现安全无碰撞,在一些实施例中,在通过共轭梯度下降法,对所述目标路径进行平滑优化,得到优化后的目标路径之后,进行了进一步的无碰撞优化处理,如图10所示,该方法具体步骤可以包括:Although the above objective function includes a penalty term for collision with obstacles, it tends to guide the optimized target path to an area far away from the obstacle, but due to the comprehensive consideration of vehicle dynamics constraints and path smoothness in the optimization process This factor makes the optimized target path likely to have colliding vertices. In order to ensure that the final target path can be safe and collision-free on the premise of ensuring a certain smoothness, in some embodiments, the target path is smoothly optimized by the conjugate gradient descent method, and the optimized target path is obtained. , further collision-free optimization processing is performed, as shown in Figure 10, the specific steps of the method may include:

1001、对所述优化后的目标路径的各顶点进行碰撞检测。1001. Perform collision detection on each vertex of the optimized target path.

1002、根据碰撞检测结果,得到最终目标路径,以使车辆根据所述最终目标路径行驶不发生碰撞。1002. Obtain a final target path according to the collision detection result, so that the vehicle travels according to the final target path without collision.

可选地,在一些实施例中1002具体可以包括:Optionally, in some embodiments 1002 may specifically include:

10021、判断碰撞检测结果中是否存在发生碰撞的顶点。若否,则执行步骤10022,若是,则执行步骤10023。10021. Determine whether there is a colliding vertex in the collision detection result. If no, go to step 10022, if yes, go to step 10023.

10022、将所述优化后的目标路径确定为最终目标路径。10022. Determine the optimized target path as the final target path.

10023、根据碰撞检测结果,将所述优化后的目标路径划分为多个子路径。10023. Divide the optimized target path into multiple sub-paths according to the collision detection result.

可选地,所述根据碰撞检测结果,将所述优化后的目标路径划分为多个子路径,可以包括:将发生碰撞的各顶点依次加入碰撞集合;将所述碰撞集合中的各顶点分别替换为所述目标路径中的原始顶点,得到新的碰撞集合;根据所述新的碰撞集合中的各原始顶点,将所述优化后的路径划分为多个子路径。Optionally, dividing the optimized target path into a plurality of sub-paths according to the collision detection result may include: adding each vertex that collided to a collision set in sequence; replacing each vertex in the collision set respectively Obtaining a new collision set for the original vertices in the target path; dividing the optimized path into multiple sub-paths according to each original vertex in the new collision set.

10024、针对每个子路径通过共轭梯度下降法,对所述子路径进行平滑优化,得到新的优化后的目标路径。10024. For each sub-path, perform a smooth optimization on the sub-path by using the conjugate gradient descent method to obtain a new optimized target path.

10025、对新的优化后的目标路径的各顶点进行碰撞检测。10025. Perform collision detection on each vertex of the new optimized target path.

10026、判断碰撞检测结果中是否存在发生碰撞的顶点。若是,则重复执行步骤10023至步骤10025,若否,则执行步骤10027。10026. Determine whether there is a colliding vertex in the collision detection result. If yes, repeat step 10023 to step 10025, if not, execute step 10027.

10027、将当前的新的优化后的目标路径确定为最终目标路径。10027. Determine the current new optimized target path as the final target path.

具体的,对优化后的目标路径上的每个顶点p′i进行碰撞检测,将发生碰撞的顶点顺次加入集合S′。若S′=φ,说明路径安全,结束优化,将优化后的目标路径确定为最终目标路径;若集合S′非空,则将S′中的所有顶点,顺次替换为启发式搜索获得的目标路径中对应的原始顶点。替换后的原始顶点,作为固定的“错点”,顺次记作pa1,pa2,....pak。基于当前路径的起点、终点与k个“错点”将路径分为k+1段。对这k+1段路径分别用梯度下降法进行优化,得到新的优化后的目标路径。Specifically, collision detection is performed on each vertex p'i on the optimized target path, and the collided vertices are added to the set S' in sequence. If S′=φ, it means the path is safe, the optimization ends, and the optimized target path is determined as the final target path; if the set S′ is not empty, then all the vertices in S′ are sequentially replaced with the ones obtained by heuristic search. The corresponding original vertex in the target path. The original vertices after replacement, as fixed "wrong points", are denoted as p a1 , p a2 , ....p ak in sequence. Divide the path into k+1 segments based on the current path's starting point, ending point and k "wrong points". The k+1 segments of the path are optimized by the gradient descent method, and a new optimized target path is obtained.

新的优化后的目标路径仍然无法确保安全,需要对新的优化后的目标路径上的每个顶点进行碰撞检测,若存在发生碰撞的顶点,则迭代执行上述过程(将S′中的所有顶点,顺次替换为启发式搜索获得的目标路径中对应的原始顶点。替换后的原始顶点,作为固定的“错点”,顺次记作pa1,pa2,....pak。基于当前路径的起点、终点与k个“错点”将路径分为k+1段。对这k+1段路径分别用梯度下降法进行优化,得到新的优化后的目标路径)。最极端情况下,路径会迭代退化成为启发式搜索得到的车辆的目标路径。由于目标路径确保了无碰撞,因此经过一定次数的迭代,最终一定可以得到符合车辆动力学特性且无碰撞的优化路径,实现了在保证一定平滑度的前提下实现安全无碰撞。The new optimized target path still cannot ensure safety, and it is necessary to perform collision detection on each vertex on the new optimized target path. , and sequentially replaced with the corresponding original vertices in the target path obtained by heuristic search. The original vertices after replacement, as fixed "wrong points", are sequentially recorded as p a1 , p a2 , ....p ak . Based on The starting point, end point and k "wrong points" of the current path divide the path into k+1 segments. The k+1 segments of the path are optimized by the gradient descent method, and a new optimized target path is obtained). In the most extreme case, the path iteratively degenerates into the target path of the vehicle obtained by the heuristic search. Since the target path ensures collision-free, after a certain number of iterations, an optimized path that conforms to vehicle dynamics and collision-free can be finally obtained, realizing safety and collision-free on the premise of ensuring a certain smoothness.

本实施例提供的路径规划方法,通过共轭梯度下降法,对所述目标路径进行平滑优化,使优化后的目标路径更加平滑,能够减少多余的转弯,避免行驶过程中额外的方向盘转动,提高了乘坐的舒适度。另外,在此基础上,通过对优化后的路径进行无碰撞优化,能够在保证一定平滑度的前提下实现安全无碰撞。In the path planning method provided in this embodiment, the target path is smoothly optimized by the conjugate gradient descent method, so that the optimized target path is smoother, unnecessary turns can be reduced, additional steering wheel rotations during driving are avoided, and the ride comfort. In addition, on this basis, by performing collision-free optimization on the optimized path, safety and collision-free can be achieved on the premise of ensuring a certain smoothness.

图11为本发明实施例提供的路径规划设备的结构示意图。如图11所示,该路径规划设备110包括:获取模块1101、赋值模块1102以及搜索模块1103。FIG. 11 is a schematic structural diagram of a path planning device according to an embodiment of the present invention. As shown in FIG. 11 , the path planning device 110 includes: an acquisition module 1101 , an assignment module 1102 and a search module 1103 .

获取模块1101,用于获取驾驶态势认知图,其中,所述驾驶态势认知图为车辆当前所处环境的空间布局图,包括障碍物的信息和先验规划轨迹,且所述驾驶态势认知图被划分为多个栅格。The acquiring module 1101 is used to acquire a driving situation awareness map, wherein the driving situation awareness map is a spatial layout diagram of the environment where the vehicle is currently located, including information on obstacles and a priori planned trajectory, and the driving situation awareness map is The knowledge map is divided into multiple grids.

赋值模块1102,用于根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值。The assignment module 1102 is configured to assign a cost value to each grid in the driving situation awareness map according to the information of the obstacle and the prior planning trajectory.

搜索模块1103,用于根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。The search module 1103 is configured to obtain the target path of the vehicle through heuristic search according to the cost value of each grid in the driving situation awareness map.

本发明实施例提供的路径规划设备,通过获取模块1101获取驾驶态势认知图,所述驾驶态势认知图被划分为多个栅格,并包括障碍物的信息和先验规划轨迹,赋值模块1102根据所述障碍物的信息和所述先验规划轨迹,对所述驾驶态势认知图中每个栅格进行代价值赋值,搜索模块1103根据所述驾驶态势认知图中各栅格的代价值,通过启发式搜索获得车辆的目标路径。通过对驾驶态势认知图进行代价值赋值,并基于该代价值进行启发式搜索,能够大大简化运算,提高计算效率,从而提高实时性,满足无人驾驶车辆的需求。In the path planning device provided by the embodiment of the present invention, the driving situation awareness map is obtained through the acquisition module 1101, and the driving situation awareness map is divided into multiple grids and includes obstacle information and a priori planning trajectory. The assignment module 1102 According to the information of the obstacle and the a priori planned trajectory, assign a cost value to each grid in the driving situation awareness map, and the search module 1103 assigns a value to each grid according to the driving situation awareness map. The cost value, the target path of the vehicle is obtained through heuristic search. By assigning the cost value to the driving situation cognitive map, and performing heuristic search based on the cost value, the operation can be greatly simplified, the calculation efficiency can be improved, and the real-time performance can be improved to meet the needs of unmanned vehicles.

本发明实施例提供的路径规划设备,可用于执行上述的方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The path planning device provided in the embodiment of the present invention can be used to execute the above-mentioned method embodiments, and its implementation principle and technical effect are similar, and details are not described herein again in this embodiment.

图12是本发明实施例提供的一种电子设备的框图,该设备可以是计算机,消息收发设备,平板设备,医疗设备等,该设备可以设置在无人驾驶车辆上。FIG. 12 is a block diagram of an electronic device provided by an embodiment of the present invention. The device may be a computer, a messaging device, a tablet device, a medical device, etc., and the device may be installed on an unmanned vehicle.

装置120可以包括以下一个或多个组件:处理组件1201,存储器1202,电源组件1203,多媒体组件1204,音频组件1205,输入/输出(I/O)接口1206,传感器组件1207,以及通信组件1208。Device 120 may include one or more of the following components: processing component 1201 , memory 1202 , power supply component 1203 , multimedia component 1204 , audio component 1205 , input/output (I/O) interface 1206 , sensor component 1207 , and communication component 1208 .

处理组件1201通常控制装置120的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1201可以包括一个或多个处理器1209来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1201可以包括一个或多个模块,便于处理组件1201和其他组件之间的交互。例如,处理组件1201可以包括多媒体模块,以方便多媒体组件1204和处理组件1201之间的交互。The processing component 1201 generally controls the overall operation of the device 120, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1201 may include one or more processors 1209 to execute instructions to perform all or part of the steps of the methods described above. Additionally, processing component 1201 may include one or more modules to facilitate interaction between processing component 1201 and other components. For example, processing component 1201 may include a multimedia module to facilitate interaction between multimedia component 1204 and processing component 1201.

存储器1202被配置为存储各种类型的数据以支持在装置120的操作。这些数据的示例包括用于在装置120上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1202可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 1202 is configured to store various types of data to support operations at device 120 . Examples of such data include instructions for any application or method operating on device 120, contact data, phonebook data, messages, pictures, videos, and the like. Memory 1202 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1203为装置120的各种组件提供电力。电源组件1203可以包括电源管理系统,一个或多个电源,及其他与为装置120生成、管理和分配电力相关联的组件。Power supply assembly 1203 provides power to various components of device 120 . Power supply components 1203 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 120 .

多媒体组件1204包括在所述装置120和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1204包括一个前置摄像头和/或后置摄像头。当装置120处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 1204 includes screens that provide an output interface between the device 120 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1204 includes a front-facing camera and/or a rear-facing camera. When the device 120 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1205被配置为输出和/或输入音频信号。例如,音频组件1205包括一个麦克风(MIC),当装置120处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1202或经由通信组件1208发送。在一些实施例中,音频组件1205还包括一个扬声器,用于输出音频信号。Audio component 1205 is configured to output and/or input audio signals. For example, audio component 1205 includes a microphone (MIC) that is configured to receive external audio signals when device 120 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 1202 or transmitted via communication component 1208. In some embodiments, audio component 1205 also includes a speaker for outputting audio signals.

I/O接口1206为处理组件1201和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1206 provides an interface between the processing component 1201 and a peripheral interface module, and the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件1207包括一个或多个传感器,用于为装置120提供各个方面的状态评估。例如,传感器组件1207可以检测到装置120的打开/关闭状态,组件的相对定位,例如所述组件为装置120的显示器和小键盘,传感器组件1207还可以检测装置120或装置120一个组件的位置改变,用户与装置120接触的存在或不存在,装置120方位或加速/减速和装置120的温度变化。传感器组件1207可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1207还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1207还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1207 includes one or more sensors for providing status assessment of various aspects of device 120 . For example, the sensor assembly 1207 can detect the open/closed state of the device 120, the relative positioning of components, such as the display and keypad of the device 120, and the sensor assembly 1207 can also detect changes in the position of the device 120 or a component of the device 120 , the presence or absence of user contact with the device 120 , the orientation or acceleration/deceleration of the device 120 and the temperature change of the device 120 . Sensor assembly 1207 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1207 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1207 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件1208被配置为便于装置120和其他设备之间有线或无线方式的通信。装置120可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1208经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1208还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 1208 is configured to facilitate wired or wireless communication between apparatus 120 and other devices. Device 120 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1208 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1208 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置120可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 120 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1202,上述指令可由装置120的处理器1209执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 1202 including instructions, executable by the processor 1209 of the apparatus 120 to perform the method described above is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当该存储介质中的指令由终端设备的处理器执行时,使得终端设备能够执行上述终端设备的分屏处理方法。A non-transitory computer-readable storage medium, when an instruction in the storage medium is executed by a processor of a terminal device, enables the terminal device to execute the above-mentioned method for split-screen processing of the terminal device.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上路径规划设备执行的路径规划方法。The present application further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above path planning method executed by the path planning device is implemented.

上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium, the above-mentioned readable storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk. A readable storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium may be located in application specific integrated circuits (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the readable storage medium may also exist in the device as discrete components.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

本发明实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上路径规划设备执行的路径规划方法。Embodiments of the present invention further provide a computer program product, including a computer program, which, when executed by a processor, implements the path planning method executed by the above path planning device.

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

Claims (26)

1. A method of path planning, comprising:
the method comprises the steps of obtaining a driving situation cognitive map, wherein the driving situation cognitive map is a space layout map of the current environment of a vehicle, the driving situation cognitive map comprises barrier information and a priori planning track, and the driving situation cognitive map is divided into a plurality of grids;
according to the information of the obstacles and the prior planning track, assigning a cost value to each grid in the driving situation cognitive map;
and obtaining a target path of the vehicle through heuristic search according to the cost value of each grid in the driving situation cognitive map.
2. The method of claim 1, wherein assigning a cost value to each grid in the driving situation cognitive map based on the information of the obstacle and the a priori planned trajectory comprises:
determining a first grid set which cannot be driven by a vehicle according to the information of the obstacles, and assigning a maximum cost value to each grid in the first grid set;
according to the first grid set and the prior planning track, carrying out cost value assignment on each grid in a second grid set; the second grid set comprises grids in the driving situation cognitive map except the first grid set.
3. The method of claim 2, wherein the driving situation recognition map comprises an obstacle height and confidence map and a travelable region edge map; the determining a first grid set which can not be driven by the vehicle according to the information of the obstacles comprises the following steps:
determining each first target grid occupied by a static obstacle in the obstacle height and confidence map and each second target grid outside the travelable region edge in the travelable region edge map;
determining a grid set formed by the first target grid and the second target grid as the first grid set.
4. The method of claim 3, wherein determining the first grid set that the vehicle is not drivable based on the information of the obstacle further comprises:
determining a first radius according to the distance from the edge of the vehicle to the center point of the vehicle;
determining a plurality of circles by respectively taking each point of the edge line of the static obstacle and each point of the edge line of the travelable area as the circle center and taking the first radius as the radius;
adding each third target grid occupied by the plurality of circles to the first grid set.
5. The method according to claim 4, wherein before determining a plurality of circles using the respective points of the edge line of the static obstacle and the points of the edge line of the travelable area as centers of circles and the first radius as radii, further comprising:
determining a safety margin according to the current speed of the vehicle;
determining a second radius according to the first radius and the safety margin;
the determining a plurality of circles respectively by taking each point of the edge line of the static obstacle and each point of the edge line of the travelable area as a circle center and taking the first radius as a radius comprises the following steps:
and determining a plurality of circles by respectively taking each point of the edge line of the static obstacle and each point of the edge line of the travelable area as the circle center and taking the second radius as the radius.
6. The method of claim 2, wherein the driving situation awareness map comprises an obstacle height and confidence map and an obstacle speed and direction map; the determining a first grid set which can not be driven by the vehicle according to the information of the obstacles comprises the following steps:
determining fourth target grids occupied by the dynamic barrier according to the height of the barrier and position information of the dynamic barrier in the confidence coefficient situation diagram, and adding the fourth target grids into the first grid set;
and according to the speed of the obstacle and the speed of the dynamic obstacle in the direction situation diagram, performing expansion operation on each grid occupied by the dynamic obstacle, and adding each newly added fifth target grid after expansion into the first grid set.
7. The method of claim 2, wherein assigning a cost value to each grid in the second grid set according to the first grid set and the a priori planning trajectory comprises:
for each sixth target grid in the second grid set, determining a cost value of the sixth target grid according to a first distance between the sixth target grid and a grid in the first grid set closest to the sixth target grid and a second distance between the sixth target grid and the prior planning trajectory.
8. The method of claim 7, wherein the cost value of the sixth target grid is inversely proportional to the first distance and directly proportional to the second distance.
9. The method of claim 8, wherein determining the cost value for the sixth target grid based on a first distance between the sixth target grid and a grid of the first grid set that is closest to the sixth target grid and a second distance between the sixth target grid and the a priori planned trajectory comprises:
determining a cost value of the sixth target grid according to the first distance, the second distance and a decay parameter; the decay parameter is inversely proportional to a decay rate at which the cost value decays as the first distance increases.
10. The method of claim 8, wherein determining the cost value for the sixth target grid based on a first distance between the sixth target grid and a grid of the first grid set that is closest to the sixth target grid and a second distance between the sixth target grid and the a priori planned trajectory comprises:
determining a cost value of the sixth target grid according to the first distance, the second distance and a weight parameter; the weight parameter is proportional to a strength of the first distance's impact on the cost value of the sixth target grid and inversely proportional to a strength of the second distance's impact on the cost value of the sixth target grid.
11. The method according to claim 1, wherein a grid corresponding to an end point of the prior planned trajectory is a target node, and obtaining a target path of the vehicle by heuristic search according to a cost value of each grid in the driving situation cognitive map comprises:
performing heuristic search based on a first evaluation function and a second evaluation function according to the cost value of each grid in the driving situation cognitive map to obtain a target path of the vehicle; the first estimation function is associated with a vehicle steerable angle range, and the second estimation function is associated with position information of an obstacle.
12. The method of claim 11, wherein each grid in the driving situation awareness graph corresponds to a node, and wherein performing a heuristic search based on the first valuation function and the second valuation function comprises:
calculating the total value of a first path of a node to be expanded based on the first valuation function according to the cost value of each grid in the driving situation cognitive map;
calculating a second path total value of the node to be expanded based on the second evaluation function according to the cost value of each grid in the driving situation cognitive map;
comparing the first path total value with the second path total value, and determining a third path total value of the node to be expanded according to a comparison result;
and carrying out heuristic search according to the total value of the third path of the node to be expanded to obtain a target path of the vehicle.
13. The method according to claim 12, wherein the calculating a first path total value of the node to be expanded based on the first estimation function according to the cost value of each grid in the driving situation cognitive map comprises:
discretizing the steerable angle range of the node to be expanded to obtain a plurality of discrete states;
calculating the total value of the shortest paths corresponding to the discrete states respectively according to a vehicle motion model;
selecting the shortest path corresponding to the minimum value from the total values of the shortest paths as the shortest path of the node to be expanded through a table lookup method;
and multiplying the total value of the shortest path of the node to be expanded by the minimum cost value in the cost values of the grids in the driving situation cognitive map to obtain the total value of the first path of the node to be expanded.
14. The method according to claim 12, wherein the calculating a second path total value of the node to be expanded based on the second estimation function according to the cost value of each grid in the driving situation cognitive map comprises:
calculating the total value of the shortest path of the node to be expanded through a dynamic programming algorithm;
and multiplying the total value of the shortest path of the node to be expanded by the minimum cost value in the cost values of the grids in the driving situation cognitive map to obtain the total value of the second path of the node to be expanded.
15. The method according to any one of claims 1 to 14, wherein after obtaining the target path of the vehicle by a heuristic search according to the cost value of each grid in the driving situation cognitive map, the method further comprises:
and carrying out smooth optimization on the target path by a conjugate gradient descent method to obtain an optimized target path.
16. The method of claim 15, wherein the smoothly optimizing the target path by conjugate gradient descent comprises:
calculating the gradient of the target path at each vertex according to an objective function;
calculating to obtain an optimized path which minimizes the objective function according to the gradient; the objective function comprises a safety distance penalty term from a vertex to an obstacle, a vertex maximum curvature penalty term and a metric term of path smoothness;
and taking the optimized path as the optimized target path.
17. The method of claim 16, wherein the maximum curvature in the vertex maximum curvature penalty term is determined based on a vehicle speed and a minimum turn radius of the vehicle.
18. The method of claim 16, wherein the metric term for path smoothness is a quadratic function of the difference between two consecutive adjacent vertex displacements.
19. The method of claim 15, wherein after the smoothly optimizing the target path by conjugate gradient descent to obtain the optimized target path, further comprising:
performing collision detection on each vertex of the optimized target path;
and obtaining a final target path according to the collision detection result so that the vehicle can run according to the final target path without collision.
20. The method of claim 19, wherein the deriving a final target path based on the collision detection result comprises:
if the collision detection result has a collision vertex, dividing the optimized target path into a plurality of sub-paths according to the collision detection result;
carrying out smooth optimization on each sub-path by a conjugate gradient descent method to obtain a new optimized target path;
performing collision detection on each vertex of the new optimized target path;
if the vertex with the collision exists, repeatedly executing the step of dividing the optimized target path into a plurality of sub-paths according to the collision detection result, performing smooth optimization on the sub-paths by a conjugate gradient descent method aiming at each sub-path to obtain a new optimized target path, performing collision detection on each vertex of the new optimized target path until no vertex with the collision exists, and determining the current new optimized target path as a final target path.
21. The method of claim 20, wherein the dividing the optimized target path into a plurality of sub-paths according to collision detection results comprises
Sequentially adding each vertex with collision into a collision set;
replacing each vertex in the collision set with an original vertex in the target path respectively to obtain a new collision set;
and dividing the optimized path into a plurality of sub-paths according to each original vertex in the new collision set.
22. The method of claim 19, wherein the deriving a final target path based on the collision detection result comprises:
and if no collision vertex exists in the collision detection result, determining the optimized target path as a final target path.
23. A path planning apparatus, comprising:
the system comprises an acquisition module, a judgment module and a display module, wherein the acquisition module is used for acquiring a driving situation cognitive map, the driving situation cognitive map is a spatial layout map of the current environment of a vehicle, the spatial layout map comprises barrier information and a priori planning track, and the driving situation cognitive map is divided into a plurality of grids;
the assignment module is used for assigning a cost value to each grid in the driving situation cognitive map according to the information of the obstacles and the prior planning track;
and the searching module is used for obtaining a target path of the vehicle through heuristic search according to the cost value of each grid in the driving situation cognitive map.
24. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the path planning method of any of claims 1 to 22.
25. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement a path planning method according to any one of claims 1 to 22.
26. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the path planning method according to any one of claims 1 to 22.
CN202210006107.1A 2022-01-04 2022-01-04 Path planning method, device, storage medium and program product Pending CN114371709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210006107.1A CN114371709A (en) 2022-01-04 2022-01-04 Path planning method, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210006107.1A CN114371709A (en) 2022-01-04 2022-01-04 Path planning method, device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN114371709A true CN114371709A (en) 2022-04-19

Family

ID=81142407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210006107.1A Pending CN114371709A (en) 2022-01-04 2022-01-04 Path planning method, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN114371709A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115493600A (en) * 2022-10-12 2022-12-20 江苏盛海智能科技有限公司 Unmanned obstacle path planning method and terminal based on laser radar
CN115597620A (en) * 2022-10-18 2023-01-13 深圳海星智驾科技有限公司(Cn) Path planning method and device, electronic equipment and storage medium
CN115683146A (en) * 2022-11-09 2023-02-03 深圳海星智驾科技有限公司 Path planning method, device, electronic device and storage medium
CN117148848A (en) * 2023-10-27 2023-12-01 上海伯镭智能科技有限公司 An intelligent obstacle avoidance method and system for unmanned vehicles
WO2025098073A1 (en) * 2023-11-09 2025-05-15 华为技术有限公司 Path optimization method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521794A (en) * 2018-12-07 2019-03-26 南京航空航天大学 A kind of multiple no-manned plane routeing and dynamic obstacle avoidance method
CN110081894A (en) * 2019-04-25 2019-08-02 同济大学 A kind of real-time planing method of unmanned wheel paths based on the fusion of road structure weight
US20200023842A1 (en) * 2019-09-27 2020-01-23 David Gomez Gutierrez Potential collision warning system based on road user intent prediction
CN111857160A (en) * 2020-08-17 2020-10-30 武汉中海庭数据技术有限公司 Method and device for path planning of unmanned vehicle
CN112414422A (en) * 2020-11-01 2021-02-26 北京航空航天大学 Automatic parking path planning method and device and storage medium
CN112526988A (en) * 2020-10-30 2021-03-19 西安交通大学 Autonomous mobile robot and path navigation and path planning method and system thereof
CN112729320A (en) * 2020-12-22 2021-04-30 中国第一汽车股份有限公司 Method, device and equipment for constructing obstacle map and storage medium
CN112758084A (en) * 2021-01-27 2021-05-07 爱驰汽车有限公司 Parking trajectory planning method, device, equipment and storage medium
CN113253717A (en) * 2021-03-17 2021-08-13 武汉科技大学 Indoor mobile robot local path planning method based on dynamic barrier motion information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109521794A (en) * 2018-12-07 2019-03-26 南京航空航天大学 A kind of multiple no-manned plane routeing and dynamic obstacle avoidance method
CN110081894A (en) * 2019-04-25 2019-08-02 同济大学 A kind of real-time planing method of unmanned wheel paths based on the fusion of road structure weight
US20200023842A1 (en) * 2019-09-27 2020-01-23 David Gomez Gutierrez Potential collision warning system based on road user intent prediction
CN111857160A (en) * 2020-08-17 2020-10-30 武汉中海庭数据技术有限公司 Method and device for path planning of unmanned vehicle
CN112526988A (en) * 2020-10-30 2021-03-19 西安交通大学 Autonomous mobile robot and path navigation and path planning method and system thereof
CN112414422A (en) * 2020-11-01 2021-02-26 北京航空航天大学 Automatic parking path planning method and device and storage medium
CN112729320A (en) * 2020-12-22 2021-04-30 中国第一汽车股份有限公司 Method, device and equipment for constructing obstacle map and storage medium
CN112758084A (en) * 2021-01-27 2021-05-07 爱驰汽车有限公司 Parking trajectory planning method, device, equipment and storage medium
CN113253717A (en) * 2021-03-17 2021-08-13 武汉科技大学 Indoor mobile robot local path planning method based on dynamic barrier motion information

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115493600A (en) * 2022-10-12 2022-12-20 江苏盛海智能科技有限公司 Unmanned obstacle path planning method and terminal based on laser radar
CN115597620A (en) * 2022-10-18 2023-01-13 深圳海星智驾科技有限公司(Cn) Path planning method and device, electronic equipment and storage medium
CN115683146A (en) * 2022-11-09 2023-02-03 深圳海星智驾科技有限公司 Path planning method, device, electronic device and storage medium
CN115683146B (en) * 2022-11-09 2025-02-28 深圳海星智驾科技有限公司 Path planning method, device, electronic device and storage medium
CN117148848A (en) * 2023-10-27 2023-12-01 上海伯镭智能科技有限公司 An intelligent obstacle avoidance method and system for unmanned vehicles
CN117148848B (en) * 2023-10-27 2024-01-26 上海伯镭智能科技有限公司 An intelligent obstacle avoidance method and system for unmanned vehicles
WO2025086471A1 (en) * 2023-10-27 2025-05-01 上海伯镭智能科技有限公司 Intelligent obstacle avoidance method and system for autonomous vehicle
WO2025098073A1 (en) * 2023-11-09 2025-05-15 华为技术有限公司 Path optimization method and related device

Similar Documents

Publication Publication Date Title
CN114371709A (en) Path planning method, device, storage medium and program product
Sathyamoorthy et al. Densecavoid: Real-time navigation in dense crowds using anticipatory behaviors
CN109885891B (en) Intelligent vehicle GPU parallel acceleration trajectory planning method
US8849559B2 (en) Apparatus and method for generating and using a grid map path
EP4208691A1 (en) Autonomous parking with hybrid exploration of parking space
US20210271988A1 (en) Reinforcement learning with iterative reasoning for merging in dense traffic
CN111007861B (en) Track tracking control method, device and system and mobile robot
CN113561962B (en) Automatic parking path planning method and system and parking control equipment
CN117870708A (en) A path planning method, terminal device and storage medium
CN117451068A (en) A hybrid path planning method based on improved A* algorithm and dynamic window method
CN117962917A (en) Automatic driving decision planning method and automatic driving vehicle
CN117055601A (en) Unmanned aerial vehicle meal delivery path planning method, unmanned aerial vehicle meal delivery path planning device, unmanned aerial vehicle meal delivery path planning equipment and storage medium
Xing et al. Research on robot path planning by integrating state-based decision-making A* algorithm and inertial dynamic window approach
Liu et al. Unmanned Aerial Vehicle Path Planning in Complex Dynamic Environments Based on Deep Reinforcement Learning
CN112585616A (en) Method for predicting at least one future speed vector and/or future posture of a pedestrian
KR102837082B1 (en) Method for determining movement path to avoid collision with other unmanned vehicle
CN114964288A (en) Path planning method and device and unmanned vehicle
Diehl et al. On a connection between differential games, optimal control, and energy-based models for multi-agent interactions
CN119396159A (en) Unmanned vehicle control method, device, equipment and medium based on deep reinforcement learning
CN118484001A (en) Collision detection method in unstructured environment with dense obstacles based on ray tracing
CN114815791A (en) Method and device for planning travelable space
CN117664136A (en) A method for generating vehicle-like robot trajectories in uneven environments based on manifold representation
JP7647901B2 (en) CONTROL SYSTEM, INFORMATION PROCESSING APPARATUS, CONTROL METHOD, AND CONTROL VALUE GENERATION METHOD
CN114537432A (en) Trajectory prediction method, trajectory prediction device, and storage medium
Wicaksono et al. Optimizing uav navigation through non-uniform b-spline trajectory for tracking uav enemy

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