WO2023273282A1 - Planning method and apparatus for vehicle driving behavior, electronic device, and storage medium - Google Patents

Planning method and apparatus for vehicle driving behavior, electronic device, and storage medium Download PDF

Info

Publication number
WO2023273282A1
WO2023273282A1 PCT/CN2021/143994 CN2021143994W WO2023273282A1 WO 2023273282 A1 WO2023273282 A1 WO 2023273282A1 CN 2021143994 W CN2021143994 W CN 2021143994W WO 2023273282 A1 WO2023273282 A1 WO 2023273282A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
cost
information
location
distance
Prior art date
Application number
PCT/CN2021/143994
Other languages
French (fr)
Chinese (zh)
Inventor
朱升发
Original Assignee
上海商汤临港智能科技有限公司
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 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Publication of WO2023273282A1 publication Critical patent/WO2023273282A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks

Definitions

  • the present invention relates to the technical field of automatic driving, in particular to a planning method, device, electronic equipment and storage medium for vehicle driving behavior.
  • Path planning is an important part of autonomous driving technology. It is responsible for planning local motion trajectories, guiding the underlying controller of the vehicle, and controlling the steering wheel, accelerator and brake of the vehicle. Path planning can generally be divided into two parts: behavior planning and motion planning. Behavior planning is responsible for calculating a reasonable and comfortable driving strategy; motion planning is responsible for calculating the specific trajectory that the vehicle can execute.
  • the existing path planning is to sample the position of the vehicle during driving, and then use the dynamic programming method to search for a corresponding trajectory.
  • the path obtained by sampling the position of the vehicle during driving is not smooth, as shown in Figure 1.
  • the vehicle's execution of the driving path shown in Figure 1 will result in insufficient comfort during driving.
  • the invention provides a planning method, device, electronic equipment and storage medium for vehicle driving behavior.
  • the method of the present application can improve the driving comfort of the vehicle.
  • an embodiment of the present invention provides a method for planning vehicle driving behavior, including: acquiring the vehicle at the first position based on the first movement information of the vehicle at the first position and the second movement information of the vehicle at the second position And the comfort cost between the second positions, the first motion information and the second motion information at least include the acceleration information of the vehicle; based on the comfort cost, obtain the cost of the first position and the cost of the second position; The cost and the cost of the second location are used to plan the driving path of the vehicle.
  • the following steps are adopted to determine the second motion information of the vehicle at the second position, including: determining the second motion information of the vehicle at the second position based on the preset acceleration interval and the first motion information.
  • the first motion information also includes: speed information and displacement information of the vehicle; the step of determining the second motion information of the vehicle at the second position based on the preset acceleration interval and the first motion information includes: based on the preset acceleration interval, using The acceleration information of the vehicle at the first position determines the acceleration information of the vehicle at the second position; based on the uniform acceleration method, the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position are used to calculate the speed of the vehicle at the second position Information; based on the velocity information of the vehicle at the first location and the velocity information of the vehicle at the second location, the displacement information of the vehicle at the second location is calculated.
  • obtaining the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position includes: based on the first motion information and the second 2. Motion information, construct a smooth curve function; based on the smooth curve function, calculate the comfort cost.
  • the method further includes: predicting the position information of the obstacle, obtaining the distance between the vehicle and the obstacle according to the position information and the second motion information; obtaining the safety overhead of the vehicle avoiding the obstacle according to the distance between the vehicle and the obstacle; based on The comfort cost, the cost of obtaining the first position and the cost of the second position, further includes: the cost of obtaining the first position and the cost of the second position based on the comfort cost and the security cost.
  • the safety cost of the vehicle avoiding the obstacle is obtained, including: if the distance is greater than the preset safety distance, the safety cost is 0; if the distance is less than the preset collision distance, the safety cost is positive infinity ; If the distance is not greater than the preset safety distance and the distance is not less than the preset collision distance, the safety cost is the ratio of the preset weight to the distance.
  • obtaining the cost of the first position and the cost of the second position includes: based on the comfort cost and safety cost between the previous position of the vehicle at the first position and the first position, and The cost of the previous position of the first position is calculated to obtain the cost of the first position; based on the comfort cost and safety cost of the vehicle between the first position and the second position, as well as the cost of the first position, the second position is calculated s expenses.
  • the time taken by the vehicle to reach the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
  • an embodiment of the present invention also provides a vehicle driving behavior planning device, including: a first cost acquisition module, configured to use the first motion information of the vehicle at the first position and the second The second motion information acquires the comfort cost of the vehicle between the first position and the second position, the first motion information and the second motion information at least include the acceleration information of the vehicle; the second cost acquisition module is configured to acquire based on the comfort cost The cost of the first location and the cost of the second location; a path planning module, configured to plan the driving path of the vehicle based on the cost of the first location and the cost of the second location.
  • an embodiment of the present invention further provides an electronic device, including: a memory and a processor, wherein the memory stores program instructions, and the processor calls the program instructions from the memory to execute any one of the above methods.
  • an embodiment of the present invention further provides a computer-readable storage medium storing a program file, and the program file can be executed to implement any one of the above methods.
  • the beneficial effect of the present invention is different from the situation of the prior art.
  • the planning method of the vehicle driving path provided by the present invention is based on the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position to obtain the vehicle at the first position and the second position.
  • the comfort cost between the two locations is based on the comfort cost, and the driving path of the vehicle is finally planned.
  • the method of the present application considers the acceleration information and the comfort cost of the vehicle during driving, and improves the comfort during driving.
  • FIG. 1 is a schematic diagram of a path planning result in the prior art
  • FIG. 2 is a schematic flowchart of the first embodiment of the method for planning vehicle driving behavior of the present invention
  • FIG. 3 is a schematic flowchart of an embodiment of a method for calculating second motion information in the method for planning vehicle driving behavior of the present invention
  • FIG. 4 is a schematic flowchart of a second embodiment of the method for planning vehicle driving behavior of the present invention.
  • FIG. 5 is a schematic diagram of the path planning results of the vehicle driving behavior planning method of the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of the device for planning vehicle driving behavior according to the present invention.
  • FIG. 7 is a schematic structural diagram of an embodiment of the electronic device of the present invention.
  • FIG. 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present invention.
  • the predicted trajectory of the obstacle vehicle is projected into the road coordinate system, then the longitudinal position is sampled, and a corresponding trajectory is searched out by a dynamic programming method.
  • the search result of this method is not smooth, as shown in Figure 1, the car cannot perform such a search result, and the search calculation is heavy, requiring dense sampling of time and longitudinal position, which cannot truly reflect the dynamic constraints of the car.
  • the present application provides a method for planning vehicle driving behavior, which can solve the above problems.
  • Fig. 2 is a schematic flow chart of an embodiment of the planning method for vehicle driving behavior of the present invention, specifically including:
  • Step S11 Based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position, the comfort cost, the first motion information and the second motion of the vehicle between the first position and the second position are acquired.
  • the information includes at least acceleration information of the vehicle.
  • the vehicle needs to plan the driving route during driving.
  • the position of the vehicle is sampled.
  • the current position of the vehicle is point A
  • the next position of the vehicle is predicted to be point B (that is, the next position of the vehicle is sampled)
  • the speed and acceleration are planned based on the distance from point A to point B
  • a search path is obtained, which includes the speed and acceleration of the vehicle.
  • the final path planned based on the vehicle position is not smooth and does not conform to the dynamic constraints of the vehicle. As shown in Figure 1, it is difficult for the vehicle to perform such search results, or it cannot be guaranteed that the vehicle will drive in a behavior that meets the dynamic constraints. Less comfortable.
  • the method of this embodiment acquires the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position.
  • the first motion information and the second motion information at least include acceleration information of the vehicle. That is, in the method of this embodiment, the acceleration information of the vehicle at the first location and the acceleration information of the second location are used to calculate the comfort cost of the vehicle between the first location and the second location.
  • the acceleration information of the vehicle at the first location and the acceleration information of the second location are used to calculate the comfort cost of the vehicle between the first location and the second location.
  • the second motion information of the vehicle at the second position may be determined based on the preset acceleration interval and the first motion information. It should be noted that the second motion information is predicted motion information, that is, the second motion information is motion information planned by the system for the vehicle to be executed.
  • the first motion information further includes vehicle speed information and displacement information
  • the second motion information also includes vehicle speed information and displacement information
  • Step S21 Based on the preset acceleration interval, use the acceleration information of the vehicle at the first position to determine the acceleration information of the vehicle at the second position.
  • Step S22 The method based on uniform acceleration uses the acceleration information of the vehicle at the first location and the acceleration information of the vehicle at the second location to calculate the velocity information of the vehicle at the second location.
  • Step S23 Based on the speed information of the vehicle at the first position and the speed information of the vehicle at the second position, calculate the displacement information of the vehicle at the second position.
  • the speed information v1 of the vehicle at the first position and the speed information v2 of the vehicle at the second position are known, and the displacement information s2 of the vehicle at the second position can be obtained.
  • the time ⁇ t from the first position to the second position may be further planned.
  • the second position information (acceleration information a2, velocity information v2 and displacement information s2) is calculated by combining the preset acceleration interval and the first position information (acceleration information a1, velocity information v1 and displacement information s1).
  • the comfort cost of the vehicle from the first position to the second position is acquired based on the first motion information and the second motion information.
  • a smooth curve function may be constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function.
  • using the smooth curve function to calculate the comfort cost can make the final planned driving path smooth and the driving comfort is strong.
  • the smooth curve function can be polynomial.
  • the integral of the derivative of the acceleration within the time T at the first position and the time T+ ⁇ t at the second position may be calculated according to the above-mentioned quintic polynomial, so as to obtain the comfort cost. Specifically:
  • t1 is time T
  • t2 is time T+ ⁇ t.
  • using the quintic polynomial combined with the acceleration information to calculate the comfort cost can obtain a smoother driving path, making it easier for the vehicle to perform such a driving result, and can truly reflect the dynamic constraints of the vehicle and improve the driving process. comfort in.
  • the method of this embodiment predicts the second motion information of the second position based on the first motion information of the first position, does not require dense sampling points, and can reduce the amount of calculation.
  • Step S12 Acquire the cost of the first location and the cost of the second location based on the comfort cost.
  • the cost of the first position and the cost of the second position may be calculated by using the comfort cost.
  • the cost of the first position is calculated based on the comfort cost of the vehicle between the previous position of the first position and the first position, and the cost of the previous position of the first position.
  • the specific calculation method is:
  • N 1-1 is the first position The position before the previous position of the .
  • the cost of the second position is calculated based on the comfort cost between the first position and the second position and the cost of the first position.
  • the specific calculation formula is as the above-mentioned formula (1), and details are not repeated here.
  • time taken by the vehicle to arrive at the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
  • Step S13 Planning the driving route of the vehicle based on the cost of the first location and the cost of the second location.
  • the driving route of the vehicle is planned based on the cost of the first location and the cost of the second location. Specifically, the path with the least cost can be found from the first location to the second location based on the dynamic programming method, and then the driving path from the first location to the second location can be obtained.
  • a smooth curve function is constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function, which can make the final driving path smooth, as shown in FIG. 5 .
  • the comfort cost is considered, which can make the driving comfort better.
  • the application considers acceleration information and speed information in the process of route planning, and adds a uniform acceleration calculation method, which can make the final driving route conform to dynamic constraints and has strong executability.
  • the method of the present application performs path planning based on the velocity information, acceleration information, and displacement information of two locations. Compared with the prior art, it does not require dense sampling points and reduces the amount of calculation.
  • FIG. 4 is a schematic flow chart of the second embodiment of the method for planning a vehicle driving route according to the present invention, wherein step S31 and step S35 are the same as step S11 and step S13 in the above embodiment shown in FIG. 1 , the difference is that , this embodiment also includes after step S31 and before step S35:
  • Step S32 Predict the position information of the obstacle, and obtain the distance between the vehicle and the obstacle according to the position information and the second motion information.
  • A represents an obstacle. Take A traveling horizontally and the vehicle traveling longitudinally as an example. If you want to avoid an obstacle, one method is to surpass the obstacle before meeting the obstacle, and the other method is to pass the obstacle before meeting the obstacle. Avoid obstacles before. In order to avoid obstacles, this application introduces the safety overhead of vehicle avoidance obstacles for path planning.
  • the obstacle can be photographed by means of visual positioning, and the real-time position information of the obstacle can be predicted according to the captured image.
  • GPS positioning can also be performed on obstacles, and real-time position information of obstacles can be predicted according to GPS positioning results.
  • the distance between the vehicle and the obstacle is obtained according to the location information of the obstacle and the second motion information. For example, predict the position information of the obstacle at time T (the vehicle is at the first position at this time), and obtain its road coordinates; and obtain the displacement s1 of the vehicle according to the first motion information of the vehicle at the first position, and obtain the distance to obstacles. Further, it is also possible to predict the position information of the obstacle at time T+ ⁇ t (the vehicle is at the second position at this time), obtain its road coordinates, and obtain the position s2 of the vehicle according to the second motion information of the vehicle at the second position information, The distance between the vehicle and the obstacle can be obtained when the vehicle is in the second position.
  • the position of the obstacle in the two images can be predicted by at least two pictures taken continuously, and then the driving speed and acceleration of the obstacle can be predicted. Based on the driving speed and acceleration, the position information of the predicted obstacle can be calculated in real time, for example The position information of the obstacle at time T+ ⁇ t (the vehicle is at the second position at this time) can be calculated.
  • the distance between the obstacle and the vehicle is further determined.
  • Step S33 Obtain the safety cost of the vehicle avoiding the obstacle according to the distance between the vehicle and the obstacle.
  • the safety overhead is 0; at this time, the vehicle will not collide with the obstacle. If the distance is less than the collision distance, the safety cost is positive infinity; at this time, the vehicle collides with the obstacle, which is a safety risk. If the distance is not greater than the preset safety distance and the distance is not less than the preset collision distance, the safety cost is the ratio of the preset weight to the distance, and the preset weight can be set manually.
  • the weight of the preset safety distance can be set to be greater than the weight of the preset collision distance, and the ratio of the weight to the distance of the preset safety distance can be further calculated, or the ratio of the weight to the distance of the preset collision distance can be calculated. Alternatively, the weight of the preset collision distance may also be set to be greater than the weight of the preset safety distance, which is not specifically limited.
  • the preset safety distance is greater than the preset collision distance.
  • the safety cost is calculated according to the distance between the vehicle and the obstacle, and the driving behavior can be set according to the safety cost to avoid collision between the vehicle and the obstacle.
  • Step S34 Obtain the cost of the first location and the cost of the second location based on the comfort cost and the safety cost.
  • the cost of the first position and the cost of the second position may be calculated by using the comfort cost and the safety cost.
  • the cost of the first location is calculated based on the comfort cost and the safety cost of the vehicle between the first position and the first position, and the cost of the previous position of the first position.
  • the specific calculation method is:
  • N 1-1 is the position before the previous position of the first position.
  • the cost of the second position is calculated based on the comfort cost and safety cost between the first position and the second position, and the cost of the first position.
  • the specific calculation formula is as the above-mentioned formula (2), and details are not repeated here. It should be noted that the time taken by the vehicle to arrive at the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
  • the driving route of the vehicle is planned based on the cost of the first location and the cost of the second location. Specifically, the path with the least cost can be found from the first location to the second location based on the dynamic programming method, and then the driving path from the first location to the second location can be obtained.
  • a smooth curve function is constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function, which can make the final driving path smooth, as shown in FIG. 5 .
  • the comfort cost is considered, which can make the driving comfort better.
  • the application considers acceleration information and speed information in the process of route planning, and adds a uniform acceleration calculation method, which can make the final driving route conform to dynamic constraints and has strong executability.
  • the vehicle driving route planning method provided by the embodiment of the present invention plans the route based on the velocity information, acceleration information and displacement information of two positions. Compared with the prior art, it does not require dense sampling points and reduces Calculations.
  • the vehicle traveling along the driving path B can avoid the obstacle A, as shown in FIG. 5 .
  • the traveling direction of the vehicle is longitudinal, and the traveling direction of obstacles is transverse, and the displacement time diagram is established.
  • a shown in FIG. 4 represents the obstacle position
  • curve B represents the driving behavior of the vehicle.
  • the vehicle drives according to the planned driving speed and driving acceleration as shown in curve B in the figure, and can avoid obstacle A.
  • the problem of the interaction between the self-driving vehicle and other longitudinal directions at the intersection can be solved. Pre-judging whether the vehicle is overtaking or avoiding the obstacle vehicle, so as to meet the safety problem and have a certain degree of intelligence.
  • the calculation efficiency of the algorithm of the present application is high, basically only 4-5 calculations are required to achieve good results, and the calculation amount can be greatly reduced.
  • the planning result is shown as curve B in Figure 4, which is relatively smooth and meets the dynamic constraints of the vehicle, and the vehicle can perform the search results well.
  • FIG. 6 is a schematic structural diagram of an embodiment of a vehicle driving path planning device provided by an embodiment of the present invention, specifically including: a first cost acquisition module 51 , a second cost acquisition module 52 and a planning module 53 .
  • the process of the vehicle driving path planning device provided in the embodiment of the present invention to solve the problem of path planning is similar to the aforementioned method, for details, reference may be made to the aforementioned description.
  • the first cost acquisition module 51 is used to acquire the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position, the first The first movement information and the second movement information at least include acceleration information of the vehicle.
  • the second cost obtaining module 52 is used for obtaining the cost of the first position and the cost of the second position based on the comfort cost.
  • the path planning module 53 is used for planning the driving path of the vehicle based on the cost of the first location and the cost of the second location.
  • the first cost acquisition module 51 is further configured to: determine second motion information of the vehicle at the second position based on a preset acceleration interval and the first motion information.
  • the first motion information also includes: speed information and displacement information of the vehicle; a first overhead acquisition module 51, specifically for:
  • Displacement information of the vehicle at the second position is calculated based on the speed information of the vehicle at the first position and the speed information of the vehicle at the second position.
  • the first overhead acquisition module 51 is specifically configured to: construct a smooth curve function based on the first motion information and the second motion information;
  • the comfort cost is calculated.
  • the first overhead acquisition module 51 is further configured to: predict the position information of the obstacle, and acquire the distance between the vehicle and the obstacle according to the position information and the second motion information;
  • the second cost obtaining module 52 is further configured to: obtain the cost of the first location and the cost of the second location based on the comfort cost and the security cost.
  • the first overhead acquisition module 51 is specifically configured to: if the distance is greater than a preset safety distance, the safety overhead is 0;
  • the safety cost is positive infinity
  • the safety cost is a ratio of a preset weight to the distance.
  • the second cost acquisition module 52 is specifically configured to: based on the comfort cost and safety cost of the vehicle between the previous position of the first position and the first position, and the cost of the first position The cost of the previous position is calculated to obtain the cost of the first position;
  • the cost of the second position is calculated based on the comfort cost and the safety cost of the vehicle between the first position and the second position, and the cost of the first position.
  • the time taken by the vehicle to reach the first position from a position preceding the first position and the time taken by the vehicle to reach the second position from the first position are the same.
  • FIG. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
  • the electronic device includes a memory 202 and a processor 201 connected to each other.
  • the memory 202 is used to store program instructions for implementing any one of the above methods.
  • the processor 201 is used to execute program instructions stored in the memory 202 .
  • the processor 201 may also be referred to as a CPU (Central Processing Unit, central processing unit).
  • the processor 201 may be an integrated circuit chip with signal processing capability.
  • the processor 201 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components .
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field-programmable gate array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the memory 202 can be a memory stick, a TF card, etc., and can store all information in the electronic equipment of the device, including input raw data, computer programs, intermediate running results and final running results are all stored in the memory. It deposits and retrieves information according to the location specified by the controller.
  • electronic equipment has a memory function to ensure normal operation.
  • the memory of electronic equipment can be divided into main memory (internal memory) and auxiliary memory (external memory) according to the purpose of memory, and there are also classification methods into external memory and internal memory.
  • External storage is usually magnetic media or optical discs, which can store information for a long time.
  • Memory refers to the storage components on the mainboard, which are used to store data and programs currently being executed, but are only used to store programs and data temporarily, and the data will be lost when the power is turned off or cut off.
  • the disclosed methods and devices may be implemented in other ways.
  • the device implementations described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a system server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • FIG. 8 is a schematic structural diagram of a computer-readable storage medium according to the present invention.
  • the storage medium of the present application stores a program file 203 capable of realizing all the above-mentioned methods, wherein the program file 203 can be stored in the above-mentioned storage medium in the form of a software product, and includes several instructions to make a computer device (which can be a personal A computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of the methods in various embodiments of the present application.
  • a computer device which can be a personal A computer, a server, or a network device, etc.
  • processor processor
  • the aforementioned storage device includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc and other media that can store program codes. , or terminal devices such as computers, servers, mobile phones, and tablets.

Abstract

A planning method and apparatus for a vehicle driving behavior, an electronic device, and a storage medium. The method comprises: obtaining the comfort overhead of a vehicle between a first position and a second position on the basis of acceleration information of the vehicle in the first position and acceleration information of the vehicle in the second position; and finally planning a driving path for the vehicle on the basis of the comfort overhead. According to the method, the acceleration information of the vehicle during running and the comfort overhead are taken into consideration, such that the comfort during driving is improved.

Description

车辆驾驶行为的规划方法、装置、电子设备、存储介质Vehicle driving behavior planning method, device, electronic device, storage medium
相关申请的交叉引用Cross References to Related Applications
本公开基于申请号为202110738286.3、申请日为2021年6月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本公开。This disclosure is based on a Chinese patent application with application number 202110738286.3 and a filing date of June 30, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated into this disclosure by reference.
技术领域technical field
本发明涉及自动驾驶技术领域,尤其是涉及一种车辆驾驶行为的规划方法、装置、电子设备、存储介质。The present invention relates to the technical field of automatic driving, in particular to a planning method, device, electronic equipment and storage medium for vehicle driving behavior.
背景技术Background technique
自动驾驶技术服务与自动驾驶汽车,是一项多学科交叉的系统工程。而路径规划是自动驾驶技术中的重要组成部分,负责规划局部的运动轨迹,指导车辆的底层控制器,控制车辆的方向盘、油门和刹车等。路径规划一般可以分成行为规划和运动规划两大部分,行为规划负责计算出合理、舒适的驾驶策略;运动规划则负责计算出具体的、车辆可以执行的运动轨迹。Autonomous driving technology services and autonomous vehicles are a multidisciplinary system engineering. Path planning is an important part of autonomous driving technology. It is responsible for planning local motion trajectories, guiding the underlying controller of the vehicle, and controlling the steering wheel, accelerator and brake of the vehicle. Path planning can generally be divided into two parts: behavior planning and motion planning. Behavior planning is responsible for calculating a reasonable and comfortable driving strategy; motion planning is responsible for calculating the specific trajectory that the vehicle can execute.
现有的路径规划是对车辆行驶过程中的位置进行采样,然后采用动态规划方法,搜索出一条相应的轨迹。但是对车辆行驶过程中的位置采样得到的路径不光滑,如图1所示。车辆执行如图1所示的驾驶路径,会使得行驶过程中的舒适性不足。The existing path planning is to sample the position of the vehicle during driving, and then use the dynamic programming method to search for a corresponding trajectory. However, the path obtained by sampling the position of the vehicle during driving is not smooth, as shown in Figure 1. The vehicle's execution of the driving path shown in Figure 1 will result in insufficient comfort during driving.
发明内容Contents of the invention
本发明提供一种车辆驾驶行为的规划方法、装置、电子设备、存储介质。本申请的方法能够提高车辆驾驶的舒适性。The invention provides a planning method, device, electronic equipment and storage medium for vehicle driving behavior. The method of the present application can improve the driving comfort of the vehicle.
为解决上述技术问题,本发明实施例提供一种车辆驾驶行为的规划方法,包括:基于车辆在第一位置的第一运动信息以及车辆在第二 位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销,第一运动信息以及第二运动信息至少包括车辆的加速度信息;基于舒适性开销,获取第一位置的开销以及第二位置的开销;基于第一位置的开销以及第二位置的开销,规划车辆的驾驶路径。In order to solve the above-mentioned technical problems, an embodiment of the present invention provides a method for planning vehicle driving behavior, including: acquiring the vehicle at the first position based on the first movement information of the vehicle at the first position and the second movement information of the vehicle at the second position And the comfort cost between the second positions, the first motion information and the second motion information at least include the acceleration information of the vehicle; based on the comfort cost, obtain the cost of the first position and the cost of the second position; The cost and the cost of the second location are used to plan the driving path of the vehicle.
其中,采用以下步骤确定车辆在第二位置的第二运动信息,包括:基于预设加速度间隔和第一运动信息确定车辆在第二位置的第二运动信息。Wherein, the following steps are adopted to determine the second motion information of the vehicle at the second position, including: determining the second motion information of the vehicle at the second position based on the preset acceleration interval and the first motion information.
其中,第一运动信息还包括:车辆的速度信息以及位移信息;基于预设加速度间隔和第一运动信息确定车辆在第二位置的第二运动信息的步骤,包括:基于预设加速度间隔,利用车辆在第一位置的加速度信息确定车辆在第二位置的加速度信息;基于匀加速方法利用车辆在第一位置的加速度信息以及车辆在第二位置的加速度信息,计算得到车辆在第二位置的速度信息;基于车辆在第一位置的速度信息以及车辆在第二位置的速度信息,计算得到车辆在第二位置的位移信息。Wherein, the first motion information also includes: speed information and displacement information of the vehicle; the step of determining the second motion information of the vehicle at the second position based on the preset acceleration interval and the first motion information includes: based on the preset acceleration interval, using The acceleration information of the vehicle at the first position determines the acceleration information of the vehicle at the second position; based on the uniform acceleration method, the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position are used to calculate the speed of the vehicle at the second position Information; based on the velocity information of the vehicle at the first location and the velocity information of the vehicle at the second location, the displacement information of the vehicle at the second location is calculated.
其中,基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销,包括:基于第一运动信息以及第二运动信息,构建光滑曲线函数;基于光滑曲线函数,计算得到舒适性开销。Wherein, obtaining the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position includes: based on the first motion information and the second 2. Motion information, construct a smooth curve function; based on the smooth curve function, calculate the comfort cost.
其中,方法还包括:预测障碍物的位置信息,根据位置信息以及第二运动信息获取车辆与障碍物之间的距离;根据车辆与障碍物之间的距离获取车辆回避障碍物的安全开销;基于舒适性开销,获取第一位置的开销以及第二位置的开销,还包括:基于舒适性开销以及安全开销,获取第一位置的开销以及第二位置的开销。Wherein, the method further includes: predicting the position information of the obstacle, obtaining the distance between the vehicle and the obstacle according to the position information and the second motion information; obtaining the safety overhead of the vehicle avoiding the obstacle according to the distance between the vehicle and the obstacle; based on The comfort cost, the cost of obtaining the first position and the cost of the second position, further includes: the cost of obtaining the first position and the cost of the second position based on the comfort cost and the security cost.
其中,根据车辆与障碍物之间的距离获取车辆回避障碍物的安全开销,包括:若距离大于预设安全距离,则安全开销为0;若距离小于预设碰撞距离,则安全开销为正无穷;若距离不大于预设安全距离,且距离不小于预设碰撞距离,则安全开销为预设权重与距离的比值。Among them, according to the distance between the vehicle and the obstacle, the safety cost of the vehicle avoiding the obstacle is obtained, including: if the distance is greater than the preset safety distance, the safety cost is 0; if the distance is less than the preset collision distance, the safety cost is positive infinity ; If the distance is not greater than the preset safety distance and the distance is not less than the preset collision distance, the safety cost is the ratio of the preset weight to the distance.
其中,基于舒适性开销以及安全开销,获取第一位置的开销以及 第二位置的开销,包括:基于车辆在第一位置的前一位置与第一位置之间的舒适性开销和安全开销,以及第一位置的前一位置的开销,计算得到第一位置的开销;基于车辆在第一位置与第二位置之间的舒适性开销和安全开销,以及第一位置的开销,计算得到第二位置的开销。Wherein, based on the comfort cost and the safety cost, obtaining the cost of the first position and the cost of the second position includes: based on the comfort cost and safety cost between the previous position of the vehicle at the first position and the first position, and The cost of the previous position of the first position is calculated to obtain the cost of the first position; based on the comfort cost and safety cost of the vehicle between the first position and the second position, as well as the cost of the first position, the second position is calculated s expenses.
其中,车辆从第一位置的前一位置到达第一位置,以及车辆从第一位置到达第二位置所用时间相同。Wherein, the time taken by the vehicle to reach the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
为解决上述技术问题,本发明实施例还提供一种车辆驾驶行为的规划装置,包括:第一开销获取模块,用于基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销,第一运动信息以及第二运动信息至少包括车辆的加速度信息;第二开销获取模块,用于基于舒适性开销,获取第一位置的开销以及第二位置的开销;路径规划模块,用于基于第一位置的开销以及第二位置的开销,规划车辆的驾驶路径。In order to solve the above-mentioned technical problems, an embodiment of the present invention also provides a vehicle driving behavior planning device, including: a first cost acquisition module, configured to use the first motion information of the vehicle at the first position and the second The second motion information acquires the comfort cost of the vehicle between the first position and the second position, the first motion information and the second motion information at least include the acceleration information of the vehicle; the second cost acquisition module is configured to acquire based on the comfort cost The cost of the first location and the cost of the second location; a path planning module, configured to plan the driving path of the vehicle based on the cost of the first location and the cost of the second location.
为解决上述技术问题,本发明实施例还提供一种电子设备,包括:存储器和处理器,其中,存储器存储有程序指令,处理器从存储器调取程序指令以执行上述任一项的方法。In order to solve the above technical problems, an embodiment of the present invention further provides an electronic device, including: a memory and a processor, wherein the memory stores program instructions, and the processor calls the program instructions from the memory to execute any one of the above methods.
为解决上述技术问题,本发明实施例还提供一种计算机可读存储介质,存储有程序文件,程序文件能够被执行以实现上述任一项的方法。In order to solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium storing a program file, and the program file can be executed to implement any one of the above methods.
本发明的有益效果,区别于现有技术的情况,本发明提供的车辆驾驶路径的规划方法基于车辆在第一位置的加速度信息以及车辆在第二位置的加速度信息获取车辆在第一位置以及第二位置之间的舒适性开销,基于舒适性开销,最终规划得到车辆的驾驶路径。本申请的方法考虑了车辆在行驶过程中的加速度信息以及舒适性开销,提高了驾驶过程中的舒适性。The beneficial effect of the present invention is different from the situation of the prior art. The planning method of the vehicle driving path provided by the present invention is based on the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position to obtain the vehicle at the first position and the second position. The comfort cost between the two locations is based on the comfort cost, and the driving path of the vehicle is finally planned. The method of the present application considers the acceleration information and the comfort cost of the vehicle during driving, and improves the comfort during driving.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的 附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图,其中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work, wherein:
图1为现有技术路径规划结果的示意图;FIG. 1 is a schematic diagram of a path planning result in the prior art;
图2为本发明车辆驾驶行为的规划方法的第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the method for planning vehicle driving behavior of the present invention;
图3为本发明车辆驾驶行为的规划方法中第二运动信息的计算方法的一实施例的流程示意图;3 is a schematic flowchart of an embodiment of a method for calculating second motion information in the method for planning vehicle driving behavior of the present invention;
图4为本发明车辆驾驶行为的规划方法的第二实施例的流程示意图;FIG. 4 is a schematic flowchart of a second embodiment of the method for planning vehicle driving behavior of the present invention;
图5为本发明车辆驾驶行为的规划方法路径规划结果的示意图;5 is a schematic diagram of the path planning results of the vehicle driving behavior planning method of the present invention;
图6为本发明车辆驾驶行为的规划装置的一实施例的结构示意图;FIG. 6 is a schematic structural diagram of an embodiment of the device for planning vehicle driving behavior according to the present invention;
图7为本发明电子设备的一实施例的结构示意图;7 is a schematic structural diagram of an embodiment of the electronic device of the present invention;
图8为本发明计算机可读存储介质的一实施例的结构示意图。FIG. 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present invention.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
现有技术中提出的纵向行为规划方法中,将障碍物车辆的预测轨迹投影到道路坐标系中,然后对纵向位置进行采样,采用动态规划的方法,搜索出一条相应的轨迹。此方法搜索结果不光滑,如图1所示,汽车无法执行出这样的搜索结果,并且搜索计算量大,需要对时间和纵向位置进行比较密集的采样,不能真实地反映汽车的动力学约束。本申请提供一种车辆驾驶行为的规划方法,其能够解决上述问题。In the longitudinal behavior planning method proposed in the prior art, the predicted trajectory of the obstacle vehicle is projected into the road coordinate system, then the longitudinal position is sampled, and a corresponding trajectory is searched out by a dynamic programming method. The search result of this method is not smooth, as shown in Figure 1, the car cannot perform such a search result, and the search calculation is heavy, requiring dense sampling of time and longitudinal position, which cannot truly reflect the dynamic constraints of the car. The present application provides a method for planning vehicle driving behavior, which can solve the above problems.
具体地,请参见图2,为本发明车辆驾驶行为的规划方法的一实 施例的流程示意图,具体包括:Specifically, please refer to Fig. 2, which is a schematic flow chart of an embodiment of the planning method for vehicle driving behavior of the present invention, specifically including:
步骤S11:基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销,第一运动信息以及第二运动信息至少包括车辆的加速度信息。Step S11: Based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position, the comfort cost, the first motion information and the second motion of the vehicle between the first position and the second position are acquired The information includes at least acceleration information of the vehicle.
在一具体实施例中,车辆在行驶过程中需要对驾驶路径进行规划。现有技术中,车辆驾驶路径规划时,是对车辆的位置进行采样,例如,车辆当前位置为A点,预测车辆的下一个位置为B点(也即对车辆的下一个位置进行采样),基于A点至B点的距离进行速度以及加速度的规划,最终得到一个搜索路径,该搜索路径包括车辆行驶的速度以及加速度。但是基于车辆位置规划出的最终路径不光滑,不符合车辆的动力学约束,具体如图1所示,车辆难以执行出这样的搜索结果,或者不能保证车辆以符合动力学约束的行为进行行驶,舒适性较差。In a specific embodiment, the vehicle needs to plan the driving route during driving. In the prior art, when the vehicle driving path is planned, the position of the vehicle is sampled. For example, the current position of the vehicle is point A, and the next position of the vehicle is predicted to be point B (that is, the next position of the vehicle is sampled), The speed and acceleration are planned based on the distance from point A to point B, and finally a search path is obtained, which includes the speed and acceleration of the vehicle. However, the final path planned based on the vehicle position is not smooth and does not conform to the dynamic constraints of the vehicle. As shown in Figure 1, it is difficult for the vehicle to perform such search results, or it cannot be guaranteed that the vehicle will drive in a behavior that meets the dynamic constraints. Less comfortable.
本实施例的方法,基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销。第一运动信息以及第二运动信息至少包括车辆的加速度信息。也即,本实施例的方法,采用车辆在第一位置的加速度信息以及第二位置的加速度信息计算得到车辆在第一位置以及第二位置之间的舒适性开销。一方面通过加速度的计算,能够规划出符合动力学约束的驾驶路径,另一方面能够使得车辆平滑驾驶,提高驾驶过程中的舒适性。The method of this embodiment acquires the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position. The first motion information and the second motion information at least include acceleration information of the vehicle. That is, in the method of this embodiment, the acceleration information of the vehicle at the first location and the acceleration information of the second location are used to calculate the comfort cost of the vehicle between the first location and the second location. On the one hand, through the calculation of acceleration, it is possible to plan a driving path that meets the dynamic constraints, on the other hand, it can make the vehicle drive smoothly and improve the comfort during driving.
具体的,可以基于预设加速度间隔和第一运动信息确定车辆在第二位置的第二运动信息。需要说明的是,第二运动信息为预测的运动信息,也即第二运动信息为系统为车辆规划的将要执行的运动信息。Specifically, the second motion information of the vehicle at the second position may be determined based on the preset acceleration interval and the first motion information. It should be noted that the second motion information is predicted motion information, that is, the second motion information is motion information planned by the system for the vehicle to be executed.
在一实施例中,第一运动信息还包括车辆的速度信息以及位移信息,第二运动信息同样包括车辆的速度信息以及位移信息。In an embodiment, the first motion information further includes vehicle speed information and displacement information, and the second motion information also includes vehicle speed information and displacement information.
车辆在行驶至第一位置时,获取当前时刻T在第一位置的加速度信息a1、速度信息v1以及位移信息s1。则需要给予预设加速度间隔 结合车辆在第一位置的加速度信息a1、速度信息v1以及位移信息s1计算得到车辆在第二位置的加速度信息a2、速度信息v2以及位移信息s2。具体请结合图3,包括:When the vehicle travels to the first position, the acceleration information a1 , velocity information v1 and displacement information s1 at the first position at the current moment T are acquired. It is necessary to give a preset acceleration interval to calculate the acceleration information a2, velocity information v2 and displacement information s2 of the vehicle at the second position by combining the acceleration information a1, velocity information v1 and displacement information s1 of the vehicle at the first position. Please refer to Figure 3 for details, including:
步骤S21:基于预设加速度间隔,利用车辆在第一位置的加速度信息确定车辆在第二位置的加速度信息。Step S21: Based on the preset acceleration interval, use the acceleration information of the vehicle at the first position to determine the acceleration information of the vehicle at the second position.
例如,预设加速度间隔为:0.2m/s 2,那么车辆在第二位置的加速度信息a2=a1+0.2m/s 2For example, the preset acceleration interval is: 0.2m/s 2 , then the acceleration information of the vehicle at the second position a2=a1+0.2m/s 2 .
步骤S22:基于匀加速的方法利用车辆在第一位置的加速度信息以及车辆在第二位置的加速度信息计算得到车辆在第二位置的速度信息。Step S22: The method based on uniform acceleration uses the acceleration information of the vehicle at the first location and the acceleration information of the vehicle at the second location to calculate the velocity information of the vehicle at the second location.
具体的,车辆在第一位置的加速度信息a1以及车辆在第二位置的加速度信息a2已知,可以计算得到车辆在第二位置的速度信息v2,计算公式为:v2=0.5(a1+a2)dt。t为车辆从第一位置到第二位置所用的时间。Specifically, the acceleration information a1 of the vehicle at the first position and the acceleration information a2 of the vehicle at the second position are known, and the velocity information v2 of the vehicle at the second position can be calculated, and the calculation formula is: v2=0.5(a1+a2) dt. t is the time taken by the vehicle to travel from the first location to the second location.
步骤S23:基于车辆在第一位置的速度信息以及车辆在第二位置的速度信息,计算得到车辆在第二位置的位移信息。Step S23: Based on the speed information of the vehicle at the first position and the speed information of the vehicle at the second position, calculate the displacement information of the vehicle at the second position.
具体的,车辆在第一位置的速度信息v1以及车辆在第二位置的速度信息v2已知,可以得到车辆在第二位置的位移信息s2,计算公式为:s2=0.5(v1+v2)dt。Specifically, the speed information v1 of the vehicle at the first position and the speed information v2 of the vehicle at the second position are known, and the displacement information s2 of the vehicle at the second position can be obtained. The calculation formula is: s2=0.5(v1+v2)dt .
在一实施例中,还可以进一步规划从第一位置到第二位置的时间Δt。在一可行实施例中,设置Δt=2s,例如,车辆在到达第一位置时的时间为T,那么可以规划车辆在到达第二位置的时间为T+Δt。In an embodiment, the time Δt from the first position to the second position may be further planned. In a feasible embodiment, Δt=2s is set, for example, the time when the vehicle arrives at the first location is T, then the time when the vehicle arrives at the second location can be planned to be T+Δt.
通过上述方法,结合预设加速度间隔以及第一位置信息(加速度信息a1、速度信息v1以及位移信息s1)计算得到第二位置信息(加速度信息a2、速度信息v2以及位移信息s2)。Through the above method, the second position information (acceleration information a2, velocity information v2 and displacement information s2) is calculated by combining the preset acceleration interval and the first position information (acceleration information a1, velocity information v1 and displacement information s1).
本实施例中,在得到第一运动信息以及第二运动信息后,基于第一运动信息以及第二运动信息获取车辆从第一位置到第二位置之间的舒适性开销。具体的,可以基于第一运动信息以及第二运动信息构建光滑曲线函数,基于光滑曲线函数计算得到舒适性开销。本实施例 中,利用光滑曲线函数计算舒适性开销能够使得最终规划的驾驶路径光滑,驾驶过程中舒适性强。光滑曲线函数可以为多项式。In this embodiment, after the first motion information and the second motion information are obtained, the comfort cost of the vehicle from the first position to the second position is acquired based on the first motion information and the second motion information. Specifically, a smooth curve function may be constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function. In this embodiment, using the smooth curve function to calculate the comfort cost can make the final planned driving path smooth and the driving comfort is strong. The smooth curve function can be polynomial.
具体的,由于第一运动信息以及第二运动信息中共有六个已知量,因此可以基于第一运动信息以及第二运动信息构建五次多项式。如:s(t)=c 0+c 1t+c 2t 2+c 3t 3+c 4t 4+c 5*t 5Specifically, since there are six known quantities in the first motion information and the second motion information, a quintic polynomial may be constructed based on the first motion information and the second motion information. For example: s(t)=c 0 +c 1 t+c 2 t 2 +c 3 t 3 +c 4 t 4 +c 5 *t 5 .
可以根据第一运动信息以及第二运动信息得到以下方程组:s(t1)=s1,s′(t1)=v1,s″(t1)=a1;s(t2)=s2,s′(t2)=v2,s″(t2)-a2。求解该方程组可以进一步求出五次多项式的系数[c 0,c 1,c 2,c 3,c 4,c 5]。 The following equations can be obtained according to the first motion information and the second motion information: s(t1)=s1, s'(t1)=v1, s"(t1)=a1; s(t2)=s2, s'(t2 )=v2, s"(t2)-a2. Solving this system of equations can further obtain the coefficients [c 0 , c 1 , c 2 , c 3 , c 4 , c 5 ] of the quintic polynomial.
进一步的,可以根据上述五次多项式计算加速度的导数在第一位置的时间T以及第二位置的时间T+Δt内的积分,进而得到舒适性开销。具体为:Further, the integral of the derivative of the acceleration within the time T at the first position and the time T+Δt at the second position may be calculated according to the above-mentioned quintic polynomial, so as to obtain the comfort cost. Specifically:
Figure PCTCN2021143994-appb-000001
Figure PCTCN2021143994-appb-000001
其中,t1为时间T,t2为时间T+Δt。Wherein, t1 is time T, and t2 is time T+Δt.
本实施例中,利用五次多项式结合加速度信息计算舒适性开销,可以得到更加平滑的驾驶路径,使得车辆更加容易执行出这样的驾驶结果,并且能够真实的反映车辆的动力学约束,提高驾驶过程中的舒适性。另外,本实施例的方法,其基于第一位置的第一运动信息预测第二位置的第二运动信息,不需要密集的采样点,可以降低计算量。In this embodiment, using the quintic polynomial combined with the acceleration information to calculate the comfort cost can obtain a smoother driving path, making it easier for the vehicle to perform such a driving result, and can truly reflect the dynamic constraints of the vehicle and improve the driving process. comfort in. In addition, the method of this embodiment predicts the second motion information of the second position based on the first motion information of the first position, does not require dense sampling points, and can reduce the amount of calculation.
步骤S12:基于舒适性开销,获取第一位置的开销以及第二位置的开销。Step S12: Acquire the cost of the first location and the cost of the second location based on the comfort cost.
具体的,可以利用舒适性开销计算第一位置的开销以及第二位置的开销。例如,基于车辆在第一位置的前一位置与第一位置之间的舒适性开销,以及第一位置的前一位置的开销,计算得到第一位置的开销。具体计算方式为:Specifically, the cost of the first position and the cost of the second position may be calculated by using the comfort cost. For example, the cost of the first position is calculated based on the comfort cost of the vehicle between the previous position of the first position and the first position, and the cost of the previous position of the first position. The specific calculation method is:
Figure PCTCN2021143994-appb-000002
Figure PCTCN2021143994-appb-000002
其中,
Figure PCTCN2021143994-appb-000003
in,
Figure PCTCN2021143994-appb-000003
其中,
Figure PCTCN2021143994-appb-000004
为车辆在第一位置n1的前一位置n0与第一位置n1之间的舒适性开销,cost(n 0)为第一位置n1的前一位置no的开销, N 1-1为第一位置的前一位置之前的位置。
in,
Figure PCTCN2021143994-appb-000004
is the comfort cost of the vehicle between the previous position n0 of the first position n1 and the first position n1, cost(n 0 ) is the cost of the previous position no of the first position n1, and N 1-1 is the first position The position before the previous position of the .
进一步的,在计算得到第一位置的开销之后,基于第一位置与第二位置之间的舒适性开销以及第一位置的开销计算得到第二位置的开销。具体计算公式如上述公式(1),具体不再赘述。Further, after the cost of the first position is calculated, the cost of the second position is calculated based on the comfort cost between the first position and the second position and the cost of the first position. The specific calculation formula is as the above-mentioned formula (1), and details are not repeated here.
需要说明的是,车辆从第一位置的前一位置到达第一位置,以及车辆从第一位置到达第二位置所用时间相同。It should be noted that the time taken by the vehicle to arrive at the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
步骤S13:基于第一位置的开销以及第二位置的开销,规划车辆的驾驶路径。Step S13: Planning the driving route of the vehicle based on the cost of the first location and the cost of the second location.
在得到第一位置的开销以及第二位置的开销之后,基于第一位置的开销以及第二位置的开销规划车辆的驾驶路径。具体的,可以基于动态规划方法从第一位置到第二位置之间找到开销最小的路径,进而得到从第一位置到第二位置的驾驶路径。After the cost of the first location and the cost of the second location are obtained, the driving route of the vehicle is planned based on the cost of the first location and the cost of the second location. Specifically, the path with the least cost can be found from the first location to the second location based on the dynamic programming method, and then the driving path from the first location to the second location can be obtained.
本实施例的方法,基于第一运动信息以及第二运动信息构建光滑曲线函数,基于光滑曲线函数计算得到舒适性开销,可以使得最终得到的驾驶路径光滑,如图5所示。在规划路径的过程中考虑了舒适性开销,可以使得驾驶过程中舒适性好。本申请在规划路径的过程中考虑了加速度信息以及速度信息,并且加入了匀加速计算方法,可以使得最终得到的驾驶路径符合动力学约束,可执行性强。另一方面,本申请的方法基于两个位置的速度信息、加速度信息以及位移信息进行路径的规划,相对于现有技术而言,不需要密集的采样点,降低计算量。In the method of this embodiment, a smooth curve function is constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function, which can make the final driving path smooth, as shown in FIG. 5 . In the process of planning the route, the comfort cost is considered, which can make the driving comfort better. The application considers acceleration information and speed information in the process of route planning, and adds a uniform acceleration calculation method, which can make the final driving route conform to dynamic constraints and has strong executability. On the other hand, the method of the present application performs path planning based on the velocity information, acceleration information, and displacement information of two locations. Compared with the prior art, it does not require dense sampling points and reduces the amount of calculation.
请参见图4,为本发明车辆驾驶路径的规划方法的第二实施例的流程示意图,其中,步骤S31以及步骤S35与上述图1所示的实施例中的步骤S11以及步骤S13相同,区别在于,本实施例在步骤S31之后以及步骤S35之前还包括:Please refer to FIG. 4 , which is a schematic flow chart of the second embodiment of the method for planning a vehicle driving route according to the present invention, wherein step S31 and step S35 are the same as step S11 and step S13 in the above embodiment shown in FIG. 1 , the difference is that , this embodiment also includes after step S31 and before step S35:
步骤S32:预测障碍物的位置信息,根据位置信息以及第二运动信息获取车辆与障碍物之间的距离。Step S32: Predict the position information of the obstacle, and obtain the distance between the vehicle and the obstacle according to the position information and the second motion information.
本实施例中,在车辆遇到障碍物时,需要考虑如何躲避障碍物。如图5所示,A表示障碍物,以A沿横向行驶,车辆沿纵向行驶为 例,若想要躲避障碍物,一个方法是在与障碍物相遇之前超过障碍物,另一个方法是在相遇之前避让障碍物。而为了回避障碍物,本申请引入车辆回避障碍物的安全开销进行路径规划。In this embodiment, when the vehicle encounters an obstacle, it needs to consider how to avoid the obstacle. As shown in Figure 5, A represents an obstacle. Take A traveling horizontally and the vehicle traveling longitudinally as an example. If you want to avoid an obstacle, one method is to surpass the obstacle before meeting the obstacle, and the other method is to pass the obstacle before meeting the obstacle. Avoid obstacles before. In order to avoid obstacles, this application introduces the safety overhead of vehicle avoidance obstacles for path planning.
具体的,可以利用视觉定位的方式对障碍物进行拍照,根据拍摄的图像预测障碍物的实时位置信息。在另一实施例中,还可以对障碍物进行GPS定位,根据GPS定位结果预测障碍物的实时位置信息。Specifically, the obstacle can be photographed by means of visual positioning, and the real-time position information of the obstacle can be predicted according to the captured image. In another embodiment, GPS positioning can also be performed on obstacles, and real-time position information of obstacles can be predicted according to GPS positioning results.
预测出障碍物的位置信息后,根据障碍物的位置信息以及第二运动信息获取车辆与障碍物的距离。例如,预测障碍物在时间T(此时车辆在第一位置)的位置信息,得到其道路坐标;并且根据车辆在第一位置的第一运动信息得到车辆的位移s1,可以得到车辆在第一位置时与障碍物的距离。进一步的,还可以预测障碍物在时间T+Δt(此时车辆在第二位置)的位置信息,得到其道路坐标,并且根据车辆在第二位置信息的第二运动信息得到车辆的位置s2,可以得到车辆在第二位置时与障碍物的距离。进一步的,可以通过连续拍摄的至少两张图片预测障碍物在两张图像的位置,进而预测出障碍物的行驶速度以及加速度,基于行驶速度以及加速度可以实时计算出预测障碍物的位置信息,例如可以计算出障碍物在时间T+Δt(此时车辆在第二位置)的位置信息。After the location information of the obstacle is predicted, the distance between the vehicle and the obstacle is obtained according to the location information of the obstacle and the second motion information. For example, predict the position information of the obstacle at time T (the vehicle is at the first position at this time), and obtain its road coordinates; and obtain the displacement s1 of the vehicle according to the first motion information of the vehicle at the first position, and obtain the distance to obstacles. Further, it is also possible to predict the position information of the obstacle at time T+Δt (the vehicle is at the second position at this time), obtain its road coordinates, and obtain the position s2 of the vehicle according to the second motion information of the vehicle at the second position information, The distance between the vehicle and the obstacle can be obtained when the vehicle is in the second position. Further, the position of the obstacle in the two images can be predicted by at least two pictures taken continuously, and then the driving speed and acceleration of the obstacle can be predicted. Based on the driving speed and acceleration, the position information of the predicted obstacle can be calculated in real time, for example The position information of the obstacle at time T+Δt (the vehicle is at the second position at this time) can be calculated.
在确定出障碍物的位置信息以及车辆的位置信息之后,进一步确定障碍物与车辆的距离。After determining the position information of the obstacle and the position information of the vehicle, the distance between the obstacle and the vehicle is further determined.
步骤S33:根据车辆与障碍物之间的距离获取车辆回避障碍物的安全开销。Step S33: Obtain the safety cost of the vehicle avoiding the obstacle according to the distance between the vehicle and the obstacle.
具体的,在一实施例中,若距离大于预设安全距离,则安全开销为0;此时,车辆不会与障碍物发生碰撞。若距离小于碰撞距离,则安全开销为正无穷;此时车辆与障碍物发生碰撞,具有安全风险。若距离不大于预设安全距离,且距离不小于预设碰撞距离,则安全开销为预设权重与距离的比值,该预设权重可以人为设置。可以设置预设安全距离的权重大于预设碰撞距离的权重,进一步计算预设安全距离的权重与距离的比值,或者计算预设碰撞距离的权重与距离的比值。 或者,还可以设置预设碰撞距离的权重大于预设安全距离的权重,具体不做限定。Specifically, in one embodiment, if the distance is greater than the preset safety distance, the safety overhead is 0; at this time, the vehicle will not collide with the obstacle. If the distance is less than the collision distance, the safety cost is positive infinity; at this time, the vehicle collides with the obstacle, which is a safety risk. If the distance is not greater than the preset safety distance and the distance is not less than the preset collision distance, the safety cost is the ratio of the preset weight to the distance, and the preset weight can be set manually. The weight of the preset safety distance can be set to be greater than the weight of the preset collision distance, and the ratio of the weight to the distance of the preset safety distance can be further calculated, or the ratio of the weight to the distance of the preset collision distance can be calculated. Alternatively, the weight of the preset collision distance may also be set to be greater than the weight of the preset safety distance, which is not specifically limited.
在一具体实施例中,预设安全距离大于预设碰撞距离。In a specific embodiment, the preset safety distance is greater than the preset collision distance.
本实施例中,根据车辆与障碍物的距离计算得到安全开销,根据该安全开销设置驾驶行为可以避免车辆与障碍物发生碰撞。In this embodiment, the safety cost is calculated according to the distance between the vehicle and the obstacle, and the driving behavior can be set according to the safety cost to avoid collision between the vehicle and the obstacle.
步骤S34:基于舒适性开销以及安全开销,获取第一位置的开销以及第二位置的开销。Step S34: Obtain the cost of the first location and the cost of the second location based on the comfort cost and the safety cost.
具体的,可以利用舒适性开销以及安全开销计算第一位置的开销以及第二位置的开销。例如,基于车辆在第一位置的前一位置与第一位置之间的舒适性开销以及安全开销,以及第一位置的前一位置的开销,计算得到第一位置的开销。具体计算方式为:Specifically, the cost of the first position and the cost of the second position may be calculated by using the comfort cost and the safety cost. For example, the cost of the first location is calculated based on the comfort cost and the safety cost of the vehicle between the first position and the first position, and the cost of the previous position of the first position. The specific calculation method is:
Figure PCTCN2021143994-appb-000005
Figure PCTCN2021143994-appb-000005
其中,
Figure PCTCN2021143994-appb-000006
in,
Figure PCTCN2021143994-appb-000006
其中,
Figure PCTCN2021143994-appb-000007
为车辆在第一位置n1的前一位置n0与第一位置n1之间的舒适性开销cpst confortableh和安全开销cost safety的和,cost(n 0)为第一位置n1的前一位置no的开销,N 1-1为第一位置的前一位置之前的位置。
in,
Figure PCTCN2021143994-appb-000007
is the sum of the comfort cost cpst comfortable h and the safety cost cost safety of the vehicle between the previous position n0 of the first position n1 and the first position n1, cost(n 0 ) is the previous position no of the first position n1 Overhead, N 1-1 is the position before the previous position of the first position.
进一步的,在计算得到第一位置的开销之后,基于第一位置与第二位置之间的舒适性开销和安全开销,以及第一位置的开销计算得到第二位置的开销。具体计算公式如上述公式(2),具体不再赘述。需要说明的是,车辆从第一位置的前一位置到达第一位置,以及车辆从第一位置到达第二位置所用时间相同。Further, after the cost of the first position is calculated, the cost of the second position is calculated based on the comfort cost and safety cost between the first position and the second position, and the cost of the first position. The specific calculation formula is as the above-mentioned formula (2), and details are not repeated here. It should be noted that the time taken by the vehicle to arrive at the first position from the previous position of the first position and the time taken by the vehicle to reach the second position from the first position are the same.
在得到第一位置的开销以及第二位置的开销之后,基于第一位置的开销以及第二位置的开销规划车辆的驾驶路径。具体的,可以基于动态规划方法从第一位置到第二位置之间找到开销最小的路径,进而得到从第一位置到第二位置的驾驶路径。After the cost of the first location and the cost of the second location are obtained, the driving route of the vehicle is planned based on the cost of the first location and the cost of the second location. Specifically, the path with the least cost can be found from the first location to the second location based on the dynamic programming method, and then the driving path from the first location to the second location can be obtained.
本实施例的方法,基于第一运动信息以及第二运动信息构建光滑曲线函数,基于光滑曲线函数计算得到舒适性开销,可以使得最终得到的驾驶路径光滑,如图5所示。在规划路径的过程中考虑了舒适性 开销,可以使得驾驶过程中舒适性好。本申请在规划路径的过程中考虑了加速度信息以及速度信息,并且加入了匀加速计算方法,可以使得最终得到的驾驶路径符合动力学约束,可执行性强。另一方面,本发明实施例提供的车辆驾驶路径的规划方法基于两个位置的速度信息、加速度信息以及位移信息进行路径的规划,相对于现有技术而言,不需要密集的采样点,降低计算量。在车辆行驶过程中,考虑了车辆回避障碍物的安全开销,能够使得按照驾驶路径B行驶的车辆避开障碍物A,如图5所示。车辆的行进方向为纵向,障碍物的行进方向为横向,建立位移时间图。图4中所示的A表示障碍物位置,曲线B表示车辆的驾驶行为。车辆按照如图中曲线B所示的规划好的驾驶速度以及驾驶加速度进行驾驶,能够避让障碍物A。基于本发明实施例提供的车辆驾驶路径的规划方法,可以解决自动驾驶车辆在路口与其他纵向上交互的问题。预先判断车辆是否超越还是避让障碍物车辆,从而能够满足安全性问题,并具备一定的智能性。In the method of this embodiment, a smooth curve function is constructed based on the first motion information and the second motion information, and the comfort cost is calculated based on the smooth curve function, which can make the final driving path smooth, as shown in FIG. 5 . In the process of planning the route, the comfort cost is considered, which can make the driving comfort better. The application considers acceleration information and speed information in the process of route planning, and adds a uniform acceleration calculation method, which can make the final driving route conform to dynamic constraints and has strong executability. On the other hand, the vehicle driving route planning method provided by the embodiment of the present invention plans the route based on the velocity information, acceleration information and displacement information of two positions. Compared with the prior art, it does not require dense sampling points and reduces Calculations. During the driving process of the vehicle, considering the safety cost of the vehicle avoiding the obstacle, the vehicle traveling along the driving path B can avoid the obstacle A, as shown in FIG. 5 . The traveling direction of the vehicle is longitudinal, and the traveling direction of obstacles is transverse, and the displacement time diagram is established. A shown in FIG. 4 represents the obstacle position, and curve B represents the driving behavior of the vehicle. The vehicle drives according to the planned driving speed and driving acceleration as shown in curve B in the figure, and can avoid obstacle A. Based on the planning method of the vehicle driving path provided by the embodiment of the present invention, the problem of the interaction between the self-driving vehicle and other longitudinal directions at the intersection can be solved. Pre-judging whether the vehicle is overtaking or avoiding the obstacle vehicle, so as to meet the safety problem and have a certain degree of intelligence.
进一步的,本申请的算法计算效率高,基本上仅需要4-5次的计算就可以达到较好的效果,能够大大降低计算量。规划结果如图4中曲线B所示,比较光滑,满足车辆的动力学约束,车辆可以很好的执行搜索结果。Furthermore, the calculation efficiency of the algorithm of the present application is high, basically only 4-5 calculations are required to achieve good results, and the calculation amount can be greatly reduced. The planning result is shown as curve B in Figure 4, which is relatively smooth and meets the dynamic constraints of the vehicle, and the vehicle can perform the search results well.
请参见图6,为本发明实施例提供的车辆驾驶路径的规划装置的一实施例的结构示意图,具体包括:第一开销获取模块51、第二开销获取模块52以及规划模块53。本发明实施例提供的车辆驾驶路径的规划装置解决路径规划的问题的过程与前述方法类似,具体可以参照前述说明。Please refer to FIG. 6 , which is a schematic structural diagram of an embodiment of a vehicle driving path planning device provided by an embodiment of the present invention, specifically including: a first cost acquisition module 51 , a second cost acquisition module 52 and a planning module 53 . The process of the vehicle driving path planning device provided in the embodiment of the present invention to solve the problem of path planning is similar to the aforementioned method, for details, reference may be made to the aforementioned description.
其中,第一开销获取模块51用于基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取车辆在第一位置以及第二位置之间的舒适性开销,第一运动信息以及第二运动信息至少包括车辆的加速度信息。Wherein, the first cost acquisition module 51 is used to acquire the comfort cost of the vehicle between the first position and the second position based on the first motion information of the vehicle at the first position and the second motion information of the vehicle at the second position, the first The first movement information and the second movement information at least include acceleration information of the vehicle.
第二开销获取模块52用于基于舒适性开销,获取第一位置的开 销以及第二位置的开销。The second cost obtaining module 52 is used for obtaining the cost of the first position and the cost of the second position based on the comfort cost.
路径规划模块53用于基于第一位置的开销以及第二位置的开销,规划车辆的驾驶路径。The path planning module 53 is used for planning the driving path of the vehicle based on the cost of the first location and the cost of the second location.
进一步地,第一开销获取模块51,还用于:基于预设加速度间隔和所述第一运动信息确定所述车辆在所述第二位置的第二运动信息。Further, the first cost acquisition module 51 is further configured to: determine second motion information of the vehicle at the second position based on a preset acceleration interval and the first motion information.
所述第一运动信息还包括:所述车辆的速度信息以及位移信息;第一开销获取模块51,具体用于:The first motion information also includes: speed information and displacement information of the vehicle; a first overhead acquisition module 51, specifically for:
基于所述预设加速度间隔,利用所述车辆在所述第一位置的加速度信息确定所述车辆在所述第二位置的加速度信息;Based on the preset acceleration interval, using the acceleration information of the vehicle at the first position to determine the acceleration information of the vehicle at the second position;
基于匀加速方法利用所述车辆在所述第一位置的加速度信息以及所述车辆在所述第二位置的加速度信息,计算得到所述车辆在所述第二位置的速度信息;calculating the speed information of the vehicle at the second position by using the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position based on a uniform acceleration method;
基于所述车辆在所述第一位置的速度信息以及所述车辆在所述第二位置的速度信息,计算得到所述车辆在所述第二位置的位移信息。Displacement information of the vehicle at the second position is calculated based on the speed information of the vehicle at the first position and the speed information of the vehicle at the second position.
进一步地,第一开销获取模块51,具体用于:基于所述第一运动信息以及所述第二运动信息,构建光滑曲线函数;Further, the first overhead acquisition module 51 is specifically configured to: construct a smooth curve function based on the first motion information and the second motion information;
基于所述光滑曲线函数,计算得到所述舒适性开销。Based on the smooth curve function, the comfort cost is calculated.
进一步地,第一开销获取模块51,还用于:预测障碍物的位置信息,根据所述位置信息以及所述第二运动信息获取所述车辆与所述障碍物之间的距离;Further, the first overhead acquisition module 51 is further configured to: predict the position information of the obstacle, and acquire the distance between the vehicle and the obstacle according to the position information and the second motion information;
根据所述车辆与所述障碍物之间的距离获取所述车辆回避所述障碍物的安全开销;Obtaining a safety cost for the vehicle to avoid the obstacle according to the distance between the vehicle and the obstacle;
第二开销获取模块52,还用于:基于所述舒适性开销以及所述安全开销,获取所述第一位置的开销以及所述第二位置的开销。The second cost obtaining module 52 is further configured to: obtain the cost of the first location and the cost of the second location based on the comfort cost and the security cost.
进一步地,第一开销获取模块51,具体用于:若所述距离大于预设安全距离,则所述安全开销为0;Further, the first overhead acquisition module 51 is specifically configured to: if the distance is greater than a preset safety distance, the safety overhead is 0;
若所述距离小于预设碰撞距离,则所述安全开销为正无穷;If the distance is less than the preset collision distance, the safety cost is positive infinity;
若所述距离不大于所述预设安全距离,且所述距离不小于所述预设碰撞距离,则所述安全开销为预设权重与所述距离的比值。If the distance is not greater than the preset safety distance and the distance is not smaller than the preset collision distance, then the safety cost is a ratio of a preset weight to the distance.
进一步地,第二开销获取模块52,具体用于:基于所述车辆在所述第一位置的前一位置与所述第一位置之间的舒适性开销和安全开销,以及所述第一位置的前一位置的开销,计算得到所述第一位置的开销;Further, the second cost acquisition module 52 is specifically configured to: based on the comfort cost and safety cost of the vehicle between the previous position of the first position and the first position, and the cost of the first position The cost of the previous position is calculated to obtain the cost of the first position;
基于所述车辆在所述第一位置与所述第二位置之间的所述舒适性开销和所述安全开销,以及所述第一位置的开销,计算得到所述第二位置的开销。The cost of the second position is calculated based on the comfort cost and the safety cost of the vehicle between the first position and the second position, and the cost of the first position.
进一步地,所述车辆从所述第一位置的前一位置到达所述第一位置,以及所述车辆从所述第一位置到达所述第二位置所用时间相同。Further, the time taken by the vehicle to reach the first position from a position preceding the first position and the time taken by the vehicle to reach the second position from the first position are the same.
请参见图7,为本发明电子设备的一实施例的结构示意图,电子设备包括相互连接的存储器202和处理器201。Please refer to FIG. 7 , which is a schematic structural diagram of an embodiment of an electronic device according to the present invention. The electronic device includes a memory 202 and a processor 201 connected to each other.
存储器202用于存储实现上述任意一项的方法的程序指令。The memory 202 is used to store program instructions for implementing any one of the above methods.
处理器201用于执行存储器202存储的程序指令。The processor 201 is used to execute program instructions stored in the memory 202 .
其中,处理器201还可以称为CPU(Central Processing Unit,中央处理单元)。处理器201可能是一种集成电路芯片,具有信号的处理能力。处理器201还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the processor 201 may also be referred to as a CPU (Central Processing Unit, central processing unit). The processor 201 may be an integrated circuit chip with signal processing capability. The processor 201 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components . A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
存储器202可以为内存条、TF卡等,可以存储设备的电子设备中全部信息,包括输入的原始数据、计算机程序、中间运行结果和最终运行结果都保存在存储器中。它根据控制器指定的位置存入和取出信息。有了存储器,电子设备才有记忆功能,才能保证正常工作。电子设备的存储器按用途存储器可分为主存储器(内存)和辅助存储器(外存),也有分为外部存储器和内部存储器的分类方法。外存通常是磁性介质或光盘等,能长期保存信息。内存指主板上的存储部件,用来存放当前正在执行的数据和程序,但仅用于暂时存放程序和数据,关 闭电源或断电,数据会丢失。The memory 202 can be a memory stick, a TF card, etc., and can store all information in the electronic equipment of the device, including input raw data, computer programs, intermediate running results and final running results are all stored in the memory. It deposits and retrieves information according to the location specified by the controller. With memory, electronic equipment has a memory function to ensure normal operation. The memory of electronic equipment can be divided into main memory (internal memory) and auxiliary memory (external memory) according to the purpose of memory, and there are also classification methods into external memory and internal memory. External storage is usually magnetic media or optical discs, which can store information for a long time. Memory refers to the storage components on the mainboard, which are used to store data and programs currently being executed, but are only used to store programs and data temporarily, and the data will be lost when the power is turned off or cut off.
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device implementations described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,系统服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法的全部或部分步骤。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a system server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
请参阅图8,为本发明计算机可读存储介质的结构示意图。本申请的存储介质存储有能够实现上述所有方法的程序文件203,其中,该程序文件203可以以软件产品的形式存储在上述存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式方法 的全部或部分步骤。而前述的存储装置包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等终端设备。Please refer to FIG. 8 , which is a schematic structural diagram of a computer-readable storage medium according to the present invention. The storage medium of the present application stores a program file 203 capable of realizing all the above-mentioned methods, wherein the program file 203 can be stored in the above-mentioned storage medium in the form of a software product, and includes several instructions to make a computer device (which can be a personal A computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage device includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc and other media that can store program codes. , or terminal devices such as computers, servers, mobile phones, and tablets.
以上仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields, All are included in the scope of patent protection of the present invention in the same way.

Claims (11)

  1. 一种车辆驾驶路径的规划方法,其中,包括:A method for planning a vehicle driving path, comprising:
    基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取所述车辆在所述第一位置以及所述第二位置之间的舒适性开销,所述第一运动信息以及所述第二运动信息至少包括所述车辆的加速度信息;Acquire the comfort cost of the vehicle between the first position and the second position based on first motion information of the vehicle at the first position and second motion information of the vehicle at the second position, the first motion The information and the second movement information include at least acceleration information of the vehicle;
    基于所述舒适性开销,获取所述第一位置的开销以及所述第二位置的开销;obtaining the cost of the first location and the cost of the second location based on the comfort cost;
    基于所述第一位置的开销以及所述第二位置的开销,规划所述车辆的驾驶路径。A driving route of the vehicle is planned based on the cost of the first location and the cost of the second location.
  2. 据权利要求1所述的方法,其中,采用以下步骤确定所述车辆在第二位置的第二运动信息,包括:The method according to claim 1, wherein determining the second movement information of the vehicle at the second location comprises:
    基于预设加速度间隔和所述第一运动信息确定所述车辆在所述第二位置的第二运动信息。Determining second motion information of the vehicle at the second position based on a preset acceleration interval and the first motion information.
  3. 根据权利要求2所述的方法,其中,所述第一运动信息还包括:所述车辆的速度信息以及位移信息;The method according to claim 2, wherein the first motion information further includes: speed information and displacement information of the vehicle;
    所述基于预设加速度间隔和所述第一运动信息确定所述车辆在所述第二位置的第二运动信息的步骤,包括:The step of determining second motion information of the vehicle at the second position based on a preset acceleration interval and the first motion information includes:
    基于所述预设加速度间隔,利用所述车辆在所述第一位置的加速度信息确定所述车辆在所述第二位置的加速度信息;Based on the preset acceleration interval, using the acceleration information of the vehicle at the first position to determine the acceleration information of the vehicle at the second position;
    基于匀加速方法利用所述车辆在所述第一位置的加速度信息以及所述车辆在所述第二位置的加速度信息,计算得到所述车辆在所述第二位置的速度信息;calculating the speed information of the vehicle at the second position by using the acceleration information of the vehicle at the first position and the acceleration information of the vehicle at the second position based on a uniform acceleration method;
    基于所述车辆在所述第一位置的速度信息以及所述车辆在所述第二位置的速度信息,计算得到所述车辆在所述第二位置的位移信息。Displacement information of the vehicle at the second position is calculated based on the speed information of the vehicle at the first position and the speed information of the vehicle at the second position.
  4. 根据权利要求1所述的方法,其中,所述基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取所述车辆在所述第一位置以及所述第二位置之间的舒适性开销,包括:The method according to claim 1, wherein the acquisition of the vehicle at the first location and the second location is based on the first movement information of the vehicle at the first location and the second movement information of the vehicle at the second location. Amenity overhead between locations, including:
    基于所述第一运动信息以及所述第二运动信息,构建光滑曲线函数;Constructing a smooth curve function based on the first motion information and the second motion information;
    基于所述光滑曲线函数,计算得到所述舒适性开销。Based on the smooth curve function, the comfort cost is calculated.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    预测障碍物的位置信息,根据所述位置信息以及所述第二运动信息获取所述车辆与所述障碍物之间的距离;Predicting the position information of the obstacle, and obtaining the distance between the vehicle and the obstacle according to the position information and the second motion information;
    根据所述车辆与所述障碍物之间的距离获取所述车辆回避所述障碍物的安全开销;Obtaining a safety cost for the vehicle to avoid the obstacle according to the distance between the vehicle and the obstacle;
    所述基于所述舒适性开销,获取所述第一位置的开销以及所述第二位置的开销,还包括:The acquiring the cost of the first location and the cost of the second location based on the comfort cost further includes:
    基于所述舒适性开销以及所述安全开销,获取所述第一位置的开销以及所述第二位置的开销。Based on the comfort cost and the safety cost, the cost of the first location and the cost of the second location are obtained.
  6. 根据权利要求5所述的方法,其中,所述根据所述车辆与所述障碍物之间的距离获取所述车辆回避所述障碍物的安全开销,包括:The method according to claim 5, wherein said acquiring the safety cost for the vehicle to avoid the obstacle according to the distance between the vehicle and the obstacle comprises:
    若所述距离大于预设安全距离,则所述安全开销为0;If the distance is greater than a preset safety distance, the safety overhead is 0;
    若所述距离小于预设碰撞距离,则所述安全开销为正无穷;If the distance is less than the preset collision distance, the safety cost is positive infinity;
    若所述距离不大于所述预设安全距离,且所述距离不小于所述预设碰撞距离,则所述安全开销为预设权重与所述距离的比值。If the distance is not greater than the preset safety distance and the distance is not smaller than the preset collision distance, then the safety cost is a ratio of a preset weight to the distance.
  7. 根据权利要求5所述的方法,其中,所述基于所述舒适性开销以及所述安全开销,获取所述第一位置的开销以及所述第二位置的开销,包括:The method according to claim 5, wherein said obtaining the cost of the first location and the cost of the second location based on the comfort cost and the safety cost comprises:
    基于所述车辆在所述第一位置的前一位置与所述第一位置之间的舒适性开销和安全开销,以及所述第一位置的前一位置的开销,计算得到所述第一位置的开销;The first position is calculated based on a comfort cost and a safety cost of the vehicle between a position preceding the first position and the first position, and a cost of a position preceding the first position s expenses;
    基于所述车辆在所述第一位置与所述第二位置之间的所述舒适性开销和所述安全开销,以及所述第一位置的开销,计算得到所述第二位置的开销。The cost of the second position is calculated based on the comfort cost and the safety cost of the vehicle between the first position and the second position, and the cost of the first position.
  8. 根据权利要求7所述的方法,其中,所述车辆从所述第一位置的前一位置到达所述第一位置,以及所述车辆从所述第一位置到达所述第二位置所用时间相同。The method of claim 7 , wherein the time taken for the vehicle to reach the first location from a location preceding the first location is the same as the time taken for the vehicle to reach the second location from the first location .
  9. 一种车辆驾驶路径的规划装置,其中,包括:A planning device for a vehicle driving path, including:
    第一开销获取模块,用于基于车辆在第一位置的第一运动信息以及车辆在第二位置的第二运动信息获取所述车辆在所述第一位置以及所述第二 位置之间的舒适性开销,所述第一运动信息以及所述第二运动信息至少包括所述车辆的加速度信息;A first cost acquiring module, configured to acquire comfort of the vehicle between the first position and the second position based on first motion information of the vehicle at the first position and second motion information of the vehicle at the second position A specific overhead, the first movement information and the second movement information at least include acceleration information of the vehicle;
    第二开销获取模块,用于基于所述舒适性开销,获取所述第一位置的开销以及所述第二位置的开销;A second cost obtaining module, configured to obtain the cost of the first location and the cost of the second location based on the comfort cost;
    规划模块,用于基于所述第一位置的开销以及所述第二位置的开销,规划所述车辆的驾驶路径。A planning module, configured to plan the driving route of the vehicle based on the cost of the first location and the cost of the second location.
  10. 一种电子设备,其中,包括:存储器和处理器,其中,所述存储器存储有程序指令,所述处理器从所述存储器调取所述程序指令以执行如权利要求1-8任一项所述的方法。An electronic device, including: a memory and a processor, wherein the memory stores program instructions, and the processor retrieves the program instructions from the memory to execute the program described in any one of claims 1-8. described method.
  11. 一种计算机可读存储介质,其中,存储有程序文件,所述程序文件能够被执行以实现如权利要求1-8任一项所述的方法。A computer-readable storage medium, wherein a program file is stored, and the program file can be executed to implement the method according to any one of claims 1-8.
PCT/CN2021/143994 2021-06-30 2021-12-31 Planning method and apparatus for vehicle driving behavior, electronic device, and storage medium WO2023273282A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110738286.3A CN113320544B (en) 2021-06-30 2021-06-30 Vehicle driving behavior planning method and device, electronic equipment and storage medium
CN202110738286.3 2021-06-30

Publications (1)

Publication Number Publication Date
WO2023273282A1 true WO2023273282A1 (en) 2023-01-05

Family

ID=77423557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143994 WO2023273282A1 (en) 2021-06-30 2021-12-31 Planning method and apparatus for vehicle driving behavior, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113320544B (en)
WO (1) WO2023273282A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113320544B (en) * 2021-06-30 2022-11-11 上海商汤临港智能科技有限公司 Vehicle driving behavior planning method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109311478A (en) * 2016-12-30 2019-02-05 同济大学 A kind of automatic Pilot method for controlling driving speed based on comfort level
CN110843765A (en) * 2019-11-29 2020-02-28 上海汽车集团股份有限公司 Automatic driving method and device and electronic equipment
US20200348684A1 (en) * 2019-04-30 2020-11-05 Baidu Usa Llc Path generation for static obstacle avoidance
CN113320544A (en) * 2021-06-30 2021-08-31 上海商汤临港智能科技有限公司 Vehicle driving behavior planning method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10515321B2 (en) * 2017-09-11 2019-12-24 Baidu Usa Llc Cost based path planning for autonomous driving vehicles
CN109712421B (en) * 2019-02-22 2021-06-04 百度在线网络技术(北京)有限公司 Method, apparatus and storage medium for speed planning of autonomous vehicles
CN111169469B (en) * 2019-10-08 2021-03-12 中国第一汽车股份有限公司 Vehicle trajectory planning method and device, storage medium and automobile
CN112799384A (en) * 2019-10-24 2021-05-14 比亚迪股份有限公司 Vehicle and driving track planning method and planning device thereof
CN111681452B (en) * 2020-01-19 2022-05-31 重庆大学 Unmanned vehicle dynamic lane change track planning method based on Frenet coordinate system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109311478A (en) * 2016-12-30 2019-02-05 同济大学 A kind of automatic Pilot method for controlling driving speed based on comfort level
US20200348684A1 (en) * 2019-04-30 2020-11-05 Baidu Usa Llc Path generation for static obstacle avoidance
CN110843765A (en) * 2019-11-29 2020-02-28 上海汽车集团股份有限公司 Automatic driving method and device and electronic equipment
CN113320544A (en) * 2021-06-30 2021-08-31 上海商汤临港智能科技有限公司 Vehicle driving behavior planning method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113320544B (en) 2022-11-11
CN113320544A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
EP3960577B1 (en) Vehicle driving control method and apparatus
JP7171808B2 (en) AUTOMATED DRIVING VEHICLE PLANNING METHOD, DEVICE, ELECTRONIC DEVICE, AND STORAGE MEDIUM
JP2023514905A (en) Behavior planning for autonomous vehicles
WO2021008605A1 (en) Method and device for determining vehicle speed
WO2022257283A1 (en) Vehicle obstacle avoidance method and apparatus, electronic device, and storage medium
JP2019135145A (en) Driving trajectory generating method, system and machine-readable medium for autonomous driving vehicle
JP2021054388A (en) Method and apparatus for automatic driving control, electronic device, and storage medium
US20200201325A1 (en) Systems and methods for prioritizing data processing
WO2023273282A1 (en) Planning method and apparatus for vehicle driving behavior, electronic device, and storage medium
CN111707258B (en) External vehicle monitoring method, device, equipment and storage medium
CN115675534A (en) Vehicle track prediction method and device, electronic equipment and storage medium
CN115973158A (en) Lane changing track planning method, vehicle, electronic equipment and computer program product
CN116499487B (en) Vehicle path planning method, device, equipment and medium
CN111098842B (en) Vehicle speed control method and related equipment
WO2024065951A1 (en) Narrow road vehicle encounter method and apparatus, device, and storage medium
CN115583254A (en) Path planning method, device and equipment and automatic driving vehicle
WO2022088658A1 (en) Pedestrian crossing intention estimation method and apparatus, device, and vehicle
CN114771533A (en) Control method, device, equipment, vehicle and medium for automatic driving vehicle
CN114030483A (en) Vehicle control method, device, electronic apparatus, and medium
CN113805578A (en) Unmanned vehicle path optimization method and related equipment
CN114407916B (en) Vehicle control and model training method and device, vehicle, equipment and storage medium
WO2024065950A1 (en) Method and apparatus for passing vehicles on narrow road, device, and storage medium
CN115497322B (en) Narrow road vehicle meeting method, device, equipment and storage medium
TWI830415B (en) Method and device for collision predicting and readable computer storage media
US20230256993A1 (en) Secondary autonomous vehicle interceptor in difficult map areas to provide additional sensor data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21948204

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE