[go: up one dir, main page]

CN118579058A - Speed planning method and device - Google Patents

Speed planning method and device Download PDF

Info

Publication number
CN118579058A
CN118579058A CN202411061412.6A CN202411061412A CN118579058A CN 118579058 A CN118579058 A CN 118579058A CN 202411061412 A CN202411061412 A CN 202411061412A CN 118579058 A CN118579058 A CN 118579058A
Authority
CN
China
Prior art keywords
speed
acceleration
trajectory
planning
expression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411061412.6A
Other languages
Chinese (zh)
Other versions
CN118579058B (en
Inventor
申静朝
刘国清
杨广
王启程
黄亮
胡子豪
张顺杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youjia Innovation Technology Co ltd
Original Assignee
Shenzhen Youjia Innovation 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 Shenzhen Youjia Innovation Technology Co ltd filed Critical Shenzhen Youjia Innovation Technology Co ltd
Priority to CN202411061412.6A priority Critical patent/CN118579058B/en
Publication of CN118579058A publication Critical patent/CN118579058A/en
Application granted granted Critical
Publication of CN118579058B publication Critical patent/CN118579058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/02Control of vehicle driving stability
    • B60W30/025Control of vehicle driving stability related to comfort of drivers or passengers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/14Adaptive cruise control
    • B60W30/143Speed control
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W50/0098Details of control systems ensuring comfort, safety or stability not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks
    • B60W60/0013Planning or execution of driving tasks specially adapted for occupant comfort
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0043Signal treatments, identification of variables or parameters, parameter estimation or state estimation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • B60W2520/10Longitudinal speed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2554/00Input parameters relating to objects
    • B60W2554/40Dynamic objects, e.g. animals, windblown objects
    • B60W2554/404Characteristics
    • B60W2554/4042Longitudinal speed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2554/00Input parameters relating to objects
    • B60W2554/80Spatial relation or speed relative to objects
    • B60W2554/802Longitudinal distance
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W2720/00Output or target parameters relating to overall vehicle dynamics
    • B60W2720/10Longitudinal speed
    • B60W2720/103Speed profile

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Traffic Control Systems (AREA)

Abstract

本申请提供了速度规划方法及装置,包括:前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取所述速度规划表达式的多个可行解;N为正整数;从所述多个可行解中选出代价最低的可行解作为最优解,并以所述最优解进行速度规划;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的;采用本申请能够提高速度规划精确度。

The present application provides a speed planning method and device, including: when the leading vehicle is within a preset range, the longitudinal trajectory is divided into N segments of trajectories with the goal of balancing driving comfort and driving safety, and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling point at the end of the trajectory; N is a positive integer; the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution, and speed planning is performed with the optimal solution; the cost is obtained based on the weighted sum of a first evaluation standard for driving comfort and a second evaluation standard for driving safety; the use of the present application can improve the accuracy of speed planning.

Description

速度规划方法及装置Speed planning method and device

技术领域Technical Field

本申请涉及智能驾驶技术领域,尤其涉及速度规划方法及装置。The present application relates to the field of intelligent driving technology, and in particular to a speed planning method and device.

背景技术Background Art

目前,越来越多的智能驾驶技术与产品开始服务于人们生活,特别是ADAS(Advanced Driving Assistant System,高级驾驶辅助装置)L2、L2++级别(自动驾驶部分自动化)相关功能大幅量产。汽车作为一种载人的代步工具在行驶过程中的舒适性至关重要,在自动驾驶过程中,车辆异常的加减速会导致乘客出现呕吐或头晕等不舒适问题,导致行车舒适度低,但是在一些紧急危险场景下又必须能够及时刹车避免碰撞,以保障行车安全性。At present, more and more intelligent driving technologies and products are beginning to serve people's lives, especially ADAS (Advanced Driving Assistant System) L2, L2++ level (partial automation of autonomous driving) related functions are being mass-produced. As a means of transportation for people, the comfort of a car during driving is crucial. During the autonomous driving process, abnormal acceleration and deceleration of the vehicle can cause passengers to vomit or feel dizzy, resulting in low driving comfort. However, in some emergency and dangerous scenarios, it is necessary to brake in time to avoid collisions to ensure driving safety.

智能驾驶中的速度求解及规划模块主要是权衡行车舒适度和行车安全性,在保证安全的前提下尽量舒适。常用的速度规划方法采用五次或者四次多项式等方法进行速度规划,但多项式的中间状态不可控,难以逼近最优解、速度规划精确度低。The speed solution and planning module in intelligent driving mainly balances driving comfort and driving safety, and strives to be as comfortable as possible while ensuring safety. Common speed planning methods use methods such as quintic or quartic polynomials for speed planning, but the intermediate state of the polynomial is uncontrollable, it is difficult to approach the optimal solution, and the speed planning accuracy is low.

发明内容Summary of the invention

本申请的目的是针对上述现有的相关技术的不足,提供了速度规划方法及装置,能够提高速度规划精确度。The purpose of this application is to address the deficiencies of the above-mentioned existing related technologies and provide a speed planning method and device that can improve the accuracy of speed planning.

第一方面,本申请提供了一种速度规划方法,包括:In a first aspect, the present application provides a speed planning method, comprising:

若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取所述速度规划表达式的多个可行解;N为正整数;If the preceding vehicle is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory; N is a positive integer;

从所述多个可行解中选出代价最低的可行解作为最优解,并以所述最优解进行速度规划;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。A feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution, and speed planning is performed using the optimal solution; the cost is obtained by weighting the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

相比于单个多次项表达式,本申请采用以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,相当于增加了(N-1)个中间控制点,使得单个多次项表达式的对速度规划的中间过程可控,从而提高速度规划精准度,并通过行车舒适度的第一评价标准、行车安全性的第二评价标准,从多个可行解中选出最优解,能够使得速度规划表达式能够更加拟合行车舒适度和行车安全性均衡的优化目标,从而更加逼近最优解,进一步提高速度规划精准度。Compared with a single multi-term expression, the present application adopts a method of balancing driving comfort and driving safety, divides the longitudinal trajectory into N segments and establishes multi-term expressions for each segment, which is equivalent to adding (N-1) intermediate control points, so that the intermediate process of speed planning of a single multi-term expression can be controlled, thereby improving the accuracy of speed planning, and selecting the optimal solution from multiple feasible solutions through the first evaluation standard of driving comfort and the second evaluation standard of driving safety, so that the speed planning expression can better fit the optimization goal of balancing driving comfort and driving safety, thereby being closer to the optimal solution and further improving the accuracy of speed planning.

进一步,所述以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,包括:Furthermore, the longitudinal trajectory is divided into N segments with the goal of balancing driving comfort and driving safety, and multi-term expressions are established for each segment to obtain a speed planning expression, including:

以当前位置为初始规划位置,以所述轨迹末尾位置为结束规划位置,获取规划距离,建立所述规划距离随时间变化的局部坐标系,基于所述局部坐标系,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为两段轨迹,并为所述两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式。The current position is taken as the initial planning position, the end position of the trajectory is taken as the ending planning position, the planning distance is obtained, and a local coordinate system in which the planning distance changes with time is established. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two trajectories, and multi-term expressions and equality constraints are established for the two trajectories respectively to obtain a speed planning expression.

进一步,所述速度规划表达式包括:第一段速度规划表达式、第二段速度规划表达式和等式约束;所述为所述两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式,包括:Further, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; the multi-term expression and the equality constraint are established for the two trajectories respectively to obtain the speed planning expression, including:

为所述两段轨迹分别建立相同格式但参数不同的四次项表达式,得到所述第一段速度规划表达式和所述第二段速度规划表达式,并根据所述初始规划位置、所述结束规划位置和所述两段轨迹的路径连续性,建立等式约束。A quartic expression with the same format but different parameters is established for the two trajectories respectively to obtain the first speed planning expression and the second speed planning expression, and an equality constraint is established according to the initial planning position, the end planning position and the path continuity of the two trajectories.

进一步,所述等式约束包括:加速度等式约束;所述加速度等式约束根据所述两段轨迹的路径连续性,建立等式约束,包括:Furthermore, the equation constraint includes: an acceleration equation constraint; the acceleration equation constraint establishes an equation constraint according to the path continuity of the two trajectories, including:

根据所述两段轨迹的路径连续性,建立第一段轨迹的速度曲线末尾位置和第二段轨迹的速度曲线初始位置相同的速度等式约束,并按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束。According to the path continuity of the two trajectories, a velocity equation constraint is established in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

进一步,所述加速度等式约束包括:第一加速度等式约束;所述按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束,包括:Further, the acceleration equation constraint includes: a first acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, including:

按照所述第一段轨迹和所述第二段轨迹的加速度曲线的波峰或波谷的绝对值相等,改写所述速度等式约束,得到所述第一加速度等式约束;其中,所述第一加速度等式约束包含所述速度等式约束的第一速度变化情况,所述第一速度变化情况包括:第一段轨迹加速和第二段轨迹减速的情况和第一段轨迹减速和第二段轨迹加速的情况。According to the equal absolute values of the peaks or troughs of the acceleration curves of the first and second trajectory segments, the velocity equation constraint is rewritten to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates, and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

本申请针对不同的加速度场景,来获取精确的加速度等式约束,从而精确对应的先加速后减速或先减速后加速的速度变化曲线,从而能够提高速度规划的精确度。This application aims at different acceleration scenarios to obtain accurate acceleration equation constraints, so as to accurately correspond to the speed change curve of accelerating first and then decelerating or decelerating first and then accelerating, thereby improving the accuracy of speed planning.

进一步,所述加速度等式约束还包括:第二加速度等式约束;所述按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束,还包括:Furthermore, the acceleration equation constraint further includes: a second acceleration equation constraint; the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, and further includes:

按照所述第二段轨迹的加速度曲线的波峰或波谷为定值,改写所述速度等式约束,得到所述第二加速度等式约束;其中,所述第二加速度等式约束包含所述速度等式约束的第二速度变化情况,所述第二速度变化情况包括:第一段轨迹加速和第二段轨迹匀速的情况和第一段轨迹减速和第二段轨迹匀速的情况。The velocity equation constraint is rewritten according to the peak or trough of the acceleration curve of the second trajectory as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes the second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory is accelerated and the second trajectory is uniform, and the first trajectory is decelerated and the second trajectory is uniform.

本申请还考虑到第二段轨迹的加速度曲线的波峰或波谷为定值的加速度场景,来获取精确的第二加速度等式约束,从而精确对应的先加速后匀速或先减速后匀速的速度变化曲线,能够增加加速度场景,从而能够避免由于单一加速度场景采样点数量不够导致无最优解的情况发生,进而能够更易逼近最优解,进一步提高速度规划的精确度。The present application also takes into account the acceleration scenario in which the peak or trough of the acceleration curve of the second segment of the trajectory is a constant value to obtain an accurate second acceleration equation constraint, thereby accurately corresponding to the speed change curve of first accelerating and then maintaining a constant speed or first decelerating and then maintaining a constant speed. The acceleration scenarios can be increased, thereby avoiding the situation where there is no optimal solution due to insufficient number of sampling points in a single acceleration scenario, and thus it is easier to approach the optimal solution, further improving the accuracy of speed planning.

进一步,所述等式约束还包括:Furthermore, the equality constraint also includes:

所述第一段速度规划表达式在所述初始规划位置时为所述定值;并且,The first speed planning expression is the fixed value at the initial planning position; and

所述初始规划位置的起始速度为自车当前实际速度;并且,The starting speed of the initial planning position is the current actual speed of the vehicle; and,

所述第一段轨迹的加速度曲线的起始加速度为所述定值;并且,The initial acceleration of the acceleration curve of the first trajectory is the constant value; and

所述第一段轨迹的速度曲线末尾速度和所述第二段轨迹的速度曲线初始速度相等;并且,The final speed of the speed curve of the first track segment is equal to the initial speed of the speed curve of the second track segment; and

所述第二段轨迹的速度曲线末尾速度等于前车当前实际速度;并且,The speed at the end of the speed curve of the second trajectory is equal to the current actual speed of the preceding vehicle; and

所述第二段轨迹的末尾速度加速度回归为所述定值;并且,The final velocity acceleration of the second trajectory returns to the constant value; and

速度规划总时长为预设定值;并且,The total duration of the speed planning is a preset value; and,

所述轨迹末尾位置为位置采样点。The end position of the trajectory is a position sampling point.

进一步,所述第一评价标准包括:舒适性代价;所述第二评价标准包括:碰撞代价、速度代价、向心加速度代价和稳定跟车代价;所述稳定跟车代价是根据每个时刻的纵向位移和每个时刻的安全距离的差值获取的;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的;包括:Furthermore, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained according to the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained according to the weighted sum of the first evaluation criterion of driving comfort and the second evaluation criterion of driving safety; including:

根据所述舒适性代价和所述碰撞代价、所述速度代价、所述向心加速度代价和所述稳定跟车代价的加权总和,得到所述代价。The cost is obtained according to a weighted sum of the comfort cost, the collision cost, the speed cost, the centripetal acceleration cost and the stable following cost.

进一步,若前车不在预设范围内时,则对所述纵向轨迹建立一次线性表达式,并在预设加速度范围内,对加速度进行采样,得到若干加速度采样点,根据所述若干加速度采样点,获取所述速度规划表达式的多个可行解,以使从所述多个可行解中选出代价最低的可行解作为最优解。Furthermore, if the leading vehicle is not within the preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within the preset acceleration range to obtain a number of acceleration sampling points. Based on the number of acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

本申请还考虑前车不在预设范围时,采用一次线性表达式来进行速度规划,相比于无论前车是否在预设范围内均采用多次项表达式的现有相关技术,能够对不在预设范围的前车场景,采用算力更小的一次线性表达式进行速度规划方式,能够降低算力要求和算力成本。The present application also considers the case where the leading vehicle is not within the preset range and adopts a linear expression to perform speed planning. Compared with the existing related technology that adopts multi-term expressions regardless of whether the leading vehicle is within the preset range or not, the present application can adopt a linear expression with smaller computing power to perform speed planning for the scenario where the leading vehicle is not within the preset range, thereby reducing computing power requirements and computing power costs.

第二方面,本申请提供了一种速度规划装置,包括:获取速度规划表达式模块和求解及规划模块;其中,In a second aspect, the present application provides a speed planning device, including: a speed planning expression acquisition module and a solution and planning module; wherein,

所述获取速度规划表达式模块,用于若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取所述速度规划表达式的多个可行解;N为正整数;The module for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions respectively to obtain the speed planning expression if the leading vehicle is within the preset range, with the goal of balancing driving comfort and driving safety, and obtain multiple feasible solutions of the speed planning expression according to the position sampling points at the end of the trajectory; N is a positive integer;

所述求解及规划模块,用于从所述多个可行解中选出代价最低的可行解作为最优解,并以所述最优解进行速度规划;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。The solution and planning module is used to select the feasible solution with the lowest cost from the multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请提供的一种速度规划方法的流程示意图;FIG1 is a flow chart of a speed planning method provided by the present application;

图2是本申请提供的前车在预设范围内时的示意图;FIG2 is a schematic diagram of a front vehicle provided by the present application when the front vehicle is within a preset range;

图3是本申请提供的单车道跟车巡航场景的示意图;FIG3 is a schematic diagram of a single-lane following cruise scenario provided by the present application;

图4是本申请提供的先加速后减速的加速度曲线示意图;FIG4 is a schematic diagram of an acceleration curve of first accelerating and then decelerating provided by the present application;

图5是本申请提供的先减速后加速的加速度曲线示意图;FIG5 is a schematic diagram of an acceleration curve of first deceleration and then acceleration provided by the present application;

图6是本申请提供的先加速后匀速的加速度曲线示意图;FIG6 is a schematic diagram of an acceleration curve of first accelerating and then maintaining a constant speed provided by the present application;

图7是本申请提供的先减速后匀速的加速度曲线示意图;FIG. 7 is a schematic diagram of an acceleration curve of first deceleration and then uniform speed provided by the present application;

图8是本申请提供的单车道单车巡航场景的示意图;FIG8 is a schematic diagram of a single lane single vehicle cruising scenario provided by the present application;

图9是本申请提供的一种速度规划装置的结构示意图。FIG. 9 is a schematic diagram of the structure of a speed planning device provided in the present application.

具体实施方式DETAILED DESCRIPTION

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

值得说明的是,常用的速度规划方法在进行速度规划时,常采用二次优化法等,但这种方法对车载芯片的算力要求高,相应的计算能力成本高;或者,采用五次或者四次多项式等方法进行速度规划,但多项式的中间状态不可控,难以逼近最优解、速度规划精确度低。It is worth mentioning that the commonly used speed planning methods often use quadratic optimization methods when performing speed planning, but this method has high requirements on the computing power of the on-board chip and the corresponding computing power cost is high; alternatively, methods such as quintic or quartic polynomials are used for speed planning, but the intermediate state of the polynomial is uncontrollable, making it difficult to approach the optimal solution and the speed planning accuracy is low.

基于此,本申请提供了速度规划方法及装置,通过对前车的判断,来决策是否通过纵向轨迹分为N段,若前车不在预设范围内,则可以对纵向轨迹构建一次线性表达式进行建模,从而降低运算要求;若前车在预设范围内,则可以通过均衡行车舒适度和行车安全性的要求,分别建立N个多次项表达式,并为N个多次项表达式建立对应的等式约束,基于采样点获取多个可行解,从而提高速度规划精确度;最后采用包含舒适性代价、碰撞代价、速度代价、向心加速度代价和稳定跟车代价的代价函数对多个可行解进行行车舒适度和行车安全性的评估,以选取全局最优解,从而进一步在提高速度规划精确度的同时均衡行车舒适度和行车安全性。Based on this, the present application provides a speed planning method and device, which decides whether to divide the longitudinal trajectory into N segments by judging the leading vehicle. If the leading vehicle is not within the preset range, a linear expression can be constructed for the longitudinal trajectory to model it, thereby reducing the calculation requirements; if the leading vehicle is within the preset range, N multi-term expressions can be established respectively by balancing the requirements of driving comfort and driving safety, and corresponding equality constraints are established for the N multi-term expressions, and multiple feasible solutions are obtained based on sampling points, thereby improving the accuracy of speed planning; finally, a cost function including comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost is used to evaluate the driving comfort and driving safety of multiple feasible solutions to select the global optimal solution, thereby further balancing driving comfort and driving safety while improving the accuracy of speed planning.

为了更加清楚地说明本申请提供的速度规划方法及装置,将通过以下实施例进行详细说明。In order to more clearly illustrate the speed planning method and device provided by the present application, a detailed description will be given through the following embodiments.

实施例1Example 1

参见图1,是本申请提供的一种速度规划方法的流程示意图,包括:步骤S11~S12,具体为:Referring to FIG. 1 , it is a flow chart of a speed planning method provided by the present application, including: Steps S11 to S12, specifically:

步骤S11、若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取速度规划表达式的多个可行解;N为正整数。Step S11: If the leading vehicle is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, with the goal of balancing driving comfort and driving safety. Multiple feasible solutions of the speed planning expression are obtained based on the position sampling points at the end of the trajectory; N is a positive integer.

在一些实施例中,判断前车是否在预设范围内,包括:若存在前车,且前车在预设距离阈值内,则前车在预设范围内。In some embodiments, determining whether the preceding vehicle is within a preset range includes: if there is a preceding vehicle and the preceding vehicle is within a preset distance threshold, then the preceding vehicle is within the preset range.

在一些实施例中,预设距离阈值可以是100米,也可以是50米,也可以在一定的距离范围内,例如前车在(50,150)米的距离范围内则认为是在预设范围内。In some embodiments, the preset distance threshold may be 100 meters, or 50 meters, or may be within a certain distance range. For example, if the preceding vehicle is within the distance range of (50, 150) meters, it is considered to be within the preset range.

在一些实施例中,参见图2,是本申请提供的前车在预设范围内时的示意图。在图2中,前车B在自车A前100米的预设范围内,自车A在单行道中行驶并跟随前车A,此时自车A需与前车B保持一定的安全距离。In some embodiments, see Figure 2, which is a schematic diagram of the front vehicle provided by the present application when it is within a preset range. In Figure 2, the front vehicle B is within a preset range of 100 meters in front of the self-vehicle A, and the self-vehicle A is driving in a one-way street and following the front vehicle A. At this time, the self-vehicle A needs to maintain a certain safety distance from the front vehicle B.

在一些实施例中,安全距离可以表示为:In some embodiments, the safety distance may be expressed as:

Xsafe= tsafe* V0+ Xmin_safeX safe = t safe * V 0 + X min_safe ;

其中,tsafe表示时间参数,Xmin_safe表示跟车最小距离,V0表示速度规划时自车起始速度为自车当前实际速度V0Among them, t safe represents the time parameter, X min_safe represents the minimum distance between vehicles, and V 0 represents that the starting speed of the vehicle during speed planning is the current actual speed of the vehicle V 0 .

在一些实施例中,时间参数tsafe(范围在1到3秒之间)和跟车最小距离Xmin_safe(范围在1-5米之间)都可由用户设定。此场景下,需要自车与前车距离尽可能的接近安全距离,由于前车的速度和位置是动态变化的,甚至可能刹停,所以需要自车实时进行速度规划,并要保证安全和舒适性。In some embodiments, the time parameter t safe (ranging from 1 to 3 seconds) and the minimum following distance X min_safe (ranging from 1 to 5 meters) can be set by the user. In this scenario, the distance between the vehicle and the front vehicle needs to be as close to the safe distance as possible. Since the speed and position of the front vehicle are dynamically changing and may even stop, the vehicle needs to plan its speed in real time and ensure safety and comfort.

在一些实施例中,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,包括:以当前位置为初始规划位置,以轨迹末尾位置为结束规划位置,获取规划距离,建立规划距离随时间变化的局部坐标系,基于局部坐标系,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为两段轨迹,并为两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式。In some embodiments, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, including: taking the current position as the initial planning position, taking the end position of the trajectory as the ending planning position, obtaining the planning distance, and establishing a local coordinate system in which the planning distance changes over time. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two segments, and multi-term expressions and equality constraints are established for the two segments to obtain a speed planning expression.

在一些实施例中,N优先取2。In some embodiments, N is preferably 2.

在一些实施例中,N还可以取其他正整数,以适应对应的驾驶场景。In some embodiments, N may also be other positive integers to adapt to corresponding driving scenarios.

在一些实施例中,速度规划表达式包括:第一段速度规划表达式、第二段速度规划表达式和等式约束;为两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式,包括:为两段轨迹分别建立相同格式但参数不同的四次项表达式,得到第一段速度规划表达式和第二段速度规划表达式,并根据初始规划位置、结束规划位置和两段轨迹的路径连续性,建立等式约束。In some embodiments, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; establishing multi-term expressions and equality constraints for the two trajectories respectively to obtain a speed planning expression, including: establishing quartic expressions with the same format but different parameters for the two trajectories respectively to obtain a first-segment speed planning expression and a second-segment speed planning expression, and establishing an equality constraint based on the initial planning position, the end planning position and the path continuity of the two trajectories.

值得说明的是,第一段速度规划表达式和第二段速度规划表达式是当对纵向轨迹进行两段轨迹划分时,得到的前后两段轨迹(分别对应第一段轨迹和第二段轨迹)的速度规划表达式。It is worth noting that the first-segment speed planning expression and the second-segment speed planning expression are speed planning expressions of the front and rear trajectories (corresponding to the first and second trajectories, respectively) obtained when the longitudinal trajectory is divided into two trajectories.

在一些实施例中,参见图3,是本申请提供的单车道跟车巡航场景的示意图。图3从上到下分别给出了规划距离(Speed, s)、速度(Velocity, v)和加速度(Acceleration,acc)随速度规划时间(time,t)变化的曲线图,即对图3第一个图对时间分别做一阶导和二阶导,可以得到图3第二个图和图3第三个图。在图3中速度规划总时长为6秒,以此进行速度规划。在图3的第一个图规划距离随规划时间的示意图中,曲线301是预测前车位置曲线,曲线302是预测前车安全距离曲线,曲线303是规划自车位置曲线。在图3的第二个图速度随规划时间变化的示意图中,曲线304是规划自车速度曲线,曲线305是自车当前速度,曲线306是前车当前速度,曲线307是用户设定速度。在图3的第三个图加速度随规划时间变化的示意图中,曲线308是规划自车第一段轨迹的加速度曲线,曲线309是规划自车第二段轨迹的加速度曲线。In some embodiments, see FIG3, which is a schematic diagram of a single-lane following cruise scenario provided by the present application. FIG3 shows, from top to bottom, the curves of the planned distance (Speed, s), speed (Velocity, v) and acceleration (Acceleration, acc) as the speed planning time (time, t), that is, the first-order derivative and the second-order derivative of the first figure of FIG3 are respectively made for time, and the second figure of FIG3 and the third figure of FIG3 can be obtained. In FIG3, the total time of speed planning is 6 seconds, and speed planning is performed in this way. In the schematic diagram of the planned distance versus planning time in the first figure of FIG3, curve 301 is the predicted position curve of the vehicle in front, curve 302 is the predicted safety distance curve of the vehicle in front, and curve 303 is the planned position curve of the vehicle in front. In the schematic diagram of the speed versus planning time in the second figure of FIG3, curve 304 is the planned speed curve of the vehicle in front, curve 305 is the current speed of the vehicle in front, curve 306 is the current speed of the vehicle in front, and curve 307 is the user-set speed. In the third diagram of FIG. 3 , which is a schematic diagram showing acceleration changes with planning time, curve 308 is the acceleration curve of the first segment of the planned trajectory of the vehicle, and curve 309 is the acceleration curve of the second segment of the planned trajectory of the vehicle.

在一些实施例中,局部坐标系下的自车纵向轨迹由两个四次多项式组成,第一段速度规划表达式和第一段速度规划表达式可以分别表示为:In some embodiments, the longitudinal trajectory of the vehicle in the local coordinate system is composed of two quartic polynomials, and the first-stage velocity planning expression and the first-stage velocity planning expression can be respectively expressed as:

f1(t)= a1*t4+ b1*t3+ c1*t2+ d1*t + e1;f1(t)= a1*t 4 + b1*t 3 + c1*t 2 + d1*t + e1;

f2(t)= a2* t4+ b2* t3+ c2* t2+ d2*t + e2;f2(t)= a2* t 4 + b2* t 3 + c2* t 2 + d2*t + e2;

其中,a1、b1、c1、d1、e1和a2、b2、c2、d2、e2分别为第一段速度规划表达式和第一段速度规划表达式的未知数,t为时刻;f1(t)和f2(t)分别表示第一段轨迹和第二段轨迹随时间变化的规划距离。Among them, a1, b1, c1, d1, e1 and a2, b2, c2, d2, e2 are the unknowns in the speed planning expression of the first segment and the second segment respectively, t is the time; f1(t) and f2(t) represent the planning distances of the first and second segments of the trajectory over time respectively.

在一些实施例中,等式约束包括:加速度等式约束。In some embodiments, the equality constraint comprises: an acceleration equality constraint.

在一些实施例中,加速度等式约束根据两段轨迹的路径连续性,建立等式约束,包括:根据两段轨迹的路径连续性,建立第一段轨迹的速度曲线末尾位置和第二段轨迹的速度曲线初始位置相同的速度等式约束,并按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束。In some embodiments, the acceleration equation constraint establishes an equation constraint according to the path continuity of the two trajectories, including: according to the path continuity of the two trajectories, establishing a velocity equation constraint in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and rewriting the velocity equation constraint according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

在一些实施例中,速度等式约束可以表示为:In some embodiments, the velocity equality constraint may be expressed as:

f2(ta)=f1(ta);f2(ta)=f1(ta);

其中,ta和tb分别表示为第一段轨迹的加速度曲线时间长度和第二段轨迹的加速度曲线时间长度。在一些实施例中,参见图3的第三个图,是加速度随规划时间变化的示意图。Wherein, ta and tb represent the time length of the acceleration curve of the first segment and the time length of the acceleration curve of the second segment, respectively. In some embodiments, referring to the third figure of FIG3 , it is a schematic diagram of the acceleration changing with the planning time.

在一些实施例中,加速度等式约束包括:第一加速度等式约束;按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束,包括:按照第一段轨迹和第二段轨迹的加速度曲线的波峰或波谷的绝对值相等,改写速度等式约束,得到第一加速度等式约束;其中,第一加速度等式约束包含速度等式约束的第一速度变化情况,第一速度变化情况包括:第一段轨迹加速和第二段轨迹减速的情况和第一段轨迹减速和第二段轨迹加速的情况。In some embodiments, the acceleration equation constraint includes: a first acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, including: rewriting the velocity equation constraint according to the absolute values of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment being equal to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

本申请针对不同的加速度场景,来获取精确的加速度等式约束,从而精确对应的先加速后减速或先减速后加速的速度变化曲线,从而能够提高速度规划的精确度。This application aims at different acceleration scenarios to obtain accurate acceleration equation constraints, so as to accurately correspond to the speed change curve of accelerating first and then decelerating or decelerating first and then accelerating, thereby improving the accuracy of speed planning.

在一些实施例中,加速度等式约束还包括:第二加速度等式约束;按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束,还包括:按照第二段轨迹的加速度曲线的波峰或波谷为定值,改写速度等式约束,得到第二加速度等式约束;其中,第二加速度等式约束包含速度等式约束的第二速度变化情况,第二速度变化情况包括:第一段轨迹加速和第二段轨迹匀速的情况和第一段轨迹减速和第二段轨迹匀速的情况。In some embodiments, the acceleration equation constraint also includes: a second acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, and also includes: rewriting the velocity equation constraint according to the peak or trough of the acceleration curve of the second trajectory segment as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes a second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory segment is accelerated and the second trajectory segment is uniformly accelerated and the first trajectory segment is decelerated and the second trajectory segment is uniformly accelerated.

在一些实施例中,定值可以取0。In some embodiments, the constant value may be 0.

值得说明的是,第一加速度等式约束和第二加速度等式约束是速度等式约束的两种具体表达,若第一段轨迹和第二段轨迹的加速度曲线的波峰或波谷的绝对值相等,则需要用第一加速度等式约束对第一段速度规划表达式和第二段速度规划表达式进行约束;若两段轨迹的加速度变化情况,则需要使用第二加速度等式约束对第一段速度规划表达式和第二段速度规划表达式进行约束。It is worth mentioning that the first acceleration equation constraint and the second acceleration equation constraint are two specific expressions of the velocity equation constraint. If the absolute values of the peaks or troughs of the acceleration curves of the first and second trajectory segments are equal, the first acceleration equation constraint is needed to constrain the first and second velocity planning expressions; if the acceleration of the two trajectory segments changes, the second acceleration equation constraint is needed to constrain the first and second velocity planning expressions.

本申请还考虑到第二段轨迹的加速度曲线的波峰或波谷为定值的加速度场景,来获取精确的第二加速度等式约束,从而精确对应的先加速后匀速或先减速后匀速的速度变化曲线,能够增加加速度场景,从而能够避免由于单一加速度场景采样点数量不够导致无最优解的情况发生,进而能够更易逼近最优解,进一步提高速度规划的精确度。The present application also takes into account the acceleration scenario in which the peak or trough of the acceleration curve of the second segment of the trajectory is a constant value to obtain an accurate second acceleration equation constraint, thereby accurately corresponding to the speed change curve of first accelerating and then maintaining a constant speed or first decelerating and then maintaining a constant speed. The acceleration scenarios can be increased, thereby avoiding the situation where there is no optimal solution due to insufficient number of sampling points in a single acceleration scenario, and thus it is easier to approach the optimal solution, further improving the accuracy of speed planning.

在一些实施例中,速度等式约束包括:两种情况,第一种情况是第一段轨迹和第二段轨迹的加速度曲线的波峰或波谷的绝对值相等(即第一加速度等式约束),第二种情况是第二段轨迹的加速度曲线的波峰或波谷为定值(即第二加速度等式约束)。In some embodiments, the velocity equation constraint includes: two cases, the first case is that the absolute values of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment are equal (i.e., the first acceleration equation constraint), and the second case is that the peaks or troughs of the acceleration curves of the second trajectory segment are constant (i.e., the second acceleration equation constraint).

在一些实施例中,第一段轨迹和第二段轨迹的加速度曲线的波峰或波谷的绝对值相等时,速度等式约束可以使用第一加速度等式进行表示,可以写为:In some embodiments, when the absolute values of the peaks or troughs of the acceleration curves of the first and second segments of the trajectory are equal, the velocity equation constraint can be expressed using the first acceleration equation, which can be written as:

|f1(ta/2)''| = |f1(ta+tb/2)''|;|f1(ta/2)''| = |f1(ta+tb/2)''|;

其中,f1()''是第一段速度规划表达式对规划时间求二阶导操作。值得说明的是,在这种情况下,可以产生四种速度曲线,包括:先加速后减速和先减速后加速,以及两段同时加速或减速。但是只考虑了先加速后减速和先减速后加速的情况,对两段同时加速或减速的速度曲线舍弃,两段同时加速或减速的情况不存在均衡行车舒适度和行车安全性的难题,因此才进行舍去。Among them, f1( )'' is the second-order derivative operation of the first speed planning expression on the planning time. It is worth noting that in this case, four speed curves can be generated, including: acceleration first and then deceleration, deceleration first and then acceleration, and two sections of simultaneous acceleration or deceleration. However, only the cases of acceleration first and then deceleration and deceleration first and then acceleration are considered, and the speed curve of two sections of simultaneous acceleration or deceleration is discarded. The case of two sections of simultaneous acceleration or deceleration does not have the problem of balancing driving comfort and driving safety, so it is discarded.

在一些实施例中,先加速后减速的速度曲线用来应对前车在安全距离外但速度低于自车等场景,参见图4是本申请提供的先加速后减速的加速度曲线示意图;先减速后加速的速度曲线用来应对前车在安全距离之内但速度高于自车车速等场景,参见图5是本申请提供的先减速后加速的加速度曲线示意图。In some embodiments, a speed curve that accelerates first and then decelerates is used to deal with scenarios such as the vehicle in front is outside a safe distance but has a lower speed than the vehicle itself. See Figure 4 for a schematic diagram of an acceleration curve that accelerates first and then decelerates provided by the present application; a speed curve that decelerates first and then accelerates is used to deal with scenarios such as the vehicle in front is within a safe distance but has a higher speed than the vehicle itself. See Figure 5 for a schematic diagram of an acceleration curve that decelerates first and then accelerates provided by the present application.

在一些实施例中,第二段轨迹的加速度曲线的波峰或波谷为定值时,速度等式约束可以使用第二加速度等式进行表示,可以写为:In some embodiments, when the peak or trough of the acceleration curve of the second trajectory is a constant value, the velocity equation constraint can be expressed using the second acceleration equation, which can be written as:

f1(ta+tb/2)''= 0。f1(ta+tb/2)''= 0.

值得说明的是,f1(ta+tb/2)''= 0分别对应两种速度曲线,包括:先加速后匀速和先减速后匀速,加速后匀速的速度曲线用来应对跟车起步等场景,先减速后匀速的速度曲线用来应对刹车跟停等场景,参见图6和图7分别是本申请提供的先加速后匀速的加速度曲线示意图和先减速后匀速的加速度曲线示意图。It is worth noting that f1(ta+tb/2)''= 0 corresponds to two speed curves, including: acceleration first and then constant speed and deceleration first and then constant speed. The speed curve of acceleration followed by constant speed is used to cope with scenarios such as starting with a vehicle, and the speed curve of deceleration first and then constant speed is used to cope with scenarios such as braking and stopping. See Figures 6 and 7, which are schematic diagrams of the acceleration curve of acceleration first and then constant speed and the acceleration curve of deceleration first and then constant speed provided in this application.

在一些实施例中,等式约束还包括:第一段速度规划表达式在初始规划位置时为定值;并且,初始规划位置的起始速度为自车当前实际速度;并且,第一段轨迹的加速度曲线的起始加速度为定值;并且,述第一段轨迹的速度曲线末尾速度和第二段轨迹的速度曲线初始速度相等;并且,第二段轨迹的速度曲线末尾速度等于前车当前实际速度;并且,述第二段轨迹的末尾速度加速度回归为定值;并且,速度规划总时长为预设定值;并且,轨迹末尾位置为位置采样点。In some embodiments, the equality constraint also includes: the first segment speed planning expression is a constant at the initial planning position; and the starting speed of the initial planning position is the current actual speed of the vehicle; and the starting acceleration of the acceleration curve of the first segment trajectory is a constant; and the end speed of the speed curve of the first segment trajectory is equal to the initial speed of the speed curve of the second segment trajectory; and the end speed of the speed curve of the second segment trajectory is equal to the current actual speed of the leading vehicle; and the end speed acceleration of the second segment trajectory regresses to a constant; and the total duration of the speed planning is a preset value; and the end position of the trajectory is a position sampling point.

在一些实施例中,等式约束的剩余约束可以表示为:In some embodiments, the remaining constraints of the equality constraint may be expressed as:

f1(0)=0;f1(0)=0;

f1(0)'=V0f1(0)'=V 0 ;

f1(0)''=0;f1(0)''=0;

f1(ta)''= 0;f1(ta)''= 0;

f2(ta)''=0;f2(ta)''=0;

f2(ta)=f1(ta);f2(ta)=f1(ta);

f2(ta)'=f1(ta)';f2(ta)'=f1(ta)';

f2(T)'= Vpf2(T)'= V p ;

f2(T)''= 0;f2(T)''= 0;

ta + tb= T;ta + tb = T;

f2(T) =s;f2(T) =s;

其中,f1(0)=0表示自车起始位置为0;f1(0)'=V0表示自车起始速度为自车当前实际速度V0,f1()'是第一段速度规划表达式对规划时间求一阶导操作;f1(0)''=0表示第一段轨迹的加速度曲线起始加速度为0,即认为自车当前加速度为0;f1(ta)''= 0和f2(ta)''=0分别表示第一段轨迹的加速度曲线末尾和第二段轨迹的加速度曲线初始加速度相等,都为0,f1()''和f2()''分别是第一段速度规划表达式对规划时间求二阶导操作和第二段速度规划表达式对规划时间求二阶导操作;f2(ta)=f1(ta)表示第一段轨迹的速度曲线末尾位置和第二段轨迹的速度曲线初始位置相等;f2(ta)'=f1(ta)'表示第一段轨迹的速度曲线末尾速度和第二段轨迹的速度曲线初始速度相等,f2()'是第二段速度规划表达式对规划时间求一阶导操作;f2(T)'= Vp表示第二段轨迹的速度曲线末尾速度等于前车当前实际速度Vp,前车当前实际速度已知,可以从上游感知实时获得;f2(T)''= 0表示自车末尾加速度回归为0;ta + tb= T,T表示速度规划总时长;f2(T) =s表示速度规划后轨迹末尾位置为s(即在速度规划总时长下经过速度规划后的规划距离),s通过采样获得。Among them, f1(0)=0 means that the starting position of the vehicle is 0; f1(0)'=V 0 means that the starting speed of the vehicle is the current actual speed of the vehicle V 0 , f1( )' is the first-order derivative operation of the first speed planning expression on the planning time; f1(0)''=0 means that the initial acceleration of the acceleration curve of the first trajectory is 0, that is, the current acceleration of the vehicle is considered to be 0; f1(ta)''= 0 and f2(ta)''=0 respectively mean that the end of the acceleration curve of the first trajectory and the initial acceleration of the acceleration curve of the second trajectory are equal, both are 0, f1( )'' and f2( )'' are the second-order derivative operations of the first speed planning expression on the planning time and the second-order derivative operations of the second speed planning expression on the planning time; f2(ta)=f1(ta) means that the end position of the speed curve of the first trajectory is equal to the initial position of the speed curve of the second trajectory; f2(ta)'=f1(ta)' means that the end speed of the speed curve of the first trajectory is equal to the initial speed of the speed curve of the second trajectory, f2( )' is the first-order derivative operation of the speed planning expression for the planning time of the second segment; f2(T)'= V p means that the speed at the end of the speed curve of the second segment of the trajectory is equal to the current actual speed V p of the front vehicle. The current actual speed of the front vehicle is known and can be obtained in real time from the upstream perception; f2(T)''= 0 means that the acceleration of the vehicle at the end returns to 0; ta + tb= T, T represents the total time of speed planning; f2(T) =s means that the end position of the trajectory after speed planning is s (that is, the planned distance after speed planning under the total time of speed planning), and s is obtained by sampling.

在一些实施例中,可以预先设置速度规划总时长T为6秒。In some embodiments, the total speed planning duration T may be preset to 6 seconds.

值得说明的是,轨迹末尾位置s采样表示表示T秒时自车到跑到前方多远距离,速度规划总时长T是固定,轨迹末尾位置s越大整个纵向轨迹的速度就会越快,轨迹末尾位置s小轨迹速度就会相对慢。It is worth noting that the sampling of the end position s of the trajectory indicates how far the vehicle is ahead in T seconds. The total time of speed planning T is fixed. The larger the end position s of the trajectory is, the faster the speed of the entire longitudinal trajectory will be. The smaller the end position s of the trajectory is, the slower the trajectory speed will be.

在一些实施例中,对速度规划后轨迹末尾位置s进行位置采样,采样区间为[0, Xp+ Vp* T];其中,Xp表示当前前车距离自车的位置,Vp表示当前前车的速度。In some embodiments, the position sampling is performed on the end position s of the trajectory after speed planning, and the sampling interval is [0, Xp+ Vp *T]; wherein Xp represents the position of the current leading vehicle from the vehicle, and Vp represents the speed of the current leading vehicle.

在一些实施例中,位置采样的采样点数可以为30个;其中,根据速度等式约束的两种情况,每种情况分别采样,所以总采样点数为60个,所以每个控制周期会产生60个可行解,即在每个时刻t下都会产生60个可行解。In some embodiments, the number of sampling points for position sampling can be 30; among them, according to the two cases of the speed equation constraint, each case is sampled separately, so the total number of sampling points is 60, so each control cycle will generate 60 feasible solutions, that is, 60 feasible solutions will be generated at each time t.

在一些实施例中,若前车不在预设范围内时,则对纵向轨迹建立一次线性表达式,并在预设加速度范围内,对加速度进行采样,得到若干加速度采样点,根据若干加速度采样点,获取速度规划表达式的多个可行解,以使从多个可行解中选出代价最低的可行解作为最优解。In some embodiments, if the leading vehicle is not within a preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within a preset acceleration range to obtain a number of acceleration sampling points. Based on the number of acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

在一些实施例中,参见图8,是本申请提供的单车道单车巡航场景的示意图。车辆A为自车,前方没有其他车辆,此时的速度规划模型可以由一次线性表达式进行建模,可以表示为:In some embodiments, see FIG8 , which is a schematic diagram of a single-lane single-vehicle cruising scenario provided by the present application. Vehicle A is the vehicle itself, and there are no other vehicles in front. The speed planning model at this time can be modeled by a linear expression, which can be expressed as:

Vd= a * t + V0V d = a * t + V 0 ;

Vo= max(0, min(Vd, Vs));V o = max(0, min(V d , V s ));

其中,a表示期望加速度,是根据用户需求参数可调节的超参数,V0表示自车当前实际车速,t表示速度规划总时长T下的每个时刻,即加速度采样点的时间,Vs表示用户设定速度,Vo表示一次线性速度曲线,min()为取最小值操作,为取最大值操作。Where a represents the expected acceleration, which is a hyperparameter that can be adjusted according to the user's demand parameters, V0 represents the actual speed of the vehicle, t represents each moment under the total speed planning time T, that is, the time of the acceleration sampling point, Vs represents the user-set speed, V0 represents a linear speed curve, min( ) is the minimum value operation, To obtain the maximum value operation.

在一些实施例中,用户可以是驾驶员来进行实时调参,也可以是厂商来进行默认参数设置。示例性地,厂商默认设置了期望加速度a或用户设定速度Vs,驾驶员在驾驶时,实时重设期望加速度a或用户设定速度VsIn some embodiments, the user can be the driver to adjust parameters in real time, or the manufacturer can set default parameters. For example, the manufacturer sets the expected acceleration a or the user-set speed V s by default, and the driver resets the expected acceleration a or the user-set speed V s in real time while driving.

在一些实施例中,期望加速度a在取值范围在-1到1之间范围内进行加速度采样,加速度采样点数为30个,则每个控制周期会产生30个可行解,即在每个时刻t下都会产生30个可行解。In some embodiments, the acceleration a is expected to be sampled within a range between -1 and 1, and the number of acceleration sampling points is 30. Then, 30 feasible solutions will be generated in each control cycle, that is, 30 feasible solutions will be generated at each time t.

本申请还考虑前车不在预设范围时,采用一次线性表达式来进行速度规划,相比于无论前车是否在预设范围内均采用多次项表达式的现有相关技术,能够对不在预设范围的前车场景,采用算力更小的一次线性表达式进行速度规划方式,能够降低算力要求和算力成本。The present application also considers the case where the leading vehicle is not within the preset range and adopts a linear expression to perform speed planning. Compared with the existing related technology that adopts multi-term expressions regardless of whether the leading vehicle is within the preset range or not, the present application can adopt a linear expression with smaller computing power to perform speed planning for the scenario where the leading vehicle is not within the preset range, thereby reducing computing power requirements and computing power costs.

步骤S12、从多个可行解中选出代价最低的可行解作为最优解,并以最优解进行速度规划;代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。Step S12: Select the feasible solution with the lowest cost from multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

在一些实施例中,第一评价标准包括:舒适性代价;第二评价标准包括:碰撞代价、速度代价、向心加速度代价和稳定跟车代价。In some embodiments, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost.

值得说明的是,第一评价标准是以舒适性代价对行车舒适度进行评估的评价标准,第二评价标准是以行车安全性代价对行车安全性进行评估的评价标准。It is worth noting that the first evaluation standard is an evaluation standard for evaluating driving comfort at the cost of comfort, and the second evaluation standard is an evaluation standard for evaluating driving safety at the cost of driving safety.

在一些实施例中,稳定跟车代价是根据每个时刻的纵向位移和每个时刻的安全距离的差值获取的。In some embodiments, the stable following cost is obtained based on the difference between the longitudinal displacement at each moment and the safety distance at each moment.

在一些实施例中,代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的;包括:根据舒适性代价和碰撞代价、速度代价、向心加速度代价和稳定跟车代价的加权总和,得到代价。In some embodiments, the cost is obtained by the weighted sum of a first evaluation standard for driving comfort and a second evaluation standard for driving safety; including: obtaining the cost by the weighted sum of comfort cost and collision cost, speed cost, centripetal acceleration cost and stable following cost.

在一些实施例中,代价可以表示为:In some embodiments, the cost may be expressed as:

fcost=w1*costLonObiective+ w2*costjerk+ w3*costcollision+ w4*costcenterAcc+ w5*costfollowf cost =w 1 *cost LonObitive + w 2 *cost jerk + w 3 *cost collision + w 4 *cost centerAcc + w 5 *cost follow ;

其中,costLonObiective、costjerk、costcollision、costcenterAcc和costfollow分别为舒适性代价、碰撞代价、速度代价、向心加速度代价和稳定跟车代价;w1至w5分别为舒适性代价、碰撞代价、速度代价、向心加速度代价和稳定跟车代价的权重。Among them, cost LonObiective , cost jerk , cost collision , cost centerAcc and cost follow are comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost respectively; w1 to w5 are the weights of comfort cost, collision cost, speed cost, centripetal acceleration cost and stable following cost respectively.

在一些实施例中,稳定跟车代价表示为:In some embodiments, the stable following cost is expressed as:

;

其中,分别为t时刻的纵向位移和t时刻的安全距离;是取最大值操作;是速度规划总时长。in, , and are the longitudinal displacement at time t and the safety distance at time t respectively; It is the maximum value operation; is the total duration of speed planning.

在一些实施例中,若根据一次线性表达式得到多个可行解时或根据两个4次项表达式得到多个可行解时,分别从中选取代价最低的可行解,分别作为一次线性表达式或两个4次项表达式的最优解。即从一次线性表达式的30个可行解或两个4次项表达式的60个可行解中选取最优解。In some embodiments, if multiple feasible solutions are obtained from a linear expression or multiple feasible solutions are obtained from two 4-order expressions, the feasible solutions with the lowest cost are selected as the optimal solutions of the linear expression or the two 4-order expressions, that is, the optimal solution is selected from 30 feasible solutions of the linear expression or 60 feasible solutions of the two 4-order expressions.

在一些实施例中,当前车在100m范围内时选择双四次多项式表达式的方式计算最优解,不计算一次线性模型;当前方没有车辆或者前车在100m范围之外时选择一次线性表达式获取最优解,不计算双四次多项式解,以此提高计算量,相对优化方法节省算力百分之50以上。In some embodiments, when the front vehicle is within 100 meters, a double quartic polynomial expression is selected to calculate the optimal solution, and a linear model is not calculated; when there is no vehicle ahead or the front vehicle is outside 100 meters, a linear expression is selected to obtain the optimal solution, and a double quartic polynomial solution is not calculated, thereby increasing the amount of calculation and saving more than 50% of computing power relative to the optimization method.

实施例2Example 2

参见图9,是本申请提供的一种速度规划装置的结构示意图,包括:获取速度规划表达式模块21和求解及规划模块22。Referring to FIG. 9 , it is a schematic diagram of the structure of a speed planning device provided in the present application, including: a speed planning expression acquisition module 21 and a solution and planning module 22 .

在一些实施例中,获取速度规划表达式模块21根据前车在预设范围内时,通过N段速度规划表达式,输出多个可行解,并将多个可行解输出给求解及规划模块22;求解及规划模块22接收到多个可行解后,获取最优解,并根据最优解进行速度规划。In some embodiments, the speed planning expression acquisition module 21 outputs multiple feasible solutions through N-segment speed planning expressions when the leading vehicle is within a preset range, and outputs the multiple feasible solutions to the solution and planning module 22; after receiving the multiple feasible solutions, the solution and planning module 22 obtains the optimal solution and performs speed planning based on the optimal solution.

获取速度规划表达式模块21,用于若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取速度规划表达式的多个可行解;N为正整数。The module 21 for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions for each segment to obtain the speed planning expression if the leading vehicle is within a preset range, with the goal of balancing driving comfort and driving safety. According to the position sampling points at the end of the trajectory, multiple feasible solutions of the speed planning expression are obtained; N is a positive integer.

在一些实施例中,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,包括:以当前位置为初始规划位置,以轨迹末尾位置为结束规划位置,获取规划距离,建立规划距离随时间变化的局部坐标系,基于局部坐标系,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为两段轨迹,并为两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式。In some embodiments, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, including: taking the current position as the initial planning position, taking the end position of the trajectory as the ending planning position, obtaining the planning distance, and establishing a local coordinate system in which the planning distance changes over time. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two segments, and multi-term expressions and equality constraints are established for the two segments to obtain a speed planning expression.

在一些实施例中,速度规划表达式包括:第一段速度规划表达式、第二段速度规划表达式和等式约束;为两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式,包括:为两段轨迹分别建立相同格式但参数不同的四次项表达式,得到第一段速度规划表达式和第二段速度规划表达式,并根据初始规划位置、结束规划位置和两段轨迹的路径连续性,建立等式约束。In some embodiments, the speed planning expression includes: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; establishing multi-term expressions and equality constraints for the two trajectories respectively to obtain a speed planning expression, including: establishing quartic expressions with the same format but different parameters for the two trajectories respectively to obtain a first-segment speed planning expression and a second-segment speed planning expression, and establishing an equality constraint based on the initial planning position, the end planning position and the path continuity of the two trajectories.

在一些实施例中,等式约束包括:加速度等式约束;加速度等式约束根据两段轨迹的路径连续性,建立等式约束,包括:根据两段轨迹的路径连续性,建立第一段轨迹的速度曲线末尾位置和第二段轨迹的速度曲线初始位置相同的速度等式约束,并按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束。In some embodiments, the equation constraint includes: an acceleration equation constraint; the acceleration equation constraint establishes an equation constraint based on the path continuity of the two trajectories, including: based on the path continuity of the two trajectories, establishing a velocity equation constraint in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and rewriting the velocity equation constraint according to the acceleration change of the two trajectories to obtain the acceleration equation constraint.

在一些实施例中,加速度等式约束包括:第一加速度等式约束;按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束,包括:按照第一段轨迹和第二段轨迹的加速度曲线的波峰或波谷的绝对值相等,改写速度等式约束,得到第一加速度等式约束;其中,第一加速度等式约束包含速度等式约束的第一速度变化情况,第一速度变化情况包括:第一段轨迹加速和第二段轨迹减速的情况和第一段轨迹减速和第二段轨迹加速的情况。In some embodiments, the acceleration equation constraint includes: a first acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, including: rewriting the velocity equation constraint according to the absolute values of the peaks or troughs of the acceleration curves of the first trajectory segment and the second trajectory segment being equal to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates.

在一些实施例中,加速度等式约束还包括:第二加速度等式约束;按照两段轨迹的加速度变化情况,改写速度等式约束,得到加速度等式约束,还包括:按照第二段轨迹的加速度曲线的波峰或波谷为定值,改写速度等式约束,得到第二加速度等式约束;其中,第二加速度等式约束包含速度等式约束的第二速度变化情况,第二速度变化情况包括:第一段轨迹加速和第二段轨迹匀速的情况和第一段轨迹减速和第二段轨迹匀速的情况。In some embodiments, the acceleration equation constraint also includes: a second acceleration equation constraint; rewriting the velocity equation constraint according to the acceleration change of the two trajectory segments to obtain the acceleration equation constraint, and also includes: rewriting the velocity equation constraint according to the peak or trough of the acceleration curve of the second trajectory segment as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes a second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory segment is accelerated and the second trajectory segment is uniformly accelerated and the first trajectory segment is decelerated and the second trajectory segment is uniformly accelerated.

在一些实施例中,等式约束还包括:第一段速度规划表达式在初始规划位置时为定值;并且,初始规划位置的起始速度为自车当前实际速度;并且,第一段轨迹的加速度曲线的起始加速度为定值;并且,述第一段轨迹的速度曲线末尾速度和第二段轨迹的速度曲线初始速度相等;并且,第二段轨迹的速度曲线末尾速度等于前车当前实际速度;并且,述第二段轨迹的末尾速度加速度回归为定值;并且,速度规划总时长为预设定值;并且,轨迹末尾位置为位置采样点。In some embodiments, the equality constraint also includes: the first segment speed planning expression is a constant at the initial planning position; and the starting speed of the initial planning position is the current actual speed of the vehicle; and the starting acceleration of the acceleration curve of the first segment trajectory is a constant; and the end speed of the speed curve of the first segment trajectory is equal to the initial speed of the speed curve of the second segment trajectory; and the end speed of the speed curve of the second segment trajectory is equal to the current actual speed of the leading vehicle; and the end speed acceleration of the second segment trajectory regresses to a constant; and the total duration of the speed planning is a preset value; and the end position of the trajectory is a position sampling point.

在一些实施例中,若前车不在预设范围内时,则对纵向轨迹建立一次线性表达式,并在预设加速度范围内,对加速度进行采样,得到若干加速度采样点,根据若干加速度采样点,获取速度规划表达式的多个可行解,以使从多个可行解中选出代价最低的可行解作为最优解。In some embodiments, if the leading vehicle is not within a preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within a preset acceleration range to obtain a number of acceleration sampling points. Based on the number of acceleration sampling points, multiple feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution.

求解及规划模块22,用于从多个可行解中选出代价最低的可行解作为最优解,并以最优解进行速度规划;代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。The solution and planning module 22 is used to select the feasible solution with the lowest cost from multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.

在一些实施例中,第一评价标准包括:舒适性代价;第二评价标准包括:碰撞代价、速度代价、向心加速度代价和稳定跟车代价;稳定跟车代价是根据每个时刻的纵向位移和每个时刻的安全距离的差值获取的;代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的;包括:根据舒适性代价和碰撞代价、速度代价、向心加速度代价和稳定跟车代价的加权总和,得到代价。In some embodiments, the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained based on the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained by the weighted sum of the first evaluation criterion for driving comfort and the second evaluation criterion for driving safety; including: obtaining the cost based on the weighted sum of the comfort cost and the collision cost, speed cost, centripetal acceleration cost and stable following cost.

相比于单个多次项表达式,本申请采用以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,相当于增加了(N-1)个中间控制点,使得单个多次项表达式的对速度规划的中间过程可控,从而提高速度规划精准度,并通过舒适性代价来作为行车舒适度的第一评价标准,用碰撞代价、速度代价、向心加速度代价和稳定跟车代价作为行车安全性的第二评价标准,从多个可行解中选出最优解,能够使得速度规划表达式能够更加拟合行车舒适度和行车安全性均衡的优化目标,从而更加逼近最优解,进一步提高速度规划精准度。Compared with a single multi-term expression, the present application adopts a balanced driving comfort and driving safety as the goal, divides the longitudinal trajectory into N segments and establishes multi-term expressions for each segment, which is equivalent to adding (N-1) intermediate control points, so that the intermediate process of speed planning of the single multi-term expression can be controlled, thereby improving the accuracy of speed planning, and using the comfort cost as the first evaluation criterion for driving comfort, and using the collision cost, speed cost, centripetal acceleration cost and stable following cost as the second evaluation criterion for driving safety. The optimal solution is selected from multiple feasible solutions, which can make the speed planning expression more fit the optimization goal of balancing driving comfort and driving safety, thereby being closer to the optimal solution and further improving the accuracy of speed planning.

本领域内的技术人员应明白,本申请的实施例还可提供包括计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

本申请是参照根据本申请实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (apparatus), and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本申请的保护范围。The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims (10)

1.一种速度规划方法,其特征在于,包括:1. A speed planning method, characterized by comprising: 若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取所述速度规划表达式的多个可行解;N为正整数;If the preceding vehicle is within the preset range, the longitudinal trajectory is divided into N segments and multi-term expressions are established for each segment to obtain a speed planning expression, and multiple feasible solutions of the speed planning expression are obtained according to the position sampling points at the end of the trajectory; N is a positive integer; 从所述多个可行解中选出代价最低的可行解作为最优解,并以所述最优解进行速度规划;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。A feasible solution with the lowest cost is selected from the multiple feasible solutions as the optimal solution, and speed planning is performed using the optimal solution; the cost is obtained by weighting the first evaluation standard of driving comfort and the second evaluation standard of driving safety. 2.如权利要求1所述的速度规划方法,其特征在于,所述以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,包括:2. The speed planning method according to claim 1, characterized in that the goal of balancing driving comfort and driving safety is to divide the longitudinal trajectory into N segments and establish multi-term expressions for each segment to obtain a speed planning expression, including: 以当前位置为初始规划位置,以所述轨迹末尾位置为结束规划位置,获取规划距离,建立所述规划距离随时间变化的局部坐标系,基于所述局部坐标系,以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为两段轨迹,并为所述两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式。The current position is taken as the initial planning position, the end position of the trajectory is taken as the ending planning position, the planning distance is obtained, and a local coordinate system in which the planning distance changes with time is established. Based on the local coordinate system, with the goal of balancing driving comfort and driving safety, the longitudinal trajectory is divided into two trajectories, and multi-term expressions and equality constraints are established for the two trajectories respectively to obtain a speed planning expression. 3.如权利要求2所述的速度规划方法,其特征在于,所述速度规划表达式包括:第一段速度规划表达式、第二段速度规划表达式和等式约束;所述为所述两段轨迹分别建立多次项表达式和等式约束,得到速度规划表达式,包括:3. The speed planning method according to claim 2, characterized in that the speed planning expression comprises: a first-segment speed planning expression, a second-segment speed planning expression and an equality constraint; the multi-term expression and the equality constraint are established for the two segments of the trajectory respectively to obtain the speed planning expression, comprising: 为所述两段轨迹分别建立相同格式但参数不同的四次项表达式,得到所述第一段速度规划表达式和所述第二段速度规划表达式,并根据所述初始规划位置、所述结束规划位置和所述两段轨迹的路径连续性,建立等式约束。A quartic expression with the same format but different parameters is established for the two trajectories respectively, to obtain the first speed planning expression and the second speed planning expression, and an equality constraint is established according to the initial planning position, the end planning position and the path continuity of the two trajectories. 4.如权利要求3所述的速度规划方法,其特征在于,所述等式约束包括:加速度等式约束;所述加速度等式约束根据所述两段轨迹的路径连续性,建立等式约束,包括:4. The speed planning method according to claim 3, wherein the equation constraint comprises: an acceleration equation constraint; the acceleration equation constraint is established according to the path continuity of the two trajectories, comprising: 根据所述两段轨迹的路径连续性,建立第一段轨迹的速度曲线末尾位置和第二段轨迹的速度曲线初始位置相同的速度等式约束,并按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束。According to the path continuity of the two trajectories, a velocity equation constraint is established in which the end position of the velocity curve of the first trajectory and the initial position of the velocity curve of the second trajectory are the same, and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint. 5.如权利要求4所述的速度规划方法,其特征在于,所述加速度等式约束包括:第一加速度等式约束;所述按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束,包括:5. The velocity planning method according to claim 4, wherein the acceleration equation constraint comprises: a first acceleration equation constraint; and rewriting the velocity equation constraint according to the acceleration change of the two trajectories to obtain the acceleration equation constraint comprises: 按照所述第一段轨迹和所述第二段轨迹的加速度曲线的波峰或波谷的绝对值相等,改写所述速度等式约束,得到所述第一加速度等式约束;其中,所述第一加速度等式约束包含所述速度等式约束的第一速度变化情况,所述第一速度变化情况包括:第一段轨迹加速和第二段轨迹减速的情况和第一段轨迹减速和第二段轨迹加速的情况。According to the equal absolute values of the peaks or troughs of the acceleration curves of the first and second trajectory segments, the velocity equation constraint is rewritten to obtain the first acceleration equation constraint; wherein the first acceleration equation constraint includes a first velocity change of the velocity equation constraint, and the first velocity change includes: a situation where the first trajectory segment accelerates and the second trajectory segment decelerates, and a situation where the first trajectory segment decelerates and the second trajectory segment accelerates. 6.如权利要求5所述的速度规划方法,其特征在于,所述加速度等式约束还包括:第二加速度等式约束;所述按照两段轨迹的加速度变化情况,改写所述速度等式约束,得到所述加速度等式约束,还包括:6. The velocity planning method according to claim 5, wherein the acceleration equation constraint further comprises: a second acceleration equation constraint; and the velocity equation constraint is rewritten according to the acceleration change of the two trajectories to obtain the acceleration equation constraint, further comprising: 按照所述第二段轨迹的加速度曲线的波峰或波谷为定值,改写所述速度等式约束,得到所述第二加速度等式约束;其中,所述第二加速度等式约束包含所述速度等式约束的第二速度变化情况,所述第二速度变化情况包括:第一段轨迹加速和第二段轨迹匀速的情况和第一段轨迹减速和第二段轨迹匀速的情况。The velocity equation constraint is rewritten according to the peak or trough of the acceleration curve of the second trajectory as a constant value to obtain the second acceleration equation constraint; wherein the second acceleration equation constraint includes the second velocity change of the velocity equation constraint, and the second velocity change includes: the first trajectory is accelerated and the second trajectory is uniform, and the first trajectory is decelerated and the second trajectory is uniform. 7.如权利要求6所述的速度规划方法,其特征在于,所述等式约束还包括:7. The speed planning method according to claim 6, wherein the equality constraint further comprises: 所述第一段速度规划表达式在所述初始规划位置时为所述定值;并且,The first speed planning expression is the fixed value at the initial planning position; and 所述初始规划位置的起始速度为自车当前实际速度;并且,The starting speed of the initial planning position is the current actual speed of the vehicle; and, 所述第一段轨迹的加速度曲线的起始加速度为所述定值;并且,The initial acceleration of the acceleration curve of the first trajectory is the constant value; and 所述第一段轨迹的速度曲线末尾速度和所述第二段轨迹的速度曲线初始速度相等;并且,The final speed of the speed curve of the first track segment is equal to the initial speed of the speed curve of the second track segment; and 所述第二段轨迹的速度曲线末尾速度等于前车当前实际速度;并且,The speed at the end of the speed curve of the second trajectory is equal to the current actual speed of the preceding vehicle; and 所述第二段轨迹的末尾速度加速度回归为所述定值;并且,The final velocity acceleration of the second trajectory returns to the constant value; and 速度规划总时长为预设定值;并且,The total duration of the speed planning is a preset value; and, 所述轨迹末尾位置为位置采样点。The end position of the trajectory is a position sampling point. 8.如权利要求7所述的速度规划方法,其特征在于,所述第一评价标准包括:舒适性代价;所述第二评价标准包括:碰撞代价、速度代价、向心加速度代价和稳定跟车代价;所述稳定跟车代价是根据每个时刻的纵向位移和每个时刻的安全距离的差值获取的;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的;包括:8. The speed planning method according to claim 7, characterized in that the first evaluation criterion includes: comfort cost; the second evaluation criterion includes: collision cost, speed cost, centripetal acceleration cost and stable following cost; the stable following cost is obtained according to the difference between the longitudinal displacement at each moment and the safety distance at each moment; the cost is obtained according to the weighted sum of the first evaluation criterion of driving comfort and the second evaluation criterion of driving safety; including: 根据所述舒适性代价和所述碰撞代价、所述速度代价、所述向心加速度代价和所述稳定跟车代价的加权总和,得到所述代价。The cost is obtained according to a weighted sum of the comfort cost, the collision cost, the speed cost, the centripetal acceleration cost and the stable following cost. 9.如权利要求1所述的速度规划方法,其特征在于,若前车不在预设范围内时,则对所述纵向轨迹建立一次线性表达式,并在预设加速度范围内,对加速度进行采样,得到若干加速度采样点,根据所述若干加速度采样点,获取所述速度规划表达式的多个可行解,以使从所述多个可行解中选出代价最低的可行解作为最优解。9. The speed planning method as described in claim 1 is characterized in that if the leading vehicle is not within a preset range, a linear expression is established for the longitudinal trajectory, and the acceleration is sampled within a preset acceleration range to obtain a plurality of acceleration sampling points, and based on the plurality of acceleration sampling points, a plurality of feasible solutions of the speed planning expression are obtained, so that the feasible solution with the lowest cost is selected from the plurality of feasible solutions as the optimal solution. 10.一种速度规划装置,其特征在于,包括:获取速度规划表达式模块和求解及规划模块;其中,10. A speed planning device, characterized by comprising: a speed planning expression acquisition module and a solution and planning module; wherein, 所述获取速度规划表达式模块,用于若前车在预设范围内时,则以均衡行车舒适度和行车安全性为目标,将纵向轨迹分为N段轨迹并分别建立多次项表达式,得到速度规划表达式,根据轨迹末尾位置的位置采样点,获取所述速度规划表达式的多个可行解;N为正整数;The module for obtaining the speed planning expression is used to divide the longitudinal trajectory into N segments and establish multi-term expressions respectively to obtain the speed planning expression if the leading vehicle is within the preset range, with the goal of balancing driving comfort and driving safety, and obtain multiple feasible solutions of the speed planning expression according to the position sampling points at the end of the trajectory; N is a positive integer; 所述求解及规划模块,用于从所述多个可行解中选出代价最低的可行解作为最优解,并以所述最优解进行速度规划;所述代价是根据行车舒适度的第一评价标准和行车安全性的第二评价标准的加权和得到的。The solution and planning module is used to select the feasible solution with the lowest cost from the multiple feasible solutions as the optimal solution, and perform speed planning based on the optimal solution; the cost is obtained by the weighted sum of the first evaluation standard of driving comfort and the second evaluation standard of driving safety.
CN202411061412.6A 2024-08-05 2024-08-05 Speed planning method and device Active CN118579058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411061412.6A CN118579058B (en) 2024-08-05 2024-08-05 Speed planning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411061412.6A CN118579058B (en) 2024-08-05 2024-08-05 Speed planning method and device

Publications (2)

Publication Number Publication Date
CN118579058A true CN118579058A (en) 2024-09-03
CN118579058B CN118579058B (en) 2024-10-22

Family

ID=92537441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411061412.6A Active CN118579058B (en) 2024-08-05 2024-08-05 Speed planning method and device

Country Status (1)

Country Link
CN (1) CN118579058B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190086930A1 (en) * 2017-09-18 2019-03-21 Baidu Usa Llc Speed optimization based on constrained smoothing spline for autonomous driving vehicles
CN109814568A (en) * 2019-02-19 2019-05-28 百度在线网络技术(北京)有限公司 Generation method, device and the storage medium of speed trajectory
CN110749333A (en) * 2019-11-07 2020-02-04 中南大学 Motion planning method for unmanned vehicle based on multi-objective optimization
CN112965476A (en) * 2021-01-22 2021-06-15 西安交通大学 High-speed unmanned vehicle trajectory planning system and method based on multi-window sampling
CN114771551A (en) * 2022-04-29 2022-07-22 阿波罗智能技术(北京)有限公司 Method and device for planning track of automatic driving vehicle and automatic driving vehicle
CN115257724A (en) * 2022-07-07 2022-11-01 同济大学 Safety and energy-saving decision control method and system for plug-in hybrid electric vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190086930A1 (en) * 2017-09-18 2019-03-21 Baidu Usa Llc Speed optimization based on constrained smoothing spline for autonomous driving vehicles
CN109814568A (en) * 2019-02-19 2019-05-28 百度在线网络技术(北京)有限公司 Generation method, device and the storage medium of speed trajectory
CN110749333A (en) * 2019-11-07 2020-02-04 中南大学 Motion planning method for unmanned vehicle based on multi-objective optimization
CN112965476A (en) * 2021-01-22 2021-06-15 西安交通大学 High-speed unmanned vehicle trajectory planning system and method based on multi-window sampling
CN114771551A (en) * 2022-04-29 2022-07-22 阿波罗智能技术(北京)有限公司 Method and device for planning track of automatic driving vehicle and automatic driving vehicle
CN115257724A (en) * 2022-07-07 2022-11-01 同济大学 Safety and energy-saving decision control method and system for plug-in hybrid electric vehicle

Also Published As

Publication number Publication date
CN118579058B (en) 2024-10-22

Similar Documents

Publication Publication Date Title
US8660723B2 (en) Method for determining run-curves for vehicles in real-time subject to dynamic travel time and speed limit constraint
JP4639320B2 (en) Moving body movement pattern calculation apparatus and method
CN109484407A (en) A kind of adaptive follow the bus method that electric car auxiliary drives
CN114707364A (en) Ramp vehicle convergence simulation method, device, equipment and readable storage medium
US9352740B2 (en) Vehicle energy-management device for controlling energy consumption along a travel route
CN107103749A (en) With traffic stream characteristics modeling method of speeding under car networking environment
CN104417558A (en) Deceleration setting system, deceleration setting method, and deceleration setting program
Kim et al. Identifying suitable car-following models to simulate automated vehicles on highways
Xie et al. Safe driving model based on V2V vehicle communication
CN116834733A (en) Vehicle driving early warning method and device, storage medium and electronic equipment
CN109686086B (en) Method and device for training fuzzy control network and generating intersection suggested speed
CN118579058B (en) Speed planning method and device
CN115107805B (en) Vehicle trajectory planning method, system and device
CN119099614A (en) Lane change control method, device, computer equipment and readable storage medium
CN112124310A (en) Vehicle path transformation method and device
CN115376333A (en) Intersection vehicle scheduling method and device and electronic equipment
CN112508294A (en) Target train control method and device based on train group information sharing and train
CN114419758B (en) Vehicle following distance calculation method and device, vehicle and storage medium
US20160245658A1 (en) Support point management system, method, and program
CN115649160A (en) Vehicle self-adaptive cruise speed control method and system
CN115635964A (en) Vehicle, its cruising method, device and electronic equipment
CN116738229B (en) Low-spacing start-stop vehicle longitudinal motion model calibration method, system, equipment and medium
CN107132842A (en) A kind of ACC decision-making techniques and system based on operating mode adaptive strategy
CN118254829B (en) Vehicle driving control method, device, electronic device and readable storage medium
CN119953364B (en) Vehicle track control method, device and storage medium

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