Nothing Special   »   [go: up one dir, main page]

CN118192601A - Unstructured scene-oriented automatic driving tractor path planning method - Google Patents

Unstructured scene-oriented automatic driving tractor path planning method Download PDF

Info

Publication number
CN118192601A
CN118192601A CN202410463807.2A CN202410463807A CN118192601A CN 118192601 A CN118192601 A CN 118192601A CN 202410463807 A CN202410463807 A CN 202410463807A CN 118192601 A CN118192601 A CN 118192601A
Authority
CN
China
Prior art keywords
tractor
path
obstacle
speed
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410463807.2A
Other languages
Chinese (zh)
Other versions
CN118192601B (en
Inventor
陈建锋
葛新元
汤传业
何辰雨
徐永明
徐子逸
周卫琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Institute of Technology
Original Assignee
Changzhou Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Institute of Technology filed Critical Changzhou Institute of Technology
Priority to CN202410463807.2A priority Critical patent/CN118192601B/en
Publication of CN118192601A publication Critical patent/CN118192601A/en
Application granted granted Critical
Publication of CN118192601B publication Critical patent/CN118192601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/40Control within particular dimensions
    • G05D1/43Control of position or course in two dimensions
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/20Control system inputs
    • G05D1/24Arrangements for determining position or orientation
    • G05D1/242Means based on the reflection of waves generated by the vehicle
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/20Control system inputs
    • G05D1/24Arrangements for determining position or orientation
    • G05D1/243Means capturing signals occurring naturally from the environment, e.g. ambient optical, acoustic, gravitational or magnetic signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/20Control system inputs
    • G05D1/24Arrangements for determining position or orientation
    • G05D1/246Arrangements for determining position or orientation using environment maps, e.g. simultaneous localisation and mapping [SLAM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/60Intended control result
    • G05D1/617Safety or protection, e.g. defining protection zones around obstacles or avoiding hazards
    • G05D1/622Obstacle avoidance
    • G05D1/633Dynamic obstacles
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/60Intended control result
    • G05D1/644Optimisation of travel parameters, e.g. of energy consumption, journey time or distance
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/60Intended control result
    • G05D1/648Performing a task within a working area or space, e.g. cleaning
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

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)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention discloses an unstructured scene-oriented automatic driving tractor path planning method. Firstly, establishing an environment map model; determining the specific position of the static obstacle; improving the heuristic function by utilizing Reeds-Shepp curve model to obtain a cost function of a mixed A algorithm, determining constraint conditions of the system, and expanding sub-nodes according to the cost function and step system constraint to obtain a global reference path; before the local obstacle avoidance optimization based on the dynamic programming algorithm is carried out, the Frenet coordinate and the Cartesian coordinate are converted on the tractor pose information; according to the global reference path and the coordinate conversion method, the global reference path is optimized by utilizing the S-L diagram, and a continuous and smooth expected path is obtained; and finally, carrying out speed planning by using the S-T diagram according to the coordinate conversion method and the expected path planning result, and determining the expected speed for effectively avoiding the dynamic obstacle.

Description

一种面向非结构化场景的自动驾驶拖拉机路径规划方法A path planning method for autonomous driving tractors in unstructured scenarios

技术领域Technical Field

本发明属于自动驾驶车辆路径规划领域,具体涉及一种面向非结构化场景的自动驾驶拖拉机路径规划方法。The present invention belongs to the field of autonomous driving vehicle path planning, and in particular relates to an autonomous driving tractor path planning method for unstructured scenarios.

背景技术Background technique

传统拖拉机采用人工驾驶完成播种、施肥、果实运输等各种作业任务。但是,实际作业场景中各类障碍物无法避免,传统的作业方式在避障过程中易出现漏行、叠行等现象,存在生产效率低下以及浪费土地资源等问题。近年来,随着我国农业机械逐步向智能化转型,发展精准农业已提上日程。实施精准农业的重要前提是进行路径规划,以引导自动驾驶拖拉机等农业机械根据规划的作业路径行走,即考虑障碍物的位置和布局以确定最优的路径。Traditional tractors use manual driving to complete various tasks such as sowing, fertilizing, and fruit transportation. However, various obstacles are unavoidable in actual operation scenarios. Traditional operation methods are prone to missing rows and overlapping rows during obstacle avoidance, resulting in low production efficiency and waste of land resources. In recent years, with the gradual transformation of my country's agricultural machinery towards intelligence, the development of precision agriculture has been put on the agenda. An important prerequisite for implementing precision agriculture is path planning to guide agricultural machinery such as self-driving tractors to walk according to the planned operation path, that is, considering the location and layout of obstacles to determine the optimal path.

自动驾驶拖拉机主要行驶在非结构化场景中。由于缺乏清晰的道路标志线且路面条件复杂多样、道路和非道路区域难以区分,传统的依赖车道线或清晰的道路边界进行感知与定位的路径规划方法并不适用。此外,非结构化场景中,若利用摄像头以及激光雷达等传感器数据进行障碍物检测和环境感知以确定安全的行驶路径,不仅实现较为困难且会显著增加系统成本。目前,基于图搜索的方法(如A*算法)可以将状态空间离散成图,并利用离线地图建模的方式获得非结构化场景下的参考路径,避免过分依赖传感器数据。但是,此类方案对拖拉机的运动学约束考虑不够全面(路径曲率可能存在突变),无法处理场景中存在动态障碍物或动态障碍物运动方向不固定的情况。另一方面,借助数值优化方法(如动态规划算法),也可以实现上述问题的在线求解。但是,过大的求解范围会显著增加计算的复杂度。因此,有必要发展面向非结构化场景的自动驾驶拖拉机路径规划方法,使拖拉机高效地绕过障碍物,在保障作业安全性的同时提高作业效率。Self-driving tractors mainly travel in unstructured scenes. Due to the lack of clear road markings, complex and diverse road conditions, and the difficulty in distinguishing between road and non-road areas, traditional path planning methods that rely on lane lines or clear road boundaries for perception and positioning are not applicable. In addition, in unstructured scenes, if obstacle detection and environmental perception are used to determine a safe driving path using sensor data such as cameras and lidar, it is not only difficult to achieve but also significantly increases the system cost. At present, graph search-based methods (such as the A* algorithm) can discretize the state space into a graph and use offline map modeling to obtain a reference path in an unstructured scene to avoid over-reliance on sensor data. However, such schemes do not fully consider the kinematic constraints of the tractor (the path curvature may have sudden changes) and cannot handle the situation where there are dynamic obstacles in the scene or the movement direction of dynamic obstacles is not fixed. On the other hand, with the help of numerical optimization methods (such as dynamic programming algorithms), the above problems can also be solved online. However, too large a solution range will significantly increase the complexity of the calculation. Therefore, it is necessary to develop a path planning method for self-driving tractors for unstructured scenes, so that the tractor can efficiently bypass obstacles and improve the operation efficiency while ensuring the safety of the operation.

发明内容Summary of the invention

发明目的:针对现有技术中存在不足,本发明面向无车道线、无清晰的道路边界以及存在动态障碍物的农业机械作业场景,提出一种基于混合A*算法和动态规划算法的全局参考路径搜索和局部避障规划方法,旨在解决面向非结构化场景的自动驾驶拖拉机路径规划问题。首先,基于混合A*算法确定满足拖拉机运动学约束的全局参考路径,在考虑拖拉机动力学约束和静态障碍物的情况下完成最优参考路径搜索。在此基础上,利用动态规划算法对参考路径的曲率进行平滑,并结合动态规划算法完成针对动态障碍物的速度规划。Purpose of the invention: In view of the shortcomings in the prior art, the present invention proposes a global reference path search and local obstacle avoidance planning method based on a hybrid A* algorithm and a dynamic programming algorithm for agricultural machinery operation scenarios without lane lines, clear road boundaries, and dynamic obstacles, aiming to solve the path planning problem of autonomous driving tractors for unstructured scenarios. First, a global reference path that satisfies the kinematic constraints of the tractor is determined based on the hybrid A* algorithm, and the optimal reference path search is completed while considering the tractor's dynamic constraints and static obstacles. On this basis, the curvature of the reference path is smoothed using the dynamic programming algorithm, and the speed planning for dynamic obstacles is completed in combination with the dynamic programming algorithm.

技术方案:Technical solutions:

本发明提供一种面向非结构化场景的自动驾驶拖拉机路径规划方法,该方法包括以下步骤:The present invention provides a path planning method for an automatic driving tractor in an unstructured scenario, the method comprising the following steps:

S1.建立环境地图模型;确定静态障碍物所处的具体位置;S1. Establish an environmental map model; determine the specific location of static obstacles;

S2.利用Reeds-Shepp曲线模型对启发式函数进行改进,得到混合A*算法的代价函数;S2. The heuristic function is improved by using the Reeds-Shepp curve model to obtain the cost function of the hybrid A* algorithm;

S3.确定系统的约束条件,保证避障安全性,并适应拖拉机运动特性;S3. Determine the constraints of the system to ensure obstacle avoidance safety and adapt to the tractor's motion characteristics;

S4.根据步骤S2代价函数与步骤S3的系统约束进行子节点拓展,获取全局参考路径;S4. Expand the sub-nodes according to the cost function of step S2 and the system constraints of step S3 to obtain a global reference path;

S5.进行基于动态规划算法的局部避障优化之前,将拖拉机位姿信息进行Frenet坐标与Cartesian坐标转换;S5. Before performing the local obstacle avoidance optimization based on the dynamic programming algorithm, the tractor posture information is converted into Frenet coordinates and Cartesian coordinates;

S6.根据步骤S4获得的全局参考路径以及步骤S5的坐标转换方法,利用S-L图对全局参考路径进行优化,并获得连续、平滑的期望路径;S6. According to the global reference path obtained in step S4 and the coordinate conversion method in step S5, the global reference path is optimized using the S-L graph to obtain a continuous and smooth desired path;

S7.由步骤S5的坐标转换方法以及步骤S6的期望路径规划结果,利用S-T图进行速度规划,确定有效规避动态障碍物的期望速度。S7. Based on the coordinate conversion method of step S5 and the expected path planning result of step S6, the S-T diagram is used to perform speed planning to determine the expected speed for effectively avoiding dynamic obstacles.

进一步地,所述步骤S1的具体方法是:Furthermore, the specific method of step S1 is:

建立栅格地图,将拖拉机工作环境离散化为多个独立的正方形栅格,每个栅格对应真实工作环境中的一个具体位置,根据真实环境中的障碍物情况,将相应的栅格标记为占据或空闲状态,所有标记后的栅格共同构成环境地图模型;Establish a grid map, discretize the tractor working environment into multiple independent square grids, each grid corresponds to a specific position in the real working environment, and mark the corresponding grid as occupied or idle according to the obstacles in the real environment. All marked grids together constitute the environmental map model;

在栅格地图中,被占据的栅格用黑色表示,在数值矩阵中对应的值为1;空闲的栅格用白色表示,在数值矩阵中对应的值为0,栅格地图的数学模型表示为:In the grid map, the occupied grids are represented by black, and the corresponding value in the numerical matrix is 1; the idle grids are represented by white, and the corresponding value in the numerical matrix is 0. The mathematical model of the grid map is expressed as:

其中,A代表整个环境地图模型,m和p分别为环境地图栅格化后的行数和列数,aij表示位于(i,j)处的栅格,aij=0表示栅格为空闲状态,即不存在障碍物;aij=1表示栅格被占据状态,即存在障碍物。Wherein, A represents the entire environment map model, m and p are the number of rows and columns after the environment map is rasterized, respectively, aij represents the grid located at (i, j), aij = 0 indicates that the grid is idle, that is, there is no obstacle; aij = 1 indicates that the grid is occupied, that is, there is an obstacle.

进一步地,所述步骤S2的具体方法是:Furthermore, the specific method of step S2 is:

A*算法核心思想是利用启发式函数对算法遍历的方向进行引导,并根据代价函数f(n)评估网络的每个节点,具体可表示为:The core idea of the A* algorithm is to use the heuristic function to guide the direction of the algorithm traversal and evaluate each node of the network according to the cost function f(n), which can be expressed as:

f(n)=g(n)+h(n,g)(2)f(n)=g(n)+h(n,g)(2)

其中,g(n)为起始节点到当前节点的实际代价,h(n,g)为当前节点n到目标节点g的距离启发式函数,用于评估当前节点n到目标节点g的预测距离代价;Among them, g(n) is the actual cost from the starting node to the current node, h(n,g) is the distance heuristic function from the current node n to the target node g, which is used to evaluate the predicted distance cost from the current node n to the target node g;

搜索过程中,相应的距离启发式函数h(n,g)采用欧几里得距离h1(n,g),以忽略拖拉机非完整性约束、考虑避障环境约束:During the search process, the corresponding distance heuristic function h(n,g) uses the Euclidean distance h 1 (n,g) to ignore the tractor's non-integrity constraints and consider the obstacle avoidance environment constraints:

其中,(xn,yn)为当前节点n的坐标,(xg,yg)为路径目标点的坐标;Among them, (x n ,y n ) is the coordinate of the current node n, (x g ,y g ) is the coordinate of the path target point;

Reeds-Shepp曲线模型由两个转弯和一段直线组成,用于确定拖拉机或其他运动体在给定约束条件下的最短路径,利用A*算法常用的距离启发式函数和Reeds-Shepp曲线模型进行并行设置,得到混合A*算法,即选取其中较大的值作为搜索的启发式函数值,同时满足拖拉机的非完整运动学约束和通行效率最高:The Reeds-Shepp curve model consists of two turns and a straight line, which is used to determine the shortest path of a tractor or other moving body under given constraints. The distance heuristic function commonly used in the A* algorithm and the Reeds-Shepp curve model are set in parallel to obtain a hybrid A* algorithm, that is, the larger value is selected as the heuristic function value for the search, while satisfying the non-holonomic kinematic constraints of the tractor and the highest travel efficiency:

h(n,g)=max(h1(n,g),h2(n,g)) (4)h(n,g)=max(h 1 (n,g),h 2 (n,g)) (4)

其中,h2(n,g)表示采用Reeds-Shepp曲线模型的距离启发式函数,在忽略环境障碍、考虑拖拉机非完整性约束的条件下获得从当前节点到达目标位置的最短路径;Wherein, h 2 (n,g) represents the distance heuristic function using the Reeds-Shepp curve model, which obtains the shortest path from the current node to the target location under the conditions of ignoring environmental obstacles and considering the non-holonomic constraints of the tractor;

混合A*算法中,每个节点都记录其父节点拓展到当前节点的特定速度与前轮转角,为防止车速v和前轮转角δf频繁变化,在实际代价g(n)中添加附加的代价函数g1(n):In the hybrid A* algorithm, each node records the specific speed and front wheel angle of its parent node extending to the current node. To prevent the vehicle speed v and the front wheel angle δ f from changing frequently, an additional cost function g 1 (n) is added to the actual cost g(n):

g1(n)=ωg1·|vn-vn-1|+ωg2·|δfnfn-1| (5) g1 (n)= ωg1 ·| vn - vn-1 |+ ωg2 ·| δfn - δfn-1 | (5)

其中,ωg1为汽车行驶状态发生改变时的权重系数;ωg2为汽车行驶方向改变时的权重系数;vn为汽车行驶到当前节点n时的车速,vn-4为汽车行驶到前一个节点n-1时的车速,δfn汽车行驶到当前节点n时的前轮转角,δfn-1为汽车行驶到前一个节点n-1时的前轮转角。Among them, ω g1 is the weight coefficient when the car's driving state changes; ω g2 is the weight coefficient when the car's driving direction changes; v n is the speed of the car when it drives to the current node n, v n-4 is the speed of the car when it drives to the previous node n-1, δ fn is the front wheel turning angle when the car drives to the current node n, and δ fn-1 is the front wheel turning angle when the car drives to the previous node n-1.

进一步地,所述步骤S3的具体方法是:选择矩形和多边形作为拖拉机与障碍物的轮廓,将拖拉机视为矩形,利用拖拉机边界函数来描述拖拉机尺寸和形状,相应的四个顶点M1~M4横纵坐标表示为:Furthermore, the specific method of step S3 is: select a rectangle and a polygon as the outline of the tractor and the obstacle, regard the tractor as a rectangle, use the tractor boundary function to describe the size and shape of the tractor, and the horizontal and vertical coordinates of the corresponding four vertices M1 to M4 are expressed as:

其中,(x,y)为拖拉机位置坐标,f为拖拉机前悬距离、r为拖拉机后悬距离、L为拖拉机轴距、w为车身宽度拖拉机尺寸参数、Ψ为拖拉机航向角;Among them, (x, y) is the tractor position coordinate, f is the tractor front overhang distance, r is the tractor rear overhang distance, L is the tractor wheelbase, w is the body width tractor size parameter, and Ψ is the tractor heading angle;

判断拖拉机与障碍物是否发生碰撞,需要确定拖拉机边界和障碍物轮廓是否重合,采用三角形面积法检验拖拉机顶点坐标与凸多边形N1N2…Nn的位置关系,令拖拉机其中一个顶点坐标为Mi,连接点Mi与凸多边形的每两个相邻顶点构成三角形,并将这些三角形的面积进行累加,若累加得到的面积之和大于凸多边形的总面积,则确定点Mi位于凸多边形的外部;若面积之和小于等于凸多边形的总面积,点Mi可能位于多边形的内部,如式(7)所示:To determine whether the tractor collides with an obstacle, it is necessary to determine whether the tractor boundary and the obstacle outline coincide. The triangle area method is used to check the positional relationship between the tractor vertex coordinates and the convex polygon N 1 N 2 …N n . Let one of the tractor's vertex coordinates be Mi , and connect point Mi with every two adjacent vertices of the convex polygon to form a triangle. The areas of these triangles are accumulated. If the sum of the accumulated areas is greater than the total area of the convex polygon, it is determined that point Mi is located outside the convex polygon; if the sum of the areas is less than or equal to the total area of the convex polygon, point Mi may be located inside the polygon, as shown in formula (7):

其中,S代表各个多边形的面积;Among them, S represents the area of each polygon;

凸多边形面积可通过若干个三角形进行求解,在二维平面上,碰撞一定会发生在顶点处,将车身矩形的每个顶点始终约束在障碍物多边形的外部,同时限制多边形障碍物的每个顶点也位于车身矩形的外部,利用式(7),得到点Mi位于凸多边形N1N2…Nn外部的约束条件f1与f2,并建立如下的避障约束:Area of convex polygon The problem can be solved by using several triangles. On a two-dimensional plane, the collision will definitely occur at the vertex. Each vertex of the vehicle body rectangle is always constrained to be outside the obstacle polygon. At the same time, each vertex of the polygonal obstacle is also constrained to be outside the vehicle body rectangle. Using equation (7), we can obtain the constraints f 1 and f 2 that point Mi is outside the convex polygon N 1 N 2 …N n , and establish the following obstacle avoidance constraints:

其中,γ(N1,…Nn)为凸多边形顶点的集合,χ(M1,…M4)为车身矩形四个顶点的集合;根据拖拉机的运动学特性,可知拖拉机行驶的路径曲率κ仅与前轮转角δf有关:Among them, γ(N 1 ,…N n ) is the set of convex polygon vertices, χ(M 1 ,…M 4 ) is the set of four vertices of the body rectangle; according to the kinematic characteristics of the tractor, it can be known that the curvature κ of the tractor's travel path is only related to the front wheel turning angle δ f :

过大的前轮转角会使路径曲率增大,在降低行驶舒适性同时会加剧拖拉机的机械磨损,因此通过限制拖拉机前轮转角,以约束规划路径的曲率:Too large a front wheel steering angle will increase the path curvature, which will reduce driving comfort and increase mechanical wear of the tractor. Therefore, the curvature of the planned path is constrained by limiting the tractor's front wheel steering angle:

f|≤arctan(Lκmax) (10)f |≤arctan(Lκ max ) (10)

最终确定混合A*算法求解的避障约束与前轮转角约束,保证避障安全性,并适应拖拉机运动特性。Finally, the obstacle avoidance constraints and front wheel turning angle constraints solved by the hybrid A* algorithm are determined to ensure obstacle avoidance safety and adapt to the tractor's motion characteristics.

进一步地,所述步骤S4的具体方法是:考虑拖拉机的运动学约束,采用混合A*算法改变节点的拓展方式:每个节点均包含拖拉机的状态信息(x,y,Ψ),其中x和y表示拖拉机的位置坐标,Ψ表示拖拉机的航向角,每个节点以中心点表示父节点,混合A*算法的子节点数量为6,从位于栅格中的任意位置生成,节点之间以三维运动学状态连接,且搜索出的路径能够满足拖拉机的非完整性约束,即利用混合A*算法规划求解得到全局参考路径。Furthermore, the specific method of step S4 is: considering the kinematic constraints of the tractor, using the hybrid A* algorithm to change the expansion mode of the node: each node contains the state information (x, y, Ψ) of the tractor, where x and y represent the position coordinates of the tractor, Ψ represents the heading angle of the tractor, and each node represents the parent node with the center point. The number of child nodes of the hybrid A* algorithm is 6, which are generated from any position in the grid. The nodes are connected in a three-dimensional kinematic state, and the searched path can meet the non-integrity constraints of the tractor, that is, the global reference path is obtained by planning and solving using the hybrid A* algorithm.

进一步地,所述步骤S5的具体方法是:将步骤S1-S5中采用Cartesian坐标系进行道路描述转换为采用Frenet坐标系进行描述,Cartesian坐标系下,某一点的拖拉机运动状态表示为[x,y,v,Ψ,a,κ];a是cartesian坐标系下的纵向加速度,而在Frenet坐标系下,拖拉机运动状态表示为其中,s为纵向位移,/>为纵向车速,/>为纵向加速度,/>为横向车速,/>为横向加速度,l′为l对s的导数,l″为/>对/>的导数;Furthermore, the specific method of step S5 is: converting the road description using the Cartesian coordinate system in steps S1-S5 into the description using the Frenet coordinate system, where the motion state of the tractor at a certain point is expressed as [x, y, v, Ψ, a, κ]; a is the longitudinal acceleration in the Cartesian coordinate system, and in the Frenet coordinate system, the motion state of the tractor is expressed as Where s is the longitudinal displacement, /> is the longitudinal speed, /> is the longitudinal acceleration, /> is the lateral speed, /> is the lateral acceleration, l' is the derivative of l with respect to s, and l" is / > Yes/> The derivative of

Cartesian坐标系转Frenet坐标系的公式为:The formula for converting Cartesian coordinate system to Frenet coordinate system is:

Frenet坐标系转Cartesian坐标系的公式为:The formula for converting Frenet coordinate system to Cartesian coordinate system is:

其中,sr为期望纵向位移,xr和yr为Cartesian坐标系下期望横向位置和纵向位置,κr为参考路径曲率,κ′r为参考路径曲率对s的导数,ΔΨ=Ψ-Ψr,Ψr为参考航向角。Where s r is the desired longitudinal displacement, x r and y r are the desired lateral and longitudinal positions in the Cartesian coordinate system, κ r is the reference path curvature, κ′ r is the derivative of the reference path curvature with respect to s, ΔΨ=Ψ-Ψ r , and Ψ r is the reference heading angle.

进一步地,所述步骤S6的具体方法是:首先,根据场景中的障碍物信息构建Frenet坐标系下的表示道路与障碍物之间的关系图,简称S-L图,通过在S-L图中撒点并初始化将空间离散化;其次,设置成本函数,为每个节点分配一个代价值以描述相邻单元之间的路径选择关系;考虑障碍物的位置、拖拉机的当前位置和目标位置,采用动态规划算法对参考路径进行优化,确保在避免碰撞的同时能够找到最小代价路径,代价函数J由路径与静态障碍物的安全距离代价函数Jobs、平滑性代价函数Js以及偏离参考路径程度代价函数Jl描述:Furthermore, the specific method of step S6 is: first, construct a relationship diagram representing the road and obstacles in the Frenet coordinate system according to the obstacle information in the scene, referred to as the SL diagram, and discretize the space by scattering points in the SL diagram and initializing it; second, set a cost function, assign a cost value to each node to describe the path selection relationship between adjacent units; consider the position of the obstacle, the current position of the tractor and the target position, and use a dynamic programming algorithm to optimize the reference path to ensure that the minimum cost path can be found while avoiding collisions. The cost function J is described by the safety distance cost function J obs between the path and the static obstacle, the smoothness cost function J s , and the deviation from the reference path cost function J l :

J=Jobs+Js+Jl (13)J=J obs +J s +J l (13)

路径与静态障碍物的安全距离代价函数Jobs表示为:The safety distance cost function J obs between the path and the static obstacle is expressed as:

其中,dmax为最大碰撞距离,dmin为最小碰撞距离,[dmin,dmax]为碰撞缓冲区间,frisk为单调递减的碰撞风险函数,越靠近障碍物,frisk值越大,即越容易发生碰撞风险;Where d max is the maximum collision distance, d min is the minimum collision distance, [d min ,d max ] is the collision buffer zone, and f risk is a monotonically decreasing collision risk function. The closer to the obstacle, the larger the f risk value, which means the more likely it is to have a collision risk.

平滑性代价函数Js表示为:The smoothness cost function J s is expressed as:

其中,t0为路径规划开始时间,ts为路径规划结束时间,ω1、ω2、ω3为平滑性权重系数,分别代表路径横向位移、路径曲率以及路径曲率的变化率,l″′为对/>的导数;Where t 0 is the start time of path planning, t s is the end time of path planning, ω 1 , ω 2 , ω 3 are smoothness weight coefficients, representing the path lateral displacement, path curvature, and the rate of change of path curvature, respectively, and l″′ is Yes/> The derivative of

偏离参考路径程度的代价函数Jl可以表示为:The cost function J l of the degree of deviation from the reference path can be expressed as:

其中,ωl为偏离参考路径程度权重系数,lr为参考线函数;Among them, ω l is the weight coefficient of the degree of deviation from the reference path, l r is the reference line function;

采用递推的方法从起点到终点进行搜索,通过计算每个节点到终点的最小代价值来更新当前节点的代价值,并保存路径信息以供回溯,在所有节点计算完毕之后,筛选得到所有路径采样节点的最小连接代价;A recursive method is used to search from the starting point to the end point. The cost value of the current node is updated by calculating the minimum cost value from each node to the end point, and the path information is saved for backtracking. After all nodes are calculated, the minimum connection cost of all path sampling nodes is screened out;

然后利用五次多项式对给定的节点进行插值和拟合,将离散节点连续化,得到符合要求的平滑路径曲线,五次多项式曲线可以通过以下公式表示:Then, the given nodes are interpolated and fitted using the quintic polynomial, and the discrete nodes are made continuous to obtain a smooth path curve that meets the requirements. The quintic polynomial curve can be expressed by the following formula:

其中,t代表时间,a10~a(N-1)5代表五次多项式的系数,τ(s)代表多段五次多项式的集合,s5代表s的五次方,假设起点状态信息为[sj,lj,l′j,l″j],终点状态信息为[sk,lk,l′k,l″k],将起点与终点状态信息带入式(17),得:Where t represents time, a 10 ~a (N-1) 5 represent the coefficients of the quintic polynomial, τ(s) represents the set of multiple quintic polynomials, s 5 represents the fifth power of s, and assuming that the starting state information is [s j ,l j ,l′ j ,l″ j ] and the end state information is [s k ,l k ,l′ k ,l″ k ], substitute the starting and end state information into formula (17), and we get:

其中,ak0~ak5代表每一段五次多项式系数;Among them, a k0 ~ a k5 represent the coefficients of each section of the quintic polynomial;

求解式(18)的线性方程组,可确定五次多项式曲线的所有系数,实现对参考路径的优化;最后,对该路径的节点信息进行坐标转换,将相关位置坐标信息由Frenet坐标系的S-L图变换到Cartesian坐标系下的X-Y图,获取用于跟踪控制的期望路径。By solving the linear equations of equation (18), all coefficients of the quintic polynomial curve can be determined, and the reference path can be optimized. Finally, the node information of the path is transformed, and the relevant position coordinate information is transformed from the S-L diagram of the Frenet coordinate system to the X-Y diagram of the Cartesian coordinate system to obtain the desired path for tracking control.

进一步地,所述步骤S7的具体方法是:记动态障碍物切入的时刻为Tin,切出的时刻为Tout,长度S1S2与动态障碍物的宽度有关,S-T图的构建依赖于对动态障碍物轨迹的预测,采用恒速度模型对动态障碍物的轨迹进行预测:Furthermore, the specific method of step S7 is: the moment of the dynamic obstacle entering is T in , the moment of the dynamic obstacle exiting is T out , the lengths S 1 and S 2 are related to the width of the dynamic obstacle, the construction of the ST graph depends on the prediction of the trajectory of the dynamic obstacle, and the trajectory of the dynamic obstacle is predicted using a constant speed model:

式中,障碍物初始位置为(s0,l0),横纵向速度分别为和/>(st,lt)为t时刻的障碍物预测轨迹;In the formula, the initial position of the obstacle is (s 0 ,l 0 ), and the lateral and longitudinal velocities are and/> (s t ,l t ) is the predicted trajectory of the obstacle at time t;

将动态障碍物投影到S-T图上,并在S-T图中采样,采样过程中,每个时刻都会产生一系列采样点,即多个待选解,为得到最优解,需定义一个代价函数来评价各个待选解的优劣,安全性指拖拉机在速度规划过程中应尽可能与动态障碍物保持安全距离,以确保行驶的安全,在存在障碍物的时间区间内,引入一个安全性代价函数J1Dynamic obstacles are projected onto the ST graph and sampled in the ST graph. During the sampling process, a series of sampling points are generated at each moment, that is, multiple candidate solutions. In order to obtain the optimal solution, a cost function needs to be defined to evaluate the pros and cons of each candidate solution. Safety means that the tractor should keep a safe distance from dynamic obstacles as much as possible during the speed planning process to ensure driving safety. In the time interval where obstacles exist, a safety cost function J 1 is introduced:

其中,ωobs为障碍物权重系数,正数kb表示拖拉机远离动态障碍物的程度,Sobs表示直线拟合动态障碍物形成的边界,Sb表示拖拉机移动的边界;如果在某个时间段内,拖拉机受到多个动态障碍物的影响,将多个安全性代价函数J1进行累加;Where ω obs is the obstacle weight coefficient, the positive number k b indicates the degree to which the tractor is away from the dynamic obstacle, S obs indicates the boundary formed by the straight line fitting the dynamic obstacle, and S b indicates the boundary of the tractor movement; if the tractor is affected by multiple dynamic obstacles within a certain period of time, multiple safety cost functions J 1 are accumulated;

为使拖拉机的速度和速度变化率尽量小,设置舒适性的代价函数J2In order to minimize the tractor's speed and speed change rate, the comfort cost function J 2 is set as follows:

其中,ωv和ωa分别表示速度和速度变化率的权重系数;Among them, ω v and ω a represent the weight coefficients of speed and speed change rate respectively;

期望速度vref不考虑移动障碍物影响,由道路限速、路径曲率以及其他交通规则决定,定义期望速度代价函数J3The expected speed v ref does not consider the impact of moving obstacles and is determined by the road speed limit, path curvature and other traffic rules. The expected speed cost function J 3 is defined as:

其中,ωr表示与期望速度偏离的权重系数;Where ω r represents the weight coefficient of deviation from the expected speed;

整合上述代价函数,得到速度规划的代价函数:Integrating the above cost functions, we get the cost function of speed planning:

J=J1+J2+J3(23)J=J 1 +J 2 +J 3 (23)

最后,利用动态规划算法在S-T图中求解出一条代价最低的速度曲线,以确定拖拉机在面对动态障碍物时的速度决策方式;将相关位置速度信息由Frenet坐标系的S-T图变换到Cartesian坐标系下的X-Y图,获取有效规避动态障碍物的期望速度。Finally, a dynamic programming algorithm is used to solve a speed curve with the lowest cost in the S-T diagram to determine the speed decision-making method of the tractor when facing dynamic obstacles; the relevant position and speed information is transformed from the S-T diagram of the Frenet coordinate system to the X-Y diagram of the Cartesian coordinate system to obtain the expected speed for effectively avoiding dynamic obstacles.

本发明的有益效果为:The beneficial effects of the present invention are:

(1)提出混合A*算法,针对静态障碍物进行全局参考路径搜索,得到满足电动拖拉机运动学约束、由起点到终点的最优路径。(1) A hybrid A* algorithm is proposed to perform a global reference path search for static obstacles and obtain the optimal path from the starting point to the end point that satisfies the kinematic constraints of the electric tractor.

(2)基于S-L图完成参考路径优化,基于S-T图完成速度规划,实现考虑动态障碍物的局部避障优化。(2) The reference path is optimized based on the S-L graph, and the speed planning is completed based on the S-T graph, thus realizing local obstacle avoidance optimization considering dynamic obstacles.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为整体框图;Figure 1 is an overall block diagram;

图2为栅格地图;Figure 2 is a grid map;

图3为A*和混合A*算法的子节点拓展示意图;FIG3 is a schematic diagram of the sub-node expansion of the A* and hybrid A* algorithms;

图4为三角形面积法;Figure 4 shows the triangle area method;

图5为Frenet坐标系与Cartesian坐标系之间的对应关系;Figure 5 shows the correspondence between the Frenet coordinate system and the Cartesian coordinate system;

图6为动态障碍物在S-T图上的投影。Figure 6 shows the projection of the dynamic obstacle on the S-T diagram.

具体实施方式Detailed ways

下面结合附图以及具体实施例对本发明作进一步的说明,但本发明的保护范围并不限于此。The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.

步骤(1),建立环境地图模型;确定静态障碍物所处的具体位置Step (1), establish an environmental map model; determine the specific location of static obstacles

建立栅格地图,将拖拉机工作环境离散化为多个独立的正方形栅格,每个栅格对应真实工作环境中的一个具体位置。根据真实环境中的障碍物情况,将相应的栅格标记为占据或空闲状态。所有标记后的栅格共同构成环境地图模型。A grid map is established to discretize the tractor working environment into multiple independent square grids, each of which corresponds to a specific location in the real working environment. According to the obstacles in the real environment, the corresponding grids are marked as occupied or idle. All marked grids together constitute the environmental map model.

在栅格地图中,被占据的栅格用黑色表示,在数值矩阵中对应的值为1;空闲的栅格用白色表示,在数值矩阵中对应的值为0,如图2所示。栅格地图的数学模型可以表示为:In the grid map, the occupied grids are represented by black, and the corresponding value in the numerical matrix is 1; the idle grids are represented by white, and the corresponding value in the numerical matrix is 0, as shown in Figure 2. The mathematical model of the grid map can be expressed as:

其中,A代表整个环境地图模型,m和p分别为环境地图栅格化后的行数和列数,aij表示位于(i,j)处的栅格,aij=0表示栅格为空闲状态,即不存在障碍物;aij=1表示栅格被占据状态,即存在障碍物。Wherein, A represents the entire environment map model, m and p are the number of rows and columns after the environment map is rasterized, respectively, aij represents the grid located at (i, j), aij = 0 indicates that the grid is idle, that is, there is no obstacle; aij = 1 indicates that the grid is occupied, that is, there is an obstacle.

步骤(2),利用Reeds-Shepp曲线模型对启发式函数进行改进,得到混合A*算法的代价函数。Step (2), using the Reeds-Shepp curve model to improve the heuristic function, and obtain the cost function of the hybrid A* algorithm.

A*算法核心思想是利用启发式函数对算法遍历的方向进行引导,并根据代价函数f(n)评估网络的每个节点,具体可表示为:The core idea of the A* algorithm is to use the heuristic function to guide the direction of the algorithm traversal and evaluate each node of the network according to the cost function f(n), which can be expressed as:

f(n)=g(n)+h(n,g) (2)f(n)=g(n)+h(n,g) (2)

其中,g(n)为起始节点到当前节点的实际代价,h(n,g)为当前节点n到目标节点g的距离启发式函数,用于评估当前节点n到目标节点g的预测距离代价。搜索过程中,应优先考虑更有可能导向目标的节点,以提高搜索效率;相应的距离启发式函数h(n,g)采用欧几里得距离h1(n,g),以忽略拖拉机非完整性约束、考虑避障环境约束:Among them, g(n) is the actual cost from the starting node to the current node, and h(n,g) is the distance heuristic function from the current node n to the target node g, which is used to evaluate the predicted distance cost from the current node n to the target node g. During the search process, nodes that are more likely to lead to the target should be given priority to improve the search efficiency; the corresponding distance heuristic function h(n,g) uses the Euclidean distance h 1 (n,g) to ignore the tractor non-integrity constraints and consider the obstacle avoidance environment constraints:

其中,(xn,yn)为当前节点n的坐标,(xg,yg)为路径目标点的坐标。Among them, (x n , y n ) are the coordinates of the current node n, and (x g , y g ) are the coordinates of the path target point.

Reeds-Shepp曲线模型由两个转弯和一段直线组成,能够确定拖拉机或其他运动体在给定约束条件下的最短路径,可有效描述不同类型的移动和转向操作。利用A*算法常用的距离启发式函数和Reeds-Shepp曲线模型进行并行设置,可以得到混合A*算法,即选取其中较大的值作为搜索的启发式函数值,同时满足拖拉机的非完整运动学约束和通行效率最高:The Reeds-Shepp curve model consists of two turns and a straight line. It can determine the shortest path of a tractor or other moving body under given constraints and can effectively describe different types of movement and steering operations. By using the distance heuristic function commonly used in the A* algorithm and the Reeds-Shepp curve model for parallel settings, a hybrid A* algorithm can be obtained, that is, the larger value is selected as the heuristic function value for the search, while satisfying the non-holonomic kinematic constraints of the tractor and the highest travel efficiency:

h(n,g)=max(h1(n,g),h2(n,g)) (4)h(n,g)=max(h 1 (n,g),h 2 (n,g)) (4)

其中,h2(n,g)表示采用Reeds-Shepp曲线模型的距离启发式函数,在忽略环境障碍、考虑拖拉机非完整性约束的条件下获得从当前节点到达目标位置的最短路径,该启发式函数能够保证子节点在拓展时受到前轮转角的约束。Among them, h 2 (n,g) represents the distance heuristic function using the Reeds-Shepp curve model, which obtains the shortest path from the current node to the target position under the condition of ignoring environmental obstacles and considering the non-integrity constraints of the tractor. This heuristic function can ensure that the child node is constrained by the front wheel angle when expanding.

混合A*算法中,每个节点都记录其父节点拓展到当前节点的特定速度与前轮转角。为防止车速v和前轮转角δf频繁变化,在实际代价g(n)中添加附加的代价函数g1(n):In the hybrid A* algorithm, each node records the specific speed and front wheel angle of its parent node to the current node. To prevent the vehicle speed v and the front wheel angle δ f from changing frequently, an additional cost function g 1 (n) is added to the actual cost g(n):

g1(n)=ωg1·|vn-vn-1|+ωg2·|δfnfn-1| (5) g1 (n)= ωg1 ·| vn - vn-1 |+ ωg2 ·| δfn - δfn-1 | (5)

其中,ωg1为汽车行驶状态发生改变时的权重系数;ωg2为汽车行驶方向改变时的权重系数;vn为汽车行驶到当前节点n时的车速,vn-1为汽车行驶到前一个节点n-1时的车速,δfn汽车行驶到当前节点n时的前轮转角,δfn-1为汽车行驶到前一个节点n-1时的前轮转角。Among them, ω g1 is the weight coefficient when the car's driving state changes; ω g2 is the weight coefficient when the car's driving direction changes; v n is the speed of the car when it drives to the current node n, v n-1 is the speed of the car when it drives to the previous node n-1, δ fn is the front wheel turning angle when the car drives to the current node n, and δ fn-1 is the front wheel turning angle when the car drives to the previous node n-1.

步骤(3),确定系统的约束条件,保证避障安全性,并适应拖拉机运动特性,Step (3) determines the constraints of the system to ensure obstacle avoidance safety and adapt to the tractor's motion characteristics.

选择矩形和多边形作为拖拉机与障碍物的轮廓,将拖拉机视为矩形,利用拖拉机边界函数来描述拖拉机尺寸和形状,相应的四个顶点M1~M4横纵坐标表示为:Select rectangles and polygons as the outlines of the tractor and the obstacle, regard the tractor as a rectangle, use the tractor boundary function to describe the size and shape of the tractor, and the horizontal and vertical coordinates of the corresponding four vertices M 1 ~M 4 are expressed as:

其中,(x,y)为拖拉机位置坐标,f为拖拉机前悬距离、r为拖拉机后悬距离、L为拖拉机轴距、w为车身宽度拖拉机尺寸参数、Ψ为拖拉机航向角;Among them, (x, y) is the tractor position coordinate, f is the tractor front overhang distance, r is the tractor rear overhang distance, L is the tractor wheelbase, w is the body width tractor size parameter, and Ψ is the tractor heading angle;

判断拖拉机与障碍物是否发生碰撞,需要确定拖拉机边界和障碍物轮廓是否重合,采用三角形面积法检验拖拉机顶点坐标与凸多边形N1N2…Nn的位置关系,令拖拉机其中一个顶点坐标为Mi,连接点Mi与凸多边形的每两个相邻顶点构成三角形,并将这些三角形的面积进行累加,若累加得到的面积之和大于凸多边形的总面积,则确定点Mi位于凸多边形的外部;若面积之和小于等于凸多边形的总面积,点Mi可能位于多边形的内部,如式(7)所示:To determine whether the tractor collides with an obstacle, it is necessary to determine whether the tractor boundary and the obstacle outline coincide. The triangle area method is used to check the positional relationship between the tractor vertex coordinates and the convex polygon N 1 N 2 …N n . Let one of the tractor's vertex coordinates be Mi , and connect point Mi with every two adjacent vertices of the convex polygon to form a triangle. The areas of these triangles are accumulated. If the sum of the accumulated areas is greater than the total area of the convex polygon, it is determined that point Mi is located outside the convex polygon; if the sum of the areas is less than or equal to the total area of the convex polygon, point Mi may be located inside the polygon, as shown in formula (7):

其中,S代表各个多边形的面积;Among them, S represents the area of each polygon;

凸多边形面积可通过若干个三角形进行求解,在二维平面上,碰撞一定会发生在顶点处,将车身矩形的每个顶点始终约束在障碍物多边形的外部,同时限制多边形障碍物的每个顶点也位于车身矩形的外部,利用式(7),得到点Mi位于凸多边形N1N2…Nn外部的约束条件f1与f2,并建立如下的避障约束:Area of convex polygon The problem can be solved by using several triangles. On a two-dimensional plane, the collision will definitely occur at the vertex. Each vertex of the vehicle body rectangle is always constrained to be outside the obstacle polygon. At the same time, each vertex of the polygonal obstacle is also constrained to be outside the vehicle body rectangle. Using equation (7), we can obtain the constraints f 1 and f 2 that point Mi is outside the convex polygon N 1 N 2 …N n , and establish the following obstacle avoidance constraints:

其中,γ(N1,…Nn)为凸多边形顶点的集合,χ(M1,…M4)为车身矩形四个顶点的集合;Among them, γ(N 1 ,…N n ) is the set of vertices of the convex polygon, χ(M 1 ,…M 4 ) is the set of four vertices of the body rectangle;

根据拖拉机的运动学特性,可知拖拉机行驶的路径曲率κ仅与前轮转角δf有关:According to the kinematic characteristics of the tractor, it can be seen that the curvature κ of the tractor's travel path is only related to the front wheel turning angle δf :

过大的前轮转角会使路径曲率增大,在降低行驶舒适性同时会加剧拖拉机的机械磨损,因此通过限制拖拉机前轮转角,以约束规划路径的曲率:Too large a front wheel steering angle will increase the path curvature, which will reduce driving comfort and increase mechanical wear of the tractor. Therefore, the curvature of the planned path is constrained by limiting the tractor's front wheel steering angle:

f|≤arctan(Lκmax) (10)f |≤arctan(Lκ max ) (10)

最终确定混合A*算法求解的避障约束与前轮转角约束,保证避障安全性,并适应拖拉机运动特性。Finally, the obstacle avoidance constraints and front wheel turning angle constraints solved by the hybrid A* algorithm are determined to ensure obstacle avoidance safety and adapt to the tractor's motion characteristics.

步骤(4),根据步骤S2代价函数与步骤S3的系统约束进行子节点拓展,获取全局参考路径,考虑拖拉机的运动学约束,采用混合A*算法改变节点的拓展方式:每个节点均包含拖拉机的状态信息(x,y,Ψ),其中x和y表示拖拉机的位置坐标,Ψ表示拖拉机的航向角,每个节点以中心点表示父节点,混合A*算法的子节点数量为6,从位于栅格中的任意位置生成,节点之间以三维运动学状态连接,且搜索出的路径能够满足拖拉机的非完整性约束,即利用混合A*算法规划求解得到全局参考路径。Step (4), expand the child nodes according to the cost function of step S2 and the system constraints of step S3 to obtain the global reference path, consider the kinematic constraints of the tractor, and use the hybrid A* algorithm to change the node expansion method: each node contains the state information of the tractor (x, y, Ψ), where x and y represent the position coordinates of the tractor, Ψ represents the heading angle of the tractor, and each node represents the parent node with the center point. The number of child nodes of the hybrid A* algorithm is 6, which are generated from any position in the grid. The nodes are connected by three-dimensional kinematic states, and the searched path can meet the non-integrity constraints of the tractor, that is, the global reference path is obtained by planning and solving using the hybrid A* algorithm.

步骤(5),进行基于动态规划算法的局部避障优化之前,将拖拉机位姿信息进行Frenet坐标与Cartesian坐标转换。In step (5), before performing local obstacle avoidance optimization based on the dynamic programming algorithm, the tractor posture information is converted into Frenet coordinates and Cartesian coordinates.

Frenet坐标系使用曲率和切线方向来表示路径,可以准确描述路径曲率变化以及拖拉机相对于参考路径位置偏移,道路可表示为参考线和横向偏移的函数。如图5所示,将二维的路径规划任务简化为基于S-L图的一维问题,以纵向位移s和横向位移l表示实际路径与参考路径之间的相互位置关系。The Frenet coordinate system uses curvature and tangent direction to represent the path, which can accurately describe the change in path curvature and the position offset of the tractor relative to the reference path. The road can be represented as a function of the reference line and the lateral offset. As shown in Figure 5, the two-dimensional path planning task is simplified to a one-dimensional problem based on the S-L diagram, and the longitudinal displacement s and lateral displacement l are used to represent the relative position relationship between the actual path and the reference path.

为使路径规划和跟踪控制高效且易于实现,一般在路径规划阶段采用Frenet坐标系进行道路描述,而在跟踪控制阶段采用Cartesian坐标系描述直观和简化的控制。Cartesian坐标系下,某一点的拖拉机运动状态可以表示为[x,y,v,Ψ,a,κ];a是cartesian坐标系下的纵向加速度,而在Frenet坐标系下,拖拉机运动状态可以表示为其中,/>为纵向车速,/>为纵向加速度,/>为横向车速,/>为横向加速度,l′为l对s的导数,l″为l′对/>的导数。In order to make path planning and tracking control efficient and easy to implement, the Frenet coordinate system is generally used to describe the road in the path planning stage, and the Cartesian coordinate system is used to describe the intuitive and simplified control in the tracking control stage. In the Cartesian coordinate system, the motion state of the tractor at a certain point can be expressed as [x, y, v, Ψ, a, κ]; a is the longitudinal acceleration in the Cartesian coordinate system, while in the Frenet coordinate system, the motion state of the tractor can be expressed as Among them,/> is the longitudinal speed, /> is the longitudinal acceleration, /> is the lateral speed, /> is the lateral acceleration, l' is the derivative of l with respect to s, l" is the derivative of l' with respect to /> The derivative of .

Cartesian坐标系转Frenet坐标系的公式为:The formula for converting Cartesian coordinate system to Frenet coordinate system is:

Frenet坐标系转Cartesian坐标系的公式为:The formula for converting Frenet coordinate system to Cartesian coordinate system is:

其中,和/>为Frenet坐标系下纵向车速和纵向加速度,/>和/>为Frenet坐标系下横向车速和横向加速度,l′为l对s的导数,l″为/>对/>的导数,sr为期望纵向位移,xr和yr为Cartesian坐标系下期望横向位置和纵向位置,κr为参考路径曲率,κ′r为参考路径曲率对s的导数,ΔΨ=Ψ-Ψr,Ψr为参考航向角。in, and/> are the longitudinal speed and longitudinal acceleration in the Frenet coordinate system,/> and/> is the lateral vehicle speed and lateral acceleration in the Frenet coordinate system, l′ is the derivative of l with respect to s, and l″ is /> Yes/> , s r is the desired longitudinal displacement, x r and y r are the desired lateral position and longitudinal position in the Cartesian coordinate system, κ r is the reference path curvature, κ′ r is the derivative of the reference path curvature with respect to s, ΔΨ=Ψ-Ψ r , Ψ r is the reference heading angle.

步骤(6),根据步骤S4获得的全局参考路径以及步骤S5的坐标转换方法,利用S-L图对全局参考路径进行优化,并获得连续、平滑的期望路径。Step (6), based on the global reference path obtained in step S4 and the coordinate transformation method in step S5, the global reference path is optimized using the S-L graph to obtain a continuous and smooth desired path.

采用动态规划算法对参考路径进行优化,求解过程如图6所示。首先,根据场景中的障碍物信息构建Frenet坐标系下的S-L图,通过在图中撒点并初始化将空间离散化。其次,设置合理的成本函数,为每个节点分配一个代价值以描述相邻单元之间的路径选择关系。主要考虑障碍物的位置、拖拉机的当前位置和目标位置等因素,确保在避免碰撞的同时能够找到最小代价路径。代价函数J由路径与静态障碍物的安全距离代价函数Jobs、平滑性代价函数Js以及偏离参考路径程度代价函数Jl描述:The reference path is optimized using a dynamic programming algorithm, and the solution process is shown in Figure 6. First, the SL graph in the Frenet coordinate system is constructed based on the obstacle information in the scene, and the space is discretized by scattering points in the graph and initializing it. Secondly, a reasonable cost function is set to assign a cost value to each node to describe the path selection relationship between adjacent units. The main factors considered are the location of the obstacle, the current location of the tractor, and the target location, to ensure that the minimum cost path can be found while avoiding collisions. The cost function J is described by the safety distance cost function J obs between the path and the static obstacle, the smoothness cost function J s , and the deviation cost function J l from the reference path:

J=Jobs+Js+Jl (13)J=J obs +J s +J l (13)

路径与静态障碍物的距离代价函数Jobs可以表示为:The distance cost function J obs between the path and the static obstacle can be expressed as:

其中,dmax为最大碰撞距离,dmin为最小碰撞距离,[dmin,dmax]为碰撞缓冲区间,frisk为单调递减的碰撞风险函数,越靠近障碍物,frisk值越大,即越容易发生碰撞风险。Among them, d max is the maximum collision distance, d min is the minimum collision distance, [d min ,d max ] is the collision buffer zone, and f risk is a monotonically decreasing collision risk function. The closer to the obstacle, the larger the f risk value, which means the greater the risk of collision.

平滑性代价函数Js可以表示为:The smoothness cost function J s can be expressed as:

其中,t0为路径规划开始时间,ts为路径规划结束时间,ω1、ω2、ω3为平滑性权重系数,分别代表路径横向位移、路径曲率以及路径曲率的变化率,l″′为对/>的导数。Where t 0 is the start time of path planning, t s is the end time of path planning, ω 1 , ω 2 , ω 3 are smoothness weight coefficients, representing the path lateral displacement, path curvature, and the rate of change of path curvature, respectively, and l″′ is Yes/> The derivative of .

偏离参考路径程度的代价函数Jl可以表示为:The cost function J l of the degree of deviation from the reference path can be expressed as:

其中,ωl为偏离参考路径程度权重系数,lr为参考线函数。参考线可以指引拖拉机行驶的方向,对于结构化场景,通常将道路中心线作为参考线;对于非结构化场景,可以选择规划的参考路径作为参考线。Among them, ω l is the weight coefficient of the degree of deviation from the reference path, and l r is the reference line function. The reference line can guide the direction of the tractor. For structured scenes, the center line of the road is usually used as the reference line; for unstructured scenes, the planned reference path can be selected as the reference line.

采用递推的方法从起点到终点进行搜索,通过计算每个节点到终点的最小代价值来更新当前节点的代价值,并保存路径信息以供回溯。在所有节点计算完毕之后,筛选得到所有路径采样节点的最小连接代价。最后,对该路径的节点信息进行坐标转换,将相关坐标信息由Frenet坐标系的S-L图变换到Cartesian坐标系下的X-Y图,用于跟踪控制。A recursive method is used to search from the starting point to the end point. The cost value of the current node is updated by calculating the minimum cost value from each node to the end point, and the path information is saved for backtracking. After all nodes are calculated, the minimum connection cost of all path sampling nodes is screened. Finally, the node information of the path is transformed from the S-L diagram of the Frenet coordinate system to the X-Y diagram of the Cartesian coordinate system for tracking control.

利用五次多项式对给定的节点进行插值和拟合,将离散节点连续化,得到符合要求的平滑路径曲线。五次多项式曲线可以通过以下公式表示:Use the quintic polynomial to interpolate and fit the given nodes, make the discrete nodes continuous, and obtain a smooth path curve that meets the requirements. The quintic polynomial curve can be expressed by the following formula:

其中,t代表时间,a10~a(N-1)5代表五次多项式的系数,τ(s)代表多段五次多项式的集合,s5代表s的五次方。假设某一段的五次多项式起点状态信息为[sj,lj,l′j,l″j],终点状态信息为[sk,lk,l′k,l″k],将起点与终点状态信息带入式(17),可得:Where t represents time, a 10 ~a (N-1)5 represent the coefficients of the quintic polynomial, τ(s) represents the set of multiple quintic polynomials, and s 5 represents the fifth power of s. Assuming that the starting state information of a quintic polynomial is [s j ,l j ,l′ j ,l″ j ], and the end state information is [s k ,l k ,l′ k ,l″ k ], substituting the starting and end state information into equation (17), we can obtain:

其中,ak0~ak5代表每一段五次多项式系数;Among them, a k0 ~ a k5 represent the coefficients of each section of the quintic polynomial;

求解式(18)的线性方程组,可确定五次多项式曲线的所有系数,实现对参考路径的优化。By solving the linear equations of equation (18), all coefficients of the quintic polynomial curve can be determined, thus optimizing the reference path.

步骤(7),基于S-T图的速度规划Step (7): Speed planning based on S-T graph

S-T图可用于描述拖拉机与动态障碍物之间的运动关系。采用动态规划算法,可将速度规划问题转化为S-T图中的可行节点搜索问题。某一时刻的速度规划是在该时刻路径规划已经完成的前提下进行的。进行动态避障,则需要在Frenet坐标系下将动态障碍物位置及预测的未来位置投影到S-T图中。如图6所示,记动态障碍物切入的时刻为Tin,切出的时刻为Tout,长度S1S2与动态障碍物的宽度有关。The ST graph can be used to describe the motion relationship between the tractor and the dynamic obstacle. The speed planning problem can be transformed into a feasible node search problem in the ST graph by using the dynamic programming algorithm. The speed planning at a certain moment is performed on the premise that the path planning at that moment has been completed. To perform dynamic obstacle avoidance, the dynamic obstacle position and the predicted future position need to be projected into the ST graph in the Frenet coordinate system. As shown in Figure 6, the moment when the dynamic obstacle cuts in is T in , and the moment when it cuts out is T out . The length S 1 S 2 is related to the width of the dynamic obstacle.

S-T图的构建依赖于对动态障碍物轨迹的预测,可以采用恒速度模型对动态障碍物的轨迹进行预测:The construction of the S-T diagram depends on the prediction of the trajectory of dynamic obstacles. The constant velocity model can be used to predict the trajectory of dynamic obstacles:

式中,障碍物初始位置为(s0,l0),横纵向速度分别为和/>(st,lt)为t时刻的障碍物预测轨迹。In the formula, the initial position of the obstacle is (s 0 ,l 0 ), and the lateral and longitudinal velocities are and/> (s t ,l t ) is the predicted trajectory of the obstacle at time t.

将动态障碍物投影到S-T图上,并在S-T图中采样。采样过程中,每个时刻都会产生一系列采样点,即多个待选解。为得到最优解,需定义一个代价函数来评价各个待选解的优劣。代价函数主要考虑安全性、稳定性以及期望速度等因素。Dynamic obstacles are projected onto the S-T graph and sampled in the S-T graph. During the sampling process, a series of sampling points, i.e., multiple candidate solutions, are generated at each moment. In order to obtain the optimal solution, a cost function needs to be defined to evaluate the pros and cons of each candidate solution. The cost function mainly considers factors such as safety, stability, and expected speed.

安全性指拖拉机在速度规划过程中应尽可能与动态障碍物保持安全距离,以确保行驶的安全。在存在障碍物的时间区间内,引入一个安全性代价函数J1Safety means that the tractor should keep a safe distance from dynamic obstacles as much as possible during speed planning to ensure driving safety. In the time interval where obstacles exist, a safety cost function J 1 is introduced:

其中,ωobs为障碍物权重系数,正数kb表示拖拉机远离动态障碍物的程度,Sobs表示直线拟合动态障碍物形成的边界,Sb表示拖拉机移动的边界。如果在某个时间段内,拖拉机受到多个动态障碍物的影响,可以将多个安全性代价函数J1进行累加。Where ω obs is the obstacle weight coefficient, the positive number k b indicates the degree to which the tractor is away from the dynamic obstacle, S obs indicates the boundary formed by the straight line fitting the dynamic obstacle, and S b indicates the boundary of the tractor movement. If the tractor is affected by multiple dynamic obstacles within a certain period of time, multiple safety cost functions J 1 can be accumulated.

稳定性可以等价为速度规划曲线的平滑程度,在代价函数中应使拖拉机的速度和速度变化率尽量小。采样点之间以五次多项式进行连接,每个时间区间上的加速度及其变化率可以方便地解析表达。为使拖拉机的速度和速度变化率尽量小,可以设置舒适性的代价函数J2Stability can be equivalent to the smoothness of the speed planning curve. In the cost function, the tractor speed and speed change rate should be minimized. The sampling points are connected by a fifth-order polynomial, and the acceleration and its change rate in each time interval can be easily expressed analytically. In order to minimize the tractor speed and speed change rate, the comfort cost function J 2 can be set:

其中,ωv和ωa分别表示速度和速度变化率的权重系数。Among them, ω v and ω a represent the weight coefficients of speed and speed change rate respectively.

期望速度vref不考虑移动障碍物影响,由道路限速、路径曲率以及其他交通规则决定,可以定义相应的代价函数J3The expected speed v ref does not consider the impact of moving obstacles and is determined by the road speed limit, path curvature and other traffic rules. The corresponding cost function J 3 can be defined as:

其中,ωr表示与期望速度偏离的权重系数。Where ω r represents the weight coefficient of deviation from the expected speed.

整合上述代价函数,得到速度规划的代价函数:Integrating the above cost functions, we get the cost function of speed planning:

J=J1+J2+J3 (23)J=J 1 +J 2 +J 3 (23)

最后,利用动态规划算法在S-T图中求解出一条代价最低的速度曲线,以确定拖拉机在面对动态障碍物时的速度决策方式;根据得到的最优速度规划解,有效规避动态障碍物。Finally, a dynamic programming algorithm is used to solve a speed curve with the lowest cost in the S-T diagram to determine the speed decision-making method of the tractor when facing dynamic obstacles; based on the obtained optimal speed planning solution, dynamic obstacles can be effectively avoided.

所述实施例为本发明的优选的实施方式,但本发明并不限于上述实施方式,在不背离本发明的实质内容的情况下,本领域技术人员能够做出的任何显而易见的改进、替换或变型均属于本发明的保护范围。The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.

Claims (8)

1. An unstructured scene-oriented automatic driving tractor path planning method is characterized by comprising the following steps of:
S1, establishing an environment map model; determining the specific position of the static obstacle;
S2, improving the heuristic function by utilizing Reeds-Shepp curve model to obtain a cost function of the mixed A-algorithm;
s3, determining constraint conditions of the system, ensuring obstacle avoidance safety and adapting to the motion characteristics of the tractor;
s4, expanding child nodes according to the cost function in the step S2 and the system constraint in the step S3, and acquiring a global reference path;
S5, before the local obstacle avoidance optimization based on the dynamic programming algorithm is carried out, converting Frenet coordinates and Cartesian coordinates of the tractor pose information;
S6, optimizing the global reference path by using the S-L diagram according to the global reference path obtained in the step S4 and the coordinate conversion method in the step S5, and obtaining a continuous and smooth expected path;
S7, carrying out speed planning by using the coordinate conversion method in the step S5 and the expected path planning result in the step S6, and determining the expected speed for effectively avoiding the dynamic obstacle.
2. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 1, wherein the specific method of the step S1 is as follows:
Establishing a grid map, discretizing the working environment of the tractor into a plurality of independent square grids, wherein each grid corresponds to a specific position in the real working environment, marking the corresponding grid as occupying or idle according to the obstacle condition in the real environment, and forming an environment map model by all marked grids;
In the grid map, the occupied grid is represented by black, and the corresponding value in the numerical matrix is 1; the empty grid is represented by white, the corresponding value in the numerical matrix is 0, and the mathematical model of the grid map is represented as:
Wherein a represents the whole environment map model, m and p are the number of rows and the number of columns after the environment map is rasterized, a ij represents a grid at (i, j), a ij =0 represents that the grid is in an idle state, i.e. no obstacle exists; a ij =1 indicates the grid occupied state, i.e., the presence of an obstacle.
3. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 1, wherein the specific method of the step S2 is as follows:
The core idea of the algorithm is to guide the traversing direction of the algorithm by using a heuristic function, and evaluate each node of the network according to a cost function f (n), which can be expressed as:
f(n)=g(n)+h(n,g)(2)
Wherein g (n) is the actual cost from the initial node to the current node, h (n, g) is the distance heuristic function from the current node n to the target node g, and is used for evaluating the predicted distance cost from the current node n to the target node g;
In the searching process, the Euclidean distance h 1 (n, g) is adopted as the corresponding distance heuristic function h (n, g) so as to neglect the non-integrity constraint of the tractor and consider the obstacle avoidance environment constraint:
Wherein, (x n,yn) is the coordinates of the current node n, (x g,yg) is the coordinates of the path-target point;
The Reeds-Shepp curve model consists of two turns and a section of straight line, is used for determining the shortest path of a tractor or other moving bodies under a given constraint condition, and is arranged in parallel by utilizing a distance heuristic function commonly used by an A-algorithm and the Reeds-Shepp curve model to obtain a mixed A-algorithm, namely, a larger value is selected as a heuristic function value for searching, and meanwhile, the incomplete kinematic constraint and the highest passing efficiency of the tractor are met:
h(n,g)=max(h1(n,g),h2(n,g)) (4)
Wherein h 2 (n, g) represents a distance heuristic function adopting a Reeds-Shepp curve model, and obtaining the shortest path from the current node to the target position under the condition of ignoring environmental barriers and considering the non-integrity constraint of the tractor;
In the hybrid a algorithm, each node records the specific speed and front wheel rotation angle of the parent node expanding to the current node, and in order to prevent the frequent change of the vehicle speed v and the front wheel rotation angle delta f, an additional cost function g 1 (n) is added in the actual cost g (n):
g1(n)=ωg1·|vn-vn-1|+ωg2·|δfnfn-1| (5)
Wherein omega g1 is a weight coefficient when the running state of the automobile is changed; omega g2 is the weight coefficient when the running direction of the automobile changes; v n is the speed of the vehicle when the vehicle is driving to the current node n, v n-1 is the speed of the vehicle when the vehicle is driving to the previous node n-1, delta fn is the front wheel angle when the vehicle is driving to the current node n, delta fn-1 is the front wheel angle when the vehicle is driving to the previous node n-1.
4. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 1, wherein the specific method of the step S3 is as follows: rectangular and polygonal shapes are chosen as the contours of the tractor and the obstacle, the tractor is considered as rectangular, the tractor size and shape are described by the tractor boundary function, and the corresponding four vertices M 1~M4 are represented as the abscissa and the ordinate:
Wherein, (x, y) is the position coordinates of the tractor, f is the front suspension distance of the tractor, r is the rear suspension distance of the tractor, L is the wheelbase of the tractor, w is the dimension parameter of the tractor with the width of the vehicle body, and ψ is the course angle of the tractor;
Judging whether the tractor collides with an obstacle or not, determining whether the tractor boundary and the obstacle outline coincide or not, checking the position relation between the coordinates of the tractor vertexes and the convex polygon N 1N2…Nq by adopting a triangle area method, enabling one vertex coordinate of the tractor to be M i, enabling a connection point M i and every two adjacent vertexes of the convex polygon to form a triangle, accumulating the areas of the triangles, and determining that a point M i is positioned outside the convex polygon if the sum of the areas obtained by accumulation is larger than the total area of the convex polygon; if the sum of the areas is less than or equal to the total area of the convex polygon, the point M i may be located inside the polygon, as shown in formula (7):
Wherein S represents the area of each polygon;
Area of convex polygon The method can solve a plurality of triangles, collision can be necessarily generated at the vertex on a two-dimensional plane, each vertex of the vehicle body rectangle is always restrained outside the obstacle polygon, each vertex of the obstacle polygon is restrained to be positioned outside the vehicle body rectangle, constraint conditions f 1 and f 2 of the point M i positioned outside the convex polygon N 1N2…Nn are obtained by using the formula (7), and the following obstacle avoidance constraint is established:
Wherein, gamma (N 1,…Nn) is a set of convex polygon vertexes, and χ (M 1,…M4) is a set of four vertexes of the rectangle of the vehicle body;
from the kinematic characteristics of the tractor, it is known that the curvature κ of the path travelled by the tractor is only related to the front wheel angle δ f:
excessive front wheel turning angle increases the curvature of the path, while reducing the driving comfort, and at the same time aggravates the mechanical wear of the tractor, so by limiting the tractor front wheel turning angle, the curvature of the planned path is constrained:
f|≤arctan(Lκmax) (10)
And finally, determining obstacle avoidance constraint and front wheel steering angle constraint solved by the mixed A algorithm, ensuring the safety of obstacle avoidance, and adapting to the motion characteristics of the tractor.
5. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 1, wherein the specific method of the step S4 is as follows: considering the kinematic constraint of the tractor, adopting a hybrid A algorithm to change the expansion mode of the nodes: each node contains state information (x, y, ψ) of the tractor, wherein x and y represent position coordinates of the tractor, ψ represents a course angle of the tractor, each node represents a parent node by a central point, the number of child nodes of the hybrid a-algorithm is 6, the nodes are generated from any position in a grid, the nodes are connected by three-dimensional kinematic states, and the searched paths can meet the non-integrity constraint of the tractor, namely, the global reference paths are obtained by planning and solving by using the hybrid a-algorithm.
6. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 1, wherein the specific method of the step S5 is as follows: converting road description in the steps S1-S5 by using a Cartesian coordinate system into description by using a Frenet coordinate system, wherein the tractor motion state of a certain point is expressed as [ x, y, v, ψ, a, kappa ]; a is the vehicle acceleration in cartesian's coordinate system, while in Frenet's coordinate system, the tractor motion state is expressed asWherein s is longitudinal displacement,/>For longitudinal speed of vehicle,/>Is longitudinal acceleration, l is transverse displacement,/>For transverse speed,/>For lateral acceleration, l 'is the derivative of l with s, l' is/>Pair/>Is a derivative of (2);
the formula for converting the Cartesian coordinate system into the Frenet coordinate system is as follows:
the formula for converting the Frenet coordinate system into the Cartesian coordinate system is as follows:
Where s r is the desired longitudinal displacement, x r and y r are the desired lateral and longitudinal positions in the Cartesian coordinate system, κ r is the reference path curvature, κ' r is the derivative of the reference path curvature with s, Δψ=ψ - ψ rr is the reference heading angle.
7. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 6, wherein the specific method in the step S6 is as follows: firstly, constructing a relation diagram representing a road and an obstacle under a Frenet coordinate system according to obstacle information in a scene, namely an S-L diagram, and discretizing a space by scattering points in the S-L diagram and initializing; secondly, setting a cost function, and distributing a cost value for each node to describe the path selection relation between adjacent units; taking the position of an obstacle, the current position of a tractor and the target position into consideration, optimizing a reference path by adopting a dynamic programming algorithm, ensuring that the minimum cost path can be found while collision is avoided, and describing a cost function J by a safe distance cost function J obs, a smoothness cost function J s and a deviation reference path degree cost function J l of the path and the static obstacle:
J=Jobs+Js+Jl (13)
The safe distance cost function J obs for a path to a static obstacle is expressed as:
Wherein d max is the maximum collision distance, d min is the minimum collision distance, d min,dmax is the collision buffer zone, f risk is a monotonically decreasing collision risk function, and the closer to an obstacle, the larger the f risk value is, namely the easier the collision risk is generated;
The smoothness cost function J s is expressed as:
wherein t 0 is the path planning start time, t s is the path planning end time, ω 1、ω2、ω3 is the smoothness weight coefficient, and l' "is the rate of change of the path lateral displacement, the path curvature and the path curvature Pair/>Is a derivative of (2);
The cost function J l of the degree of departure from the reference path can be expressed as:
Wherein ω l is a deviation reference path degree weight coefficient, and l r is a reference line function;
Searching from a starting point to a terminal point by adopting a recursive method, updating the cost value of the current node by calculating the minimum cost value from each node to the terminal point, storing path information for backtracking, and screening to obtain the minimum connection cost of all path sampling nodes after all nodes are calculated;
Then, interpolation and fitting are carried out on given nodes by using a fifth-order polynomial, discrete nodes are continuous, and a smooth path curve meeting the requirements is obtained, wherein the fifth-order polynomial curve can be expressed by the following formula:
Where t represents time, a 10~a(N-1)5 represents the coefficient of the polynomial of fifth degree, τ(s) represents the set of the polynomial of fifth degree, s 5 represents the square of s, let s j,lj,l′j,l″j be the start point state information, s k,lk,l′k,l″k be the end point state information, and let the start point and end point state information be the formula (17) to obtain:
wherein a k0~ak5 represents the polynomial coefficient of each segment of fifth degree;
Solving a linear equation set of the equation (18), and determining all coefficients of a quintic polynomial curve to realize optimization of a reference path; and finally, carrying out coordinate conversion on the node information of the path, and transforming the related position coordinate information from an S-L diagram of a Frenet coordinate system to an X-Y diagram of a Cartesian coordinate system to acquire the expected path for tracking control.
8. The method for planning the path of the automatic driving tractor facing the unstructured scene according to claim 7, wherein the specific method of the step S7 is as follows: the moment of cutting in the dynamic obstacle is recorded as T in, the moment of cutting in the dynamic obstacle is recorded as T out, the length S 1S2 is related to the width of the dynamic obstacle, the construction of the S-T diagram depends on the prediction of the track of the dynamic obstacle, and the track of the dynamic obstacle is predicted by adopting a constant speed model:
Wherein the initial position of the obstacle is an obstacle prediction track with the (s 0,l0),(st,lt) time t;
The dynamic obstacle is projected onto an S-T diagram, sampling is carried out in the S-T diagram, a series of sampling points, namely a plurality of solutions to be selected, are generated at each moment in the sampling process, a cost function is required to be defined to evaluate the advantages and disadvantages of the solutions to be selected, the safety refers to that the tractor keeps a safety distance with the dynamic obstacle as far as possible in the speed planning process so as to ensure the driving safety, and a safety cost function J 1 is introduced in the time interval when the obstacle exists:
wherein ω obs is an obstacle weight coefficient, positive number k b represents the degree to which the tractor is far away from the dynamic obstacle, S obs represents the boundary formed by fitting a straight line to the dynamic obstacle, and S b represents the boundary of the movement of the tractor; if the tractor is affected by a plurality of dynamic obstacles in a certain time period, accumulating a plurality of safety cost functions J 1;
to minimize the speed and speed change rate of the tractor, a comfort cost function J 2 is set:
Wherein ω v and ω a represent weight coefficients of the speed and the speed change rate, respectively;
The desired speed v ref is determined by road speed limit, path curvature and other traffic rules without considering the effect of moving obstacles, and defines a desired speed cost function J 3:
Wherein ω r represents a weight coefficient deviating from the desired speed;
and integrating the cost function to obtain a cost function of speed planning:
J=J1+J2+J3(23)
Finally, solving a speed curve with the lowest cost in the S-T diagram by utilizing a dynamic programming algorithm so as to determine a speed decision mode of the tractor when facing the dynamic obstacle; and transforming the relevant position and speed information from an S-T diagram of the Frenet coordinate system to an X-Y diagram of the Cartesian coordinate system, and obtaining the expected speed for effectively avoiding the dynamic obstacle.
CN202410463807.2A 2024-04-17 2024-04-17 Unstructured scene-oriented automatic driving tractor path planning method Active CN118192601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410463807.2A CN118192601B (en) 2024-04-17 2024-04-17 Unstructured scene-oriented automatic driving tractor path planning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410463807.2A CN118192601B (en) 2024-04-17 2024-04-17 Unstructured scene-oriented automatic driving tractor path planning method

Publications (2)

Publication Number Publication Date
CN118192601A true CN118192601A (en) 2024-06-14
CN118192601B CN118192601B (en) 2024-10-25

Family

ID=91403626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410463807.2A Active CN118192601B (en) 2024-04-17 2024-04-17 Unstructured scene-oriented automatic driving tractor path planning method

Country Status (1)

Country Link
CN (1) CN118192601B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118584961A (en) * 2024-07-26 2024-09-03 浙江有鹿机器人科技有限公司 A cleaning machine vehicle edge-adhering method, system, electronic equipment and cleaning machine vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113932823A (en) * 2021-09-23 2022-01-14 同济大学 Unmanned multi-target-point track parallel planning method based on semantic road map
CN114779788A (en) * 2022-05-27 2022-07-22 昆明理工大学 A Path Planning Method Based on Improved A* Algorithm
WO2022193584A1 (en) * 2021-03-15 2022-09-22 西安交通大学 Multi-scenario-oriented autonomous driving planning method and system
CN116674529A (en) * 2023-06-16 2023-09-01 无锡学院 Parking path planning and parking method for unstructured scene automatic driving vehicle
CN116952244A (en) * 2023-07-21 2023-10-27 常州工学院 Local path planning method and system combining driver cognitive risk and vehicle instability risk

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022193584A1 (en) * 2021-03-15 2022-09-22 西安交通大学 Multi-scenario-oriented autonomous driving planning method and system
CN113932823A (en) * 2021-09-23 2022-01-14 同济大学 Unmanned multi-target-point track parallel planning method based on semantic road map
CN114779788A (en) * 2022-05-27 2022-07-22 昆明理工大学 A Path Planning Method Based on Improved A* Algorithm
CN116674529A (en) * 2023-06-16 2023-09-01 无锡学院 Parking path planning and parking method for unstructured scene automatic driving vehicle
CN116952244A (en) * 2023-07-21 2023-10-27 常州工学院 Local path planning method and system combining driver cognitive risk and vehicle instability risk

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李环宇: "四轮转向车辆避障换道轨迹规划与跟踪研究", 中国知网, 21 March 2023 (2023-03-21), pages 27 - 29 *
韩龙飞: "非结构化场景下自动驾驶汽车轨迹规划与运动控制算法研究", 中国优秀硕士学位论文全文数据库, no. 03, 15 March 2022 (2022-03-15), pages 13 - 16 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118584961A (en) * 2024-07-26 2024-09-03 浙江有鹿机器人科技有限公司 A cleaning machine vehicle edge-adhering method, system, electronic equipment and cleaning machine vehicle

Also Published As

Publication number Publication date
CN118192601B (en) 2024-10-25

Similar Documents

Publication Publication Date Title
CN108519773B (en) Path planning method for unmanned vehicle in structured environment
CN113359757B (en) A method for path planning and trajectory tracking of unmanned vehicles
CN111426330B (en) Path generation method and device, unmanned transportation system and storage medium
US11460311B2 (en) Path planning method, system and device for autonomous driving
CN109764886B (en) Path planning method
CN110954122B (en) Automatic driving track generation method under high-speed scene
Lan et al. Continuous curvature path planning for semi-autonomous vehicle maneuvers using RRT
CN107168305A (en) Unmanned vehicle method for planning track based on Bezier and VFH under the scene of crossing
CN112284393A (en) A global path planning method and system for an intelligent mobile robot
CN112327856A (en) Robot path planning method based on improved A-star algorithm
CN106371439A (en) Unified automatic driving transverse planning method and system
CN118192601B (en) Unstructured scene-oriented automatic driving tractor path planning method
CN114815853B (en) A path planning method and system considering road obstacle characteristics
CN116185014A (en) Intelligent vehicle global optimal track planning method and system based on dynamic planning
CN111896004A (en) A method and system for vehicle trajectory planning in narrow aisle
CN117109620A (en) Automatic driving path planning method based on interaction of vehicle behaviors and environment
CN116858254A (en) Single steering wheel AGV path planning method
CN117968714A (en) A navigation path planning system and method for unmanned vehicles on complex and rugged terrain cluster maps
CN116243724A (en) Path Planning Method for Unmanned Aerial Vehicle Based on A* Algorithm and Improved Minimization Snap
CN112286211A (en) Environment modeling and AGV path planning method for irregular layout workshop
CN117367446A (en) Unmanned vehicle path planning method and system based on improved A-TEB fusion algorithm
CN113867357B (en) Low-delay path planning algorithm for industrial vehicle
CN113815645B (en) Automatic driving behavior decision system and motion planning method suitable for annular intersection
CN112706770B (en) Vehicle entry control system and method considering steer-by-wire delay
Smit et al. Informed sampling-based trajectory planner for automated driving in dynamic urban environments

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