CN115509260A - Trajectory planning method, device, equipment and storage medium - Google Patents
Trajectory planning method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115509260A CN115509260A CN202211314159.1A CN202211314159A CN115509260A CN 115509260 A CN115509260 A CN 115509260A CN 202211314159 A CN202211314159 A CN 202211314159A CN 115509260 A CN115509260 A CN 115509260A
- Authority
- CN
- China
- Prior art keywords
- path
- point
- planning
- trajectory
- obstacle avoidance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/10—Simultaneous control of position or course in three dimensions
- G05D1/101—Simultaneous control of position or course in three dimensions specially adapted for aircraft
Landscapes
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明属于自动驾驶技术领域,公开了一种轨迹规划方法、装置、设备及存储介质。该方法包括:在检测到目标通行区域内存在障碍物时,规划最优避障路径;根据最优避障路径确定满足预设间隔要求的多个路径点;根据相邻两路径点之间的间隔距离分配对应的飞行时间;将飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。通过上述方式,选择间隔合适的路径点,避免了相邻路径点距离过大导致生成的轨迹偏离原路径,利用最小化急动度算法进行速度规划,使各分段轨迹的急动度保持在一定数值范围,提升了轨迹规划的准确性、平滑性和稳定性。
The invention belongs to the technical field of automatic driving, and discloses a trajectory planning method, device, equipment and storage medium. The method includes: when an obstacle is detected in the target passing area, planning an optimal obstacle avoidance path; determining a plurality of path points satisfying preset interval requirements according to the optimal obstacle avoidance path; The flight time corresponding to the separation distance is allocated; the flight time and the point information corresponding to each path point are used as input, and the speed planning is carried out by using the minimum jerk algorithm to generate the driving trajectory. Through the above method, select the path points with appropriate intervals, avoid the generated trajectory deviating from the original path due to the excessive distance between adjacent path points, and use the minimum jerk algorithm for speed planning, so that the jerk of each segment trajectory can be kept at A certain value range improves the accuracy, smoothness and stability of trajectory planning.
Description
技术领域technical field
本发明涉及自动驾驶技术领域,尤其涉及一种轨迹规划方法、装置、设备及存储介质。The present invention relates to the technical field of automatic driving, in particular to a trajectory planning method, device, equipment and storage medium.
背景技术Background technique
目前规划避障路径多采用A*或者RRT之类的搜索采样算法,所消耗算力巨大,很难满足实时性的要求,在空中飞行场景下,搜索空间巨大但是障碍物稀疏,因此使用这类算法的效率太低。目前路径平滑和速度规划的方式中容易出现平滑后的轨迹和原路径偏离过大的问题,降低了飞行器的轨迹定位精度,影响轨迹的稳定性。At present, the search and sampling algorithms such as A* or RRT are mostly used for planning obstacle avoidance paths, which consume a huge amount of computing power and are difficult to meet the real-time requirements. In the air flight scene, the search space is huge but the obstacles are sparse. The algorithm is too inefficient. In the current path smoothing and speed planning methods, there is a problem that the smoothed trajectory deviates too much from the original path, which reduces the trajectory positioning accuracy of the aircraft and affects the stability of the trajectory.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.
发明内容Contents of the invention
本发明的主要目的在于提供一种轨迹规划方法、装置、设备及存储介质,旨在解决目前路径平滑和速度规划的方式中容易出现平滑后的轨迹和原路径偏离过大的技术问题。The main purpose of the present invention is to provide a trajectory planning method, device, equipment and storage medium, aiming to solve the technical problem that the smoothed trajectory and the original path tend to deviate too much in the current path smoothing and speed planning methods.
为实现上述目的,本发明提供了一种轨迹规划方法,所述方法包括以下步骤:To achieve the above object, the present invention provides a trajectory planning method, the method includes the following steps:
在检测到目标通行区域内存在障碍物时,规划最优避障路径;When detecting obstacles in the target passing area, plan the optimal obstacle avoidance path;
根据所述最优避障路径确定满足预设间隔要求的多个路径点;Determining a plurality of waypoints satisfying preset interval requirements according to the optimal obstacle avoidance path;
根据相邻两路径点之间的间隔距离分配对应的飞行时间;Allocate the corresponding flight time according to the distance between two adjacent waypoints;
将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。The flight time and the point information corresponding to each path point are used as input, and the jerk minimization algorithm is used for speed planning to generate a driving trajectory.
可选地,所述将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹之后,所述方法还包括:Optionally, using the flight time and the point information corresponding to each way point as input, using the jerk minimization algorithm for speed planning, and after generating the driving trajectory, the method further includes:
按照最大速度限制值和最大加速度限制值对生成的所述行驶轨迹进行校验;Verifying the generated driving trajectory according to the maximum speed limit value and the maximum acceleration limit value;
在校验未通过时,调整所述飞行时间,返回执行所述将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹的步骤。When the check fails, adjust the flight time, and return to the step of using the flight time and the point information corresponding to each path point as input, using the jerk minimization algorithm for speed planning, and generating the driving trajectory. .
可选地,所述在检测到目标通行区域内存在障碍物时,规划最优避障路径,包括:Optionally, when an obstacle is detected in the target passing area, planning an optimal obstacle avoidance path includes:
在检测到目标通行区域内存在障碍物时,确定所述障碍物的位置信息和形状信息;When an obstacle is detected in the target passing area, determine the position information and shape information of the obstacle;
根据所述形状信息将所述障碍物处理为对应的标准化三维形状;processing the obstacle into a corresponding standardized three-dimensional shape according to the shape information;
根据所述标准化三维形状、所述位置信息生成与航线参考线之间的距离不等的多条梯形绕障路径;Generate a plurality of trapezoidal obstacle avoidance paths with different distances from the route reference line according to the standardized three-dimensional shape and the position information;
从所述多条梯形绕障路径中选择最优避障路径。An optimal obstacle avoidance path is selected from the plurality of trapezoidal obstacle avoidance paths.
可选地,所述从所述多条梯形绕障路径中选择最优避障路径,包括:Optionally, the selecting the optimal obstacle avoidance path from the plurality of trapezoidal obstacle avoidance paths includes:
从所述多条梯形绕障路径中去除与所述障碍物之间的距离小于预设安全距离的路径,得到多条目标绕障路径;removing a path whose distance from the obstacle is less than a preset safety distance from the plurality of trapezoidal obstacle avoidance paths to obtain a plurality of target obstacle avoidance paths;
从所述多条目标绕障路径中选择与所述航线参考线之间的距离最小的路径作为最优避障路径。Selecting the path with the smallest distance from the route reference line from the plurality of target obstacle avoidance paths as the optimal obstacle avoidance path.
可选地,所述根据所述最优避障路径确定满足预设间隔要求的多个路径点,包括:Optionally, the determining a plurality of path points satisfying a preset interval requirement according to the optimal obstacle avoidance path includes:
确定所述最优避障路径对应的多个折线顶点;Determining a plurality of polyline vertices corresponding to the optimal obstacle avoidance path;
判断相邻折线顶点之间的间隔距离是否大于第一预设距离值;Judging whether the interval distance between vertices of adjacent polylines is greater than a first preset distance value;
若相邻折线顶点之间的间隔距离大于第一预设距离值,则在相邻折线顶点之间新增参考点;If the interval distance between adjacent polyline vertices is greater than the first preset distance value, a new reference point is added between adjacent polyline vertices;
从所述多个折线顶点和所述参考点中移除与当前位置之间的距离小于第二预设距离值的点位,得到满足预设间隔要求的多个路径点。A point whose distance from the current position is smaller than a second preset distance value is removed from the plurality of polyline vertices and the reference point, so as to obtain a plurality of route points satisfying a preset interval requirement.
可选地,所述多个路径点至少包括终末点,所述各路径点对应的点位信息至少包括所述终末点对应的末速度方向和末速度大小;Optionally, the plurality of waypoints include at least an end point, and the point information corresponding to each waypoint includes at least a terminal velocity direction and a terminal velocity magnitude corresponding to the end point;
所述将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹之前,所述方法还包括:Said using the flight time and the point information corresponding to each path point as input, using the jerk minimization algorithm for speed planning, before generating the driving track, the method also includes:
根据所述终末点与所述终末点的前一路径点之间的连线指向确定末速度方向;determining the final velocity direction according to the direction of the connection line between the terminal point and the previous path point of the terminal point;
根据所述终末点与所述终末点的前一路径点之间的距离确定末速度大小。Determine the magnitude of the terminal velocity according to the distance between the terminal point and the previous path point of the terminal point.
可选地,所述在检测到目标通行区域内存在障碍物时,规划最优避障路径之前,所述方法还包括:Optionally, when detecting an obstacle in the target passing area, before planning an optimal obstacle avoidance path, the method further includes:
根据预设的航线生成航道边界;Generate channel boundaries according to preset routes;
根据所述航道边界和预设响应范围确定目标通行区域。The target passage area is determined according to the channel boundary and the preset response range.
此外,为实现上述目的,本发明还提出一种轨迹规划装置,所述轨迹规划装置包括:In addition, in order to achieve the above purpose, the present invention also proposes a trajectory planning device, which includes:
路径规划模块,用于在检测到目标通行区域内存在障碍物时,规划最优避障路径;The path planning module is used to plan the optimal obstacle avoidance path when obstacles are detected in the target passing area;
确定模块,用于根据所述最优避障路径确定满足预设间隔要求的多个路径点;A determining module, configured to determine a plurality of path points satisfying preset interval requirements according to the optimal obstacle avoidance path;
分配模块,用于根据任意相邻两路径点之间的间隔距离分配对应的飞行时间;An allocation module, configured to allocate corresponding flight time according to the distance between any two adjacent waypoints;
轨迹规划模块,用于将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。The trajectory planning module is used to use the flight time and the point information corresponding to each path point as input, use the jerk minimization algorithm to perform speed planning, and generate a driving trajectory.
此外,为实现上述目的,本发明还提出一种轨迹规划设备,所述轨迹规划设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的轨迹规划程序,所述轨迹规划程序配置为实现如上文所述的轨迹规划方法。In addition, in order to achieve the above object, the present invention also proposes a trajectory planning device, which includes: a memory, a processor, and a trajectory planning program stored in the memory and operable on the processor. The trajectory planning program described above is configured to implement the trajectory planning method as described above.
此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有轨迹规划程序,所述轨迹规划程序被处理器执行时实现如上文所述的轨迹规划方法。In addition, to achieve the above object, the present invention also proposes a storage medium, on which a trajectory planning program is stored, and when the trajectory planning program is executed by a processor, the trajectory planning method as described above is implemented.
本发明通过在检测到目标通行区域内存在障碍物时,规划最优避障路径;根据最优避障路径确定满足预设间隔要求的多个路径点;根据相邻两路径点之间的间隔距离分配对应的飞行时间;将飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。通过上述方式,选择间隔合适的路径点,避免了相邻路径点距离过大导致生成的轨迹偏离原路径,利用最小化急动度算法进行速度规划,使各分段轨迹的急动度保持在一定数值范围并满足飞行时间的限制,提升了轨迹规划的准确性、平滑性和稳定性。The present invention plans the optimal obstacle avoidance path when detecting obstacles in the target passage area; determines a plurality of path points that meet the preset interval requirements according to the optimal obstacle avoidance path; The flight time corresponding to the distance allocation; the flight time and the point information corresponding to each way point are used as input, and the speed planning is carried out by using the jerk minimization algorithm to generate the driving trajectory. Through the above method, select the path points with appropriate intervals, avoid the generated trajectory deviating from the original path due to the excessive distance between adjacent path points, and use the minimum jerk algorithm for speed planning, so that the jerk of each segment trajectory can be kept at A certain range of values and meeting the flight time limit improve the accuracy, smoothness and stability of trajectory planning.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的轨迹规划设备的结构示意图;Fig. 1 is a schematic structural diagram of a trajectory planning device for a hardware operating environment involved in the solution of an embodiment of the present invention;
图2为本发明轨迹规划方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the trajectory planning method of the present invention;
图3为本发明轨迹规划方法的通行区域示意图;Fig. 3 is a schematic diagram of the passing area of the trajectory planning method of the present invention;
图4为本发明轨迹规划方法第二实施例的流程示意图;Fig. 4 is a schematic flow chart of the second embodiment of the trajectory planning method of the present invention;
图5为本发明轨迹规划方法第三实施例的流程示意图;Fig. 5 is a schematic flow chart of the third embodiment of the trajectory planning method of the present invention;
图6为本发明轨迹规划方法的路径规划示意图;Fig. 6 is a schematic diagram of path planning of the trajectory planning method of the present invention;
图7为本发明轨迹规划方法一实例的具体流程示意图;Fig. 7 is a schematic flow chart of an example of the trajectory planning method of the present invention;
图8为本发明轨迹规划方法第四实施例的流程示意图;FIG. 8 is a schematic flowchart of a fourth embodiment of the trajectory planning method of the present invention;
图9为本发明轨迹规划装置第一实施例的结构框图。Fig. 9 is a structural block diagram of the first embodiment of the trajectory planning device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的轨迹规划设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a trajectory planning device for a hardware operating environment involved in the solution of an embodiment of the present invention.
如图1所示,该轨迹规划设备可以包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,Wi-Fi)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM),也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the trajectory planning device may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对轨迹规划设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation to the trajectory planning device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及轨迹规划程序。As shown in FIG. 1 , the
在图1所示的轨迹规划设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明轨迹规划设备中的处理器1001、存储器1005可以设置在轨迹规划设备中,所述轨迹规划设备通过处理器1001调用存储器1005中存储的轨迹规划程序,并执行本发明实施例提供的轨迹规划方法。In the trajectory planning device shown in Figure 1, the
本发明实施例提供了一种轨迹规划方法,参照图2,图2为本发明轨迹规划方法第一实施例的流程示意图。An embodiment of the present invention provides a trajectory planning method. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of the trajectory planning method according to the present invention.
本实施例中,所述轨迹规划方法包括以下步骤:In this embodiment, the trajectory planning method includes the following steps:
步骤S10:在检测到目标通行区域内存在障碍物时,规划最优避障路径。Step S10: When an obstacle is detected in the target passing area, plan an optimal obstacle avoidance path.
可以理解的是,本实施例的执行主体为轨迹规划设备,所述轨迹规划设备可以设置于汽车、无人机、飞行器、飞行汽车、行驶机器人等机器设备上。本实施例以飞行器为例进行说明。It can be understood that the execution subject of this embodiment is a trajectory planning device, and the trajectory planning device can be installed on machines such as automobiles, drones, aircrafts, flying cars, and driving robots. In this embodiment, an aircraft is taken as an example for description.
需要说明的是,目标通行区域为飞行器按照预设的航线在未来一段时间内即将通过的区域。当没有障碍物出现在航道边界内时,飞行器一直沿着预设的航线飞行。当检测到航道内存在障碍物,且障碍物处于目标通行区域,则进行局部壁障,规划最优避障路径。It should be noted that the target passage area is an area that the aircraft will pass through within a certain period of time in the future according to a preset route. When there is no obstacle within the boundary of the flight path, the aircraft will always fly along the preset route. When an obstacle is detected in the channel and the obstacle is in the target passage area, local barriers are performed to plan the optimal obstacle avoidance path.
在具体实现中,获取飞行器的当前行驶数据和所处环境下的障碍物信息,根据获取到的当前行驶数据和障碍物信息构建环境,在构建的环境中按照预设算法搜索多条避障路径,从多条避障路径中选择最优避障路径,其中,预设算法可以为宽度优先搜索(BFS)、迪杰斯特拉算法(Dijkstra)等算法,本实施例对此不加以限制。优选地,在构建的环境中搜索多条梯形避障路径,从中选择最优的梯形避障路径。In the specific implementation, the current driving data of the aircraft and the obstacle information in the environment are obtained, and the environment is constructed according to the obtained current driving data and obstacle information, and multiple obstacle avoidance paths are searched according to the preset algorithm in the constructed environment , select an optimal obstacle avoidance path from multiple obstacle avoidance paths, wherein the preset algorithm may be breadth-first search (BFS), Dijkstra algorithm (Dijkstra) and other algorithms, which are not limited in this embodiment. Preferably, multiple trapezoidal obstacle avoidance paths are searched in the constructed environment, and an optimal trapezoidal obstacle avoidance path is selected therefrom.
进一步地,所述步骤S10之前,所述方法还包括:根据预设的航线生成航道边界;根据所述航道边界和预设响应范围确定目标通行区域。Further, before the step S10, the method further includes: generating a waterway boundary according to a preset route; and determining a target passage area according to the waterway boundary and a preset response range.
在具体实现中,由预设的全局规划策略生成航线,根据预先规划的航线生成航道边界。可选地,预设响应范围为飞行器上用于检测障碍物的传感器的检测范围;可选地,预设响应范围为提前根据算力资源确定的障碍物检测参数值,可根据实际需求进行调整。具体地,参考图3,图3为本发明轨迹规划方法的通行区域示意图,参考线为根据预设响应范围截取的航线的一部分,例如,预设响应范围为飞行器前方200m,参考线对应的长度为200m,航道边界为划定的与参考线相距一定距离的可行驶区域的边界,例如,航道边界为与参考线相距20m的边界。In a specific implementation, the route is generated by a preset global planning strategy, and the waterway boundary is generated according to the pre-planned route. Optionally, the preset response range is the detection range of the sensor used to detect obstacles on the aircraft; optionally, the preset response range is an obstacle detection parameter value determined in advance according to computing resources, which can be adjusted according to actual needs . Specifically, referring to FIG. 3, FIG. 3 is a schematic diagram of the passage area of the trajectory planning method of the present invention. The reference line is a part of the route intercepted according to the preset response range. For example, the preset response range is 200m in front of the aircraft, and the length corresponding to the reference line is 200m, and the fairway boundary is the boundary of the demarcated drivable area at a certain distance from the reference line, for example, the fairway boundary is the boundary 20m away from the reference line.
步骤S20:根据所述最优避障路径确定满足预设间隔要求的多个路径点。Step S20: Determine a plurality of route points satisfying the preset distance requirement according to the optimal obstacle avoidance route.
可选地,从最优避障路径上按照预设间隔要求每隔一段距离提取一个路径点,从而得到多个路径点。Optionally, a path point is extracted at intervals according to preset interval requirements on the optimal obstacle avoidance path, so as to obtain multiple path points.
优选地,最优避障路径为梯形避障路径,从最优避障路径上提取折线顶点作为路径点,根据预设间隔要求在相邻折线顶点间添加路径点或删除路径点,从而得到多个路径点,避免了相邻路径点之间的分段形状复杂造成轨迹拟合难度增大。Preferably, the optimal obstacle avoidance path is a trapezoidal obstacle avoidance path, the polyline vertices are extracted from the optimal obstacle avoidance path as path points, and path points are added or deleted between adjacent polyline vertices according to the preset interval requirements, thereby obtaining multiple path points, which avoids the difficulty of trajectory fitting caused by the complex shape of segments between adjacent path points.
步骤S30:根据相邻两路径点之间的间隔距离分配对应的飞行时间。Step S30: Allocate the corresponding flight time according to the distance between two adjacent waypoints.
应当理解的是,根据相邻两路径点之间的间隔距离除以最大速度限制值确定相邻两路径点形成的分段的飞行时间。It should be understood that the flight time of the segment formed by two adjacent waypoints is determined according to the distance between two adjacent waypoints divided by the maximum speed limit value.
步骤S40:将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。Step S40: Taking the flight time and the point information corresponding to each way point as input, use the jerk minimization algorithm to carry out speed planning, and generate a driving trajectory.
需要说明的是,本实施例中以最小化急动度为目标对规划的最优避障路径进行平滑优化和速度规划。多个路径点包括最优避障路径的起始点、终末点和中间点,其中,起始点携带的点位信息包括位置信息、速度信息以及加速度信息,终末点携带的点位信息包括位置信息、速度信息以及加速度信息,中间点携带的点位信息包括位置信息。将飞行时间和各路径点对应的点位信息作为最小化急动度算法的输入,即可得到光滑连续的携带有位置信息、速度信息、加速度信息、时间信息的行驶轨迹。行驶轨迹以固定时间间隔的离散点形式给出,每个轨迹点包含位置信息、速度信息、加速度信息以及时间信息,便于控制模块根据轨迹点进行行驶控制。It should be noted that in this embodiment, with the goal of minimizing jerk, smooth optimization and speed planning are performed on the planned optimal obstacle avoidance path. The multiple path points include the start point, end point and intermediate point of the optimal obstacle avoidance path, wherein the point information carried by the start point includes position information, speed information and acceleration information, and the point information carried by the end point includes position information, speed information and acceleration information, and the point information carried by the intermediate point includes position information. Taking the flight time and the point information corresponding to each path point as the input of the jerk minimization algorithm, a smooth and continuous driving trajectory carrying position information, speed information, acceleration information, and time information can be obtained. The driving trajectory is given in the form of discrete points at fixed time intervals, and each trajectory point contains position information, speed information, acceleration information and time information, which is convenient for the control module to perform driving control according to the trajectory points.
本实施例通过在检测到目标通行区域内存在障碍物时,规划最优避障路径;根据最优避障路径确定满足预设间隔要求的多个路径点;根据相邻两路径点之间的间隔距离分配对应的飞行时间;将飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。通过上述方式,选择间隔合适的路径点,避免了相邻路径点距离过大导致生成的轨迹偏离原路径,利用最小化急动度算法进行速度规划,使各分段轨迹的急动度保持在一定数值范围并满足飞行时间的限制,提升了轨迹规划的准确性、平滑性和稳定性。In this embodiment, when obstacles are detected in the target passage area, the optimal obstacle avoidance path is planned; according to the optimal obstacle avoidance path, a plurality of path points that meet the preset interval requirements are determined; according to the distance between two adjacent path points The flight time corresponding to the separation distance is assigned; the flight time and the point information corresponding to each path point are used as input, and the speed planning is carried out by using the jerk minimization algorithm to generate the driving trajectory. Through the above method, select the path points with appropriate intervals, avoid the generated trajectory deviating from the original path due to the excessive distance between adjacent path points, and use the minimum jerk algorithm for speed planning, so that the jerk of each segment trajectory can be kept at A certain range of values and meeting the flight time limit improve the accuracy, smoothness and stability of trajectory planning.
参考图4,图4为本发明轨迹规划方法第二实施例的流程示意图。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a second embodiment of the trajectory planning method of the present invention.
基于上述第一实施例,本实施例轨迹规划方法在所述步骤S40之后,还包括:Based on the first embodiment above, the trajectory planning method of this embodiment, after step S40, further includes:
步骤S401:按照最大速度限制值和最大加速度限制值对生成的所述行驶轨迹进行校验。Step S401: Verify the generated driving trajectory according to the maximum speed limit value and the maximum acceleration limit value.
可以理解的是,最大速度限制值和最大加速度限制值为飞行器自身动力结构所能实现的最大速度和最大加速度。行驶轨迹包括以固定时间间隔的多个轨迹点,每个轨迹点包含位置信息、速度信息、加速度信息以及时间信息,判断各个轨迹点对应的速度是否小于最大速度限制值,并判断各个轨迹点对应的加速度是否小于最大加速度限制值,若多个轨迹点对应的速度均小于最大速度限制值、且多个轨迹点对应的加速度均小于最大加速度限制值,则确定校验通过,若存在任一轨迹点对应的速度大于最大速度限制值、或者存在任一轨迹点对应的加速度大于最大加速度限制值,则确定校验未通过。It can be understood that the maximum speed limit value and the maximum acceleration limit value are the maximum speed and maximum acceleration that the aircraft's own power structure can achieve. The driving trajectory includes multiple trajectory points at fixed time intervals, each trajectory point contains position information, speed information, acceleration information and time information, and judges whether the speed corresponding to each trajectory point is less than the maximum speed limit value, and judges whether each trajectory point corresponds to Whether the acceleration is less than the maximum acceleration limit value, if the speeds corresponding to multiple track points are less than the maximum speed limit value, and the accelerations corresponding to multiple track points are all less than the maximum acceleration limit value, then it is determined that the verification is passed. If there is any track If the speed corresponding to the point is greater than the maximum speed limit value, or the acceleration corresponding to any track point is greater than the maximum acceleration limit value, it is determined that the verification fails.
步骤S402:在校验未通过时,调整所述飞行时间,返回执行所述步骤S40。Step S402: When the verification fails, adjust the flight time, and return to step S40.
需要说明的是,本实施例采用迭代优化方式,在校验通过时,得到符合要求的行驶轨迹;在校验校验未通过时,调整分配的飞行时间,重新进行路径平滑和速度规划处理,直到当前迭代次数达到最大迭代次数或输出的行驶轨迹满足速度要求和加速度要求。It should be noted that this embodiment adopts an iterative optimization method. When the verification is passed, the driving trajectory that meets the requirements is obtained; Until the current number of iterations reaches the maximum number of iterations or the output driving trajectory meets the speed requirements and acceleration requirements.
在具体实现中,在校验未通过时,增大飞行时间,将调整后的飞行时间和各路径点的点位信息作为最小化急动度算法的输入进行速度规划。可选地,获取预先设定的时间调整固定值,在原本相邻两路径点形成的分段的飞行时间的基础上添加时间调整固定值,得到调整后的飞行时间,例如,时间调整固定值为1s,在校验未通过时,对各分段的飞行时间执行+1s处理。In the specific implementation, when the verification fails, the flight time is increased, and the adjusted flight time and the point information of each path point are used as the input of the jerk minimization algorithm for speed planning. Optionally, obtain a preset time adjustment fixed value, add the time adjustment fixed value on the basis of the flight time of the segment formed by the original two adjacent waypoints, and obtain the adjusted flight time, for example, the time adjustment fixed value is 1s, when the verification fails, execute +1s processing on the flight time of each segment.
可选地,确定校验未通过的轨迹点,根据轨迹点的位置信息确定所处的目标相邻两路径点,对目标相邻两路径点对应的飞行时间进行调整,具体地,在原本的目标相邻两路径点的飞行时间的基础上添加时间调整固定值,得到调整后的飞行时间。Optionally, determine the track point that fails the verification, determine the two adjacent path points of the target according to the position information of the track point, and adjust the flight time corresponding to the two adjacent path points of the target, specifically, in the original The time adjustment fixed value is added to the flight time of two adjacent waypoints of the target to obtain the adjusted flight time.
本实施例中按照最大速度限制和最大加速度限制对生成的行驶轨迹进行校验;在校验未通过时,调整飞行时间,返回执行将飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹的步骤。本实施例中采用迭代优化方式进行速度规划,优化轨迹中相邻路径点之间的飞行时间,使得生成的不超过最大速度限制、不超过最大加速度限制且不过多偏离原路径,提升了轨迹规划的准确性、平滑性和稳定性。In this embodiment, the generated driving trajectory is verified according to the maximum speed limit and the maximum acceleration limit; when the verification fails, the flight time is adjusted, and the return execution takes the flight time and the point information corresponding to each path point as input, and uses The step of minimizing the jerk algorithm for speed planning and generating the driving trajectory. In this embodiment, an iterative optimization method is used for speed planning, and the flight time between adjacent path points in the trajectory is optimized, so that the generated one does not exceed the maximum speed limit, does not exceed the maximum acceleration limit, and does not deviate too much from the original path, which improves the trajectory planning. accuracy, smoothness and stability.
参考图5,图5为本发明轨迹规划方法第三实施例的流程示意图。Referring to FIG. 5 , FIG. 5 is a schematic flowchart of a third embodiment of the trajectory planning method of the present invention.
基于上述第一实施例,本实施例轨迹规划方法的所述步骤S10,包括:Based on the first embodiment above, the step S10 of the trajectory planning method in this embodiment includes:
步骤S101:在检测到目标通行区域内存在障碍物时,确定所述障碍物的位置信息和形状信息。Step S101: When an obstacle is detected in the target passing area, determine the position information and shape information of the obstacle.
步骤S102:根据所述形状信息将所述障碍物处理为对应的标准化三维形状。Step S102: Process the obstacle into a corresponding standardized three-dimensional shape according to the shape information.
可以理解的是,飞行器通过自身安装的传感器检测目标通行区域内障碍物的位置信息和形状信息,根据障碍物的形状,将障碍物近似处理为标准化三维形状,可选地,标准化三维形状为球体、长方体、圆柱体等形状中的任一种,便于计算各位置与障碍物之间的距离,减少了路径规划的算力消耗。It can be understood that the aircraft detects the position information and shape information of obstacles in the target passing area through its own sensors, and approximates the obstacles as a standardized three-dimensional shape according to the shape of the obstacle. Optionally, the standardized three-dimensional shape is a sphere Any one of shapes such as , cuboid, cylinder, etc., is convenient for calculating the distance between each position and obstacles, and reduces the computing power consumption of path planning.
步骤S103:根据所述标准化三维形状、所述位置信息生成与航线参考线之间的距离不等的多条梯形绕障路径。Step S103: Generate multiple trapezoidal obstacle avoidance paths with different distances from the route reference line according to the standardized three-dimensional shape and the position information.
需要说明的是,根据标准化三维形状、位置信息和当前行驶数据构建路径规划环境,在构建好的环境中搜索与航线参考线之间的距离不等的多条梯形绕障路径。航线参考线为根据预设响应范围从全局规划的航线中截取的一部分。参照图6,图6为本发明轨迹规划方法的路径规划示意图,沿着参考线的上下左右,生成若干条如图6所示的偏离参考线距离不等的梯形绕障路径。该路径的起始点为飞行器所在位置,终末点为沿参考线200m距离的点。随着飞行器的前进,每隔预设时间周期更新避障路径,生成的梯形绕障路径的条数可以根据硬件算力和实时性要求来确定。It should be noted that the path planning environment is constructed based on the standardized three-dimensional shape, location information and current driving data, and multiple trapezoidal obstacle avoidance paths with different distances from the route reference line are searched in the constructed environment. The route reference line is a part intercepted from the global planned route according to the preset response range. Referring to Fig. 6, Fig. 6 is a schematic diagram of the path planning of the trajectory planning method of the present invention. Along the up, down, left, and right sides of the reference line, several trapezoidal obstacle avoidance paths with different distances from the reference line are generated as shown in Fig. 6 . The starting point of the path is the location of the aircraft, and the ending point is a point 200m away from the reference line. As the aircraft moves forward, the obstacle avoidance path is updated every preset time period, and the number of generated trapezoidal obstacle avoidance paths can be determined according to hardware computing power and real-time requirements.
步骤S104:从所述多条梯形绕障路径中选择最优避障路径。Step S104: Select an optimal obstacle avoidance path from the plurality of trapezoidal obstacle avoidance paths.
可选地,按照各梯形绕障路径的长度、与障碍物之间的距离、旋转角度对多条梯形绕障路径进行综合评价,得到综合评分,选择综合评分最高的路径作为最优避障路径。Optionally, multiple trapezoidal obstacle avoidance paths are comprehensively evaluated according to the length of each trapezoidal obstacle avoidance path, the distance to the obstacle, and the rotation angle to obtain a comprehensive score, and the path with the highest comprehensive score is selected as the optimal obstacle avoidance path .
具体地,所述步骤S104,包括:从所述多条梯形绕障路径中去除与所述障碍物之间的距离小于预设安全距离的路径,得到多条目标绕障路径;从所述多条目标绕障路径中选择与所述航线参考线之间的距离最小的路径作为最优避障路径。Specifically, the step S104 includes: removing a path whose distance from the obstacle is smaller than a preset safety distance from the plurality of trapezoidal obstacle avoidance paths to obtain a plurality of target obstacle avoidance paths; Among the target obstacle avoidance paths, the path with the smallest distance to the route reference line is selected as the optimal obstacle avoidance path.
应当理解的是,计算各条梯形绕障路径与障碍物之间的距离,排除和障碍物碰撞以及与障碍物之间的距离小于预设安全距离的路径,从剩余路径中选择偏离参考线距离最小的路径作为最终确定的最优避障路径。It should be understood that the distance between each trapezoidal obstacle avoidance path and the obstacle is calculated, the path that collides with the obstacle and the distance between the obstacle and the obstacle is less than the preset safety distance is excluded, and the distance from the reference line is selected from the remaining paths The smallest path is used as the final optimal obstacle avoidance path.
在具体实现中,若确定生成的多条梯形绕障路径均不能避开障碍物,则悬停并提示,等待人工介入。In a specific implementation, if it is determined that none of the generated multiple trapezoidal obstacle avoidance paths can avoid obstacles, hover and prompt, and wait for manual intervention.
相应地,所述步骤S20,包括:确定所述最优避障路径对应的多个折线顶点;判断相邻折线顶点之间的间隔距离是否大于第一预设距离值;若相邻折线顶点之间的间隔距离大于第一预设距离值,则在相邻折线顶点之间新增参考点;从所述多个折线顶点和所述参考点中移除与当前位置之间的距离小于第二预设距离值的点位,得到满足预设间隔要求的多个路径点。Correspondingly, the step S20 includes: determining a plurality of polyline vertices corresponding to the optimal obstacle avoidance path; judging whether the distance between adjacent polyline vertices is greater than a first preset distance value; if the distance between adjacent polyline vertices is If the interval distance between the multiple polyline vertices and the reference point is greater than the first preset distance value, a new reference point is added between the adjacent polyline vertices; the distance between the multiple polyline vertices and the reference point is less than the second Points with a preset distance value can obtain multiple path points that meet the preset interval requirements.
需要说明的是,提取选择最优避障路径上的多个折线顶点,将多个折线顶点的位置作为最小化急动度算法的输入,即图6中的ABCDEF点。第一预设距离值为提前设置的用于确定相邻路径点的间隔距离是否过大的临界值,例如,25m、50m、25m-50m中的任一整数值,若相邻路径点的间隔距离大于第一预设距离值,则表征相邻路径点的间隔距离过大。当前位置为飞行器当前所在位置,即梯形绕障路径的起始点。第二预设距离值为提前设置的用于确定路径点与当前位置的距离是否过小的临界值,例如,15m,若一路径点与当前位置的距离小于第二预设距离值,则表征该路径点与当前位置之间的距离过小。It should be noted that multiple polyline vertices on the optimal obstacle avoidance path are extracted, and the positions of multiple polyline vertices are used as the input of the jerk minimization algorithm, that is, the ABCDEF point in Fig. 6 . The first preset distance value is a critical value set in advance for determining whether the distance between adjacent waypoints is too large, for example, any integer value in 25m, 50m, 25m-50m, if the distance between adjacent waypoints If the distance is greater than the first preset distance value, it indicates that the distance between adjacent waypoints is too large. The current position is the current position of the aircraft, which is the starting point of the trapezoidal obstacle path. The second preset distance value is a critical value set in advance for determining whether the distance between the waypoint and the current location is too small, for example, 15m. If the distance between a waypoint and the current location is smaller than the second preset distance value, it means The distance between the waypoint and the current position is too small.
在具体实现中,对确定的路径点进行调整:计算相邻路径点之间的距离,如果距离过大则相邻路径点中间插入额外的路径点,使得相邻路径点之间的最大距离小于一定数值,避免了两个路径点距离过大导致生成的轨迹偏离原路径。进一步地,移除离飞行器过近的路径点,例如,移除距离飞行器当前位置15m以内的路径点,避免了飞行器短时间内经过路径点导致轨迹规划不合理。In the specific implementation, adjust the determined path points: calculate the distance between adjacent path points, if the distance is too large, insert additional path points in the middle of adjacent path points, so that the maximum distance between adjacent path points is less than A certain value prevents the generated trajectory from deviating from the original path due to the excessive distance between the two path points. Further, removing the waypoints that are too close to the aircraft, for example, removing the waypoints within 15m from the current position of the aircraft, avoids unreasonable trajectory planning caused by the aircraft passing through the waypoints in a short time.
相比于传统搜索采样算法,本实施例中寻找避障路径的方式减少了运算时间,其中,通过规划航道和航道边界,将远离航线的障碍物直接排除处理范围;将航道内的障碍物近似处理为球体或长方体等标准化三维形状可以减少计算离障碍物距离的计算量。本实施例中检测的障碍物越少,计算所花费的时间也越少,适合空中飞行这种行驶区域空旷、障碍物稀少的场景。而传统算法的计算时间并不会明显的受到障碍物数量的影响,面对空旷的场景依然需要花费大量的时间去计算。Compared with the traditional search and sampling algorithm, the method of finding the obstacle avoidance path in this embodiment reduces the calculation time, wherein, by planning the channel and the boundary of the channel, the obstacles far away from the route are directly excluded from the processing range; the obstacles in the channel are approximated Treating to normalized 3D shapes like spheres or cuboids can reduce the amount of computation needed to calculate distances to obstacles. In this embodiment, the fewer obstacles are detected, the less time it takes to calculate, which is suitable for scenarios such as flying in the air where the driving area is empty and there are few obstacles. The calculation time of the traditional algorithm is not significantly affected by the number of obstacles, and it still takes a lot of time to calculate in the face of an empty scene.
以下结合实例对本实施例的轨迹规划方法进行说明:The trajectory planning method of this embodiment is described below in conjunction with an example:
参照图7,图7为本发明轨迹规划方法一实例的具体流程示意图,由全局规划得到的航线(一般为数公里以上)作为输入,根据既定的航线生成航道边界;若未检测到障碍物,将飞行器当前点和参考线末点作为路径点;若发现航道内前方200m以内存在障碍物,则将障碍物近似处理为长方体或球体,通过基于安全距离的方式规划避障路径,找到最优避障路径,未找到避障路径时,悬停等待人工介入;从最优避障路径上提取并调整得到路径点;为每段由相邻路径点行车的路径初步分配时间;通过最小化急动度算法计算轨迹;校验每个轨迹点的速度、加速度是否符合要求;若是,输出轨迹;若否,增加分配给每段路径的时间,并返回执行通过最小化急动度算法计算轨迹的步骤,直到得到符合要求的轨迹。With reference to Fig. 7, Fig. 7 is the specific flow chart diagram of an example of trajectory planning method of the present invention, the route (generally more than several kilometers) obtained by global planning is used as input, and the route boundary is generated according to the established route; if no obstacle is detected, the The current point of the aircraft and the end point of the reference line are used as the path points; if an obstacle is found within 200m in front of the flight path, the obstacle is approximated as a cuboid or sphere, and the obstacle avoidance path is planned based on a safe distance to find the optimal obstacle avoidance Path, when the obstacle avoidance path is not found, hover and wait for manual intervention; extract and adjust the path points from the optimal obstacle avoidance path; initially allocate time for each path that is driven by adjacent path points; minimize the jerk The algorithm calculates the trajectory; check whether the velocity and acceleration of each trajectory point meet the requirements; if so, output the trajectory; if not, increase the time allocated to each path, and return to the step of calculating the trajectory by minimizing the jerk algorithm, until the required trajectory is obtained.
本实施例中在检测到目标通行区域内存在障碍物时,确定障碍物的位置信息和形状信息;根据形状信息将障碍物处理为对应的标准化三维形状;根据标准化三维形状、位置信息生成与航线参考线之间的距离不等的多条梯形绕障路径;从多条梯形绕障路径中选择最优避障路径。通过上述方式,将障碍物处理为标准化三维形状,便于规划梯形绕障路径,减少了路径规划的算力消耗,满足路径规划的实时性要求。In this embodiment, when an obstacle is detected in the target passing area, the position information and shape information of the obstacle are determined; the obstacle is processed into a corresponding standardized three-dimensional shape according to the shape information; Multiple trapezoidal obstacle avoidance paths with different distances between the reference lines; select the optimal obstacle avoidance path from the multiple trapezoidal obstacle avoidance paths. Through the above method, the obstacle is processed into a standardized three-dimensional shape, which facilitates the planning of trapezoidal obstacle avoidance paths, reduces the computing power consumption of path planning, and meets the real-time requirements of path planning.
参考图8,图8为本发明轨迹规划方法第四实施例的流程示意图。Referring to FIG. 8 , FIG. 8 is a schematic flowchart of a fourth embodiment of a trajectory planning method according to the present invention.
基于上述第一实施例,本实施例轨迹规划方法中所述多个路径点至少包括终末点,所述各路径点对应的点位信息至少包括所述终末点对应的末速度方向和末速度大小;Based on the above-mentioned first embodiment, in the trajectory planning method of this embodiment, the multiple path points include at least the terminal point, and the point information corresponding to each path point includes at least the terminal velocity direction and the final velocity direction corresponding to the terminal point. speed size;
所述步骤S40之前,所述方法还包括:Before the step S40, the method also includes:
步骤S301:根据所述终末点与所述终末点的前一路径点之间的连线指向确定末速度方向。Step S301: Determine the final velocity direction according to the direction of the line between the terminal point and the previous path point of the terminal point.
步骤S302:根据所述终末点与所述终末点的前一路径点之间的距离确定末速度大小。Step S302: Determine the magnitude of the terminal velocity according to the distance between the terminal point and the previous path point of the terminal point.
可以理解的是,传统的轨迹规划方式中一般将末速度设置为0,而本实施例中根据最后两个路径点之间的信息确定末速度,提升了轨迹规划的准确性。具体地,末速度方向与最后两个路径点的连线的指向相同,末速度大小由最后两个路径点之间的距离决定,其中,终末点与终末点的前一路径点之间的距离越大,末速度越大,以最大速度限制值为上限;终末点与终末点的前一路径点之间的距离越小,末速度越小,以0为下限。It can be understood that in the traditional trajectory planning method, the terminal velocity is generally set to 0, but in this embodiment, the terminal velocity is determined according to the information between the last two waypoints, which improves the accuracy of trajectory planning. Specifically, the direction of the final velocity is the same as the direction of the line connecting the last two path points, and the magnitude of the final velocity is determined by the distance between the last two path points, where the distance between the final point and the previous path point of the final point is The greater the distance, the greater the final speed, with the maximum speed limit as the upper limit; the smaller the distance between the end point and the previous path point of the end point, the smaller the end speed, with 0 as the lower limit.
本实施例中根据终末点与终末点的前一路径点之间的连线指向确定末速度方向;根据终末点与终末点的前一路径点之间的距离确定末速度大小。通过上述方式,对传统的最小化急动度算法进行改进,输入的末速度根据实际路径点信息确定,满足实际行驶需求,提升了轨迹规划的准确性。In this embodiment, the final speed direction is determined according to the connection line between the terminal point and the previous path point of the final point; the terminal speed is determined according to the distance between the final point and the previous path point of the terminal point. Through the above method, the traditional jerk minimization algorithm is improved, and the final input velocity is determined according to the actual path point information, which meets the actual driving needs and improves the accuracy of trajectory planning.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有轨迹规划程序,所述轨迹规划程序被处理器执行时实现如上文所述的轨迹规划方法。In addition, an embodiment of the present invention also proposes a storage medium, on which a trajectory planning program is stored, and when the trajectory planning program is executed by a processor, the trajectory planning method as described above is implemented.
由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。Since the storage medium adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
参照图9,图9为本发明轨迹规划装置第一实施例的结构框图。Referring to FIG. 9, FIG. 9 is a structural block diagram of the first embodiment of the trajectory planning device of the present invention.
如图9所示,本发明实施例提出的轨迹规划装置包括:As shown in Figure 9, the trajectory planning device proposed by the embodiment of the present invention includes:
路径规划模块10,用于在检测到目标通行区域内存在障碍物时,规划最优避障路径。The
确定模块20,用于根据所述最优避障路径确定满足预设间隔要求的多个路径点。The
分配模块30,用于根据任意相邻两路径点之间的间隔距离分配对应的飞行时间。The
轨迹规划模块40,用于将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。The
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only an example, and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings according to needs, and the present invention is not limited thereto.
本实施例通过在检测到目标通行区域内存在障碍物时,规划最优避障路径;根据最优避障路径确定满足预设间隔要求的多个路径点;根据相邻两路径点之间的间隔距离分配对应的飞行时间;将飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹。通过上述方式,选择间隔合适的路径点,避免了相邻路径点距离过大导致生成的轨迹偏离原路径,利用最小化急动度算法进行速度规划,使各分段轨迹的急动度保持在一定数值范围并满足飞行时间的限制,提升了轨迹规划的准确性、平滑性和稳定性。In this embodiment, when obstacles are detected in the target passage area, the optimal obstacle avoidance path is planned; according to the optimal obstacle avoidance path, a plurality of path points that meet the preset interval requirements are determined; according to the distance between two adjacent path points The flight time corresponding to the separation distance is assigned; the flight time and the point information corresponding to each path point are used as input, and the speed planning is carried out by using the jerk minimization algorithm to generate the driving trajectory. Through the above method, select the path points with appropriate intervals, avoid the generated trajectory deviating from the original path due to the excessive distance between adjacent path points, and use the minimum jerk algorithm for speed planning, so that the jerk of each segment trajectory can be kept at A certain range of values and meeting the flight time limit improve the accuracy, smoothness and stability of trajectory planning.
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。It should be noted that the workflow described above is only illustrative and does not limit the protection scope of the present invention. In practical applications, those skilled in the art can select part or all of them to implement according to actual needs. The purpose of the scheme of this embodiment is not limited here.
另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的轨迹规划方法,此处不再赘述。In addition, for technical details not exhaustively described in this embodiment, reference may be made to the trajectory planning method provided in any embodiment of the present invention, which will not be repeated here.
在一实施例中,所述轨迹规划装置还包括迭代模块;In one embodiment, the trajectory planning device further includes an iteration module;
所述迭代模块,用于按照最大速度限制值和最大加速度限制值对生成的所述行驶轨迹进行校验;在校验未通过时,调整所述飞行时间,返回执行所述将所述飞行时间以及各路径点对应的点位信息作为输入,利用最小化急动度算法进行速度规划,生成行驶轨迹的步骤。The iterative module is used to verify the generated driving trajectory according to the maximum speed limit value and the maximum acceleration limit value; when the verification fails, adjust the flight time and return to execute the described flight time And the point information corresponding to each path point is used as input, and the step of using the jerk minimization algorithm for speed planning to generate the driving trajectory.
在一实施例中,所述路径规划模块10,还用于在检测到目标通行区域内存在障碍物时,确定所述障碍物的位置信息和形状信息;根据所述形状信息将所述障碍物处理为对应的标准化三维形状;根据所述标准化三维形状、所述位置信息生成与航线参考线之间的距离不等的多条梯形绕障路径;从所述多条梯形绕障路径中选择最优避障路径。In one embodiment, the
在一实施例中,所述路径规划模块10,还用于从所述多条梯形绕障路径中去除与所述障碍物之间的距离小于预设安全距离的路径,得到多条目标绕障路径;从所述多条目标绕障路径中选择与所述航线参考线之间的距离最小的路径作为最优避障路径。In an embodiment, the
在一实施例中,所述路径规划模块10,还用于确定所述最优避障路径对应的多个折线顶点;判断相邻折线顶点之间的间隔距离是否大于第一预设距离值;若相邻折线顶点之间的间隔距离大于第一预设距离值,则在相邻折线顶点之间新增参考点;从所述多个折线顶点和所述参考点中移除与当前位置之间的距离小于第二预设距离值的点位,得到满足预设间隔要求的多个路径点。In an embodiment, the
在一实施例中,所述多个路径点至少包括终末点,所述各路径点对应的点位信息至少包括所述终末点对应的末速度方向和末速度大小;In an embodiment, the multiple waypoints include at least an end point, and the point position information corresponding to each waypoint includes at least the terminal velocity direction and terminal velocity magnitude corresponding to the end point;
所述轨迹规划装置还包括确定模块;The trajectory planning device also includes a determination module;
所述确定模块,用于根据所述终末点与所述终末点的前一路径点之间的连线指向确定末速度方向;根据所述终末点与所述终末点的前一路径点之间的距离确定末速度大小。The determining module is configured to determine the terminal speed direction according to the connection line between the terminal point and the previous path point of the terminal point; according to the terminal point and the previous path point of the terminal point The distance between waypoints determines the final velocity magnitude.
在一实施例中,所述轨迹规划装置还包括范围确定模块;In one embodiment, the trajectory planning device further includes a range determination module;
所述范围确定模块,用于根据预设的航线生成航道边界;根据所述航道边界和预设响应范围确定目标通行区域。The range determination module is configured to generate a waterway boundary according to a preset route; and determine a target passage area according to the waterway boundary and a preset response range.
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。Furthermore, it should be noted that in this document, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, but also other elements not expressly listed, or elements inherent in such a process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as a read-only memory (Read Only Memory) , ROM)/RAM, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to 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 , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211314159.1A CN115509260A (en) | 2022-10-25 | 2022-10-25 | Trajectory planning method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211314159.1A CN115509260A (en) | 2022-10-25 | 2022-10-25 | Trajectory planning method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115509260A true CN115509260A (en) | 2022-12-23 |
Family
ID=84512972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211314159.1A Pending CN115509260A (en) | 2022-10-25 | 2022-10-25 | Trajectory planning method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115509260A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116151036A (en) * | 2023-04-17 | 2023-05-23 | 中铁九局集团有限公司 | Path planning method and device for automatic binding of reinforcing steel bars |
CN116301001A (en) * | 2023-03-09 | 2023-06-23 | 华南农业大学 | A UAV real-time obstacle avoidance system and method for fruit picking in orchards |
WO2024171259A1 (en) * | 2023-02-13 | 2024-08-22 | 川崎重工業株式会社 | Path planning device, path planning method, and path planning program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381590A (en) * | 2018-12-28 | 2020-07-07 | 珠海市一微半导体有限公司 | Sweeping robot and route planning method thereof |
CN111856541A (en) * | 2020-07-24 | 2020-10-30 | 苏州中亿通智能系统有限公司 | Fixed line vehicle track monitoring system and method |
CN112068586A (en) * | 2020-08-04 | 2020-12-11 | 西安交通大学 | Space-time joint optimization four-rotor unmanned aerial vehicle trajectory planning method |
CN114740715A (en) * | 2022-03-15 | 2022-07-12 | 青岛科技大学 | Speed curve model method based on optimal time and jerk |
CN114879704A (en) * | 2022-07-11 | 2022-08-09 | 山东大学 | A method and system for robot obstacle avoidance control |
-
2022
- 2022-10-25 CN CN202211314159.1A patent/CN115509260A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381590A (en) * | 2018-12-28 | 2020-07-07 | 珠海市一微半导体有限公司 | Sweeping robot and route planning method thereof |
CN111856541A (en) * | 2020-07-24 | 2020-10-30 | 苏州中亿通智能系统有限公司 | Fixed line vehicle track monitoring system and method |
CN112068586A (en) * | 2020-08-04 | 2020-12-11 | 西安交通大学 | Space-time joint optimization four-rotor unmanned aerial vehicle trajectory planning method |
CN114740715A (en) * | 2022-03-15 | 2022-07-12 | 青岛科技大学 | Speed curve model method based on optimal time and jerk |
CN114879704A (en) * | 2022-07-11 | 2022-08-09 | 山东大学 | A method and system for robot obstacle avoidance control |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024171259A1 (en) * | 2023-02-13 | 2024-08-22 | 川崎重工業株式会社 | Path planning device, path planning method, and path planning program |
CN116301001A (en) * | 2023-03-09 | 2023-06-23 | 华南农业大学 | A UAV real-time obstacle avoidance system and method for fruit picking in orchards |
CN116151036A (en) * | 2023-04-17 | 2023-05-23 | 中铁九局集团有限公司 | Path planning method and device for automatic binding of reinforcing steel bars |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115509260A (en) | Trajectory planning method, device, equipment and storage medium | |
JP6757820B2 (en) | Reference line smoothing method using a piecewise spiral curve with a weighted geometric cost | |
US10775801B2 (en) | Determining speeds along a path for autonomous driving vehicles | |
US10515321B2 (en) | Cost based path planning for autonomous driving vehicles | |
US10754339B2 (en) | Dynamic programming and quadratic programming based decision and planning for autonomous driving vehicles | |
US10816990B2 (en) | Non-blocking boundary for autonomous vehicle planning | |
KR102211299B1 (en) | Systems and methods for accelerated curve projection | |
EP3517893B1 (en) | Path and speed optimization fallback mechanism for autonomous vehicles | |
US10948919B2 (en) | Dynamic programming and gradient descent based decision and planning for autonomous driving vehicles | |
US10571921B2 (en) | Path optimization based on constrained smoothing spline for autonomous driving vehicles | |
US10606277B2 (en) | Speed optimization based on constrained smoothing spline for autonomous driving vehicles | |
US10591926B2 (en) | Smooth road reference for autonomous driving vehicles based on 2D constrained smoothing spline | |
US10137896B2 (en) | Method and system for operating autonomous driving vehicles using graph-based lane change guide | |
US11199847B2 (en) | Curvature corrected path sampling system for autonomous driving vehicles | |
US10429849B2 (en) | Non-linear reference line optimization method using piecewise quintic polynomial spiral paths for operating autonomous driving vehicles | |
WO2020237890A1 (en) | Speed planning method and apparatus, electronic device and storage medium | |
EP3327530B1 (en) | Method for determining command delays of autonomous vehicles | |
CN111694356B (en) | Driving control method and device, electronic equipment and storage medium | |
KR20200096408A (en) | LIDAR location estimation in autonomous vehicles using 3D CNN network to infer a solution | |
CN110389584A (en) | Method for assessing the track candidate item of automatic driving vehicle | |
KR20200096410A (en) | Feature Extraction based on Deep Learning for LIDAR Position Estimation of Autonomous Vehicles | |
KR20200096411A (en) | LIDAR position estimation performing temporal smoothing using RNN and LSTM in autonomous vehicles | |
JP2023547745A (en) | Vehicle obstacle avoidance methods, devices, electronic devices, storage media | |
JP2023523350A (en) | Vehicle-based data processing method, data processing apparatus, computer apparatus, and computer program | |
CN109991963A (en) | Speed planning method and terminal device |
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 |