CN114684200A - Initial trajectory planning method, device, equipment and storage medium - Google Patents
Initial trajectory planning method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114684200A CN114684200A CN202210486790.3A CN202210486790A CN114684200A CN 114684200 A CN114684200 A CN 114684200A CN 202210486790 A CN202210486790 A CN 202210486790A CN 114684200 A CN114684200 A CN 114684200A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- target
- auxiliary
- initial position
- target track
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W60/00—Drive control systems specially adapted for autonomous road vehicles
- B60W60/001—Planning or execution of driving tasks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2520/00—Input parameters relating to overall vehicle dynamics
- B60W2520/06—Direction of travel
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2520/00—Input parameters relating to overall vehicle dynamics
- B60W2520/10—Longitudinal speed
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及自动驾驶技术领域,具体涉及一种初始轨迹规划方法、装置、设备及存储介质。The invention relates to the technical field of automatic driving, in particular to an initial trajectory planning method, device, equipment and storage medium.
背景技术Background technique
在智能驾驶行业的车道居中控制类功能,会根据车道线和前车轨迹检测结果计算出目标轨迹并实时更新该目标轨迹,车辆最终需要沿着该目标轨迹行驶。而在此类功能激活的初始时刻,车辆当前位置离目标轨迹线的横向位置可能较远。The lane centering control function in the intelligent driving industry will calculate the target trajectory according to the detection results of the lane line and the preceding vehicle trajectory and update the target trajectory in real time. The vehicle eventually needs to drive along the target trajectory. At the initial moment of activation of such functions, the current position of the vehicle may be far from the lateral position of the target trajectory.
已有的方案大多通过限制车道激活保持类功能的初始激活条件,使车辆只有在离目标轨迹横向位置很小时且航向与目标轨迹航向偏差很小时才允许激活相应的功能,其对车辆初始状态条件的限制过于严格。Most of the existing schemes limit the initial activation conditions of the lane activation function, so that the vehicle is only allowed to activate the corresponding function when the lateral position of the vehicle is very small from the target trajectory and the heading deviation from the target trajectory heading is very small. restrictions are too strict.
发明内容SUMMARY OF THE INVENTION
本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明第一方面提出一种初始轨迹规划方法,包括:The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the first aspect of the present invention proposes an initial trajectory planning method, including:
响应于用于使自车车辆在目标车道内沿第一目标轨迹行驶的目标控制指令,获取自车的车辆初始位置信息、车辆行驶速度和所述第一目标轨迹;其中,所述车辆初始位置信息包括车辆初始位置和车辆行驶方向;所述第一目标轨迹是根据所述目标车道的车道线和目标车辆的轨迹检测结果得到的,所述目标车辆在所述目标车道内行驶;In response to the target control instruction for causing the ego vehicle to travel along the first target trajectory in the target lane, obtain the vehicle initial position information of the ego vehicle, the vehicle speed and the first target trajectory; wherein the vehicle initial position The information includes the initial position of the vehicle and the driving direction of the vehicle; the first target trajectory is obtained according to the lane line of the target lane and the trajectory detection result of the target vehicle, and the target vehicle is traveling in the target lane;
基于所述车辆初始位置信息、所述车辆行驶速度和所述第一目标轨迹生成第二目标轨迹,以使所述自车从所述车辆初始位置沿所述第二目标轨迹并入所述第一目标轨迹;A second target trajectory is generated based on the vehicle initial position information, the vehicle travel speed, and the first target trajectory, so that the ego vehicle merges into the first target trajectory along the second target trajectory from the vehicle initial position. a target trajectory;
在生成所述第二目标轨迹之后,根据所述车辆初始位置信息以及实时获取的所述车辆行驶速度和所述第一目标轨迹更新所述第二目标轨迹。After the second target trajectory is generated, the second target trajectory is updated according to the vehicle initial position information, the vehicle traveling speed and the first target trajectory acquired in real time.
进一步地,所述基于所述车辆初始位置信息、所述车辆行驶速度和所述第一目标轨迹生成第二目标轨迹,包括:Further, the generating a second target trajectory based on the initial position information of the vehicle, the driving speed of the vehicle and the first target trajectory includes:
在所述第一目标轨迹的末端提取目标点位置信息,根据所述目标点的位置信息构建辅助线;其中,所述末端为所述第一目标轨迹远离所述车辆初始位置的一端,所述目标点的位置信息包括目标点的坐标和目标点的航向角;Extract the target point position information at the end of the first target trajectory, and construct an auxiliary line according to the position information of the target point; wherein, the end is the end of the first target trajectory away from the initial position of the vehicle, and the The position information of the target point includes the coordinates of the target point and the heading angle of the target point;
根据所述车辆初始位置和所述车辆行驶速度确定出最终曲率;determining a final curvature according to the initial position of the vehicle and the traveling speed of the vehicle;
根据所述车辆行驶速度和所述最终曲率计算出最小转弯半径;calculating a minimum turning radius based on the vehicle speed and the final curvature;
以所述最小转弯半径为半径构建经过所述车辆初始位置且分别与所述车辆行驶方向和所述辅助线相切的曲线,得到所述第二目标轨迹。Curves passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line are constructed with the minimum turning radius as a radius to obtain the second target trajectory.
进一步地,所述在所述第一目标轨迹的末端提取目标点位置信息,包括:Further, the extracting target point position information at the end of the first target trajectory includes:
在所述第一目标轨迹的末端提取若干个点的位置信息;Extract the position information of several points at the end of the first target trajectory;
根据所述若干个点的位置信息得到所述目标点位置信息。The target point position information is obtained according to the position information of the several points.
进一步地,所述根据所述车辆初始位置和所述车辆行驶速度确定出最终曲率,包括:Further, determining the final curvature according to the initial position of the vehicle and the traveling speed of the vehicle includes:
获取所述车辆初始位置对应的第一曲率;其中,所述第一曲率为车道曲率;acquiring a first curvature corresponding to the initial position of the vehicle; wherein, the first curvature is a lane curvature;
查询所述车辆行驶速度对应的允许横向加速度;query the allowable lateral acceleration corresponding to the speed of the vehicle;
根据所述车辆行驶速度和所述允许横向加速度计算第二曲率;calculating a second curvature based on the vehicle travel speed and the allowable lateral acceleration;
根据所述第一曲率与所述第二曲率得到所述最终曲率。The final curvature is obtained from the first curvature and the second curvature.
进一步地,所述以所述最小转弯半径为半径构建经过所述车辆初始位置且分别与所述车辆行驶方向和所述辅助线相切的曲线,得到所述第二目标轨迹,包括:Further, constructing a curve passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line respectively by using the minimum turning radius as a radius to obtain the second target trajectory, including:
以所述车辆初始位置为原点构建辅助坐标系;其中,所述辅助坐标系的x轴方向是根据所述车辆行驶方向或所述目标点的航向角确定的,所述辅助坐标系的y轴与x轴垂直;An auxiliary coordinate system is constructed with the initial position of the vehicle as the origin; wherein, the x-axis direction of the auxiliary coordinate system is determined according to the driving direction of the vehicle or the heading angle of the target point, and the y-axis of the auxiliary coordinate system perpendicular to the x-axis;
根据所述车辆初始位置和所述最小转弯半径在所述辅助坐标系的y轴上确定第一圆心;其中,所述第一圆心为第一辅助圆的圆心,所述第一圆心位于所述车辆初始位置与所述辅助线之间;A first circle center is determined on the y-axis of the auxiliary coordinate system according to the initial position of the vehicle and the minimum turning radius; wherein, the first circle center is the center of the first auxiliary circle, and the first circle center is located in the between the initial position of the vehicle and the auxiliary line;
基于所述第一圆心和所述最小转弯半径构建所述第一辅助圆;constructing the first auxiliary circle based on the first circle center and the minimum turning radius;
基于所述辅助线和所述第一辅助圆确定第二圆心;其中,所述第二圆心为第二辅助圆的圆心;A second center is determined based on the auxiliary line and the first auxiliary circle; wherein, the second center is the center of the second auxiliary circle;
基于所述第二圆心和所述最小转弯半径构建所述第二辅助圆;constructing the second auxiliary circle based on the second center and the minimum turning radius;
将所述第一辅助圆与所述第二辅助圆上连接所述车辆初始位置、中间点位置和结束点位置的最短的S形曲线作为所述第二目标轨迹,其中,所述中间点位置为所述第一辅助圆与所述第二辅助圆的切点,所述结束点位置为所述第二辅助圆与所述辅助线的切点。The shortest S-shaped curve connecting the initial position of the vehicle, the position of the middle point and the position of the end point on the first auxiliary circle and the second auxiliary circle is used as the second target trajectory, wherein the position of the middle point is the tangent point between the first auxiliary circle and the second auxiliary circle, and the position of the end point is the tangent point between the second auxiliary circle and the auxiliary line.
进一步地,所述以所述最小转弯半径为半径构建经过所述车辆初始位置且分别与所述车辆行驶方向和所述辅助线相切的曲线,得到所述第二目标轨迹,包括:Further, constructing a curve passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line respectively by using the minimum turning radius as a radius to obtain the second target trajectory, including:
基于所述车辆初始位置、所述车辆行驶方向、所述最小转弯半径和所述辅助线确定第三辅助圆的圆心;其中,所述第三辅助圆与所述车辆行驶方向相切于所述车辆初始位置,所述第三辅助圆的半径为所述最小转弯半径,所述第三辅助圆与所述辅助线相切;The center of a third auxiliary circle is determined based on the initial position of the vehicle, the driving direction of the vehicle, the minimum turning radius and the auxiliary line; wherein the third auxiliary circle is tangent to the driving direction of the vehicle and the the initial position of the vehicle, the radius of the third auxiliary circle is the minimum turning radius, and the third auxiliary circle is tangent to the auxiliary line;
基于确定出圆心以所述最小转弯半径为半径构建所述第三辅助圆;Constructing the third auxiliary circle with the minimum turning radius as the radius based on the determined circle center;
将所述第三辅助圆上连接所述车辆初始位置和结束点位置的最短的圆曲线作为所述第二目标轨迹;其中,所述结束点位置为所述第三辅助圆与所述辅助线的切点。The shortest circular curve connecting the initial position of the vehicle and the position of the end point on the third auxiliary circle is used as the second target trajectory; wherein, the position of the end point is the third auxiliary circle and the auxiliary line cut point.
进一步地,所述基于所述车辆初始位置信息、所述车辆行驶速度和所述第一目标轨迹生成第二目标轨迹之后,还包括:Further, after the second target trajectory is generated based on the vehicle initial position information, the vehicle speed and the first target trajectory, the method further includes:
在所述第二目标轨迹上已计算出的点的位置两侧按预设时间间隔分别取若干个辅助点;其中,所述辅助点在所述第二目标轨迹上;所述已计算出的点包括所述车辆初始位置、以及所述第二目标轨迹的中间点或结束点;A number of auxiliary points are respectively taken at preset time intervals on both sides of the calculated point on the second target trajectory; wherein, the auxiliary points are on the second target trajectory; the calculated The point includes the initial position of the vehicle, and the middle point or the end point of the second target trajectory;
根据所述已计算出的点的位置和所述若干个辅助点对所述第二目标轨迹进行平滑处理,得到平滑处理后的所述第二目标轨迹。The second target trajectory is smoothed according to the calculated position of the point and the several auxiliary points to obtain the smoothed second target trajectory.
本发明第二方面提出一种初始轨迹规划装置,包括:A second aspect of the present invention provides an initial trajectory planning device, comprising:
获取模块,用于响应于用于使自车车辆在目标车道内沿第一目标轨迹行驶的目标控制指令,获取自车的车辆初始位置信息、车辆行驶速度和所述第一目标轨迹;其中,所述车辆初始位置信息包括车辆初始位置和车辆行驶方向;所述第一目标轨迹是根据所述目标车道的车道线和目标车辆的轨迹检测结果得到的,所述目标车辆在所述目标车道内行驶;an acquisition module, configured to acquire the vehicle initial position information, the vehicle speed and the first target trajectory of the self-vehicle in response to the target control instruction for causing the self-vehicle vehicle to travel along the first target trajectory in the target lane; wherein, The initial position information of the vehicle includes the initial position of the vehicle and the driving direction of the vehicle; the first target trajectory is obtained according to the lane line of the target lane and the trajectory detection result of the target vehicle, and the target vehicle is in the target lane drive;
轨迹生成模块,用于基于所述车辆初始位置信息、所述车辆行驶速度和所述第一目标轨迹生成第二目标轨迹,以使所述自车从所述车辆初始位置沿所述第二目标轨迹并入所述第一目标轨迹;a trajectory generation module, configured to generate a second target trajectory based on the vehicle initial position information, the vehicle running speed and the first target trajectory, so that the self-vehicle moves along the second target from the vehicle initial position the trajectory is merged into the first target trajectory;
轨迹更新模块,用于在生成所述第二目标轨迹之后,根据所述车辆初始位置信息以及实时获取的所述车辆行驶速度和所述第一目标轨迹更新所述第二目标轨迹A trajectory updating module, configured to update the second target trajectory according to the vehicle initial position information and the vehicle speed and the first target trajectory acquired in real time after the second target trajectory is generated
本发明第三方面提出一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由所述处理器加载并执行以实现本发明第一方面提出的初始轨迹规划方法。A third aspect of the present invention provides an electronic device, the electronic device includes a processor and a memory, the memory stores at least one instruction or at least a piece of program, and the at least one instruction or the at least one piece of program is processed by the The controller is loaded and executed to realize the initial trajectory planning method proposed in the first aspect of the present invention.
本发明第四方面提出一种计算机可读存储介质,所述存储介质中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由处理器加载并执行以实现本发明第一方面提出的初始轨迹规划方法。A fourth aspect of the present invention provides a computer-readable storage medium, where at least one instruction or at least one piece of program is stored, and the at least one instruction or at least one piece of program is loaded and executed by a processor to implement the present invention The initial trajectory planning method proposed in the first aspect.
实施本发明具有以下有益效果:Implementing the present invention has the following beneficial effects:
本发明实施例不受车辆初始状态条件限制,可以在车道内任一位置激活初始轨迹规划功能,并且沿规划出的第二目标轨迹直接向第一目标轨迹快而平稳的移动,不会产生多余动作。The embodiment of the present invention is not limited by the initial state conditions of the vehicle, the initial trajectory planning function can be activated at any position in the lane, and the planned second target trajectory can be moved directly to the first target trajectory quickly and smoothly without generating redundant action.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, 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 are only 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 creative effort.
图1是本发明实施例提供的一种初始轨迹规划方法的流程图;1 is a flowchart of an initial trajectory planning method provided by an embodiment of the present invention;
图2是本发明实施例提供的一个时刻下的第二目标轨迹的示意图;2 is a schematic diagram of a second target trajectory at a moment provided by an embodiment of the present invention;
图3是本发明实施例提供的另一个时刻下的第二目标轨迹的示意图;3 is a schematic diagram of a second target trajectory at another moment provided by an embodiment of the present invention;
图4是本发明实施例提供的一个第二目标轨迹的规划效果图;4 is a planning effect diagram of a second target trajectory provided by an embodiment of the present invention;
图5是本发明实施例提供的更新第二目标轨迹的流程图;5 is a flowchart of updating a second target trajectory provided by an embodiment of the present invention;
图6是本发明实施例提供的规划第二目标轨迹的一个原理图;6 is a schematic diagram of planning a second target trajectory provided by an embodiment of the present invention;
图7是本发明实施例提供的规划第二目标轨迹的另一个原理图;7 is another schematic diagram of planning a second target trajectory provided by an embodiment of the present invention;
图8是本发明实施例提供的一种初始轨迹规划装置的结构框图。FIG. 8 is a structural block diagram of an initial trajectory planning apparatus provided by 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. Examples of such embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或服务器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
在智能驾驶行业的车道居中控制类功能,会根据车道线和前车轨迹检测结果计算出目标轨迹并实时更新该目标轨迹,车辆最终需要沿着该目标轨迹行驶。针对在此类功能激活的初始时刻,车辆当前位置离目标轨迹线的横向位置可能较远的情形,本发明实施例在车辆当前位置与目标轨迹线之间规划了一条额外的初始轨迹路径,以使车辆沿着初始轨迹平滑并入目标轨迹。The lane centering control function in the intelligent driving industry will calculate the target trajectory according to the detection results of the lane line and the preceding vehicle trajectory and update the target trajectory in real time. The vehicle eventually needs to drive along the target trajectory. In view of the situation that the current position of the vehicle may be far from the lateral position of the target trajectory line at the initial moment of activation of such a function, the embodiment of the present invention plans an additional initial trajectory path between the current position of the vehicle and the target trajectory line, so as to Smoothly merge the vehicle into the target trajectory along the initial trajectory.
需要说明的是,本发明实施例提供的初始轨迹规划方法可以在多种场景的路径规划中使用,包括但不限于车道居中保持、高阶自动驾驶变道、两条路径合并等相似场景。It should be noted that the initial trajectory planning method provided by the embodiment of the present invention can be used in path planning in various scenarios, including but not limited to similar scenarios such as lane keeping, high-level automatic driving lane change, and merging of two paths.
实施例Example
图1是本发明实施例提供的一种初始轨迹规划方法的流程图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的系统或服务器产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。具体的如图1所示,该方法可以包括:FIG. 1 is a flowchart of an initial trajectory planning method provided by an embodiment of the present invention. This specification provides the operation steps of the method as described in the embodiment or the flowchart, but based on conventional or non-creative work, it may include more or more Fewer steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual system or server product is executed, it can be executed sequentially or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the embodiments or the methods shown in the accompanying drawings. Specifically, as shown in Figure 1, the method may include:
S101:响应于用于使自车车辆在目标车道内沿第一目标轨迹行驶的目标控制指令,获取自车的车辆初始位置信息、车辆行驶速度和第一目标轨迹;S101: In response to the target control instruction for causing the own vehicle to travel along the first target trajectory in the target lane, obtain the vehicle initial position information, the vehicle speed and the first target trajectory of the own vehicle;
其中,车辆初始位置信息包括车辆初始位置和车辆行驶方向;第一目标轨迹是根据目标车道的车道线和目标车辆的轨迹检测结果得到的,目标车辆在目标车道内行驶;Wherein, the initial position information of the vehicle includes the initial position of the vehicle and the driving direction of the vehicle; the first target trajectory is obtained according to the lane line of the target lane and the trajectory detection result of the target vehicle, and the target vehicle is driving in the target lane;
具体的,目标控制指令可以是变道指令、开启车道保持指令等,根据应用场景的实际需要,其他目标控制指令也可以在本文中应用。Specifically, the target control instruction can be a lane change instruction, a lane keeping instruction, etc. According to the actual needs of the application scenario, other target control instructions can also be applied in this paper.
具体的,车辆变道场景下,目标车道可以是除自车车道外的其他车道,例如相邻车道;车道保持场景下,目标车道可以是自车车道。Specifically, in a vehicle lane changing scenario, the target lane may be a lane other than the own vehicle lane, such as an adjacent lane; in a lane keeping scenario, the target lane may be the own vehicle lane.
S102:基于车辆初始位置信息、车辆行驶速度和第一目标轨迹生成第二目标轨迹,以使自车从车辆初始位置沿第二目标轨迹并入第一目标轨迹;S102: Generate a second target trajectory based on the vehicle initial position information, the vehicle speed and the first target trajectory, so that the self-vehicle merges into the first target trajectory along the second target trajectory from the vehicle initial position;
其中,第二目标轨迹是以自车当前位置为起点、最终并入第一目标轨迹的线段。第二目标轨迹的线型包括但不限于直线、折线、曲线等。The second target trajectory is a line segment starting from the current position of the ego vehicle and finally merged into the first target trajectory. The line type of the second target trajectory includes, but is not limited to, a straight line, a broken line, a curved line, and the like.
S103:在生成第二目标轨迹之后,根据车辆初始位置信息以及实时获取的车辆行驶速度和第一目标轨迹更新第二目标轨迹。S103: After generating the second target trajectory, update the second target trajectory according to the vehicle initial position information, the vehicle traveling speed and the first target trajectory acquired in real time.
也就是说,在生成第二目标轨迹之后保持车辆初始位置信息不变,根据车辆初始位置信息以及实时获取的车辆行驶方向和第一目标轨迹更新第二目标轨迹。That is to say, after the second target trajectory is generated, the initial position information of the vehicle is kept unchanged, and the second target trajectory is updated according to the initial position information of the vehicle, the vehicle driving direction and the first target trajectory acquired in real time.
图2是本发明实施例提供的一个时刻下的第二目标轨迹的示意图,图3是本发明实施例提供的另一个时刻下的第二目标轨迹的示意图,请参照图2和图3,在生成第二目标轨迹线之后,辅助线会随第一目径路径实时更新,在后续时刻,保持车辆初始位置S2和车辆行驶方向不变,只转换到实时的自车坐标系下,实时计算更新M1,M2,M3,E1,E2,E3。如图2和图3所示出的,一个时刻下的车辆初始位置与另一个时刻下的车辆初始位置是相同的、一个时刻下的第一目标轨迹末端的位置、航向角、辅助线与另一个时刻下的车辆位置、第一目标轨迹末端的位置、航向角、辅助线是不同的。2 is a schematic diagram of a second target trajectory at one moment provided by an embodiment of the present invention, and FIG. 3 is a schematic diagram of a second target trajectory at another moment provided by an embodiment of the present invention. Please refer to FIG. 2 and FIG. After the second target trajectory line is generated, the auxiliary line will be updated in real time with the path of the first eye path. At subsequent moments, the initial position S2 of the vehicle and the driving direction of the vehicle are kept unchanged, and only the real - time self-vehicle coordinate system is converted to calculate in real time. Update M 1 , M 2 , M 3 , E 1 , E 2 , E 3 . As shown in Figures 2 and 3, the initial position of the vehicle at one moment is the same as the initial position of the vehicle at another moment, and the position, heading angle, and auxiliary line of the end of the first target trajectory at one moment are the same as the other. The vehicle position at a moment, the position of the end of the first target trajectory, the heading angle, and the auxiliary line are different.
图4是本发明实施例提供的一个第二目标轨迹的规划效果图,其中,虚线为第一目标轨迹,虚线两侧的实线为车道线,左下角为车辆初始位置Num2(即S2)及其前后两侧的辅助点Num1(即S1)、Num3(即S3),右上角是第一目标轨迹上的靠近末端的点Num7(即P3)、Num8(即P2)、Num9(即P1),该末端远离车辆初始位置Num2,起始点与结束点与结束点之间还设有中间点Num4(即M3)及其辅助点Num5(即M2)和Num6(即M1),矩形框为车辆实时位置。在生成第二目标轨迹线之后,点Num7、Num8、Num9以及根据点Num7、Num8、Num9确定的辅助线会随第一目径路径实时更新,在后续时刻,保持车辆初始位置Num2和初始的车辆行驶方向不变,根据车辆初始位置Num2和初始的车辆行驶方向以及实时获取的车辆行驶速度和辅助线实时计算更新M1,M2,M3,E1,E2,E3。4 is a planning effect diagram of a second target trajectory provided by an embodiment of the present invention, wherein the dotted line is the first target trajectory, the solid lines on both sides of the dotted line are lane lines, and the lower left corner is the initial vehicle position Num2 (ie S 2 ) and the auxiliary points Num1 (ie S 1 ) and Num3 (ie S 3 ) on the front and back sides, and the upper right corner is the point Num7 (ie P 3 ), Num8 (ie P 2 ), Num9 near the end on the first target trajectory (ie P 1 ), the end is far away from the initial position Num2 of the vehicle, and an intermediate point Num4 (ie M 3 ) and its auxiliary points Num5 (ie M 2 ) and Num6 (ie M ) are also set between the start point and the end point and the end point 1 ), the rectangular box is the real-time position of the vehicle. After the second target trajectory line is generated, the points Num7, Num8, Num9 and the auxiliary lines determined according to the points Num7, Num8, and Num9 will be updated in real time with the first eye path path. The driving direction is unchanged, and M 1 , M 2 , M 3 , E 1 , E 2 , and E 3 are calculated and updated in real time according to the initial vehicle position Num2 and the initial vehicle driving direction, as well as the vehicle driving speed and the auxiliary line acquired in real time.
与现有的无初始轨迹的方法相比,本发明实施例提供的方法不受车辆初始状态条件限制,可以在车道任一位置激活后平稳并入目标轨迹。Compared with the existing method without an initial trajectory, the method provided by the embodiment of the present invention is not limited by the initial state conditions of the vehicle, and can smoothly merge into the target trajectory after any position of the lane is activated.
图5是本发明实施例提供的更新第二目标轨迹的流程图,具体的如图5所示,基于车辆初始位置信息、车辆行驶速度和第一目标轨迹生成第二目标轨迹,包括以下步骤:5 is a flowchart of updating the second target trajectory provided by an embodiment of the present invention. Specifically, as shown in FIG. 5 , generating a second target trajectory based on the initial vehicle position information, the vehicle speed and the first target trajectory includes the following steps:
S201:在第一目标轨迹的末端提取目标点位置信息,根据目标点的位置信息构建辅助线;S201: extracting target point position information at the end of the first target trajectory, and constructing an auxiliary line according to the position information of the target point;
其中,末端为第一目标轨迹远离车辆初始位置的一端,目标点的位置信息包括目标点的坐标和目标点的航向角;这里将目标点位置信息的提取位置设置在第一目标轨迹的末端是为了避免从车辆初始位置并入第一目标轨迹路径太长,使得车辆能够快速过渡到第一目标轨迹线。Wherein, the end is the end of the first target trajectory away from the initial position of the vehicle, and the position information of the target point includes the coordinates of the target point and the heading angle of the target point; here, the extraction position of the target point position information is set at the end of the first target trajectory: In order to avoid that the path from the initial position of the vehicle to merge into the first target trajectory is too long, the vehicle can quickly transition to the first target trajectory.
在一些实施例中,在第一目标轨迹的末端提取目标点位置信息,包括:In some embodiments, extracting target point position information at the end of the first target trajectory includes:
在第一目标轨迹的末端提取若干个点的位置信息;这里的位置信息包括点对应的坐标和航向角;Extract the position information of several points at the end of the first target trajectory; the position information here includes the coordinates and heading angles corresponding to the points;
在提取到若干个点的位置信息之后,根据若干个点的位置信息得到目标点位置信息。具体可以是根据若干个点的位置信息计算上述若干点的坐标平均值和航向角平均值,将若干点的坐标平均值作为目标点的坐标,将若干点的航向角平均值作为目标点的航向角。After the location information of several points is extracted, the location information of the target point is obtained according to the location information of several points. Specifically, the average value of the coordinates and the average value of the heading angle of the above-mentioned points can be calculated according to the position information of the several points, the average value of the coordinates of the several points is used as the coordinate of the target point, and the average value of the heading angle of the several points is used as the heading of the target point. horn.
在一个示例中,P1、P2…、Pn是规划出来的第一目标轨迹上的点,选请继续参照图2和图3,取末端P1、P2、P3三个点,计算平均航向角α;α=(α1+α2+α3)/3,其中,P1的航向角为α1,P2的航向角为α2,P3的航向角为α3。In an example, P1, P2..., Pn are points on the planned first target trajectory, please continue to refer to Figure 2 and Figure 3, take three points at the end P1, P2, P3, calculate the average heading angle α; α=(α1+α2+α3)/3, wherein the heading angle of P1 is α1, the heading angle of P2 is α2, and the heading angle of P3 is α3.
根据目标点的位置信息构建辅助线,可以是在得到坐标平均值和平均航向角α之后,以tan(α)作为斜率,最小二乘法计算出一条直线作为辅助线,用A*x+B*y+C=0表示。The auxiliary line is constructed according to the position information of the target point. After obtaining the average value of the coordinates and the average heading angle α, tan(α) is used as the slope, and a straight line is calculated by the least square method as the auxiliary line. A*x+B* y+C=0 means.
S202:根据车辆初始位置和车辆行驶速度确定出最终曲率;S202: Determine the final curvature according to the initial position of the vehicle and the speed of the vehicle;
在一些实施例中,根据车辆初始位置和车辆行驶速度确定出最终曲率,包括:In some embodiments, the final curvature is determined based on the initial position of the vehicle and the speed of the vehicle, including:
获取车辆初始位置对应的第一曲率;其中,第一曲率为车道曲率;Obtain the first curvature corresponding to the initial position of the vehicle; wherein, the first curvature is the curvature of the lane;
查询车辆行驶速度对应的允许横向加速度;Query the allowable lateral acceleration corresponding to the vehicle speed;
根据车辆行驶速度和允许横向加速度计算第二曲率;具体的,计算第二曲率的公式为:Curvature=a/v^2;其中,Curvature为第二曲率;a为允许横向加速度;v为车辆的行驶速度。Calculate the second curvature according to the vehicle speed and the allowable lateral acceleration; specifically, the formula for calculating the second curvature is: Curvature=a/v^2; where, Curvature is the second curvature; a is the allowable lateral acceleration; v is the vehicle's Driving speed.
根据第一曲率与第二曲率得到最终曲率。The final curvature is obtained from the first curvature and the second curvature.
需要说明的是,根据第二曲率计算出最小转弯半径,使得该方法既适用于直路,也适用于弯路。而仅根据道路曲率计算最小转弯半径不适用于道路为直道的情形,因为直道的曲率无限小,直接用道路曲率计算出的最小转弯半径趋于无限大,使得规划出的第二目标轨迹过大不能满足车辆沿快速并入目标线的需求。这里在第二曲率的基础上加上道路曲率(即第一曲率)是因为相比于直道,弯道需要规划一条更急的圆到辅助线,以便快速过渡到辅助线。It should be noted that the minimum turning radius is calculated according to the second curvature, so that the method is suitable for both straight roads and curved roads. However, the calculation of the minimum turning radius only based on the road curvature is not suitable for the situation where the road is a straight road, because the curvature of the straight road is infinitely small, and the minimum turning radius calculated directly from the road curvature tends to be infinitely large, which makes the planned second target trajectory too large. The need for vehicles to merge quickly along the target line cannot be met. Here, the road curvature (ie, the first curvature) is added on the basis of the second curvature because the curve needs to plan a sharper circle to the auxiliary line than the straight road, so as to quickly transition to the auxiliary line.
本发明实施例不使用横摆角速度YawRate和转向角等车身姿态信号计算,而是通过查询出的允许横向加速度限制实时横向加速度来调节最终曲率,从而实现对第二目标轨迹的调节,使得整个并入过程平稳。The embodiment of the present invention does not use body attitude signals such as yaw rate YawRate and steering angle to calculate, but adjusts the final curvature by limiting the real-time lateral acceleration through the queried allowable lateral acceleration, so as to realize the adjustment of the second target trajectory, so that the entire parallel The entry process is smooth.
S203:根据车辆行驶速度和最终曲率计算出最小转弯半径;S203: Calculate the minimum turning radius according to the vehicle speed and the final curvature;
根据最终曲率和车辆行驶速度可以反推出最大横向加速度amax;即最大横向加速度amax=最终曲率*v^2,再根据车辆行驶速度和最大横向加速度可以计算出最小的转弯半径R=V^2/amax。The maximum lateral acceleration a max can be reversed according to the final curvature and the vehicle speed; that is, the maximum lateral acceleration a max = final curvature * v^2, and then the minimum turning radius R=V^ can be calculated according to the vehicle speed and the maximum lateral acceleration 2/a max .
在一些实施例中,步骤S202和步骤S203可以替换为如下步骤:In some embodiments, steps S202 and S203 may be replaced by the following steps:
查询车辆的行驶速度对应的允许横向加速度a允许;Query the allowable lateral acceleration a corresponding to the driving speed of the vehicle;
根据车辆的行驶速度和允许横向加速度a允许计算出最小转弯半径R=V^2/a允许。According to the traveling speed of the vehicle and the allowable lateral acceleration a allow to calculate the minimum turning radius R=V^2/a allow .
S204:以最小转弯半径为半径构建经过车辆初始位置且分别与车辆行驶方向和辅助线相切的曲线,得到第二目标轨迹。S204: Using the minimum turning radius as a radius, construct a curve passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line, respectively, to obtain a second target trajectory.
本发明实施例不限定最终并入目标轨迹的点,而是实时动态求解第二目标轨迹与根据目标点位置信息确定的辅助线的相切点,以便可以在保证平稳的条件下,快速并入目标线。The embodiment of the present invention does not limit the point that is finally merged into the target trajectory, but dynamically solves the tangent point between the second target trajectory and the auxiliary line determined according to the position information of the target point in real time, so that the tangent point of the second target trajectory can be quickly merged under the condition of ensuring stability. target line.
在一些实施例中,以最小转弯半径为半径构建经过车辆初始位置且分别与车辆行驶方向和辅助线相切的曲线,得到第二目标轨迹,包括:In some embodiments, a minimum turning radius is used as a radius to construct a curve passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line, respectively, to obtain the second target trajectory, including:
以车辆初始位置为原点构建辅助坐标系;Build an auxiliary coordinate system with the initial position of the vehicle as the origin;
图6是本发明实施例提供的规划第二目标轨迹的一个原理图,请参照图6,辅助坐标系的x轴方向是根据车辆行驶方向确定的,辅助坐标系的y轴与x轴垂直;6 is a schematic diagram of planning a second target trajectory provided by an embodiment of the present invention, please refer to FIG. 6 , the x-axis direction of the auxiliary coordinate system is determined according to the driving direction of the vehicle, and the y-axis of the auxiliary coordinate system is perpendicular to the x-axis;
根据车辆初始位置和最小转弯半径在辅助坐标系的y轴上确定第一圆心;如图6所示,第一圆心为第一辅助圆的圆心,第一圆心位于车辆初始位置与辅助线之间;最小转弯半径为R,第一圆心坐标为(0,-R);The first circle center is determined on the y-axis of the auxiliary coordinate system according to the initial position of the vehicle and the minimum turning radius; as shown in Figure 6, the first circle center is the center of the first auxiliary circle, and the first circle center is located between the initial position of the vehicle and the auxiliary line ;The minimum turning radius is R, and the coordinates of the first circle center are (0, -R);
基于第一圆心和最小转弯半径构建第一辅助圆;Construct a first auxiliary circle based on the first circle center and the minimum turning radius;
基于辅助线和第一辅助圆确定第二圆心;其中,第二圆心为第二辅助圆的圆心;其中,第二圆心的坐标为(a,b);The second center is determined based on the auxiliary line and the first auxiliary circle; wherein, the second center is the center of the second auxiliary circle; wherein, the coordinates of the second center are (a, b);
基于第二圆心和最小转弯半径构建第二辅助圆;Construct a second auxiliary circle based on the second circle center and the minimum turning radius;
将第一辅助圆与第二辅助圆上连接车辆初始位置、中间点位置和结束点位置的最短的S形曲线作为第二目标轨迹,所得到的S形第二目标轨迹符合驾驶员打方向盘的习惯。The shortest S-shaped curve connecting the initial position of the vehicle, the position of the intermediate point and the position of the end point on the first auxiliary circle and the second auxiliary circle is used as the second target trajectory, and the obtained S-shaped second target trajectory conforms to the driver's steering wheel. Habit.
其中,中间点位置为第一辅助圆与第二辅助圆的切点,其坐标为(Mx,My)=(a-R*cosβ,b+R*sinβ);结束点位置为第二辅助圆与辅助线的切点,其坐标为(Ex,Ey)=(a+R*sinα,b+R*cosα),这里的α是辅助线与车辆行驶方向之间的夹角,α是带方向的负值。Among them, the position of the middle point is the tangent point between the first auxiliary circle and the second auxiliary circle, and its coordinates are (M x , M y )=(aR*cosβ, b+R*sinβ); the position of the end point is the second auxiliary circle The tangent point with the auxiliary line, its coordinates are (E x , E y )=(a+R*sinα, b+R*cosα), where α is the angle between the auxiliary line and the driving direction of the vehicle, α is Negative value with direction.
也就是说,第一辅助圆的半径是上述的最小转弯半径,第二辅助圆的半径也是上述的最小转弯半径,第一辅助圆与车辆行驶方向相切于车辆初始位置(即点S2),第二辅助圆与辅助线相切于点E2,第一辅助圆与第二辅助圆外切M2。第二目标轨迹是图示的依次经过S3、S2、S1、M3、M2、M1、E3、E2、E1的S形曲线。That is to say, the radius of the first auxiliary circle is the above-mentioned minimum turning radius, the radius of the second auxiliary circle is also the above-mentioned minimum turning radius, and the first auxiliary circle is tangent to the vehicle's driving direction at the initial position of the vehicle (ie point S 2 ) , the second auxiliary circle and the auxiliary line are tangent to the point E 2 , and the first auxiliary circle and the second auxiliary circle circumscribe M 2 . The second target trajectory is an S-shaped curve passing through S 3 , S 2 , S 1 , M 3 , M 2 , M 1 , E 3 , E 2 , and E 1 in sequence as shown in the figure.
随着辅助线每一时刻实时更新,点S3、S2、S1、M3、M2、M1、E3、E2、E1也实时更新,根据这些点确定的S形曲线也在实时更新。As the auxiliary line is updated in real time at every moment, the points S 3 , S 2 , S 1 , M 3 , M 2 , M 1 , E 3 , E 2 , and E 1 are also updated in real time, and the S-shaped curve determined according to these points is also updated in real time. Update in real time.
将轨迹结束点的坐标(Ex,Ey)=(a+R*sinα,b+R*cosα)代入辅助线表达式得到:Substitute the coordinates of the trajectory end point ( Ex, E y ) =(a+R*sinα, b+R*cosα) into the auxiliary line expression to get:
sinα·Ex-cosα·Ey+C0=0 (式1)sinα·E x -cosα·E y +C 0 =0 (Equation 1)
根据式1可以得到式2According to
sinα·(a+R*sinα)-cosα·(b+R*cosα)+C0=0 (式2)sinα·(a+R*sinα)-cosα·(b+R*cosα)+C 0 =0 (Equation 2)
将式2转化为式3,式3是b关于a的表达式Convert Equation 2 into Equation 3, Equation 3 is the expression of b with respect to a
b=tanα·(a+R*sinα)-R·cosα+C0/cosα (式3)b=tanα·(a+R*sinα)-R·cosα+C 0 /cosα (Equation 3)
根据第一圆心与第二圆心的几何关系得到式4According to the geometric relationship between the first circle center and the second circle center, Equation 4 is obtained
a2+(R+b)2=(2R)2 (式4)a 2 +(R+b) 2 =(2R) 2 (Equation 4)
将式3代入式4得到式5,式5是关于a的一元二次方程Substitute Equation 3 into Equation 4 to obtain Equation 5, which is the quadratic equation in one variable with respect to a
(1+tan2α)·α2+(2·R·tanα+2·R·tan2α·sinα-2·R·sinα+2·tanα·C0/cosα·α+2R2·tαna·sinα-2R2·cosα+2RC0/cosα+R·tαnα·sinα-R·cosα+C0/cosα2=0(式5)(1+tan 2 α)·α 2 +(2·R·tanα+2·R·tan 2 α·sinα-2·R·sinα+2·tanα·C0/cosα·α+2R2·tαna·sinα- 2R2·cosα+2RC0/cosα+R·tαnα·sinα-R·cosα+C0/cosα2=0 (Formula 5)
用C1、C2、C3指代二次方程的各项系数简化得到式6Using C 1 , C 2 , and C 3 to represent the coefficients of the quadratic equations, the
C1·a2+C2·a+C3=0 (式6)C 1 ·a 2 +C 2 ·a+C 3 =0 (Formula 6)
通用方式求解出式7,式7为a的表达式Solve Equation 7 in a general way, Equation 7 is the expression of a
将式7代回式3求出b,得到坐标(a,b)Substitute Equation 7 into Equation 3 to find b, and get the coordinates (a, b)
再把求解出的坐标(a,b)代回结束点的坐标(Ex,Ey)=(a+R*sinα,b+R*cosα),求出结束点的坐标(Ex,Ey)Then substitute the solved coordinates (a, b) back to the coordinates of the end point (E x , E y )=(a+R*sinα, b+R*cosα), and find the coordinates of the end point (E x , E y )
构建β的表达式sinβ=(R+b)/2R,cosβ=a/2R,Construct the expression of β sinβ=(R+b)/2R, cosβ=a/2R,
将β的表达式代回中间点的坐标表达式Mx==a-R*cosβ,My=b+R*sinβ,求出(Mx,My)。Substitute the expression of β back into the coordinate expression of the intermediate point M x == aR*cosβ, My = b+R*sinβ, and obtain (M x , My ).
图7是本发明实施例提供的规划第二目标轨迹的另一个原理图,请参照图7,在一些实施例中,以最小转弯半径为半径构建经过车辆初始位置且分别与车辆行驶方向和辅助线相切的曲线,得到第二目标轨迹,包括:FIG. 7 is another schematic diagram of planning a second target trajectory provided by an embodiment of the present invention. Please refer to FIG. 7. In some embodiments, the minimum turning radius is used as the radius to construct the initial position of the passing vehicle and is respectively related to the driving direction of the vehicle and the auxiliary vehicle. The curve of the line tangent to obtain the second target trajectory, including:
以车辆初始位置为原点(Sx,Sy)构建辅助坐标系;其中,辅助坐标系的x'轴方向是根据目标点的航向角确定的,辅助坐标系的y'轴与x'轴垂直;The auxiliary coordinate system is constructed with the initial position of the vehicle as the origin (S x , S y ); the x' axis direction of the auxiliary coordinate system is determined according to the heading angle of the target point, and the y' axis of the auxiliary coordinate system is perpendicular to the x'axis;
根据车辆初始位置和最小转弯半径在辅助坐标系的y'轴上确定第一圆心;其中,第一圆心为第一辅助圆的圆心,其坐标为(0,-R),第一圆心位于车辆初始位置与辅助线之间;辅助线的表达式为sinα·x-cosα·y+C0=0,辅助线平行于x'轴。The first circle center is determined on the y' axis of the auxiliary coordinate system according to the initial position of the vehicle and the minimum turning radius; wherein, the first circle center is the center of the first auxiliary circle whose coordinates are (0, -R), and the first circle center is located in the vehicle Between the initial position and the auxiliary line; the expression of the auxiliary line is sinα·x-cosα·y+C 0 =0, and the auxiliary line is parallel to the x' axis.
基于第一圆心和最小转弯半径构建第一辅助圆;Construct a first auxiliary circle based on the first circle center and the minimum turning radius;
基于辅助线和第一辅助圆确定第二圆心;其中,第二圆心为第二辅助圆的圆心;The second center is determined based on the auxiliary line and the first auxiliary circle; wherein, the second center is the center of the second auxiliary circle;
基于第二圆心和最小转弯半径构建第二辅助圆;Construct a second auxiliary circle based on the second circle center and the minimum turning radius;
将第一辅助圆与第二辅助圆上连接车辆初始位置、中间点位置(Mx,My)和结束点位置(Ex,Ey)的最短的S形曲线作为第二目标轨迹,其中,中间点位置为第一辅助圆与第二辅助圆的切点,结束点位置为第二辅助圆与辅助线的切点。The shortest S-shaped curve connecting the initial position of the vehicle, the position of the intermediate point (M x , My y ) and the position of the end point (E x , E y ) on the first auxiliary circle and the second auxiliary circle is used as the second target trajectory, where , the middle point is the tangent point between the first auxiliary circle and the second auxiliary circle, and the end point is the tangent point between the second auxiliary circle and the auxiliary line.
从原点沿辅助线法向平移到辅助线的横向距离为The lateral distance from the origin along the auxiliary line normal to the auxiliary line is
L横向=sinα·Sx-cosα·Sy+C0 (式8)L lateral direction=sinα·S x −cosα·S y +C 0 (Equation 8)
从原点沿辅助线平移到辅助线的纵向距离为The longitudinal distance from the origin along the auxiliary line to the auxiliary line is
-cosα·x-sinα·y+C1=0-cosα·x-sinα·y+C 1 =0
平移法计算出Mx、My、Ex和Ey The translation method calculates M x , My y , Ex and E y
Mx=Sx-cosα*L纵向/2-sinα*L横向/2M x =S x -cosα*L vertical /2-sinα*L horizontal /2
My=Sy-sinα*L纵向/2+cosα*L横向/2M y =S y -sinα*L vertical direction /2+cosα*L horizontal direction/2
Ex=Sx-cosα*L纵向-sinα*L横向 E x =S x -cosα*Llongitudinal- sinα * Ltransverse
Ey=Sy-sinα*L纵向+cosα*L横向 E y =S y -sinα*L vertical direction +cosα*L horizontal direction
与图6示出的计算方法相比,图7示出的计算方法可以简化求解过程,最终求解出来的轨迹线也比较接近,能达到近似的效果。Compared with the calculation method shown in FIG. 6 , the calculation method shown in FIG. 7 can simplify the solution process, and the finally solved trajectory lines are relatively close, which can achieve an approximate effect.
上述实施例公开的是用两个辅助圆得到第二目标轨迹的方法,此外用一个辅助员得到第二目标轨迹的方法也是可行的。The above-mentioned embodiment discloses a method for obtaining the second target trajectory by using two auxiliary circles, and a method for obtaining the second target trajectory by using one assistant is also feasible.
例如,在一些实施例中,以最小转弯半径为半径构建经过车辆初始位置且分别与车辆行驶方向和辅助线相切的曲线,得到第二目标轨迹,包括:For example, in some embodiments, a minimum turning radius is used as a radius to construct a curve passing through the initial position of the vehicle and tangent to the driving direction of the vehicle and the auxiliary line, respectively, to obtain the second target trajectory, including:
基于车辆初始位置、车辆行驶方向、最小转弯半径和辅助线确定第三辅助圆的圆心;其中,第三辅助圆与车辆行驶方向相切于车辆初始位置,第三辅助圆的半径为最小转弯半径,第三辅助圆与辅助线相切;The center of the third auxiliary circle is determined based on the initial position of the vehicle, the driving direction of the vehicle, the minimum turning radius and the auxiliary line; wherein, the third auxiliary circle is tangent to the driving direction of the vehicle at the initial position of the vehicle, and the radius of the third auxiliary circle is the minimum turning radius , the third auxiliary circle is tangent to the auxiliary line;
基于确定出圆心以最小转弯半径为半径构建第三辅助圆;Based on the determined circle center, the third auxiliary circle is constructed with the minimum turning radius as the radius;
将第三辅助圆上连接车辆初始位置和结束点位置的最短的圆曲线作为第二目标轨迹;其中,结束点位置为第三辅助圆与辅助线的切点。The shortest circular curve connecting the initial position of the vehicle and the position of the end point on the third auxiliary circle is used as the second target trajectory; wherein, the position of the end point is the tangent point between the third auxiliary circle and the auxiliary line.
在一些可替代的实施例中,第二目标轨迹可以是从车辆初始位置到结束点的直线,相比于上述的S形曲线的示例,直线形的第二目标轨迹能够缩短第二目标轨迹的线段长度,使车辆更快速的从当前车辆位置过渡到第一目标轨迹线上,然而,直线形的第二目标轨迹不够平滑、降低了驾乘人员的舒适性,用户体验不佳,也不符合驾驶员打方向盘的习惯。In some alternative embodiments, the second target trajectory may be a straight line from the initial position of the vehicle to the end point. Compared with the above example of the S-shaped curve, the straight second target trajectory can shorten the length of the second target trajectory. The length of the line segment makes the vehicle transition from the current vehicle position to the first target trajectory line more quickly. However, the straight second target trajectory is not smooth enough, which reduces the comfort of the driver and passengers, and the user experience is not good and does not meet the The driver's habit of turning the steering wheel.
需要说明的是,本发明实施例优先采用上述用辅助圆得到第二目标轨迹的方案,而非其他形状的辅助图形例如椭圆等,是因为圆曲线可以平滑过渡到目标轨迹线,而且圆曲线相比于其他形状(例如椭圆形等)更容易计算。除上面列举的几则较佳的实施例以外,本发明实施例的第二目标轨迹还可以是其他形状和采用其他的规划方法,本实施例不以此为限。It should be noted that the embodiment of the present invention preferentially adopts the above-mentioned scheme of obtaining the second target trajectory by using an auxiliary circle, rather than auxiliary graphics of other shapes such as ellipses, etc., because the circular curve can smoothly transition to the target trajectory line, and the circular curve is similar to the target trajectory. Easier to compute than other shapes such as ellipses, etc. In addition to the several preferred embodiments listed above, the second target trajectory in this embodiment of the present invention may also have other shapes and other planning methods, which are not limited in this embodiment.
在一些可替代的实施例中,结束点位置可以是第一目标轨迹上的固定位置,相比于上述结束点位置实时更新的方案,该方案所规划出的第二目标轨迹路径更长、不能够快速或平滑的过渡到第一目标轨迹上。In some alternative embodiments, the position of the end point may be a fixed position on the first target trajectory. Compared with the above solution in which the position of the end point is updated in real time, the planned path of the second target trajectory in this solution is longer and less frequent. Can quickly or smoothly transition to the first target trajectory.
请继续参照图2和图3,在一些实施例中,基于车辆初始位置信息、车辆行驶速度和第一目标轨迹生成第二目标轨迹之后,还包括:Please continue to refer to FIG. 2 and FIG. 3 , in some embodiments, after generating the second target trajectory based on the vehicle initial position information, the vehicle speed and the first target trajectory, the method further includes:
在第二目标轨迹上已计算出的点的位置两侧按预设时间间隔分别取若干个辅助点;其中,辅助点在第二目标轨迹上;已计算出的点包括车辆初始位置、以及第二目标轨迹的中间点或结束点;例如,在当前车辆位置S2前1s、后1s各取一个点S3、S1,在中间点位置M2的前1s、后1s各取一个点M3、M1,在结束点位置E2的前1s、后1s各取一个点E3、E1。需要说明的是,根据实际需要,预设时间间隔还可以是其他数值,辅助点个数还可以是其他数值,例如前后各取2个辅助点等,本实施例不以此为限。A number of auxiliary points are respectively taken at preset time intervals on both sides of the calculated point on the second target trajectory; the auxiliary point is on the second target trajectory; the calculated points include the initial position of the vehicle and the first The middle point or end point of the two target trajectories; for example, a point S 3 and S 1 are taken 1s before and 1s after the current vehicle position S2, and a point M is taken 1s before and 1s after the middle point position M2 3. M 1 , take a point E 3 and E 1 at the first 1 s and the last 1 s of the end point position E 2 . It should be noted that, according to actual needs, the preset time interval can also be other numerical values, and the number of auxiliary points can also be other numerical values, for example, two auxiliary points are taken before and after, which is not limited in this embodiment.
根据已计算出的点的位置和若干个辅助点对第二目标轨迹进行平滑处理,得到平滑处理后的第二目标轨迹。The second target trajectory is smoothed according to the calculated position of the point and several auxiliary points to obtain a smoothed second target trajectory.
本发明实施例不受车辆初始状态条件限制,可以在车道内任一位置激活初始轨迹规划功能,并且沿规划出的第二目标轨迹直接向第一目标轨迹快而平稳的移动,实车表现效果良好。The embodiment of the present invention is not limited by the initial state conditions of the vehicle, the initial trajectory planning function can be activated at any position in the lane, and the planned second target trajectory can move directly to the first target trajectory quickly and smoothly, and the real vehicle performance effect good.
需要说明的是,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。It should be noted that the present invention is not limited by the described sequence of actions, because according to the present invention, certain steps may be performed in other sequences or simultaneously.
图8是本发明实施例提供的一种初始轨迹规划装置的结构框图,具体的如图8所示,该装置包括:FIG. 8 is a structural block diagram of an initial trajectory planning apparatus provided by an embodiment of the present invention. Specifically, as shown in FIG. 8 , the apparatus includes:
获取模块301,用于响应于用于使自车车辆在目标车道内沿第一目标轨迹行驶的目标控制指令,获取自车的车辆初始位置信息、车辆行驶速度和第一目标轨迹;其中,车辆初始位置信息包括车辆初始位置和车辆行驶方向;第一目标轨迹是根据目标车道的车道线和目标车辆的轨迹检测结果得到的,目标车辆在目标车道内行驶;The acquiring module 301 is configured to acquire the vehicle initial position information, the vehicle speed and the first target trajectory of the self-vehicle in response to the target control instruction for causing the self-vehicle vehicle to travel along the first target trajectory in the target lane; wherein, the vehicle The initial position information includes the initial position of the vehicle and the driving direction of the vehicle; the first target trajectory is obtained according to the lane line of the target lane and the trajectory detection result of the target vehicle, and the target vehicle is driving in the target lane;
轨迹生成模块302,用于基于车辆初始位置信息、车辆行驶速度和第一目标轨迹生成第二目标轨迹,以使自车从车辆初始位置沿第二目标轨迹并入第一目标轨迹;a trajectory generation module 302, configured to generate a second target trajectory based on the vehicle initial position information, the vehicle speed and the first target trajectory, so that the self-vehicle merges into the first target trajectory along the second target trajectory from the vehicle initial position;
轨迹更新模块303,用于在生成第二目标轨迹之后,根据车辆初始位置信息以及实时获取的车辆行驶速度和第一目标轨迹更新第二目标轨迹。The trajectory updating module 303 is configured to, after generating the second target trajectory, update the second target trajectory according to the initial position information of the vehicle, the vehicle traveling speed and the first target trajectory acquired in real time.
本发明的实施例还提供了一种车辆,具有上述装置实施例提供的初始轨迹规划装置。需要说明的是,在不偏离本公开的范围的情况下,本发明的车辆可为卡车、运动型多用途车、厢式货车、房车或任何其它类型的车辆。Embodiments of the present invention further provide a vehicle, which has the initial trajectory planning device provided by the above device embodiments. It should be noted that the vehicle of the present invention may be a truck, sport utility vehicle, van, motorhome or any other type of vehicle without departing from the scope of the present disclosure.
本发明的实施例还提供了一种电子设备,电子设备包括处理器和存储器,存储器中存储有至少一条指令、至少一段程序、代码集或指令集,至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现如方法实施例中的初始轨迹规划方法。An embodiment of the present invention also provides an electronic device, the electronic device includes a processor and a memory, and the memory stores at least one instruction, at least one piece of program, code set or instruction set, at least one instruction, at least one piece of program, code set or The instruction set is loaded and executed by the processor to implement the initial trajectory planning method as in the method embodiment.
本发明的实施例还提供了一种存储介质,所述存储介质可设置于服务器之中以保存用于实现方法实施例中的初始轨迹规划方法相关的至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、该至少一段程序、该代码集或指令集由该处理器加载并执行以实现上述方法实施例提供的初始轨迹规划方法。Embodiments of the present invention further provide a storage medium, which can be set in a server to store at least one instruction, at least one piece of program, code set, or at least one relevant instruction for implementing the initial trajectory planning method in the method embodiment. An instruction set, the at least one instruction, the at least one piece of program, the code set or the instruction set is loaded and executed by the processor to implement the initial trajectory planning method provided by the above method embodiments.
可选地,在本实施例中,上述存储介质可以位于计算机网络的多个网络服务器中的至少一个网络服务器。可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may be located in at least one network server among multiple network servers of a computer network. Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic Various media that can store program codes, such as discs or optical discs.
由上述本发明提供的初始轨迹规划方法、装置、电子设备或存储介质的实施例可见,本发明实施例不受车辆初始状态条件限制,可以在车道内任一位置激活初始轨迹规划功能,并且沿规划出的第二目标轨迹直接向第一目标轨迹快而平稳的移动,不会产生多余动作。It can be seen from the above-mentioned embodiments of the initial trajectory planning method, device, electronic device or storage medium provided by the present invention that the embodiments of the present invention are not limited by the initial state conditions of the vehicle, and the initial trajectory planning function can be activated at any position in the lane, and the initial trajectory planning function can be activated along the lane. The planned second target trajectory moves directly to the first target trajectory quickly and smoothly without any unnecessary actions.
需要说明的是:上述本发明实施例先后顺序仅仅为了描述,不代表实施例的优劣。且上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that: the above-mentioned order of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置和服务器实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210486790.3A CN114684200B (en) | 2022-05-06 | 2022-05-06 | Initial trajectory planning method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210486790.3A CN114684200B (en) | 2022-05-06 | 2022-05-06 | Initial trajectory planning method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114684200A true CN114684200A (en) | 2022-07-01 |
| CN114684200B CN114684200B (en) | 2025-07-11 |
Family
ID=82144872
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210486790.3A Active CN114684200B (en) | 2022-05-06 | 2022-05-06 | Initial trajectory planning method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114684200B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20240400103A1 (en) * | 2023-05-31 | 2024-12-05 | Zoox, Inc. | Interaction prediction based on tracking trajectory |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170364083A1 (en) * | 2016-06-21 | 2017-12-21 | Baidu Online Network Technology (Beijing) Co., Ltd. | Local trajectory planning method and apparatus for smart vehicles |
| US20180297638A1 (en) * | 2017-04-12 | 2018-10-18 | Toyota Jidosha Kabushiki Kaisha | Lane change assist apparatus for vehicle |
| CN112277930A (en) * | 2020-10-20 | 2021-01-29 | 上海欧菲智能车联科技有限公司 | Horizontal autonomous parking control method and device, vehicle and storage medium |
| CN112339747A (en) * | 2020-10-30 | 2021-02-09 | 上海欧菲智能车联科技有限公司 | Automatic parking track generation method and device, electronic equipment and storage medium |
| CN112498367A (en) * | 2020-11-25 | 2021-03-16 | 重庆长安汽车股份有限公司 | Driving track planning method and device, automobile, controller and computer readable storage medium |
| CN113671941A (en) * | 2020-05-15 | 2021-11-19 | 北京京东乾石科技有限公司 | Trajectory planning method, device, equipment and storage medium |
| CN113799798A (en) * | 2021-08-27 | 2021-12-17 | 北京百度网讯科技有限公司 | Method and device for determining driving track of vehicle, electronic equipment and memory |
-
2022
- 2022-05-06 CN CN202210486790.3A patent/CN114684200B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170364083A1 (en) * | 2016-06-21 | 2017-12-21 | Baidu Online Network Technology (Beijing) Co., Ltd. | Local trajectory planning method and apparatus for smart vehicles |
| US20180297638A1 (en) * | 2017-04-12 | 2018-10-18 | Toyota Jidosha Kabushiki Kaisha | Lane change assist apparatus for vehicle |
| CN113671941A (en) * | 2020-05-15 | 2021-11-19 | 北京京东乾石科技有限公司 | Trajectory planning method, device, equipment and storage medium |
| CN112277930A (en) * | 2020-10-20 | 2021-01-29 | 上海欧菲智能车联科技有限公司 | Horizontal autonomous parking control method and device, vehicle and storage medium |
| CN112339747A (en) * | 2020-10-30 | 2021-02-09 | 上海欧菲智能车联科技有限公司 | Automatic parking track generation method and device, electronic equipment and storage medium |
| CN112498367A (en) * | 2020-11-25 | 2021-03-16 | 重庆长安汽车股份有限公司 | Driving track planning method and device, automobile, controller and computer readable storage medium |
| CN113799798A (en) * | 2021-08-27 | 2021-12-17 | 北京百度网讯科技有限公司 | Method and device for determining driving track of vehicle, electronic equipment and memory |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20240400103A1 (en) * | 2023-05-31 | 2024-12-05 | Zoox, Inc. | Interaction prediction based on tracking trajectory |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114684200B (en) | 2025-07-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111731289B (en) | Following control method and device, vehicle and storage medium | |
| JP6525332B2 (en) | Semi-autonomous vehicle and method of controlling semi-autonomous vehicle | |
| JP7703928B2 (en) | Travel trajectory generation method, travel assistance method, travel trajectory generation device, and travel assistance device | |
| CN110361013B (en) | A system and method for path planning for vehicle models | |
| US20200339159A1 (en) | Automatic driving track obtaining method and apparatus | |
| CN111830979B (en) | Track optimization method and device | |
| CN113916246A (en) | Unmanned obstacle avoidance path planning method and system | |
| CN113942527B (en) | A vehicle control method and device based on automatic driving | |
| CN111267857B (en) | A method and device for generating a lane-changing trajectory for an autonomous vehicle | |
| JP2018047828A (en) | Vehicle motion control device | |
| CN116118780A (en) | Vehicle obstacle avoidance track planning method, system, vehicle and storage medium | |
| CN114148348A (en) | Stop control method, device and computer program for automatic driving vehicle | |
| CN117163068B (en) | Narrow road passage method, device and vehicle | |
| US12103555B2 (en) | Vehicle motion control device and vehicle motion control method | |
| CN115195718A (en) | Lane keeping auxiliary driving method and system and electronic equipment | |
| CN115107746A (en) | Control method and device for tracking walking and parking integrated track, vehicle and storage medium | |
| CN110239518B (en) | Vehicle transverse position control method and device | |
| CN114684200A (en) | Initial trajectory planning method, device, equipment and storage medium | |
| CN115542899B (en) | Vehicle path tracking method, device, vehicle, electronic device and medium | |
| CN113752941B (en) | Unmanned vehicle steering lamp control method and device, unmanned vehicle and storage medium | |
| CN113840762A (en) | Method for operating an autonomous vehicle | |
| CN120462386A (en) | A new energy unmanned driving chassis control system and method | |
| US12283088B2 (en) | Method and system for determining a driving corridor | |
| CN118329063A (en) | A lateral reference position decision method and vehicle for automatic driving path planning | |
| CN117589187A (en) | Optimal path local dynamic planning method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |