CN111811517A - A dynamic local path planning method and system - Google Patents
A dynamic local path planning method and system Download PDFInfo
- Publication number
- CN111811517A CN111811517A CN202010681054.4A CN202010681054A CN111811517A CN 111811517 A CN111811517 A CN 111811517A CN 202010681054 A CN202010681054 A CN 202010681054A CN 111811517 A CN111811517 A CN 111811517A
- Authority
- CN
- China
- Prior art keywords
- path
- clockwise
- counterclockwise
- order
- coordinates
- 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
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000014509 gene expression Effects 0.000 claims abstract description 22
- 238000011156 evaluation Methods 0.000 claims abstract description 10
- 238000009499 grossing Methods 0.000 claims abstract description 8
- 238000004458 analytical method Methods 0.000 claims description 23
- 238000013507 mapping Methods 0.000 claims description 5
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 claims description 2
- 230000000875 corresponding effect Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 claims description 2
- 230000003750 conditioning effect Effects 0.000 claims 1
- 238000005070 sampling Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000011478 gradient descent method Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3407—Route searching; Route guidance specially adapted for specific applications
- G01C21/3415—Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3446—Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags or using precalculated routes
-
- 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/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0214—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Aviation & Aerospace Engineering (AREA)
- Manipulator (AREA)
Abstract
Description
技术领域technical field
本发明涉及机器人技术领域,特别是涉及一种动态局部路径规划方法及系统。The invention relates to the field of robotics technology, in particular to a dynamic local path planning method and system.
背景技术Background technique
路径规划是指机器人或AGV等可移动设备按照某些性能指标(如,距离、时间等)搜索一条从起始状态到目标状态的最优或次优路径。根据对环境信息掌握的程度将其分为2种:(1)基于环境先验完全信息的全局路径规划,又称静态或离线规划;(2)基于传感器信息的局部路径规划,又称动态或在线路径规划。在自动泊车的应用场景中,一般的局部路径规划方法如动态窗口算法,模糊逻辑算法,并不能考虑规划路径末端汽车的姿态,只能到达动态避障的效果,而dubin算法和reeds-sheep算法虽然可以考虑末端位姿问题,但是只能在无障碍物情况下路径规划。又比如在物流堆场中,想要插取已知位姿的托盘,现有算法并不能已在考虑末端姿态的基础上动态避障。Path planning refers to a mobile device such as a robot or AGV searching for an optimal or sub-optimal path from the starting state to the target state according to certain performance indicators (such as distance, time, etc.). According to the degree of mastery of environmental information, it can be divided into two types: (1) global path planning based on a priori complete information of the environment, also known as static or offline planning; (2) local path planning based on sensor information, also known as dynamic or offline planning. Online path planning. In the application scenario of automatic parking, general local path planning methods such as dynamic window algorithm and fuzzy logic algorithm cannot consider the attitude of the car at the end of the planned path, and can only achieve the effect of dynamic obstacle avoidance, while the dubin algorithm and reeds-sheep Although the algorithm can consider the end pose problem, it can only plan the path without obstacles. For another example, in a logistics yard, if you want to insert a pallet with a known pose, the existing algorithm cannot dynamically avoid obstacles based on the consideration of the end pose.
目前比较成熟的算法有A*算法,其地图格式也是使用栅格化的代价地图,但是A*算法A*算法在节点选取时固定采用8邻域扩展方式,周围至多只能选择8个运动方向,且运动角度限制为π/4的整数倍,不利于机器人转向,导致产生更多冗余节点,且无对冗余节点进行优化,使最终路径转折点多、不平滑。At present, the more mature algorithm is the A* algorithm, and its map format also uses a rasterized cost map, but the A* algorithm A* algorithm fixedly adopts the 8-neighbor expansion method when selecting nodes, and can only select at most 8 moving directions around. , and the movement angle is limited to an integer multiple of π/4, which is not conducive to the steering of the robot, resulting in the generation of more redundant nodes, and the redundant nodes are not optimized, so that the final path has many turning points and is not smooth.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是提供一种动态局部路径规划方法及系统,使得规划路径曲率连续,曲线光滑且符合机器人或AGV等可移动设备的运动特性。The technical problem to be solved by the present invention is to provide a dynamic local path planning method and system, so that the curvature of the planned path is continuous, the curve is smooth and conforms to the motion characteristics of movable equipment such as robots or AGVs.
本发明解决其技术问题所采用的技术方案是:提供一种动态局部路径规划方法,包括以下步骤:The technical solution adopted by the present invention to solve the technical problem is: a dynamic local path planning method is provided, comprising the following steps:
(1)获取运动体的起始位姿和终止位姿,并实时更新代价地图,判断规划路径为几阶路线,并通过数学表达式表示所述规划路径;(1) Obtaining the starting pose and ending pose of the moving body, and updating the cost map in real time, judging that the planned path is a several-order route, and expressing the planned path by mathematical expressions;
(2)离散化所述数学表达式表示的规划路径得到离散的路径点,将离散的路径点转化为栅格坐标,根据栅格坐标判断所述规划路径是否为不可行区域,若是不可行区域则舍弃所述规划路径,否则将所述规划路径作为可能的路径;(2) Discretize the planned path represented by the mathematical expression to obtain discrete path points, convert the discrete path points into grid coordinates, and judge whether the planned path is an infeasible area according to the grid coordinates, and if it is an infeasible area then discard the planned path, otherwise use the planned path as a possible path;
(3)通过评价函数评价所有可能的路径,并选出得分最高的一条路径进行平滑处理。(3) Evaluate all possible paths through the evaluation function, and select the one with the highest score for smoothing.
所述步骤(1)中判断规划路径为几阶路线,并通过数学表达式表示所述规划路径前,需要将原坐标系下的全局地图转换为以终止位姿的位置为原点、姿态方向为Y轴的设定坐标系下的全局地图,转换方式为(x1,y1)=([x·cos(θ)+y·sin(θ)+X],[y·cos(θ)-x·sin(θ)+Y]),其中,(x,y)为原坐标系下的坐标,θ为原坐标系X轴与设定坐标系X轴的夹角,(X,Y)为原坐标系原点与设定坐标系原点的差值。In the step (1), it is judged that the planned path is a several-order route, and before the planned path is represented by a mathematical expression, it is necessary to convert the global map under the original coordinate system into the position of the termination pose as the origin and the pose direction as: The global map in the set coordinate system of the Y axis, the conversion method is (x 1 ,y 1 )=([x·cos(θ)+y·sin(θ)+X],[y·cos(θ)- x sin(θ)+Y]), where (x, y) is the coordinate in the original coordinate system, θ is the angle between the X axis of the original coordinate system and the X axis of the set coordinate system, and (X, Y) is The difference between the origin of the original coordinate system and the origin of the set coordinate system.
所述步骤(1)中判断规划路径为几阶路线时需要对每个阶的定义,约束条件和相应的动作进行分析,其中,一阶分析如下:In the step (1), when judging that the planned path is a several-order route, it is necessary to analyze the definition, constraint conditions and corresponding actions of each order, wherein the first order analysis is as follows:
一阶路径定义:运动体从当前位姿通过一段方向变化就能到终点位置;First-order path definition: the moving body can reach the end position through a direction change from the current pose;
一阶路径约束条件:First-order path constraints:
(a)d1>Rmin且d2>Rmin,其中,d1和d2分别为运动体到(Rmin,0)和(-Rmin,0)的距离,Rmin为最小转弯半径;若不满足约束条件(a)则进行三阶分析,若满足则验证约束条件(b);(a) d1>R min and d2>R min , where d1 and d2 are the distances from the moving body to (R min ,0) and (-R min ,0) respectively, and R min is the minimum turning radius; Constraint (a), then perform third-order analysis, and if satisfied, verify constraint (b);
(b)L型路径或R型路径,其中,O为原点,坐标为(0,0);Cc为X轴上上圆心,坐标为(xc,0),xc∈(-∞,-Rmin)∪(Rmin,∞);V为运动体的位姿,坐标为(xv,yv,θv),其中,xv∈(-∞,-Rmin)∪(Rmin,∞),yv>0,θv∈[0,2π];β为和的夹角,β∈[0,π],R型表示顺时针,L型表示逆时针;若满足约束条件(b)则跳出阶的分析,否则进入二阶分析。(b) L-path or R-type path, where O is the origin and the coordinates are (0,0); C c is the center of the circle on the X axis, and the coordinates are (x c ,0), x c ∈(-∞,-R min )∪(R min ,∞); V is the pose of the moving body, and the coordinates are (x v ,y v ,θ v ), where x v ∈(-∞,-R min )∪(R min ,∞),y v > 0,θ v ∈[0,2π]; β is and The included angle of β∈[0,π], R type means clockwise, L type means counterclockwise; if the constraint condition (b) is satisfied, it will jump out of the first-order analysis, otherwise it will enter the second-order analysis.
所述二阶分析如下:The second-order analysis is as follows:
二阶路径定义:运动体不能通过一阶分析到达目标点,需要调整一次位姿能够使运动体下一个时刻的位姿能够通过一阶分析;Second-order path definition: The moving body cannot reach the target point through the first-order analysis, and it is necessary to adjust the pose once so that the pose of the moving body at the next moment can pass the first-order analysis;
二阶路径约束条件:Second-order path constraints:
(A)d1>Rmin且d2>Rmin,其中,d1和d2分别为运动体到(Rmin,0)和(-Rmin,0)的距离,Rmin为最小转弯半径;若不满足约束条件(A)则进行三阶分析,若满足则验证约束条件(B);(A) d1>R min and d2>R min , where d1 and d2 are the distances from the moving body to (R min ,0) and (-R min ,0) respectively, and R min is the minimum turning radius; If the constraint (A) is satisfied, a third-order analysis is performed, and if it is satisfied, the constraint (B) is verified;
(B)C1C2=R1+R2或C1C2=|R1-R2|,其中,C1为半径为R1的圆的圆心,坐标为(R1,0),R1>Rmin;以点V做直线,过点V做所述直线的垂线,C2为所述垂线上以R2为半径的圆心,坐标为(xc2,yc2);(B) C 1 C 2 =R 1 +R 2 or C 1 C 2 =|R 1 -R 2 |, where C 1 is the center of a circle with a radius of R 1 and the coordinates are (R 1 ,0), R 1 >R min ; make a straight line with point V, and make the vertical line of the straight line through the point V, C 2 is the center of the circle with R 2 as the radius on the vertical line, and the coordinates are (x c2 , y c2 );
(C)θ1为和的夹角,θ2为和的夹角,RR型表示第一段路径为顺时针,第二段路径为顺时针;LR型表示第一段路径为逆时针,第二段路径为顺时针;RL型表示第一段路径为顺时针,第二段路径为逆时针;LL型表示第一段路径为逆时针,第二段路径为逆时针。(C) θ1 is and The included angle, θ 2 is and The included angle of , the RR type means that the first section of the path is clockwise, the second section of the path is clockwise; the LR type means that the first section of the path is counterclockwise, and the second section of the path is clockwise; Clockwise, the second path is counterclockwise; LL type means that the first path is counterclockwise, and the second path is counterclockwise.
所述三阶分析如下:The third-order analysis is as follows:
三阶路径定义:若路径为三阶路径,说明此时运动体位置不符合约束条件,d1<Rmin或d2<Rmin,需要再找一条圆弧能够和二阶路线相切且满足三阶路径约束条件;Third-order path definition: If the path is a third-order path, it means that the position of the moving body does not meet the constraints, d1 < R min or d2 < R min , and it is necessary to find another arc that can be tangent to the second-order route and satisfy the third-order path. path constraints;
三阶路径约束条件:其中,θ3为第三段圆弧转过的角度,RRR型表示第一段路径为顺时针,第二段路径为顺时针,第三段路径为顺时针;LRR型表示第一段路径为逆时针,第二段路径为顺时针,第三段路径为顺时针;RLR型表示第一段路径为顺时针,第二段路径为逆时针,第三段路径为顺时针;LLR型表示第一段路径为逆时针,第二段路径为逆时针,第三段路径为顺时针;RRL型表示第一段路径为顺时针,第二段路径为顺时针,第三段路径为逆时针;LRL型表示第一段路径为逆时针,第二段路径为顺时针,第三段路径为逆时针;RLL型表示第一段路径为顺时针,第二段路径为逆时针,第三段路径为逆时针;LLL型表示第一段路径为逆时针,第二段路径为逆时针,第三段路径为逆时针。Third-order path constraints: Among them, θ 3 is the angle that the third arc turns, RRR type means that the first segment path is clockwise, the second segment path is clockwise, and the third segment path is clockwise; LRR type means that the first segment path is clockwise Counterclockwise, the second path is clockwise, and the third path is clockwise; RLR type indicates that the first path is clockwise, the second path is counterclockwise, and the third path is clockwise; LLR type indicates that the first path is clockwise. One path is counterclockwise, the second path is counterclockwise, and the third path is clockwise; RRL type means that the first path is clockwise, the second path is clockwise, and the third path is counterclockwise; LRL type means that the first section of the path is counterclockwise, the second section of the path is clockwise, and the third section of the path is counterclockwise; RLL type means that the first section of the path is clockwise, the second section of the path is counterclockwise, and the third section of the path is counterclockwise; the LLL type indicates that the first path is counterclockwise, the second path is counterclockwise, and the third path is counterclockwise.
所述步骤(2)中通过映射关系将离散的路径点转化为栅格坐标,其中,映射关系为:第i个点的栅格序号:根据栅格序号求出栅格坐标:其中,INT表示取整,Gsize表示最小栅格宽度,xmax为代价地图x轴宽度,(xi,yi)为第i个点的坐标,%表示取余运算符。In the step (2), the discrete path points are converted into grid coordinates through a mapping relationship, wherein the mapping relationship is: the grid serial number of the i-th point: Find the grid coordinates according to the grid number: Among them, INT means rounding, G size means the minimum grid width, x max is the x-axis width of the cost map, (x i , y i ) is the coordinate of the ith point, and % means the remainder operator.
所述步骤(2)中根据栅格坐标判断所述规划路径是否为不可行区域具体为:遍历所有离散的路径点转化的栅格坐标,将所述栅格坐标的代价值与阈值比较,如果存在大于阈值的栅格坐标,则表示该路径为不可行区域。In the step (2), judging whether the planned path is an infeasible area according to the grid coordinates is specifically: traversing the grid coordinates transformed by all discrete path points, comparing the cost value of the grid coordinates with the threshold, if If there are grid coordinates greater than the threshold, it means that the path is an infeasible area.
所述步骤(3)中评价函数的评分标准包括规划圆弧半径比值和最近障碍物的距离,其中,所述规划圆弧半径比值越接近1评分越高,所述最近障碍物的距离越远评分越高;在进行评价时将所述两个评分标准进行归一化,然后再相加,选择得分最高的路径进行平滑处理。The scoring standard of the evaluation function in the step (3) includes the ratio of the radius of the planned arc and the distance of the nearest obstacle, wherein the closer the ratio of the radius of the planned arc is to 1, the higher the score, and the farther the distance of the nearest obstacle is. The higher the score; the two scoring criteria are normalized during evaluation and then added, and the path with the highest score is selected for smoothing.
本发明解决其技术问题所采用的技术方案是:还提供一种动态局部路径规划系统,包括控制模块、避障模块和运算模块,所述控制模块用于接收规划路径数据,控制机器人精确行走;所述避障模块用于通过外部传感器接收外界信息,输出障碍物的位置;所述运算模块用于采用上述的动态局部路径规划方法规划出最优路径。The technical solution adopted by the present invention to solve the technical problem is as follows: a dynamic local path planning system is further provided, which includes a control module, an obstacle avoidance module and an operation module, and the control module is used for receiving the planning path data and controlling the robot to walk precisely; The obstacle avoidance module is used to receive external information through an external sensor and output the position of the obstacle; the calculation module is used to plan an optimal path by using the above dynamic local path planning method.
有益效果beneficial effect
由于采用了上述的技术方案,本发明与现有技术相比,具有以下的优点和积极效果:本发明判断出规划路径为几阶路线,并利用数学表达式对规划路径进行表示,通过离散化数学表达式将规划路径转化为代价地图中的栅格位置,从而舍弃存在障碍物的路径,最后对可能路径进行评价,并选出一条进行平滑处理,从而使得最终规划路径曲率连续,曲线光滑,且符合机器人或AGV等可移动设备的运动特性。Compared with the prior art, the present invention has the following advantages and positive effects due to the adoption of the above-mentioned technical solution: the present invention determines that the planned route is a several-order route, and uses a mathematical expression to represent the planned route, through discretization The mathematical expression converts the planned path into the grid position in the cost map, thereby discarding the path with obstacles, and finally evaluates the possible paths, and selects one for smooth processing, so that the final planned path has continuous curvature and smooth curve, And it conforms to the motion characteristics of mobile devices such as robots or AGVs.
附图说明Description of drawings
图1是本发明的流程图;Fig. 1 is the flow chart of the present invention;
图2是本发明中实施例1的流程图;Fig. 2 is the flow chart of embodiment 1 in the present invention;
图3是本发明中实施例1的示意图;Fig. 3 is the schematic diagram of embodiment 1 in the present invention;
图4是本发明中实施例2的流程图;Fig. 4 is the flow chart of embodiment 2 in the present invention;
图5是本发明中实施例2的示意图;Fig. 5 is the schematic diagram of embodiment 2 in the present invention;
图6是本发明中实施例3的流程图;Fig. 6 is the flow chart of embodiment 3 in the present invention;
图7是本发明中实施例3的示意图;Fig. 7 is the schematic diagram of embodiment 3 in the present invention;
图8是本发明的系统模块图。FIG. 8 is a system block diagram of the present invention.
具体实施方式Detailed ways
下面结合具体实施例,进一步阐述本发明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。The present invention will be further described below in conjunction with specific embodiments. It should be understood that these examples are only used to illustrate the present invention and not to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.
本发明的实施方式涉及一种动态局部路径规划方法,如图1所示,包括以下步骤:Embodiments of the present invention relate to a dynamic local path planning method, as shown in FIG. 1 , including the following steps:
(1)获取运动体的起始位姿和终止位姿,并实时更新代价地图,判断规划路径为几阶路线,并通过数学表达式表示所述规划路径。(1) Obtain the starting pose and ending pose of the moving body, update the cost map in real time, determine the order of the planned path, and express the planned path through mathematical expressions.
本实施方式中起始位姿通过自身的实时定位获得,其定位方式可以包含但不限于激光定位、视觉定位和惯导定位等;上述实时定位表现在每次传输的位姿信息中都会包含一个时间戳,每个时间戳对应不同的位姿;起始位姿的信息包括:1、运动体在全局地图中的位置;2、运动体的姿态,姿态的定义为将运动体看作为一个刚体,刚体的方向作为姿态信息;3、时间戳。In this embodiment, the starting pose is obtained through its own real-time positioning, and the positioning methods may include but are not limited to laser positioning, visual positioning, and inertial navigation positioning. Timestamp, each timestamp corresponds to a different pose; the information of the starting pose includes: 1. The position of the moving body in the global map; 2. The posture of the moving body, which is defined as treating the moving body as a rigid body , the direction of the rigid body is used as attitude information; 3. Timestamp.
本实施方式中终止位姿的获得方式包括但不限于以下几种方式:通过人为测量输入、UWB定位获得、蓝牙定位获得等。终止位姿的信息包括:1、运动体停止时在全局地图中的位置;2、运动体停止时在全局地图中的姿态。The manners of obtaining the termination pose in this embodiment include, but are not limited to, the following manners: inputting through human measurements, obtaining UWB positioning, obtaining Bluetooth positioning, and the like. The information of the termination pose includes: 1. the position in the global map when the moving body stops; 2. the pose in the global map when the moving body stops.
本实施方式中的代价地图为在原始的静态地图之上,叠加障碍物地图,膨胀地图等;其中,障碍物地图为将传感器动态记录的障碍物信息通过贝叶斯公式更新地图上的代价值;膨胀地图在以上两层叠加地图上进行膨胀,也就是障碍物周围栅格的代价值增高,以避免机器人的外壳会撞上障碍物。其中,代价值为栅格有障碍物的概率。The cost map in this embodiment is a superimposed obstacle map, an inflated map, etc. on top of the original static map; wherein, the obstacle map is the cost value of updating the map with the obstacle information dynamically recorded by the sensor through the Bayesian formula ;Inflated map is inflated on the above two-layer superimposed map, that is, the cost value of the grid around the obstacle is increased, so as to avoid the robot's shell from hitting the obstacle. Among them, the cost value is the probability that the grid has obstacles.
本实施方式中路径的阶的定义为方向的调整次数,如没有调整方向,规划路径为一阶路径。由dubin算法可知,运动体可以规划出由两条曲线和一条直线的规划路径,由此可知,空间最大阶为三阶路径。In this embodiment, the order of the path is defined as the adjustment times of the direction. If the direction is not adjusted, the planned path is a first-order path. It can be seen from the dubin algorithm that the moving body can plan a planned path consisting of two curves and a straight line. It can be seen that the maximum order of space is the third-order path.
判断规划路径为几阶路线,并通过数学表达式表示所述规划路径前,需要将原坐标系下的全局地图转换为以终止位姿的位置为原点、姿态方向为Y轴的设定坐标系下的全局地图,转换方式为(x1,y1)=([x·cos(θ)+y·sin(θ)+X],[y·cos(θ)-x·sin(θ)+Y]),其中,(x,y)为原坐标系下的坐标,θ为原坐标系X轴与设定坐标系X轴的夹角,(X,Y)为原坐标系原点与设定坐标系原点的差值。Before judging that the planned path is a several-order route, and expressing the planned path through mathematical expressions, it is necessary to convert the global map in the original coordinate system into a set coordinate system with the position of the termination pose as the origin and the orientation direction as the Y-axis The global map below, the conversion method is (x 1 ,y 1 )=([x·cos(θ)+y·sin(θ)+X],[y·cos(θ)-x·sin(θ)+ Y]), where (x, y) is the coordinates in the original coordinate system, θ is the angle between the X-axis of the original coordinate system and the X-axis of the set coordinate system, (X, Y) is the origin of the original coordinate system and the setting The difference between the origin of the coordinate system.
(2)离散化所述数学表达式表示的规划路径得到离散的路径点,将离散的路径点转化为栅格坐标,根据栅格坐标判断所述规划路径是否为不可行区域,若是不可行区域则舍弃所述规划路径,否则将所述规划路径作为可能的路径;(2) Discretize the planned path represented by the mathematical expression to obtain discrete path points, convert the discrete path points into grid coordinates, and judge whether the planned path is an infeasible area according to the grid coordinates, and if it is an infeasible area then discard the planned path, otherwise use the planned path as a possible path;
(3)通过评价函数评价所有可能的路径,并选出得分最高的一条路径进行平滑处理。本实施方式中,评价函数的评分标准包括规划圆弧半径比值ratio和最近障碍物的距离distobstacle。对于规划圆弧半径比值ratio,为了使运动体机械磨损较小,规划路径尽量平滑,圆弧的曲率和转弯半径有关,所以两个圆弧转弯半径比值越接近1,路径曲率越小,评分越高。对于最近障碍物的距离distobstacle,规划路径离障碍物越远越好,离障碍物越远得分越高。(3) Evaluate all possible paths through the evaluation function, and select the one with the highest score for smoothing. In this embodiment, the scoring criteria of the evaluation function include the planning arc radius ratio ratio and the distance dist obstacle of the nearest obstacle . For the planned arc radius ratio ratio, in order to reduce the mechanical wear of the moving body, the planned path should be as smooth as possible. The curvature of the arc is related to the turning radius, so the closer the ratio of the turning radius of the two arcs is to 1, the smaller the path curvature, and the higher the score. high. For the distance dist obstacle of the nearest obstacle, the farther the planned path is from the obstacle, the better, and the farther away from the obstacle, the higher the score.
下面通过几个实施例进一步说明本发明。The present invention is further illustrated by several embodiments below.
实施例1:Example 1:
本实施例提供了一种叉车自动插取无规则货物的路径规划方法和系统,更进一步该系统硬件组成主要为:一台叉车,一台计算机,一台相机。需要说明的是避障模块包含但不限于视觉传感器。This embodiment provides a path planning method and system for a forklift to automatically insert and extract irregular goods. Further, the hardware of the system is mainly composed of: a forklift, a computer, and a camera. It should be noted that the obstacle avoidance module includes but is not limited to vision sensors.
如图2所示,动态局部路径规划方法具体包括以下步骤:As shown in Figure 2, the dynamic local path planning method specifically includes the following steps:
步骤一:获得起始位姿,终止位姿和实时跟新的代价地图,判断规划的路线为几阶路线,用数学表达式表示路径。Step 1: Obtain the starting pose, the ending pose and the new cost map in real time, judge the planned route as a few-order route, and express the path with a mathematical expression.
在判断规划的路线为几阶路线时,先进行一阶路径分析:When judging the planned route as a few-order route, first-order path analysis is performed first:
I.判断路径阶数I. Judging the order of the path
1.1先判断d1和d2是否符合约束条件d1>Rmin且d2>Rmin;1.1 First judge whether d1 and d2 meet the constraints d1> Rmin and d2>Rmin;
本实施例中,d1=(xv+Rmin)2+yv 2,d2=(xv+Rmin)2+yv 2,如图3所示,d1和d2分别表示叉车当前所在的位置到(Rmin,0)和(-Rmin,0)的距离,(xv,yv)为AGV叉车当前所在的位置坐标,Rmin为最小转弯半径。本实施例中d1>Rmin,d2>Rmin,因此满足约束条件。In this embodiment, d1=(x v +R min ) 2 +y v 2 , d2=(x v +R min ) 2 +y v 2 , as shown in FIG. 3 , d1 and d2 respectively represent the current location of the forklift The distance from the position to (R min ,0) and (-R min ,0), (x v , y v ) are the coordinates of the current position of the AGV forklift, and R min is the minimum turning radius. In this embodiment, d1> Rmin , d2> Rmin , so the constraint condition is satisfied.
1.2判断约束条件L型路径或R型路径,其中,O为原点,坐标为(0,0);Cc为X轴上上圆心,坐标为(xc,0),xc∈(-∞,-Rmin)∪(Rmin,∞);V为运动体的位姿,坐标为(xv,yv,θv),其中,xv∈(-∞,-Rmin)∪(Rmin,∞),yv>0,θv∈[0,2π];β为和的夹角,β∈[0,π],R型表示顺时针,L型表示逆时针。1.2 Judgment Constraints L-path or R-type path, where O is the origin and the coordinates are (0,0); C c is the center of the circle on the X axis, and the coordinates are (x c ,0), x c ∈(-∞,-R min )∪(R min ,∞); V is the pose of the moving body, and the coordinates are (x v ,y v ,θ v ), where x v ∈(-∞,-R min )∪(R min ,∞),y v > 0,θ v ∈[0,2π]; β is and The included angle of β∈[0,π], R-type means clockwise, L-type means counterclockwise.
判断步骤如下:根据OCc=CcV计算得到xc,对于L型路径,xc>0,对于R型路径,xc<0。判断约束条件 本实施例中,符合约束条件此时确定规划路径为一阶路径。The judging steps are as follows: x c is obtained by calculating according to OC c =C c V, for the L-type path, x c >0, and for the R-type path, x c <0. Judgment Constraints In this embodiment, the constraints are met At this time, the planned path is determined to be a first-order path.
II用数学表达式表示规划路径II Expressing the planned path with mathematical expressions
此处可以用各种数学表达式来表示规划路径,例如可以用方程来表示,也可以用极坐标来表示。本实施例的表达式为:Here, various mathematical expressions can be used to represent the planned path, such as equations, or polar coordinates. The expression of this embodiment is:
步骤二、离散化路径,转化为栅格坐标,判断不可行区域。Step 2: Discretize the path, convert it into grid coordinates, and judge the infeasible area.
1、离散化路径1. Discrete path
对γ进行采样,采样间隔为σ,可得到离散的路径点Sampling γ with a sampling interval of σ to obtain discrete path points
2、转化为栅格坐标2. Convert to grid coordinates
2.1求出第i个点的栅格序号: 2.1 Find the grid number of the i-th point:
2.2根据栅格序号求出栅格坐标: 2.2 Find the grid coordinates according to the grid number:
其中,INT表示取整,Gsize表示最小栅格宽度,xmax为代价地图x轴宽度,(xi,yi)为Among them, INT means rounding, G size means the minimum grid width, x max is the x-axis width of the cost map, (x i , y i ) is
第i个点的坐标,%表示取余运算符。The coordinates of the i-th point, % indicates the remainder operator.
3、判断不可行区域3. Determine the infeasible area
每个栅格区域都会存储占据信息,来表示当前栅格是否有障碍物,即代价值。所以得到栅格坐标后,遍历所有栅格坐标的代价值,若代价值超过阈值,超过则表明路径上有障碍物,舍弃规划路径,重新选择。反之,则路径生成。Each grid area will store occupancy information to indicate whether the current grid has obstacles, that is, the cost value. Therefore, after obtaining the grid coordinates, traverse the cost value of all grid coordinates. If the cost value exceeds the threshold, it indicates that there are obstacles on the path, and the planned path is discarded and selected again. Otherwise, the path is generated.
步骤三、一阶路径对AGV初始姿态有严格要求,所以只有一条规划路径输出。在整个运行过程中,运算模块实时检测避障模块是否输出障碍物信息。如果存在就急停,回到步骤一,反之不动作。Step 3. The first-order path has strict requirements on the initial attitude of the AGV, so only one planned path is output. During the entire running process, the computing module detects in real time whether the obstacle avoidance module outputs obstacle information. If there is an emergency stop, return to step 1, otherwise no action.
在输出路径后如果接收到障碍物信息,则进行如下步骤:If obstacle information is received after outputting the path, perform the following steps:
1.避障模块输出二维坐标(xobstacle,yobstacle);1. The obstacle avoidance module outputs two-dimensional coordinates (x obstacle , y obstacle );
2.将该二维坐标转化为栅格坐标;2. Convert the two-dimensional coordinates into grid coordinates;
3.将障碍物栅格坐标与映射后的(xN,yN)对比,该障碍物栅格坐标是否位于规划的路径上,如果是,则舍弃此路径重新进行规划。3. Compare the grid coordinates of the obstacle with the mapped (x N , y N ) to see if the grid coordinates of the obstacle are on the planned path, if so, discard the path and re-plan.
实施例2:Example 2:
本实施例提供了一种倒车入库的路径规划方法和系统,更进一步该系统硬件组成主要为:一台汽车,一台工控机,数台激光雷达。This embodiment provides a path planning method and system for reversing a car into a warehouse. Further, the hardware of the system is mainly composed of: a car, an industrial computer, and several laser radars.
如图4所示,动态局部路径规划方法具体包括以下步骤:As shown in Figure 4, the dynamic local path planning method specifically includes the following steps:
步骤一:获得起始位姿,终止位姿和实时跟新的代价地图,判断规划的路线为几阶路线,用数学表达式表示路径。Step 1: Obtain the starting pose, the ending pose and the new cost map in real time, judge the planned route as a few-order route, and express the path with a mathematical expression.
在判断规划的路线为几阶路线时,先进行一阶路径分析:When judging the planned route as a few-order route, first-order path analysis is performed first:
I.判断路径阶数I. Judging the order of the path
1.1先判断d1和d2是否符合约束条件d1>Rmin且d2>Rmin;1.1 First judge whether d1 and d2 meet the constraints d1> Rmin and d2>Rmin;
本实施例中,d1=(xv+Rmin)2+yv 2,d2=(xv+Rmin)2+yv 2,如图5所示,d1和d2分别表示汽车当前所在的位置到(Rmin,0)和(-Rmin,0)的距离,(xv,yv)为汽车当前所在的位置坐标,Rmin为最小转弯半径。本实施例中d1>Rmin,d2>Rmin。In this embodiment, d1=(x v +R min ) 2 +y v 2 , d2=(x v +R min ) 2 +y v 2 , as shown in FIG. 5 , d1 and d2 respectively represent the current location of the car. The distance from the position to (R min ,0) and (-R min ,0), (x v , y v ) are the coordinates of the current position of the car, and R min is the minimum turning radius. In this embodiment, d1> Rmin , and d2> Rmin .
1.2判断约束条件L型路径或R型路径,如图5所示,O为原点,坐标为(0,0);C1为X轴上上圆心,坐标为(xc1,0),xc∈(-∞,-Rmin)∪(Rmin,∞);V为运动体的位姿,坐标为(xv,yv,θv),其中,xv∈(-∞,-Rmin)∪(Rmin,∞),yv>0,θv∈[0,2π];β为和的夹角,β∈[0,π],R型表示顺时针,L型表示逆时针。1.2 Judgment Constraints L-path or R-type path, as shown in Figure 5, O is the origin, and the coordinates are (0, 0); C 1 is the center of the circle on the X-axis, and the coordinates are (x c1 ,0), and x c ∈(-∞,-R min )∪(R min ,∞); V is the pose of the moving body, and the coordinates are (x v ,y v ,θ v ), where x v ∈(-∞,-R min )∪(R min ,∞) ,y v >0,θ v ∈[0,2π]; β is and The included angle of β∈[0,π], R-type means clockwise, L-type means counterclockwise.
判断步骤如下:根据OC1=C1V计算得到xc,对于L型路径,xc1>0,对于R型路径,xc1<0。判断约束条件 本实施例中,不符合约束条件 The judging steps are as follows: x c is obtained by calculating according to OC 1 =C 1 V, for the L-type path, x c1 >0, and for the R-type path, x c1 <0. Judgment Constraints In this embodiment, the constraints are not met
1.3二阶路径分析1.3 Second-order path analysis
运动体不能通过一阶分析到达目标点,需要调整一次位姿能够使运动体下一个时刻的位姿能够通过一阶分析,也就是能够在规划出一段圆弧的末端与一阶圆弧相切。The moving body cannot reach the target point through the first-order analysis. It is necessary to adjust the pose once so that the pose of the moving body at the next moment can pass the first-order analysis, that is, it can be tangent to the first-order arc at the end of the planned arc. .
1.3.1判断约束条件C1C2=R1+R2(外切)或C1C2=|R1-R2|(内切),其中,C1为半径为R1的圆的圆心,坐标为(R1,0),R1>Rmin;以点V做直线,过点V做所述直线的垂线,C2为所述垂线上以R2为半径的圆心,坐标为(xc2,yc2)。1.3.1 Judging the constraint condition C 1 C 2 =R 1 +R 2 (circumscribed) or C 1 C 2 =|R 1 -R 2 | (inscribed), where C 1 is the radius of the circle with radius R 1 The center of the circle, the coordinates are (R 1 , 0), R 1 >R min ; take the point V as a straight line, and make the vertical line of the straight line through the point V, C 2 is the center of the circle with R 2 as the radius on the vertical line, The coordinates are (x c2 , y c2 ).
判断步骤如下:半径选择方法为在X轴与向量(x,y,θ)的垂线上进行间隔为dx的采样,采样范围为上述约束条件,直至C1C2=R1+R2(外切)或C1C2=|R1-R2|(内切)。The judgment steps are as follows: the radius selection method is to perform sampling at an interval of d x on the vertical line between the X axis and the vector (x, y, θ), and the sampling range is the above constraint until C 1 C 2 =R 1 +R 2 (external) or C 1 C 2 = |R 1 -R 2 | (intro).
圆心C1(xc1,yc1)为(R1,0)或(-R1,0);圆心C2(xc2,yc2)为(xm+r2*cos(θ-90°),ym+r2*sin(θ-90°));圆C1和圆C2切点为遍历结束时,所得结果是一个二阶路径的集合。The center C 1 (x c1 ,y c1 ) is (R 1 ,0) or (-R 1 ,0); the center C 2 (x c2 ,y c2 ) is (x m +r 2 *cos(θ-90°) ), y m +r 2 *sin(θ-90°)); the tangent point of circle C 1 and circle C 2 is At the end of the traversal, the result is a collection of second-order paths.
1.3.2判断约束条件其中,θv为汽车的姿态,θ1为和的夹角θ2为和的夹角RR型表示第一段路径为顺时针,第二段路径为顺时针;LR型表示第一段路径为逆时针,第二段路径为顺时针;RL型表示第一段路径为顺时针,第二段路径为逆时针;LL型表示第一段路径为逆时针,第二段路径为逆时针。1.3.2 Judgment Constraints where θ v is the attitude of the car, and θ 1 is and angle θ2 is and angle RR type means the first segment path is clockwise, the second segment path is clockwise; LR type means the first segment path is counterclockwise, and the second segment path is clockwise; RL type means the first segment path is clockwise, The second path is counterclockwise; the LL type indicates that the first path is counterclockwise, and the second path is counterclockwise.
R型L型判断:第一段路径第二段路径 R-type L-type judgment: the first segment of the path second path
计算出θ1和θ2带入约束条件,筛选出待优化集合。Calculate the constraints imposed by θ 1 and θ 2 , and filter out the set to be optimized.
II、用数学形式表示路径II. Express the path in mathematical form
本实施例中圆心C1的圆弧表达式为:圆心C2的圆弧表达式为:The arc expression of the circle center C 1 in this embodiment is: The arc expression of the circle center C 2 is:
步骤二、离散化路径,转化为栅格坐标,判断不可行区域。Step 2: Discretize the path, convert it into grid coordinates, and judge the infeasible area.
1、离散化路径1. Discrete path
对γ进行采样,采样间隔为σ,可得到离散的路径点。Sampling γ with a sampling interval of σ to obtain discrete waypoints.
2、转化为栅格坐标2. Convert to grid coordinates
2.1求出第i个点的栅格序号: 2.1 Find the grid number of the i-th point:
2.2根据栅格序号求出栅格坐标: 2.2 Find the grid coordinates according to the grid number:
其中,INT表示取整,Gsize表示最小栅格宽度,xmax为代价地图x轴宽度,(xi,yi)为第i个点的坐标,%表示取余运算符。Among them, INT means rounding, G size means the minimum grid width, x max is the x-axis width of the cost map, (x i , y i ) is the coordinate of the ith point, and % means the remainder operator.
3、判断不可行区域3. Determine the infeasible area
每个栅格区域都会存储占据信息,来表示当前栅格是否有障碍物,即代价值。所以得到栅格坐标后,遍历所有栅格坐标的代价值,若代价值超过阈值,超过则表明路径上有障碍物,舍弃规划路径,重新选择。反之,则路径生成。Each grid area will store occupancy information to indicate whether the current grid has obstacles, that is, the cost value. Therefore, after obtaining the grid coordinates, traverse the cost value of all grid coordinates. If the cost value exceeds the threshold, it indicates that there are obstacles on the path, and the planned path is discarded and selected again. Otherwise, the path is generated.
步骤三、评价所有可能的路径,平滑处理得分最高的一条路径。Step 3: Evaluate all possible paths and smooth the one with the highest score.
1.1归一化:1.1 Normalization:
其中,n为所有路径的条数,i为 Among them, n is the number of all paths, i is
Normal(i)=Normal_ratio(i)+Normal_distobstacle(i)Normal(i)=Normal_ratio(i)+Normal_dist obstacle (i)
当前路径条数,Normal_ratio为归一化后的规划圆弧半径比值评分,Normal_distobstacle为归一化后的最近障碍物距离评分,选出一条评分最高的路径。The current number of paths, Normal_ratio is the normalized planning arc radius ratio score, Normal_dist obstacle is the normalized distance score of the nearest obstacle, and a path with the highest score is selected.
1.2平滑处理1.2 Smoothing
所述对规划的路径进行平滑处理的具体方式为:建立多目标函数,采用共轭梯度下降的方法对目标函数求极值得到较为平滑的路径,算法生成一系列节点Xi=(xi,yi),i属于[0,N]组成;设ΔXi=Xi-Xi-1表示两个节点组成的矢量;Oi表示距离节点最近的障碍点的位置。建立的目标函数为:其中,Wob,Ws和Wk为各项所占权重,权重由多次试验方式获得。The specific method of smoothing the planned path is as follows: establishing a multi-objective function, using the conjugate gradient descent method to obtain an extreme value of the objective function to obtain a relatively smooth path, and the algorithm generates a series of nodes X i =( xi , y i ), i is composed of [0, N]; let ΔX i =X i -X i-1 represent a vector composed of two nodes; O i represents the position of the closest obstacle point to the node. The established objective function is: Among them, W ob , W s and W k are the weights occupied by each item, and the weights are obtained by multiple trials.
目标函数的第一项约束节点与障碍物的安全距离,dmax为平滑时节点距离障碍点的最小安全距离,大小为车辆轴长,当|Xi-0|>dmax时,第一项产生作用,否则梯度为0;第二项对路径进行了平滑;第三项对任一结点的曲率进行约束,曲率数值必须小于kmax,最大曲率kmax由车辆的运动学约束决定,当ki小于或等于kmax时,第三项的梯度取值为0。The first item of the objective function constrains the safe distance between the node and the obstacle, d max is the minimum safe distance between the node and the obstacle point when smoothing, the size is the vehicle axis length, when |X i -0|>d max , the first item effect, otherwise the gradient is 0; the second term smoothes the path; the third term constrains the curvature of any node, the curvature value must be less than km max , the maximum curvature km max is determined by the kinematic constraints of the vehicle, when When ki is less than or equal to k max , the gradient of the third term takes the
目标函数各项梯度为使用共轭梯度下降的方法对目标函数求极值,得到了较为平滑的路径。The gradients of the objective function are Using the conjugate gradient descent method to find the extreme value of the objective function, a smoother path is obtained.
得到二阶路径后,实时检测避障模块是否输出障碍物信息。如果存在就急停,回到步骤一,反之不动作。After obtaining the second-order path, real-time detection of whether the obstacle avoidance module outputs obstacle information. If there is an emergency stop, return to step 1, otherwise no action.
在输出路径后如果接收到障碍物信息,则进行如下步骤:If obstacle information is received after outputting the path, perform the following steps:
1、避障模块输出二维坐标(xobstacle,yobstacle);1. The obstacle avoidance module outputs two-dimensional coordinates (x obstacle , y obstacle );
2、将该二维坐标转化为栅格坐标;2. Convert the two-dimensional coordinates to grid coordinates;
3、将障碍物栅格坐标与映射后的(xN,yN)对比,该障碍物栅格坐标是否位于规划的路径上,如果是,则舍弃此路径重新进行规划。3. Compare the obstacle grid coordinates with the mapped (x N , y N ) to see if the obstacle grid coordinates are on the planned path, if so, discard this path and re-plan.
实施例3:Example 3:
本实施例提供了一个三阶路径的实施例。This embodiment provides an embodiment of a third-order path.
若路径为三阶路径,说明此时运动体位置不符合约束条件,d1<Rmin或d2<Rmin,需要再找一条圆弧能够和二阶路线相切且满足三阶路径约束条件。If the path is a third-order path, it means that the position of the moving body does not meet the constraints, d1 < R min or d2 < R min , and it is necessary to find another arc that can be tangent to the second-order route and satisfy the third-order path constraints.
三阶路径约束条件:其中,θ3为第三段圆弧转过的角度,RRR型表示第一段路径为顺时针,第二段路径为顺时针,第三段路径为顺时针;LRR型表示第一段路径为逆时针,第二段路径为顺时针,第三段路径为顺时针;RLR型表示第一段路径为顺时针,第二段路径为逆时针,第三段路径为顺时针;LLR型表示第一段路径为逆时针,第二段路径为逆时针,第三段路径为顺时针;RRL型表示第一段路径为顺时针,第二段路径为顺时针,第三段路径为逆时针;LRL型表示第一段路径为逆时针,第二段路径为顺时针,第三段路径为逆时针;RLL型表示第一段路径为顺时针,第二段路径为逆时针,第三段路径为逆时针;LLL型表示第一段路径为逆时针,第二段路径为逆时针,第三段路径为逆时针。Third-order path constraints: Among them, θ 3 is the angle that the third arc turns, RRR type means that the first segment path is clockwise, the second segment path is clockwise, and the third segment path is clockwise; LRR type means that the first segment path is clockwise Counterclockwise, the second path is clockwise, and the third path is clockwise; RLR type indicates that the first path is clockwise, the second path is counterclockwise, and the third path is clockwise; LLR type indicates that the first path is clockwise. One path is counterclockwise, the second path is counterclockwise, and the third path is clockwise; RRL type means that the first path is clockwise, the second path is clockwise, and the third path is counterclockwise; The LRL type indicates that the first section of the path is counterclockwise, the second section of the path is clockwise, and the third section of the path is counterclockwise; RLL type indicates that the first section of the path is clockwise, the second section of the path is counterclockwise, and the third section of the path is counterclockwise; the LLL type indicates that the first path is counterclockwise, the second path is counterclockwise, and the third path is counterclockwise.
如图6所示,动态局部路径规划方法具体包括以下步骤:As shown in Figure 6, the dynamic local path planning method specifically includes the following steps:
步骤一:获得起始位姿,终止位姿和实时跟新的代价地图,判断规划的路线为几阶路线,用数学表达式表示路径。Step 1: Obtain the starting pose, the ending pose and the new cost map in real time, judge the planned route as a few-order route, and express the path with a mathematical expression.
I.判断路径阶数I. Judging the order of the path
1.1先判断d1和d2是否符合约束条件d1>Rmin且d2>Rmin。1.1 First judge whether d1 and d2 meet the constraints d1> Rmin and d2> Rmin .
本实施例中,d1=(xv+Rmin)2+yv 2,d2=(xv+Rmin)2+yv 2,如图7所示,d1和d2分别表示机器人当前所在的位置到(Rmin,0)和(-Rmin,0)的距离,(xv,yv)为机器人当前所在的位置坐标,Rmin为最小转弯半径。本实施例中机器人起始位姿不满足约束条件,三阶路径规划步骤如下:In this embodiment, d1=(x v +R min ) 2 +y v 2 , d2=(x v +R min ) 2 +y v 2 , as shown in FIG. 7 , d1 and d2 respectively represent the current location of the robot The distance from the position to (R min ,0) and (-R min ,0), (x v ,y v ) is the current position coordinate of the robot, and R min is the minimum turning radius. In this embodiment, the starting pose of the robot does not meet the constraints, and the third-order path planning steps are as follows:
a、建立一个坐标系,以机器人当前坐标M为原点,向量方向为y轴正方向,x轴为y轴垂线,向右为正方向,和原坐标系转换矩阵为H;a. Establish a coordinate system, take the current coordinate M of the robot as the origin, the vector direction is the positive direction of the y-axis, the x-axis is the vertical line of the y-axis, the right direction is the positive direction, and the conversion matrix of the original coordinate system is H;
b、在此坐标系下选择一个一阶路径上的点A(xa,ya,θa),A点满足约束条件,通过将A转换到原坐标系得A'(xa',ya',θa'),判断A'是否满足约束条件;b. Select a point A(x a , y a , θ a ) on the first-order path in this coordinate system, point A satisfies the constraints, and converts A to the original coordinate system to get A'(x a ',y a ', θ a '), judge whether A' satisfies the constraints;
c、若满足,则在求出新建坐标系下M->A离散路径点,通过H-1转换到原始坐标系下,后以A'为新起点进行如实施例2的二阶路径规划。若不满足,则重新选择合适的A点。c. If satisfied, find the M->A discrete path point in the new coordinate system, convert it to the original coordinate system through H -1 , and then use A' as the new starting point to carry out the second-order path planning as in Embodiment 2. If it is not satisfied, select the appropriate point A again.
如图8所示,本实施方式还提供了一种动态局部路径规划系统,该系统包括避障模块,运算模块,控制模块。所述控制模块用于接收规划路径数据,控制机器人精确行走;所述避障模块用于通过外部传感器接收外界信息,输出障碍物的位置;所述运算模块用于采用上述的动态局部路径规划方法规划出最优路径As shown in FIG. 8 , this embodiment further provides a dynamic local path planning system, which includes an obstacle avoidance module, an arithmetic module, and a control module. The control module is used to receive the planned path data and control the robot to walk accurately; the obstacle avoidance module is used to receive external information through external sensors and output the position of the obstacle; the calculation module is used to adopt the above-mentioned dynamic local path planning method plan the best path
其中,避障模块包括建图和检测障碍物的功能,此模块用的外部传感器包含但不限于激光雷达,超声波传感器,视觉传感器等。Among them, the obstacle avoidance module includes the functions of mapping and detecting obstacles, and the external sensors used in this module include but are not limited to lidar, ultrasonic sensors, visual sensors, etc.
其中运算模块包括更新栅格地图数据,规划路径的运算和基本的逻辑运算的功能,控制模块包括融合运算模块的数据输出控制信号的功能,这两个模块的实现设备包含但不限于个人电脑、工控机、服务器。The operation module includes the functions of updating grid map data, the operation of planning paths and basic logic operations, and the control module includes the function of merging the data of the operation module and outputting control signals. The realization devices of these two modules include but are not limited to personal computers, Industrial computers, servers.
主要的是上述运算模块先获得起始位姿,终止位姿和实时跟新的代价地图,进行路径阶的分析,计算路径数学表达式;然后能对不可行区域进行评价,需要将路径离散化,转化为栅格坐标,栅格信息中存放着此栅格是否被占据的信息;上述计算所得路径是一个可行路线的集合,所以运算模块需要评价所有可能的路径,平滑处理得分最高的一条路径。上述避障模块还要实时检测外界障碍物信息,如果存在障碍物,则运算模块传送急停信号给控制模块,并且重新规划路线,反之控制模块输出控制信息跟随已生成的路径。The main thing is that the above computing module first obtains the starting pose, ending pose and real-time update cost map, analyzes the path order, and calculates the mathematical expression of the path; then it can evaluate the infeasible area, and the path needs to be discretized , converted into grid coordinates, the grid information stores the information of whether the grid is occupied; the calculated path is a set of feasible paths, so the operation module needs to evaluate all possible paths and smooth the one with the highest score. . The above-mentioned obstacle avoidance module also needs to detect external obstacle information in real time. If there is an obstacle, the computing module transmits an emergency stop signal to the control module and re-plans the route. Otherwise, the control module outputs control information to follow the generated route.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010681054.4A CN111811517A (en) | 2020-07-15 | 2020-07-15 | A dynamic local path planning method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010681054.4A CN111811517A (en) | 2020-07-15 | 2020-07-15 | A dynamic local path planning method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111811517A true CN111811517A (en) | 2020-10-23 |
Family
ID=72865127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010681054.4A Pending CN111811517A (en) | 2020-07-15 | 2020-07-15 | A dynamic local path planning method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111811517A (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112286194A (en) * | 2020-10-29 | 2021-01-29 | 广东杜尼智能机器人工程技术研究中心有限公司 | Cost map area division method |
| CN112378408A (en) * | 2020-11-26 | 2021-02-19 | 重庆大学 | Path planning method for realizing real-time obstacle avoidance of wheeled mobile robot |
| CN112698649A (en) * | 2020-12-15 | 2021-04-23 | 深圳众为兴技术股份有限公司 | Pose path smooth transition planning method, computer readable storage medium and device |
| CN112747763A (en) * | 2020-12-30 | 2021-05-04 | 深兰人工智能(深圳)有限公司 | Local path planning method and device, electronic equipment and storage medium |
| CN112937557A (en) * | 2021-03-09 | 2021-06-11 | 东风汽车集团股份有限公司 | Curvature control-based passenger-riding parking path planning method and system |
| CN112964271A (en) * | 2021-03-15 | 2021-06-15 | 西安交通大学 | Multi-scene-oriented automatic driving planning method and system |
| CN112965495A (en) * | 2021-02-10 | 2021-06-15 | 苏州清乐智能科技有限公司 | Disinfection robot and autonomous navigation method thereof |
| CN113485369A (en) * | 2021-08-03 | 2021-10-08 | 浙江大学 | Indoor mobile robot path planning and path optimization method for improving A-x algorithm |
| CN113758484A (en) * | 2020-11-30 | 2021-12-07 | 北京京东乾石科技有限公司 | Path planning method and device |
| CN113778097A (en) * | 2021-09-15 | 2021-12-10 | 龙岩学院 | L-shaped path trend improved A-STAR algorithm for intelligent warehouse logistics robot path planning method |
| CN114089774A (en) * | 2022-01-14 | 2022-02-25 | 中国科学院微电子研究所 | AGV path planning method and device in storage environment |
| CN114995398A (en) * | 2022-05-16 | 2022-09-02 | 中国第一汽车股份有限公司 | Path generation method, path generation device, storage medium, processor and electronic device |
| CN115167479A (en) * | 2022-08-25 | 2022-10-11 | 山东新一代信息产业技术研究院有限公司 | Path generation and following method of robot with non-zero turning radius |
| CN115407775A (en) * | 2022-08-26 | 2022-11-29 | 南京理工大学 | Local path planning method based on segmentation map evaluation function |
| CN117739974A (en) * | 2022-09-21 | 2024-03-22 | 广州视源电子科技股份有限公司 | Path optimization method and robot |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060149465A1 (en) * | 2004-12-30 | 2006-07-06 | Samsung Electronics Co., Ltd. | Method and apparatus for moving in minimum cost path using grid map |
| CN106353722A (en) * | 2016-11-03 | 2017-01-25 | 中国科学院上海微系统与信息技术研究所 | RSSI (received signal strength indicator) distance measuring method based on cost-reference particle filter |
| CN108444482A (en) * | 2018-06-15 | 2018-08-24 | 东北大学 | A kind of autonomous pathfinding barrier-avoiding method of unmanned plane and system |
| CN108519773A (en) * | 2018-03-07 | 2018-09-11 | 西安交通大学 | The paths planning method of automatic driving vehicle under a kind of structured environment |
| CN109425352A (en) * | 2017-08-25 | 2019-03-05 | 科沃斯机器人股份有限公司 | Self-movement robot paths planning method |
| CN110696818A (en) * | 2019-10-12 | 2020-01-17 | 深圳市布谷鸟科技有限公司 | Automatic parking method and system based on optimal path |
| CN110728014A (en) * | 2018-06-27 | 2020-01-24 | 百度(美国)有限责任公司 | Reference line smoothing method using piecewise helical curves with weighted geometric cost |
| WO2020021126A1 (en) * | 2018-07-27 | 2020-01-30 | Embotech Ag | Method for steering a vehicle and apparatus therefor |
| CN110823240A (en) * | 2019-11-19 | 2020-02-21 | 齐鲁工业大学 | Following robot path planning method and system with course constraint |
-
2020
- 2020-07-15 CN CN202010681054.4A patent/CN111811517A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060149465A1 (en) * | 2004-12-30 | 2006-07-06 | Samsung Electronics Co., Ltd. | Method and apparatus for moving in minimum cost path using grid map |
| CN106353722A (en) * | 2016-11-03 | 2017-01-25 | 中国科学院上海微系统与信息技术研究所 | RSSI (received signal strength indicator) distance measuring method based on cost-reference particle filter |
| CN109425352A (en) * | 2017-08-25 | 2019-03-05 | 科沃斯机器人股份有限公司 | Self-movement robot paths planning method |
| CN108519773A (en) * | 2018-03-07 | 2018-09-11 | 西安交通大学 | The paths planning method of automatic driving vehicle under a kind of structured environment |
| CN108444482A (en) * | 2018-06-15 | 2018-08-24 | 东北大学 | A kind of autonomous pathfinding barrier-avoiding method of unmanned plane and system |
| CN110728014A (en) * | 2018-06-27 | 2020-01-24 | 百度(美国)有限责任公司 | Reference line smoothing method using piecewise helical curves with weighted geometric cost |
| WO2020021126A1 (en) * | 2018-07-27 | 2020-01-30 | Embotech Ag | Method for steering a vehicle and apparatus therefor |
| CN110696818A (en) * | 2019-10-12 | 2020-01-17 | 深圳市布谷鸟科技有限公司 | Automatic parking method and system based on optimal path |
| CN110823240A (en) * | 2019-11-19 | 2020-02-21 | 齐鲁工业大学 | Following robot path planning method and system with course constraint |
Non-Patent Citations (1)
| Title |
|---|
| 封声飞 第: "自适应蚁群算法的移动机器人路径规划", 计算机工程与应用, vol. 55, no. 17 * |
Cited By (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112286194A (en) * | 2020-10-29 | 2021-01-29 | 广东杜尼智能机器人工程技术研究中心有限公司 | Cost map area division method |
| CN112286194B (en) * | 2020-10-29 | 2022-05-17 | 广东杜尼智能机器人工程技术研究中心有限公司 | Cost map area division method |
| CN112378408A (en) * | 2020-11-26 | 2021-02-19 | 重庆大学 | Path planning method for realizing real-time obstacle avoidance of wheeled mobile robot |
| CN112378408B (en) * | 2020-11-26 | 2023-07-25 | 重庆大学 | A Path Planning Method for Real-time Obstacle Avoidance of Wheeled Mobile Robot |
| CN113758484A (en) * | 2020-11-30 | 2021-12-07 | 北京京东乾石科技有限公司 | Path planning method and device |
| CN112698649B (en) * | 2020-12-15 | 2024-06-11 | 深圳众为兴技术股份有限公司 | Pose path smooth transition planning method, computer readable storage medium and equipment |
| CN112698649A (en) * | 2020-12-15 | 2021-04-23 | 深圳众为兴技术股份有限公司 | Pose path smooth transition planning method, computer readable storage medium and device |
| CN112747763A (en) * | 2020-12-30 | 2021-05-04 | 深兰人工智能(深圳)有限公司 | Local path planning method and device, electronic equipment and storage medium |
| CN112747763B (en) * | 2020-12-30 | 2024-04-09 | 深兰人工智能(深圳)有限公司 | Local path planning method, device, electronic equipment and storage medium |
| CN112965495A (en) * | 2021-02-10 | 2021-06-15 | 苏州清乐智能科技有限公司 | Disinfection robot and autonomous navigation method thereof |
| CN112965495B (en) * | 2021-02-10 | 2022-12-06 | 苏州清乐智能科技有限公司 | Disinfection robot and autonomous navigation method thereof |
| CN112937557A (en) * | 2021-03-09 | 2021-06-11 | 东风汽车集团股份有限公司 | Curvature control-based passenger-riding parking path planning method and system |
| CN112964271A (en) * | 2021-03-15 | 2021-06-15 | 西安交通大学 | Multi-scene-oriented automatic driving planning method and system |
| CN112964271B (en) * | 2021-03-15 | 2023-03-31 | 西安交通大学 | Multi-scene-oriented automatic driving planning method and system |
| CN113485369A (en) * | 2021-08-03 | 2021-10-08 | 浙江大学 | Indoor mobile robot path planning and path optimization method for improving A-x algorithm |
| CN113778097A (en) * | 2021-09-15 | 2021-12-10 | 龙岩学院 | L-shaped path trend improved A-STAR algorithm for intelligent warehouse logistics robot path planning method |
| CN113778097B (en) * | 2021-09-15 | 2023-05-19 | 龙岩学院 | L-shaped path trend improved A-STAR algorithm path planning method for intelligent warehousing logistics robot |
| CN114089774A (en) * | 2022-01-14 | 2022-02-25 | 中国科学院微电子研究所 | AGV path planning method and device in storage environment |
| CN114089774B (en) * | 2022-01-14 | 2022-04-12 | 中国科学院微电子研究所 | AGV path planning method and device in storage environment |
| CN114995398A (en) * | 2022-05-16 | 2022-09-02 | 中国第一汽车股份有限公司 | Path generation method, path generation device, storage medium, processor and electronic device |
| CN115167479A (en) * | 2022-08-25 | 2022-10-11 | 山东新一代信息产业技术研究院有限公司 | Path generation and following method of robot with non-zero turning radius |
| CN115407775A (en) * | 2022-08-26 | 2022-11-29 | 南京理工大学 | Local path planning method based on segmentation map evaluation function |
| CN117739974A (en) * | 2022-09-21 | 2024-03-22 | 广州视源电子科技股份有限公司 | Path optimization method and robot |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111811517A (en) | A dynamic local path planning method and system | |
| US11604469B2 (en) | Route determining device, robot, and route determining method | |
| CN114005280A (en) | A Vehicle Trajectory Prediction Method Based on Uncertainty Estimation | |
| Wu et al. | Autonomous obstacle avoidance of an unmanned surface vehicle based on cooperative manoeuvring | |
| CN117270545B (en) | Substation wheeled inspection robot and method based on convolutional neural network | |
| CN108153310A (en) | A kind of Mobile Robot Real-time Motion planing method based on human behavior simulation | |
| CN116331264B (en) | Obstacle avoidance path robust planning method and system for unknown obstacle distribution | |
| CN105000476A (en) | Unmanned crane space collision avoidance strategy based on fuzzy decision inference | |
| CN118502426A (en) | Mobile robot based on dynamic control obstacle function and self-adaptive optimal control | |
| CN116878515A (en) | Local navigation method in dynamic environment facing multiple pedestrians | |
| CN114895563A (en) | Novel intelligent collaborative distribution robot system based on reinforcement learning | |
| Wang et al. | Towards an obstacle detection system for robot obstacle negotiation | |
| CN119858865A (en) | Intelligent obstacle avoidance and operation range planning method and system for manual telescopic boom of truck mounted crane | |
| Song et al. | Collaborative processing and data optimization of environmental perception technologies for autonomous vehicles | |
| CN113741550B (en) | Mobile robot following method and system | |
| CN117193308A (en) | Smart vehicle obstacle avoidance path planning method based on improved RRT and back-end optimization strategy | |
| CN115148049B (en) | Track generating device and track generating method | |
| CN120313604A (en) | Intelligent navigation method and system | |
| CN119658721A (en) | Robot rescue emergency control system based on voice interaction | |
| CN120103844A (en) | A humanoid robot path planning system based on obstacle avoidance algorithm | |
| CN119414846A (en) | Cleaning robot environmental obstacle marking method, system, device and medium | |
| Aliazam et al. | MAPS: Energy-Reliability Tradeoff Management in Autonomous Vehicles Through LLMs Penetrated Science | |
| Raja et al. | Safe robot control using occupancy grid map-based control barrier function (ogm-cbf) | |
| Aneesh et al. | Autonomous UAV navigation in indoor corridor environments by a depth estimator based on a deep neural network | |
| Li et al. | Intelligent Navigation and Localization System for Indoor Dynamic Environments via Semantic Dimension Chain Knowledge Base Model |
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 | ||
| AD01 | Patent right deemed abandoned | ||
| AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240927 |