CN114076603B - Trajectory determination method - Google Patents
Trajectory determination method Download PDFInfo
- Publication number
- CN114076603B CN114076603B CN202010831889.3A CN202010831889A CN114076603B CN 114076603 B CN114076603 B CN 114076603B CN 202010831889 A CN202010831889 A CN 202010831889A CN 114076603 B CN114076603 B CN 114076603B
- Authority
- CN
- China
- Prior art keywords
- path
- obstacle
- trajectory
- trajectory data
- vehicle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000008859 change Effects 0.000 claims abstract description 70
- 238000012545 processing Methods 0.000 claims description 30
- 238000001514 detection method Methods 0.000 claims description 21
- 230000001133 acceleration Effects 0.000 claims description 4
- 230000000873 masking effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 7
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 6
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3407—Route searching; Route guidance specially adapted for specific applications
- G01C21/3415—Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/28—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Traffic Control Systems (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及一种应用于自驾车的路径决策方法,特别是涉及一种可依当下行驶环境估测最佳行驶路径的轨迹决定方法。The present invention relates to a path decision method applied to a self-driving car, and in particular to a trajectory decision method capable of estimating an optimal driving path according to a current driving environment.
背景技术Background technique
近年来自动驾驶相关研究发展兴盛,目前市面上较为成熟可商业运行的自动驾驶系统主要于封闭场域以固定路径行驶居多,若要应用于人、汽机车混流的道路,自驾系统对于外部环境的变化应有较强的应变能力以处理较为复杂的行车状况及场景。In recent years, research on autonomous driving has flourished. Currently, the more mature and commercially available autonomous driving systems on the market mainly travel on fixed routes in closed areas. If they are to be used on roads with mixed traffic of people, cars and motorcycles, the autonomous driving system should have a strong ability to respond to changes in the external environment in order to handle more complex driving conditions and scenarios.
为使自驾车可实际深入应用于一般道路环境,Mitsubishi Electric、Apple、Waymo等大厂已着手发展自驾车动态路径相关技术,中国台湾工研院等法人及企业也积极发展,其中路径的决策能力影响自驾车的安全性及对复杂场景的处理能力,使自驾车遇到环境障碍时可决策出较近似于一般驾驶的应对行为,例如超越前车、同车道闪避障碍物等。In order to make self-driving cars practically applicable to general road environments, major manufacturers such as Mitsubishi Electric, Apple, and Waymo have begun to develop dynamic path-related technologies for self-driving cars. Legal entities and companies such as the Industrial Technology Research Institute of Taiwan are also actively developing them. The decision-making ability of the path affects the safety of self-driving cars and their ability to handle complex scenarios. When self-driving cars encounter environmental obstacles, they can decide on response behaviors that are closer to general driving, such as overtaking the car in front, avoiding obstacles in the same lane, etc.
然而,现有的自动驾驶汽车在规划行驶路径时,无法从当下行驶环境推测路径的决策方向,具有极大的不确定性。此外,现有的自动驾驶汽车仅针对当下环境进行决策,无法处理可能介入路径的环境变动因子,如行人、移动中的车子等,故所规划出的行驶路径亦存在安全上的疑虑。However, when planning a driving route, existing self-driving cars cannot infer the decision direction of the route from the current driving environment, which has great uncertainty. In addition, existing self-driving cars only make decisions based on the current environment and cannot handle environmental factors that may intervene in the route, such as pedestrians, moving cars, etc., so the planned driving route also has safety concerns.
发明内容Summary of the invention
因此,本发明的目的,即在提供一种可依当下行驶环境规划最佳行驶路径,并考虑障碍物意图以提升路径规划的精确性及安全性的轨迹决定方法。Therefore, the purpose of the present invention is to provide a trajectory determination method that can plan the best driving path according to the current driving environment and consider the intention of obstacles to improve the accuracy and safety of path planning.
于是,本发明轨迹决定方法,通过一处理模块来实施,所述处理模块电连接一轨迹生成模块、一障碍物侦测模块、一车道空间侦测模块,及一道路信息提供模块,所述轨迹生成模块用于生成多笔轨迹数据,每一笔轨迹数据包含一包括多个轨迹点的路径,及一车辆行驶于所述路径的一行驶期间内其在所述路径的每一轨迹点的速度,所述障碍物侦测模块用于侦测与所述车辆相距一预定距离范围内的至少一障碍物,以产生对应于所述至少一障碍物的至少一笔障碍物信息,每笔障碍物信息包括所对应的障碍物的障碍物位置,及所对应的障碍物的障碍物移动速度与障碍物加速度,所述车道空间侦测模块用于侦测该车辆与两侧障碍物的两个侧向距离,所述道路信息提供模块用于提供一道路速限,所述轨迹决定方法包含以下步骤:Therefore, the trajectory determination method of the present invention is implemented by a processing module, the processing module is electrically connected to a trajectory generation module, an obstacle detection module, a lane space detection module, and a road information providing module, the trajectory generation module is used to generate multiple trajectory data, each trajectory data includes a path including multiple trajectory points, and a speed of a vehicle at each trajectory point of the path during a driving period of the path, the obstacle detection module is used to detect at least one obstacle within a predetermined distance range from the vehicle to generate at least one obstacle information corresponding to the at least one obstacle, each obstacle information includes the obstacle position of the corresponding obstacle, and the obstacle moving speed and obstacle acceleration of the corresponding obstacle, the lane space detection module is used to detect two lateral distances between the vehicle and obstacles on both sides, and the road information providing module is used to provide a road speed limit, and the trajectory determination method includes the following steps:
(A)对于该轨迹生成模块所生成之每一笔轨迹数据,根据该至少一笔障碍物信息及该轨迹数据之每一轨迹点的速度,获得该轨迹数据之路径的一指示出该至少一障碍物中是否存在对应于该路径之一前方障碍物的遮蔽旗标,及该前方障碍物相对于该路径之每一轨迹点的一碰撞时间及一时间车距;(A) for each piece of trajectory data generated by the trajectory generation module, obtaining, based on the at least one piece of obstacle information and the speed of each trajectory point of the trajectory data, a shielding flag indicating whether there is a front obstacle in the at least one obstacle corresponding to the path, and a collision time and a time vehicle distance of the front obstacle relative to each trajectory point of the path;
(B)对于每一笔轨迹数据,根据该至少一笔障碍物信息及该轨迹数据之每一轨迹点的速度,获得该轨迹数据之路径的一指示出该至少一障碍物中是否存在对应于该路径之至少一待交会障碍物的交会旗标,及每一待交会障碍物相对于该路径之每一轨迹点的一交会碰撞时间;(B) for each piece of trajectory data, obtaining, based on the at least one piece of obstacle information and the speed of each trajectory point of the trajectory data, an intersection flag of the path of the trajectory data indicating whether there is at least one obstacle to be intersected corresponding to the path in the at least one obstacle, and an intersection collision time of each obstacle to be intersected relative to each trajectory point of the path;
(C)对于每一笔轨迹数据,根据该车道空间侦测模块在该轨迹数据之路径之每一轨迹点所对应侦测出之所述侧向距离,获得该路径之每一轨迹点所对应的一缓冲距离;(C) for each piece of trajectory data, obtaining a buffer distance corresponding to each trajectory point of the path according to the lateral distance detected by the lane space detection module at each trajectory point of the path of the trajectory data;
(D)对于每一笔轨迹数据,获得该轨迹数据之路径的一指示出该路径是否使该车辆变换车道的车道变换旗标;(D) for each piece of trajectory data, obtaining a lane change flag of a path of the trajectory data indicating whether the path causes the vehicle to change lanes;
(E)对于每一笔轨迹数据,根据该至少一笔障碍物信息及该车辆行驶于该轨迹数据之路径之行驶期间,获得该路径的一指示出该车辆变换车道是否处于安全的安全旗标;及(E) for each piece of trajectory data, obtaining a safety flag indicating whether it is safe for the vehicle to change lanes according to the at least one piece of obstacle information and the period during which the vehicle travels along the path of the trajectory data; and
(F)根据该道路速限、每一笔轨迹数据之路径的遮蔽旗标、交会旗标、车道变换旗标与安全旗标,及每一笔轨迹数据之路径之每一轨迹点的速度、碰撞时间、时间车距、交会碰撞时间与缓冲距离,自所述轨迹数据决定出一目标轨迹数据。(F) Determine a target trajectory data from the trajectory data based on the road speed limit, the masking flag, intersection flag, lane change flag and safety flag of the path of each trajectory data, and the speed, collision time, time vehicle distance, intersection collision time and buffer distance of each trajectory point of the path of each trajectory data.
本发明轨迹决定方法,步骤(A)包含以下子步骤:The trajectory determination method of the present invention, step (A) comprises the following sub-steps:
(A-1)对于每一笔轨迹数据,根据所述至少一笔障碍物信息,判定所述至少一障碍物中是否存在对应于所述轨迹数据的路径的所述前方障碍物;(A-1) for each piece of trajectory data, determining, based on the at least one piece of obstacle information, whether there is a front obstacle in the at least one obstacle corresponding to the path of the trajectory data;
(A-2)对于每一笔轨迹数据,当判定出存在所述前方障碍物时,获得指示出存在对应于所述轨迹数据的路径的所述前方障碍物的遮蔽旗标,并根据所述前方障碍物所对应的障碍物信息,及所述路径的每一轨迹点的速度,获得所述前方障碍物相对于所述路径的每一轨迹点的所述碰撞时间及所述时间车距;及(A-2) for each piece of trajectory data, when it is determined that there is a front obstacle, a shielding flag indicating that there is a front obstacle on a path corresponding to the trajectory data is obtained, and based on obstacle information corresponding to the front obstacle and the speed of each trajectory point on the path, the collision time and the time-to-vehicle distance of the front obstacle relative to each trajectory point on the path are obtained; and
(A-3)对于每一笔轨迹数据,当判定出不存在所述前方障碍物时,获得指示出不存在对应于所述轨迹数据的路径的所述前方障碍物的所述遮蔽旗标,并将所述路径的每一轨迹点的所述碰撞时间设为一第一定值,且将所述路径的每一轨迹点的所述时间车距设为一第二定值。(A-3) For each piece of trajectory data, when it is determined that the obstacle ahead does not exist, the shielding flag indicating that the obstacle ahead of the path corresponding to the trajectory data does not exist is obtained, and the collision time of each trajectory point of the path is set to a first constant, and the time-to-vehicle distance of each trajectory point of the path is set to a second constant.
本发明的针杆装置,该外筒座包括一个界定出一个安装通道的筒围壁,所述弹性件是安装在该安装通道内,并顶撑在该针座及该压布管件之间。The needle bar device of the present invention comprises an outer cylinder seat including a cylinder surrounding wall defining an installation channel, and the elastic member is installed in the installation channel and supported between the needle seat and the cloth pressing tube.
本发明轨迹决定方法,步骤(B)包含以下子步骤:The trajectory determination method of the present invention, step (B) comprises the following sub-steps:
(B-1)对于每一障碍物,根据所述障碍物所对应的所述障碍物信息,估算出所述障碍物在所述车辆的所述行驶期间中的多个预估移动范围,及多个预估移动速度;(B-1) for each obstacle, estimating a plurality of estimated moving ranges and a plurality of estimated moving speeds of the obstacle during the driving period of the vehicle based on the obstacle information corresponding to the obstacle;
(B-2)对于每一笔轨迹数据,根据步骤(B-1)所估算出的所述预估移动范围及所述预估移动速度,判定所述至少一障碍物中是否存在对应于所述轨迹数据的路径的所述至少一待交会障碍物;(B-2) for each piece of trajectory data, determining whether there is at least one obstacle to be intersected in the at least one obstacle corresponding to the path of the trajectory data according to the estimated moving range and the estimated moving speed estimated in step (B-1);
(B-3)对于每一笔轨迹数据,当判定出存在所述至少一待交会障碍物时,获得指示出存在对应于所述轨迹数据的路径的所述至少一待交会障碍物的所述交会旗标,并根据所述每一待交会障碍物所对应的所述预估移动速度、所述预估移动范围及所述路径的每一轨迹点的速度,获得每一待交会障碍物相对于所述路径的每一轨迹点的所述交会碰撞时间;及(B-3) for each piece of trajectory data, when it is determined that there is at least one obstacle to be intersected, obtaining the intersection flag indicating that there is at least one obstacle to be intersected in the path corresponding to the trajectory data, and obtaining the intersection collision time of each obstacle to be intersected relative to each trajectory point of the path according to the estimated moving speed corresponding to each obstacle to be intersected, the estimated moving range and the speed of each trajectory point of the path; and
(B-4)对于每一笔轨迹数据,当判定出不存在所述至少一待交会障碍物时,获得指示出不存在对应于所述轨迹数据的路径的所述至少一待交会障碍物的所述交会旗标,并将所述路径的每一轨迹点的所述交会碰撞时间设为一第三定值。(B-4) For each piece of trajectory data, when it is determined that the at least one obstacle to be intersected does not exist, the intersection flag indicating that the at least one obstacle to be intersected does not exist in the path corresponding to the trajectory data is obtained, and the intersection collision time of each trajectory point of the path is set to a third constant.
本发明轨迹决定方法,步骤(E)包含以下子步骤:The trajectory determination method of the present invention, step (E) comprises the following sub-steps:
(E-1)对于每一不使所述车辆变换车道的轨迹数据的路径,将所述安全旗标的旗标值设为一第一默认值;(E-1) for each path of the trajectory data that does not cause the vehicle to change lanes, setting the flag value of the safety flag to a first default value;
(E-2)对于每一使所述车辆变换车道的轨迹数据的路径,根据所述至少一笔障碍物信息,判定所述至少一障碍物中是否存在位于所述路径的一待变换车道的一后方障碍物;(E-2) for each path of the trajectory data that causes the vehicle to change lanes, determining whether there is a rear obstacle located in a lane to be changed in the path among the at least one obstacle according to the at least one obstacle information;
(E-3)对于每一使所述车辆变换车道的轨迹数据的路径,当判定出存在所述后方障碍物时,根据所述后方障碍物所对应的障碍物信息,获得所述后方障碍物抵达所述车辆映射至所述待变换车道的一映像位置的抵达时间;(E-3) for each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the rear obstacle exists, obtaining, based on obstacle information corresponding to the rear obstacle, an arrival time of the rear obstacle at an image position of the vehicle mapped to the lane to be changed;
(E-4)对于每一使所述车辆变换车道的轨迹数据的路径,当判定出不存在所述后方障碍物时,将所述抵达时间设为一第四定值;及(E-4) for each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the rear obstacle does not exist, setting the arrival time to a fourth fixed value; and
(E-5)对于每一使所述车辆变换车道的轨迹数据的路径,根据所述抵达时间及所述车辆行驶于所述路径的所述行驶期间,获得所述路径的安全旗标。(E-5) For each path of the trajectory data that causes the vehicle to change lanes, a safety flag of the path is obtained based on the arrival time and the driving period of the vehicle on the path.
本发明轨迹决定方法,步骤(E-5)中,包含以下子步骤:The trajectory determination method of the present invention, step (E-5), comprises the following sub-steps:
(E-5-1)对于每一使所述车辆变换车道的轨迹数据的路径,将所述抵达时间减去所述行驶期间以获得一时间差值;(E-5-1) for each path of the trajectory data that causes the vehicle to change lanes, subtract the travel period from the arrival time to obtain a time difference;
(E-5-2)对于每一使所述车辆变换车道的轨迹数据的路径,判定所述时间差值是否小于一预设时间差;(E-5-2) for each path of the trajectory data that causes the vehicle to change lanes, determining whether the time difference is less than a preset time difference;
(E-5-3)对于每一使所述车辆变换车道的轨迹数据的路径,当判定出所述时间差值不小于所述预设时间差时,将所述路径的安全旗标设为一指示出所述车辆变换车道处于安全的第一默认值;及(E-5-3) for each path of trajectory data that causes the vehicle to change lanes, when it is determined that the time difference is not less than the preset time difference, setting a safety flag of the path to a first default value indicating that the vehicle is safe to change lanes; and
(E-5-4)对于每一使所述车辆变换车道的轨迹数据的路径,当判定出所述时间差值小于所述预设时间差时,将所述路径的安全旗标设为一指示出所述车辆变换车道不处于安全的第二默认值。(E-5-4) For each path of trajectory data that causes the vehicle to change lanes, when it is determined that the time difference is less than the preset time difference, the safety flag of the path is set to a second default value indicating that the vehicle is not safe to change lanes.
本发明轨迹决定方法,步骤(F)包含以下子步骤:The trajectory determination method of the present invention, step (F) comprises the following sub-steps:
(F-1)对于每一笔轨迹数据,根据所述道路速限vlimit、所述轨迹数据的路径的所述遮蔽旗标Fob、所述交会旗标Fint、所述车道变换旗标FLC与所述安全旗标Fchgsafe,及所述路径的每一轨迹点的速度vi、所述碰撞时间TTCi、所述时间车距hi、最小的交会碰撞时间PTTCi与所述缓冲距离FSPi,利用下列成本函数,计算出所述轨迹数据的一成本cost:(F-1) For each piece of trajectory data, a cost of the trajectory data is calculated using the following cost function according to the road speed limit v limit , the obstruction flag F ob , the intersection flag F int , the lane change flag F LC and the safety flag F chgsafe of the path of the trajectory data, and the speed v i , the collision time TTC i , the time headway h i , the minimum intersection collision time PTTC i and the buffer distance FSP i of each trajectory point of the path:
其中,n为每一路径的所述轨迹点的数量,为一预设的安全时间车距,f(x)为一正规化函数,若Fchgsafe=1,则I[Fchgsafe≠1]=0,若Fchgsafe=0,则I[Fchgsafe≠1]=1;及Wherein, n is the number of trajectory points of each path, is a preset safe time headway, f(x) is a normalized function, if F chgsafe =1, then I[F chgsafe ≠1]=0, if F chgsafe =0, then I[F chgsafe ≠1]=1; and
(F-2)根据每一笔轨迹数据的成本,自所述轨迹数据决定出一目标轨迹数据。(F-2) Determine a target trajectory data from the trajectory data according to the cost of each trajectory data.
本发明轨迹决定方法,在子步骤(F-1)中,其中xmax为最大之x值。The trajectory determination method of the present invention, in sub-step (F-1), Where x max is the maximum x value.
本发明的有益效果在于:通过根据所述道路速限、每一笔轨迹数据的路径的遮蔽旗标、交会旗标、车道变换旗标与安全旗标,及每一笔轨迹数据的路径的每一轨迹点的速度、碰撞时间、时间车距、交会碰撞时间与缓冲距离,来决定出所述目标轨迹数据,而使所决定出的所述目标轨迹数据是依当下行驶环境而估测出的最佳行驶轨迹,且所决定出的最佳的轨迹亦有考虑到障碍物的意图,因而可提升轨迹规划的精确性及安全性。The beneficial effect of the present invention is that the target trajectory data is determined according to the road speed limit, the shielding flag, intersection flag, lane change flag and safety flag of the path of each trajectory data, and the speed, collision time, time vehicle distance, intersection collision time and buffer distance of each trajectory point of the path of each trajectory data, so that the determined target trajectory data is the best driving trajectory estimated according to the current driving environment, and the determined best trajectory also takes obstacles into consideration, thereby improving the accuracy and safety of trajectory planning.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是一方块图,说明实施本发明轨迹决定方法的实施例的一轨迹决定系统;FIG1 is a block diagram illustrating a trajectory determination system for implementing an embodiment of the trajectory determination method of the present invention;
图2是一流程图,说明本发明轨迹决定方法的实施例;FIG2 is a flow chart illustrating an embodiment of the trajectory determination method of the present invention;
图3是一流程图,说明如何获得每一路径的一遮蔽旗标,及每一路径的所有轨迹点所对应的碰撞时间及时间车距;FIG3 is a flow chart illustrating how to obtain a shielding flag for each path, and the collision time and time-to-vehicle distance corresponding to all trajectory points of each path;
图4是一示意图,示例出三条路径;FIG4 is a schematic diagram illustrating three paths;
图5是一流程图,说明如何获得每一路径的一交会旗标,及每一路径的所有轨迹点所对应的交会碰撞时间;FIG5 is a flow chart illustrating how to obtain a junction flag for each path and the junction collision time corresponding to all trajectory points of each path;
图6是一流程图,说明如何获得每一路径的一安全旗标;FIG6 is a flow chart illustrating how to obtain a security flag for each path;
图7是一流程图,说明如何获得每一使该车辆变换车道的路径的该安全旗标;FIG7 is a flow chart illustrating how to obtain the safety flag for each path that causes the vehicle to change lanes;
图8是一流程图,说明如何自多笔轨迹数据决定出一目标轨迹数据;FIG8 is a flow chart illustrating how to determine a target trajectory data from multiple trajectory data;
图9是一示意图,示例出使一车辆变换车道且不存在一前方障碍物的一路径,及不使该车辆变换车道且存在该前方障碍物的一路径。FIG. 9 is a schematic diagram illustrating a path for a vehicle to change lanes without a front obstacle, and a path for the vehicle not to change lanes and with the front obstacle.
具体实施方式Detailed ways
下面结合附图及实施例对本发明进行详细说明。The present invention is described in detail below with reference to the accompanying drawings and embodiments.
参阅图1,本发明轨迹决定方法的一实施例通过一轨迹决定系统1来实施,该轨迹决定系统1包含一轨迹生成模块11、一障碍物侦测模块12、一车道空间侦测模块13、一道路信息提供模块14,及一电连接该轨迹生成模块11、该障碍物侦测模块12、该车道空间侦测模块13与该道路信息提供模块14的处理模块15。1 , an embodiment of the trajectory determination method of the present invention is implemented by a trajectory determination system 1, which includes a trajectory generation module 11, an obstacle detection module 12, a lane space detection module 13, a road information providing module 14, and a processing module 15 electrically connected to the trajectory generation module 11, the obstacle detection module 12, the lane space detection module 13 and the road information providing module 14.
该轨迹生成模块11用于生成多笔轨迹数据,每一笔轨迹数据包含一包括多个轨迹点的路径,及一车辆行驶于该路径的一行驶期间内其在该路径的每一轨迹点的速度。该轨迹生成模块11包含一例如包括一全球定位系统、一陀螺仪、一里程计、一车速计,与一惯性测量单元的其中至少一者的车辆感测装置,及一例如包括一光学雷达、一超声波雷达、一毫米波雷达及一相机阵列的其中至少一者的路况感测装置。该车辆感测装置用以定位该车辆的一当前位置,并用以感测该车辆的一当前航向角、该车辆的一当前速度,及该车辆的一当前加速度,该路况感测装置用以感测该车辆所行驶的道路,以获得一道路宽度及一道路曲率(Curvature)。该轨迹生成模块11生成所述轨迹数据的方式例如载记于中国台湾专利证书号I674984中,在此为了简洁,而省略了他们的细节。The trajectory generation module 11 is used to generate multiple trajectory data, each trajectory data includes a path including multiple trajectory points, and the speed of each trajectory point of a vehicle during a period of driving on the path. The trajectory generation module 11 includes a vehicle sensing device, such as a global positioning system, a gyroscope, an odometer, a speedometer, and an inertial measurement unit, and a road condition sensing device, such as an optical radar, an ultrasonic radar, a millimeter wave radar, and a camera array. The vehicle sensing device is used to locate a current position of the vehicle, and to sense a current heading angle of the vehicle, a current speed of the vehicle, and a current acceleration of the vehicle. The road condition sensing device is used to sense the road on which the vehicle is traveling to obtain a road width and a road curvature. The method of generating the trajectory data by the trajectory generation module 11 is recorded in Taiwan Patent Certificate No. I674984, and their details are omitted here for simplicity.
该障碍物侦测模块12用于侦测与该车辆相距一预定距离范围内的至少一障碍物,以产生对应于该至少一障碍物的至少一笔障碍物信息,每笔障碍物信息包括所对应的障碍物的障碍物位置,及所对应的障碍物的障碍物移动速度与障碍物加速度。该障碍物侦测模块12例如包括该光学雷达、该超声波雷达、该毫米波雷达及该相机阵列的其中至少一者,其被布置在该车辆上。The obstacle detection module 12 is used to detect at least one obstacle within a predetermined distance range from the vehicle to generate at least one piece of obstacle information corresponding to the at least one obstacle, each piece of obstacle information includes the obstacle position of the corresponding obstacle, and the obstacle moving speed and obstacle acceleration of the corresponding obstacle. The obstacle detection module 12, for example, includes at least one of the optical radar, the ultrasonic radar, the millimeter wave radar and the camera array, which is arranged on the vehicle.
该车道空间侦测模块13用于侦测该车辆与两侧障碍物的两个侧向距离。该车道空间侦测模块13例如包括该光学雷达、该超声波雷达、该毫米波雷达及该相机阵列的其中至少一者,其被布置在该车辆上。该障碍物侦测模块12及该车道空间侦测模块13的操作方式例如记载于中国台湾专利证书号I453697及I535601中,在此为了简洁,而省略了他们的细节。The lane space detection module 13 is used to detect the two lateral distances between the vehicle and obstacles on both sides. The lane space detection module 13, for example, includes at least one of the optical radar, the ultrasonic radar, the millimeter wave radar and the camera array, which is arranged on the vehicle. The operation methods of the obstacle detection module 12 and the lane space detection module 13 are described in, for example, Taiwan Patent Certificate Nos. I453697 and I535601, and their details are omitted here for simplicity.
该道路信息提供模块14用于提供一道路速限。该道路信息提供模块14例如为一存存储有该道路速限的非易失存储器。The road information providing module 14 is used to provide a road speed limit. The road information providing module 14 is, for example, a non-volatile memory storing the road speed limit.
该处理模块15例如为一车用计算机,该车用计算机可被设置于该车辆并包含一处理器及一存存储装置。The processing module 15 is, for example, a vehicle computer. The vehicle computer can be installed in the vehicle and includes a processor and a storage device.
参阅图1与图2,本发明轨迹决定方法的实施例包含以下步骤。1 and 2 , the trajectory determination method according to the present invention includes the following steps.
在步骤21中,对于该轨迹生成模块11所生成的每一笔轨迹数据,该处理模块15根据该至少一笔障碍物信息及该轨迹数据的每一轨迹点的速度,获得该轨迹数据的路径的一指示出该至少一障碍物中是否存在对应于该路径的一前方障碍物的遮蔽旗标,及该前方障碍物相对于该路径的每一轨迹点的一碰撞时间(Time to Collision,简称TTC)及一时间车距。In step 21, for each piece of trajectory data generated by the trajectory generating module 11, the processing module 15 obtains a shielding flag indicating whether there is a front obstacle corresponding to the path among the at least one obstacle, and a collision time (TTC) and a time vehicle distance of the front obstacle relative to each trajectory point of the path according to the at least one piece of obstacle information and the speed of each trajectory point of the trajectory data.
值得一提的是,步骤21还包含以下子步骤(见图3)。It is worth mentioning that step 21 also includes the following sub-steps (see FIG. 3 ).
在子步骤211中,对于每一笔轨迹数据,该处理模块15根据该至少一笔障碍物信息,判定该至少一障碍物中是否存在对应于该轨迹数据的路径的该前方障碍物。对于每一笔轨迹数据,当判定出存在该前方障碍物时,流程进行步骤212;对于每一笔轨迹数据,当判定出不存在该前方障碍物时,流程进行步骤213。In sub-step 211, for each piece of trajectory data, the processing module 15 determines whether there is a front obstacle corresponding to the path of the trajectory data among the at least one obstacle according to the at least one piece of obstacle information. For each piece of trajectory data, when it is determined that there is a front obstacle, the process proceeds to step 212; for each piece of trajectory data, when it is determined that there is no front obstacle, the process proceeds to step 213.
在子步骤212中,该处理模块15获得指示出存在对应于该轨迹数据的路径的该前方障碍物的该遮蔽旗标(例如,将该遮蔽旗标的旗标值设为1,以指示出存在该前方障碍物),并根据该前方障碍物所对应的该障碍物信息,及该路径的每一轨迹点的速度,获得该前方障碍物相对于该路径的每一轨迹点的该碰撞时间及该时间车距。值得一提的是,对于该路径的每一轨迹点,该轨迹点的碰撞时间是先计算出该车辆行驶至该轨迹点时该车辆的车头位置与该前方障碍物的一障碍物距离,该障碍物距离是将行驶至该轨迹点时该车辆的车头位置至该路径的终点的路径长度加上该路径的终点与该前方障碍物的距离而获得,接着根据该轨迹点的速度与该前方障碍物的障碍物移动速度计算出一相对速度,最后将该障碍物距离除以该相对速度而获得,若所计算出的相对速度为负值时,即将该轨迹点的碰撞时间设为一第一定值,如100。对于该路径的每一轨迹点,该轨迹点的时间车距是借由将该障碍物距离除以该轨迹点的速度而获得。在图4的示例中,第一条路径01存在前方障碍物7,故第一条路径01的该遮蔽旗标的旗标值设为1,以指示出第一条路径01存在前方障碍物7。又,图4还示例出当该车辆9行驶至图4所示的行驶位置(亦即,行驶至该行驶位置在第一条路径01所对应的轨迹点(图未示)上)时,该车辆9的车头位置与该前方障碍物7的障碍物距离d1、碰撞时间TTC1,及时间车距h1,其中碰撞时间TTC1及时间车距h1皆是以该障碍物距离d1所计算出,且两者单位皆为时间,并非指示出距离长短,图4仅是示意。In sub-step 212, the processing module 15 obtains the shielding flag indicating the existence of the front obstacle of the path corresponding to the trajectory data (for example, the flag value of the shielding flag is set to 1 to indicate the existence of the front obstacle), and obtains the collision time and the time vehicle distance of the front obstacle relative to each trajectory point of the path according to the obstacle information corresponding to the front obstacle and the speed of each trajectory point of the path. It is worth mentioning that for each trajectory point of the path, the collision time of the trajectory point is first calculated by first calculating an obstacle distance between the front position of the vehicle when the vehicle travels to the trajectory point and the front obstacle, and the obstacle distance is obtained by adding the path length from the front position of the vehicle when traveling to the trajectory point to the end point of the path and the distance between the end point of the path and the front obstacle, then calculating a relative speed according to the speed of the trajectory point and the obstacle moving speed of the front obstacle, and finally obtaining the obstacle distance by dividing the relative speed. If the calculated relative speed is a negative value, the collision time of the trajectory point is set to a first fixed value, such as 100. For each trajectory point of the path, the time-to-vehicle distance of the trajectory point is obtained by dividing the obstacle distance by the speed of the trajectory point. In the example of FIG. 4 , there is a front obstacle 7 on the first path 01, so the flag value of the shielding flag of the first path 01 is set to 1 to indicate that there is a front obstacle 7 on the first path 01. In addition, FIG. 4 also illustrates the obstacle distance d 1 , the collision time TTC 1 , and the time-to-vehicle distance h 1 between the front position of the vehicle 9 and the front obstacle 7 when the vehicle 9 travels to the driving position shown in FIG. 4 (that is, the driving position is on the trajectory point (not shown) corresponding to the first path 01), wherein the collision time TTC 1 and the time - to-vehicle distance h 1 are both calculated based on the obstacle distance d 1 , and both are in time units, not indicating the length of the distance, and FIG . 4 is only for illustration.
在子步骤213中,该处理模块15获得指示出不存在对应于该轨迹数据的路径的前方障碍物的遮蔽旗标(例如,将该遮蔽旗标的旗标值设为0,以指示出不存在前方障碍物),并将该路径的每一轨迹点的该碰撞时间设为该第一定值(即,100),且将该路径的每一轨迹点的该时间车距设为一第二定值,如100。在图4的示例中,第二条路径02、第三条路径03不存在前方障碍物,故第二条路径02、第三条路径03的遮蔽旗标的旗标值设为0,以指示出第二条路径02、第三条路径03不存在前方障碍物。In sub-step 213, the processing module 15 obtains a shielding flag indicating that there is no obstacle ahead of the path corresponding to the trajectory data (for example, the flag value of the shielding flag is set to 0 to indicate that there is no obstacle ahead), and sets the collision time of each trajectory point of the path to the first constant value (i.e., 100), and sets the time-to-vehicle distance of each trajectory point of the path to a second constant value, such as 100. In the example of FIG. 4 , there is no obstacle ahead of the second path 02 and the third path 03, so the flag values of the shielding flags of the second path 02 and the third path 03 are set to 0 to indicate that there is no obstacle ahead of the second path 02 and the third path 03.
在步骤22中,对于每一笔轨迹数据,该处理模块15根据该至少一笔障碍物信息及该轨迹数据的每一轨迹点的速度,获得该轨迹数据的路径的一指示出该至少一障碍物中是否存在对应于该路径的至少一待交会障碍物的交会旗标,及每一待交会障碍物相对于该路径的每一轨迹点的一交会碰撞时间。In step 22, for each piece of trajectory data, the processing module 15 obtains an intersection flag of the path of the trajectory data indicating whether there is at least one obstacle to be intersected corresponding to the path in the at least one obstacle, and an intersection collision time of each obstacle to be intersected relative to each trajectory point of the path according to the at least one obstacle information and the speed of each trajectory point of the trajectory data.
值得一提的是,步骤22还包含以下子步骤(见图5)。It is worth mentioning that step 22 also includes the following sub-steps (see FIG. 5 ).
在子步骤221中,对于每一障碍物,该处理模块15根据该障碍物所对应的该障碍物信息,估算出该障碍物在该车辆的行驶期间中的多个预估移动范围,及多个预估移动速度。所述预估移动范围及所述预估移动速度的估算方式例如载记于中国台湾专利证书号I531499中,在此不多加赘述。In sub-step 221, for each obstacle, the processing module 15 estimates multiple estimated moving ranges and multiple estimated moving speeds of the obstacle during the driving period of the vehicle according to the obstacle information corresponding to the obstacle. The estimation method of the estimated moving range and the estimated moving speed is recorded in Taiwan Patent Certificate No. I531499, which will not be described in detail here.
在子步骤222中,对于每一笔轨迹数据,该处理模块15根据步骤221所估算出的所述预估移动范围及所述预估移动速度,判定该至少一障碍物中是否存在对应于该轨迹数据的路径的该至少一待交会障碍物。对于每一笔轨迹数据,当判定出存在该至少一待交会障碍物时,进行子步骤223;对于每一笔轨迹数据,当判定出不存在该至少一待交会障碍物时,进行子步骤224。In sub-step 222, for each piece of trajectory data, the processing module 15 determines whether there is the at least one obstacle to be intersected corresponding to the path of the trajectory data among the at least one obstacle according to the estimated moving range and the estimated moving speed estimated in step 221. For each piece of trajectory data, when it is determined that the at least one obstacle to be intersected exists, sub-step 223 is performed; for each piece of trajectory data, when it is determined that the at least one obstacle to be intersected does not exist, sub-step 224 is performed.
在子步骤223中,该处理模块15获得指示出存在对应于该轨迹数据的路径的该至少一待交会障碍物的该交会旗标(例如,将该交会旗标的旗标值设为1,以指示出存在该至少一待交会障碍物),并根据每一待交会障碍物所对应的该预估移动速度、该预估移动范围及该路径的每一轨迹点的速度,获得每一待交会障碍物相对于该路径的每一轨迹点的该交会碰撞时间。值得一提的是,对于该路径的每一轨迹点,该轨迹点相对于某一待交会障碍物的该交会碰撞时间系借由计算该轨迹点相对于该某一待交会障碍物的该预估移动范围的障碍物距离,接着根据该轨迹点的速度与该某一待交会障碍物的预估移动速度计算出相对于该某一待交会障碍物的相对速度,最后将相对于该某一待交会障碍物的障碍物距离与相对速度相除而获得,若所计算出的相对速度为负值时,即将该轨迹点的交会碰撞时间设为一第三定值,如100。在图4的示例中,第三条路径03存在一待交会障碍物8,故第三条路径03的交会旗标的旗标值设为1,以指示出第三条路径03存在该待交会障碍物8。又,图4示例出第三条路径03的不同轨迹点032、033、035、037与该待交会障碍物8的该预估移动范围40的障碍物距离d2、d3、d5、d7,及第三条路径03的轨迹点032、037的交会碰撞时间PTTC2、PTTC7,其中交会碰撞时间的单位为时间,并非指示出距离长短,图4仅是示意。In sub-step 223, the processing module 15 obtains the intersection flag indicating the existence of the at least one obstacle to be intersected corresponding to the path of the trajectory data (for example, the flag value of the intersection flag is set to 1 to indicate the existence of the at least one obstacle to be intersected), and obtains the intersection collision time of each obstacle to be intersected relative to each trajectory point of the path according to the estimated moving speed, the estimated moving range and the speed of each trajectory point of the path corresponding to each obstacle to be intersected. It is worth mentioning that for each trajectory point of the path, the intersection collision time of the trajectory point relative to a certain obstacle to be intersected is calculated by calculating the obstacle distance of the trajectory point relative to the estimated moving range of the certain obstacle to be intersected, then calculating the relative speed relative to the certain obstacle to be intersected according to the speed of the trajectory point and the estimated moving speed of the certain obstacle to be intersected, and finally dividing the obstacle distance relative to the certain obstacle to be intersected by the relative speed to obtain the intersection collision time. If the calculated relative speed is a negative value, the intersection collision time of the trajectory point is set to a third fixed value, such as 100. In the example of FIG4 , there is an obstacle 8 to be intersected on the third path 03, so the flag value of the intersection flag of the third path 03 is set to 1 to indicate that there is the obstacle 8 to be intersected on the third path 03. In addition, FIG4 illustrates the obstacle distances d 2 , d 3 , d 5 , d 7 of the estimated moving range 40 between different trajectory points 032 , 033 , 035 , 037 of the third path 03 and the obstacle 8 to be intersected, and the intersection collision times PTTC 2 , PTTC 7 of the trajectory points 032 , 037 of the third path 03, wherein the unit of the intersection collision time is time, and does not indicate the length of the distance, and FIG4 is only for illustration.
在子步骤224中,该处理模块15获得指示出不存在对应于该轨迹数据的路径的该至少一待交会障碍物的交会旗标(例如,将该交会旗标的旗标值设为0,以指示出不存在该至少一待交会障碍物),并将该路径的每一轨迹点的该交会碰撞时间设为该第三定值(即,100)。在图4的示例中,第一条路径01、第二条路径02不存在待交会障碍物,故第一条路径01、第二条路径02的交会旗标的旗标值设为0,以指示出第一条路径01、第二条路径02不存在该待交会障碍物。In sub-step 224, the processing module 15 obtains an intersection flag indicating that the at least one obstacle to be intersected does not exist in the path corresponding to the trajectory data (for example, the flag value of the intersection flag is set to 0 to indicate that the at least one obstacle to be intersected does not exist), and sets the intersection collision time of each trajectory point of the path to the third fixed value (i.e., 100). In the example of FIG. 4 , there is no obstacle to be intersected on the first path 01 and the second path 02, so the flag value of the intersection flag of the first path 01 and the second path 02 is set to 0 to indicate that there is no obstacle to be intersected on the first path 01 and the second path 02.
在步骤23中,对于每一笔轨迹数据,该处理模块15根据该车道空间侦测模块13在该轨迹数据的路径的每一轨迹点所对应侦测出的所述侧向距离,获得该路径的每一轨迹点所对应的一缓冲距离。在本实施例中,每一轨迹点所对应的缓冲距离系为每一轨迹点所对应的所述侧向距离中最小的侧向距离。In step 23, for each piece of trajectory data, the processing module 15 obtains a buffer distance corresponding to each trajectory point of the path according to the lateral distance corresponding to each trajectory point of the path of the trajectory data detected by the lane space detection module 13. In this embodiment, the buffer distance corresponding to each trajectory point is the minimum lateral distance among the lateral distances corresponding to each trajectory point.
在步骤24中,对于每一笔轨迹数据,该处理模块15获得该轨迹数据的路径的一指示出该路径是否使该车辆变换车道的车道变换旗标。以图4为例,第一条路径01及第三条路径03皆使该车辆变换车道,因此该车道变换旗标的旗标值例如,可被设为1以指示出该路径使该车辆变换车道,而第二条路径02并无使该车辆变换车道,因此该车道变换旗标的旗标值例如,可被设为0以指示出该路径不使该车辆变换车道。In step 24, for each piece of trajectory data, the processing module 15 obtains a lane change flag of the path of the trajectory data indicating whether the path causes the vehicle to change lanes. Taking FIG. 4 as an example, the first path 01 and the third path 03 both cause the vehicle to change lanes, so the flag value of the lane change flag, for example, can be set to 1 to indicate that the path causes the vehicle to change lanes, while the second path 02 does not cause the vehicle to change lanes, so the flag value of the lane change flag, for example, can be set to 0 to indicate that the path does not cause the vehicle to change lanes.
在步骤25中,对于每一笔轨迹数据,该处理模块15根据该至少一笔障碍物信息及该车辆行驶于该轨迹数据的路径的行驶期间,获得该路径的一指示出该车辆变换车道是否处于安全的安全旗标。In step 25 , for each piece of trajectory data, the processing module 15 obtains a safety flag indicating whether it is safe for the vehicle to change lanes according to the at least one piece of obstacle information and the period during which the vehicle travels along the path of the trajectory data.
值得一提的是,步骤25还包含以下子步骤(见图6)。It is worth mentioning that step 25 also includes the following sub-steps (see FIG. 6 ).
在子步骤251中,对于每一不使该车辆变换车道的轨迹数据的路径(亦即,该车道变换旗标为0的路径),该处理模块15将该安全旗标的旗标值设为一第一默认值,例如1。In sub-step 251 , for each path of the trajectory data that does not cause the vehicle to change lanes (ie, a path where the lane change flag is 0), the processing module 15 sets the flag value of the safety flag to a first default value, such as 1.
在子步骤252中,对于每一使该车辆变换车道的轨迹数据的路径,该处理模块15根据该至少一笔障碍物信息,判定该至少一障碍物中是否存在位于该路径的一待变换车道的一后方障碍物。对于每一使该车辆变换车道的轨迹数据的路径,当判定出存在该后方障碍物时,流程进行步骤253;对于每一使该车辆变换车道的轨迹数据的路径,当判定出不存在该后方障碍物时,流程进行步骤254。在图4的示例中,第一条路径01存在后方障碍物6,第二条路径02、第三条路径03不存在后方障碍物。In sub-step 252, for each path of the trajectory data that causes the vehicle to change lanes, the processing module 15 determines whether there is a rear obstacle located in a lane to be changed in the path according to the at least one obstacle information. For each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the rear obstacle exists, the process proceeds to step 253; for each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the rear obstacle does not exist, the process proceeds to step 254. In the example of FIG. 4 , there is a rear obstacle 6 in the first path 01, and there is no rear obstacle in the second path 02 and the third path 03.
在子步骤253中,该处理模块15根据该后方障碍物所对应的障碍物信息,获得该后方障碍物抵达该车辆映射至该待变换车道的一映射位置的抵达时间。In sub-step 253 , the processing module 15 obtains the arrival time of the rear obstacle at a mapping position of the vehicle mapped to the lane to be changed according to the obstacle information corresponding to the rear obstacle.
在子步骤254中,该处理模块15将该抵达时间设为一第四定值,如1000。值得一提的是,当判定出不存在该后方障碍物时,则该抵达时间为无限大,故将该抵达时间设为该第四定值,以避免产生“不存在后方障碍物,而无抵达时间(即无第四定值)”的疑虑。In sub-step 254, the processing module 15 sets the arrival time to a fourth fixed value, such as 1000. It is worth mentioning that when it is determined that there is no rear obstacle, the arrival time is infinite, so the arrival time is set to the fourth fixed value to avoid the doubt of "no rear obstacle, no arrival time (i.e. no fourth fixed value)".
在子步骤255中,对于每一使该车辆变换车道的轨迹数据的路径,该处理模块15根据该抵达时间及该车辆行驶于该路径的一行驶期间,获得该路径的安全旗标。图4示例出第一条路径01的该车辆9映射至待变换车道的一映射位置9’、该抵达时间tr及该行驶期间th,其中该抵达时间与该行驶期间的单位为时间,并非指示出距离长短,图4仅是示意。In sub-step 255, for each path of the trajectory data that causes the vehicle to change lanes, the processing module 15 obtains the safety flag of the path according to the arrival time and a driving period of the vehicle on the path. FIG4 illustrates a mapping position 9' of the vehicle 9 mapped to the lane to be changed, the arrival time tr and the driving period th of the first path 01, wherein the arrival time and the driving period are in units of time, not indicating the length of the distance, and FIG4 is only for illustration.
值得一提的是,子步骤255还包含以下子步骤(见图7)。It is worth mentioning that sub-step 255 also includes the following sub-steps (see FIG. 7 ).
在子步骤551中,对于每一使该车辆变换车道的轨迹数据的路径,该处理模块15将该抵达时间减去该行驶期间以获得一时间差值。In sub-step 551 , for each path of the trajectory data that causes the vehicle to change lanes, the processing module 15 subtracts the travel period from the arrival time to obtain a time difference.
在子步骤552中,对于每一使该车辆变换车道的轨迹数据的路径,该处理模块15判定该时间差值是否小于一预设时间差。在本实施例中,该预设时间差例如,1.8秒。对于每一使该车辆变换车道的轨迹数据的路径,当判定出该时间差值不小于该默认时间差时,流程进行子步骤553;对于每一使该车辆变换车道的轨迹数据的路径,当判定出该时间差值小于该默认时间差时,流程进行子步骤554。In sub-step 552, for each path of the trajectory data that causes the vehicle to change lanes, the processing module 15 determines whether the time difference is less than a preset time difference. In this embodiment, the preset time difference is, for example, 1.8 seconds. For each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the time difference is not less than the default time difference, the process proceeds to sub-step 553; for each path of the trajectory data that causes the vehicle to change lanes, when it is determined that the time difference is less than the default time difference, the process proceeds to sub-step 554.
在子步骤553中,该处理模块15将该路径的安全旗标设为指示出该车辆变换车道处于安全的该第一默认值,例如1。In sub-step 553 , the processing module 15 sets the safety flag of the path to the first default value, such as 1, indicating that the vehicle is safe to change lanes.
在子步骤554中,该处理模块15将该路径的安全旗标设为一指示出该车辆变换车道不处于安全的第二默认值,例如0。In sub-step 554 , the processing module 15 sets the safety flag of the path to a second default value, such as 0, indicating that it is not safe for the vehicle to change lanes.
在步骤26中,该处理模块15根据该道路速限、每一笔轨迹数据的路径的该遮蔽旗标、该交会旗标、该车道变换旗标与该安全旗标,及每一笔轨迹数据的路径的每一轨迹点的速度、该碰撞时间、该时间车距、每一交会碰撞时间与该缓冲距离,自所述轨迹数据决定出一目标轨迹数据。In step 26, the processing module 15 determines a target trajectory data from the trajectory data according to the road speed limit, the shielding flag, the intersection flag, the lane change flag and the safety flag of the path of each trajectory data, and the speed of each trajectory point of the path of each trajectory data, the collision time, the time vehicle distance, each intersection collision time and the buffer distance.
值得一提的是,步骤26还包含以下子步骤(见图8)。It is worth mentioning that step 26 also includes the following sub-steps (see FIG. 8 ).
在子步骤261中,对于每一笔轨迹数据,该处理模块15根据该道路速限vlimit、该轨迹数据的路径的该遮蔽旗标Fob、该交会旗标Fint、该车道变换旗标FLC与该安全旗标Fchgsafe,及该路径的每一轨迹点的速度vi、该碰撞时间TTCi、该时间车距hi、最小的交会碰撞时间PTTCi与该缓冲距离FSPi,利用一成本函数,计算出该轨迹数据的一成本cost。在本实施例中,该成本函数可被表示成下列公式(1)。In sub-step 261, for each piece of trajectory data, the processing module 15 calculates a cost cost of the trajectory data using a cost function according to the road speed limit v limit , the obstruction flag F ob , the intersection flag F int , the lane change flag F LC and the safety flag F chgsafe of the path of the trajectory data, and the speed v i , the collision time TTC i , the time vehicle distance h i , the minimum intersection collision time PTTC i and the buffer distance FSP i of each trajectory point of the path. In this embodiment, the cost function can be expressed as the following formula (1).
其中,n为每一路径的所述轨迹点的数量,为一预设的安全时间车距,为一正规化函数,xmax为最大的x值,若Fchgsafe=1,则I[Fchgsafe≠1]=0,若Fchgsafe=0,则I[Fchgsafe≠1]=1。举例来说,以f(vlimit-vi)为例,x=vlimit-vi,xmax即为该道路速限vlimit减去不同轨迹点的速度的不同差值中的最大者。Wherein, n is the number of trajectory points of each path, is a preset safe time distance. is a normalization function, x max is the maximum x value, if F chgsafe = 1, then I[F chgsafe ≠1] = 0, if F chgsafe = 0, then I[F chgsafe ≠1] = 1. For example, taking f(v limit -vi ) as an example, x = v limit -vi , x max is the maximum of the differences between the speed limit v limit of the road and the speeds of different trajectory points.
在子步骤262中,该处理模块15根据每一笔轨迹数据的成本,自所述轨迹数据决定出该目标轨迹数据。在本实施例中,所决定出的目标轨迹数据系对应有成本最小的路径。In sub-step 262, the processing module 15 determines the target trajectory data from the trajectory data according to the cost of each trajectory data. In this embodiment, the determined target trajectory data corresponds to the path with the minimum cost.
值得特别说明的是,依据本发明轨迹决定方法所决定出的轨迹数据具有以下特性:第一、当前方无低于该道路速限的车辆(亦即,前方障碍物)时,以该道路速限行驶,由于所决定出的轨迹数据具有最小的成本,若欲使轨迹数据的成本越小,就须使轨迹数据的值越小,为了使/>值越小,则vi就要越接近该道路速限,因而所选出的最佳轨迹即会满足上述第一项特性;第二、与前方车辆(亦即,前方障碍物)保持该安全时间车距,由于所决定出的轨迹数据具有最小的成本,若欲使轨迹数据的成本越小,就须使轨迹数据的/>值越小,为了使/>值越小,则hi就要越接近该安全时间车距,因而所选出的最佳轨迹即会满足上述第二项特性;第三、邻车道后方空间安全(亦即,安全旗标指示出该车辆变换车道处于安全)时,可执行车道变换,由于所决定出的轨迹数据具有最小的成本,若欲使轨迹数据的成本越小,就须使轨迹数据的(1-I[Fchgsafe≠1])值尽可能等于1(例如安全旗标Fchgsafe=1),若轨迹数据的(1-I[Fchgsafe≠1])值为O的话,由于是在成本函数的分母,如此将导致此轨迹数据的成本极大或根本无法求出此轨迹数据的成本,故此一会变换车道且在变换车道时非处于安全状态的轨迹数据就不可能被选为最佳的轨迹数据,因而所选出的最佳轨迹数据即会满足上述第三项特性,另外,以图9为例,假设该车辆当前行驶的车道前方存在障碍物,该轨迹生成模块11所生成的所述轨迹数据中包含一使该车辆变换车道且不存在该前方障碍物的路径04,及一不使该车辆变换车道且存在该前方障碍物的路径05,此时在选择路径时即会有满高的机会会选择使该车辆变换车道且不存在该前方障碍物的该路径04作为最佳的路径,由于不存在该前方障碍物的该路径04所对应的/>较存在该前方障碍物的该路径05所对应的大,故不存在该前方障碍物的该路径04所对应的成本有满高的机会较存在该前方障碍物的该路径05所对应的成本小,但仍需视该成本函数的其他参数的值而定,在此仅是说明/>参数的影响力;第四、道路空间足够时,车辆可执行同车道避障,避障后回到车道中心,在执行同车道避障时,所选择出的路径即是同车道且可避开障碍物的路径,而若欲使该路径的成本越小,就须使该路径的/>值越大,则缓冲距离FSPi就要越大越佳,又缓冲距离FSPi越大对行驶而言也是越安全,且在避障后,为使缓冲距离FSPi越大,即会选择位于车道中心的路径,因而所选出的最佳路径即会满足上述第四项特性;第五、当无法执行车道变换、同车道避障及跟车时,车辆停止,若该车辆当前行驶的车道前方存在障碍物,但该车辆又无法执行车道变换、同车道避障及跟车时,同时该车辆与前方的障碍物又存在碰撞危险(亦即,碰撞时间TTCi过小,已无法进行跟车),则须使f(TTCi)值越大,才能越安全,进而成本即会越小,此时即会使车辆停止,方能使f(TTCi)值越大,故使车辆停止的路径即为最佳的路径。It is worth mentioning that the trajectory data determined by the trajectory determination method of the present invention has the following characteristics: First, when there is no vehicle ahead that is slower than the speed limit of the road (i.e., an obstacle ahead), the vehicle travels at the speed limit of the road. Since the determined trajectory data has the minimum cost, if the cost of the trajectory data is to be minimized, the trajectory data must be minimized. The smaller the value, the more The smaller the value, the closer vi will be to the speed limit of the road, so the selected optimal trajectory will satisfy the first characteristic mentioned above; second, keep the safe time distance with the vehicle in front (that is, the obstacle in front). Since the determined trajectory data has the minimum cost, if you want to make the cost of the trajectory data as small as possible, you must make the trajectory data/> The smaller the value, the more The smaller the value, the closer hi will be to the safe time vehicle distance, so the selected optimal trajectory will satisfy the second characteristic mentioned above; third, when the space behind the adjacent lane is safe (that is, the safety flag indicates that the vehicle is safe to change lanes), the lane change can be performed. Since the determined trajectory data has the minimum cost, if the cost of the trajectory data is to be minimized, the (1-I[F chgsafe ≠1]) value of the trajectory data must be as equal to 1 as possible (for example, the safety flag F chgsafe =1). If the (1-I[F chgsafe ≠1]) value of the trajectory data is 0, due to is the denominator of the cost function, which will lead to a very large cost of the trajectory data or the cost of the trajectory data cannot be calculated at all. Therefore, the trajectory data that changes lanes and is not in a safe state when changing lanes cannot be selected as the best trajectory data, so the best trajectory data selected will satisfy the third characteristic mentioned above. In addition, taking FIG. 9 as an example, assuming that there is an obstacle in front of the lane where the vehicle is currently traveling, the trajectory data generated by the trajectory generation module 11 includes a path 04 that allows the vehicle to change lanes and does not exist in the front obstacle, and a path 05 that does not allow the vehicle to change lanes and exists in the front obstacle. At this time, when selecting a path, there is a high chance that the path 04 that allows the vehicle to change lanes and does not exist in the front obstacle will be selected as the best path. Since the path 04 corresponding to the path without the front obstacle is The path 05 corresponding to the obstacle ahead Therefore, the cost corresponding to the path 04 without the obstacle ahead has a high chance of being lower than the cost corresponding to the path 05 with the obstacle ahead. However, it still depends on the values of other parameters of the cost function. This is just for illustration./> The influence of parameters; Fourth, when there is enough road space, the vehicle can perform same-lane obstacle avoidance and return to the center of the lane after avoiding the obstacle. When performing same-lane obstacle avoidance, the selected path is a path that is in the same lane and can avoid obstacles. If you want to make the cost of the path as small as possible, you must make the path /> The larger the value, the larger the buffer distance FSP i should be , and the safer the driving is. After avoiding obstacles, in order to make the buffer distance FSP i larger , a path located in the center of the lane will be selected, so the selected optimal path will satisfy the fourth characteristic mentioned above; Fifth, when lane change, same-lane obstacle avoidance and following the vehicle cannot be performed, the vehicle stops. If there is an obstacle in front of the lane where the vehicle is currently traveling, but the vehicle cannot perform lane change, same-lane obstacle avoidance and following the vehicle, and at the same time, there is a risk of collision between the vehicle and the obstacle in front (that is, the collision time TTC i is too small and following the vehicle is no longer possible), the f(TTC i ) value must be made larger to be safer, and then the cost will be smaller. At this time, the vehicle will be stopped so that the f(TTC i ) value can be made larger, so the path that stops the vehicle is the optimal path.
综上所述,本发明轨迹决定方法借由根据该道路速限、每一笔轨迹数据的路径的该遮蔽旗标、该交会旗标、该车道变换旗标与该安全旗标,及每一笔轨迹数据的路径的每一轨迹点的速度、该碰撞时间、该时间车距、每一交会碰撞时间与该缓冲距离,来决定出该目标轨迹数据,可使得所决定出的最佳的轨迹数据可依当下行驶环境决定以道路速限行驶、车辆跟随、车道变换、同车道避障及车辆停止来行驶,进而满足上述五个特性,且所决定出的最佳的路径有考虑到障碍物的意图,因而可提升路径规划的精确性及安全性,故确实能达成本发明的目的。In summary, the trajectory determination method of the present invention determines the target trajectory data according to the road speed limit, the shielding flag, the intersection flag, the lane change flag and the safety flag of the path of each trajectory data, and the speed of each trajectory point of the path of each trajectory data, the collision time, the time vehicle distance, each intersection collision time and the buffer distance. The determined optimal trajectory data can be determined according to the current driving environment to drive according to the road speed limit, vehicle following, lane change, same lane obstacle avoidance and vehicle stopping, thereby satisfying the above five characteristics, and the determined optimal path has the intention of taking obstacles into consideration, thereby improving the accuracy and safety of path planning, so that the purpose of the present invention can be achieved.
惟以上所述者,仅为本发明的实施例而已,当不能以此限定本发明实施的范围,凡是依本发明权利要求书及说明书内容所作的简单的等效变化与修饰,皆仍属本发明涵盖的范围内。However, the above is only an embodiment of the present invention and should not be used to limit the scope of the present invention. All simple equivalent changes and modifications made according to the claims and description of the present invention are still within the scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010831889.3A CN114076603B (en) | 2020-08-18 | 2020-08-18 | Trajectory determination method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010831889.3A CN114076603B (en) | 2020-08-18 | 2020-08-18 | Trajectory determination method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114076603A CN114076603A (en) | 2022-02-22 |
CN114076603B true CN114076603B (en) | 2024-04-16 |
Family
ID=80281464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010831889.3A Active CN114076603B (en) | 2020-08-18 | 2020-08-18 | Trajectory determination method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114076603B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170071272A (en) * | 2015-12-15 | 2017-06-23 | 현대자동차주식회사 | Rear collision warning control method and apparatus |
CN109960261A (en) * | 2019-03-22 | 2019-07-02 | 北京理工大学 | A dynamic obstacle avoidance method based on collision detection |
CN109976303A (en) * | 2018-10-19 | 2019-07-05 | 财团法人车辆研究测试中心 | Have the automatic Pilot method and device thereof of decision diagnosis |
CN110588646A (en) * | 2019-10-18 | 2019-12-20 | 财团法人车辆研究测试中心 | Active safety auxiliary system with pre-adjusted speed and its control method |
CN110962847A (en) * | 2019-11-26 | 2020-04-07 | 清华大学苏州汽车研究院(吴江) | Lane centering auxiliary self-adaptive cruise trajectory planning method and system |
CN111137282A (en) * | 2019-12-04 | 2020-05-12 | 宝能汽车有限公司 | Vehicle collision prediction method and device, vehicle and electronic equipment |
CN111258308A (en) * | 2018-11-15 | 2020-06-09 | 财团法人车辆研究测试中心 | Trajectory planning system and method for autonomous vehicles |
CN111332285A (en) * | 2018-12-19 | 2020-06-26 | 长沙智能驾驶研究院有限公司 | Method and device for vehicle avoiding obstacles, electronic device and storage medium |
CN111427369A (en) * | 2020-06-08 | 2020-07-17 | 北京三快在线科技有限公司 | Unmanned vehicle control method and device |
-
2020
- 2020-08-18 CN CN202010831889.3A patent/CN114076603B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170071272A (en) * | 2015-12-15 | 2017-06-23 | 현대자동차주식회사 | Rear collision warning control method and apparatus |
CN109976303A (en) * | 2018-10-19 | 2019-07-05 | 财团法人车辆研究测试中心 | Have the automatic Pilot method and device thereof of decision diagnosis |
CN111258308A (en) * | 2018-11-15 | 2020-06-09 | 财团法人车辆研究测试中心 | Trajectory planning system and method for autonomous vehicles |
CN111332285A (en) * | 2018-12-19 | 2020-06-26 | 长沙智能驾驶研究院有限公司 | Method and device for vehicle avoiding obstacles, electronic device and storage medium |
CN109960261A (en) * | 2019-03-22 | 2019-07-02 | 北京理工大学 | A dynamic obstacle avoidance method based on collision detection |
CN110588646A (en) * | 2019-10-18 | 2019-12-20 | 财团法人车辆研究测试中心 | Active safety auxiliary system with pre-adjusted speed and its control method |
CN110962847A (en) * | 2019-11-26 | 2020-04-07 | 清华大学苏州汽车研究院(吴江) | Lane centering auxiliary self-adaptive cruise trajectory planning method and system |
CN111137282A (en) * | 2019-12-04 | 2020-05-12 | 宝能汽车有限公司 | Vehicle collision prediction method and device, vehicle and electronic equipment |
CN111427369A (en) * | 2020-06-08 | 2020-07-17 | 北京三快在线科技有限公司 | Unmanned vehicle control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114076603A (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI674984B (en) | Driving track planning system and method for self-driving vehicles | |
US10824153B2 (en) | Cost design for path selection in autonomous driving technology | |
US20200241547A1 (en) | Autonomous driving system | |
CN109927727B (en) | Apparatus and method for determining motion of nearby vehicle | |
US20190039613A1 (en) | Apparatus and method for changing route of vehicle based on emergency vehicle | |
CN110287529B (en) | Test method, device, equipment and storage medium | |
US11608055B2 (en) | Enhanced autonomous systems with sound sensor arrays | |
US11433897B2 (en) | Method and apparatus for determination of optimal cruising lane in an assisted driving system | |
KR101439019B1 (en) | Car control apparatus and its car control apparatus and autonomic driving method | |
US11042160B2 (en) | Autonomous driving trajectory determination device | |
US11828613B2 (en) | Superimposed-image display device | |
CN115618932A (en) | Traffic incident prediction method, device and electronic equipment based on networked automatic driving | |
CN116466697A (en) | Method, system and storage medium for delivery vehicle | |
CN113655469B (en) | Method and system for predicting existence of object in perception blind area based on intelligent driving | |
JPWO2020044512A1 (en) | In-vehicle device, information processing method and information processing program | |
JP2019055675A (en) | Method and device for controlling vehicle running | |
KR20200094842A (en) | Apparatus and method for detecting obstacles to driving in vehicles | |
CN114076603B (en) | Trajectory determination method | |
CN113525358A (en) | Vehicle control device and vehicle control method | |
US20230290248A1 (en) | System and method for detecting traffic flow with heat map | |
TWI737437B (en) | Trajectory determination method | |
CN114821542B (en) | Target detection method, target detection device, vehicle and storage medium | |
JP7400914B1 (en) | automatic driving device | |
JP5682302B2 (en) | Traveling road estimation device, method and program | |
JP7468633B2 (en) | State estimation method, state estimation device, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |