CN113190017A - Harvesting robot operation path planning method based on improved ant colony algorithm - Google Patents

Harvesting robot operation path planning method based on improved ant colony algorithm Download PDF

Info

Publication number
CN113190017A
CN113190017A CN202110562995.0A CN202110562995A CN113190017A CN 113190017 A CN113190017 A CN 113190017A CN 202110562995 A CN202110562995 A CN 202110562995A CN 113190017 A CN113190017 A CN 113190017A
Authority
CN
China
Prior art keywords
path
distance
harvester
line
farmland
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
CN202110562995.0A
Other languages
Chinese (zh)
Other versions
CN113190017B (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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN202110562995.0A priority Critical patent/CN113190017B/en
Publication of CN113190017A publication Critical patent/CN113190017A/en
Application granted granted Critical
Publication of CN113190017B publication Critical patent/CN113190017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • 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/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle

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

本发明公开了一种基于改进蚁群算法的收获机器人作业路径规划方法,包括步骤:1、建立不规则四边形农田的数学模型,以转弯次数最少、作业行与边界的垂直程度最大为条件确定最优作业方向;2、将农田全覆盖路径规划抽象为车辆路线问题(VRP),并根据不同的卸粮位置分布,建立相应的VRP模型;3、根据收获机容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,采用改进的蚁群算法设计最优的作业行遍历顺序;4、根据作业行遍历顺序和农田模型,求解各个路径的表达式,生成农田全覆盖路径,为收获机的路径跟踪提供参考。该方法能够根据不同的卸粮位置分布情况设计满载行驶距离最小的农田全覆盖路径。

Figure 202110562995

The invention discloses a method for planning a working path of a harvesting robot based on an improved ant colony algorithm, comprising the steps of: 1. Establishing a mathematical model of an irregular quadrilateral farmland, and determining the most 2. Abstract the full-coverage path planning of farmland into a vehicle routing problem (VRP), and establish a corresponding VRP model according to the distribution of different unloading positions; 3. According to the harvester capacity, total driving distance, and full-load driving distance 4. According to the traversal order of the operation row and the farmland model, solve the expression of each path, and generate the full coverage path of the farmland, which is the harvester The path tracing provides reference. This method can design the full-coverage path of the farmland with the minimum full-load driving distance according to the distribution of different grain unloading positions.

Figure 202110562995

Description

基于改进蚁群算法的收获机器人作业路径规划方法Path planning method for harvesting robot based on improved ant colony algorithm

技术领域technical field

本发明属于智能收获机作业路径规划领域,特别是涉及基于改进蚁群算法的收获机器人作业路径规划方法,具体涉及一种根据收获机粮仓容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,利用改进的蚁群算法设计全覆盖路径的方法。The invention belongs to the field of intelligent harvester operating path planning, in particular to a harvesting robot operating path planning method based on an improved ant colony algorithm, and in particular relates to a harvester granary capacity, total travel distance, full-load travel distance and unloading position distribution constraints conditions, using the improved ant colony algorithm to design the method of full coverage path.

背景技术Background technique

农田全覆盖路径规划是实现收获机自主作业的一项关键技术,能为收获机田间作业提供合理的路径,有效改善重复作业和遗漏作业问题,提高收获机的作业效率。目前在农田全覆盖路径规划方面没有成熟、通用的方法。在实际应用中,针对农田的全覆盖路径规划,主要有两种方式:一种是由驾驶员规定初始作业路径,并通过不断对其平移实现对农田的全覆盖;另一种是在特定的农田环境下,如矩形农田中,以梭行法或者螺旋法进行作业。以上两种路径规划方式的智能化程度、对不同农田的适应性以及作业效率较低。因此,需要对作业路径规划方法进行研究。The path planning of full coverage of farmland is a key technology to realize the autonomous operation of harvester, which can provide a reasonable path for harvester field operation, effectively improve the problem of repeated operation and missing operation, and improve the operation efficiency of harvester. At present, there is no mature and general method for full coverage path planning of farmland. In practical applications, there are two main ways to plan the full coverage path of farmland: one is to specify the initial working path by the driver, and to achieve full coverage of the farmland by constantly shifting it; In the farmland environment, such as rectangular farmland, the operation is carried out by the shuttle method or the spiral method. The above two path planning methods have low intelligence, adaptability to different farmland and operating efficiency. Therefore, it is necessary to study the work path planning method.

通过对全覆盖路径规划算法的国内外研究现状进行分析,多以行驶距离、有效作业面积占比、作业时长、能源消耗等为优化目标,利用贪婪算法、蚁群算法等优化算法设计最优作业路径。满载行驶距离、卸粮位置分布对农机作业路径的规划具有较大影响,综合考虑以上两种因素展开具体研究的相对较少。因此,在进行全覆盖路径规划时,需考虑以下两个因素:大型收获机的重量大,对土地的碾压较大,应减少满载收获机在田间的行驶距离;在实际作业时,存在间歇式卸粮方式,运粮车不能进入田地中,只能停靠在田边,需充分考虑卸粮点的位置分布,自主设计不同的覆盖路径。By analyzing the current research status of the full coverage path planning algorithm at home and abroad, the optimization goals such as the driving distance, the proportion of effective operation area, operation time, and energy consumption are used to design the optimal operation by using optimization algorithms such as greedy algorithm and ant colony algorithm. path. The full-load travel distance and the distribution of unloading positions have a great influence on the planning of agricultural machinery operation paths, and there are relatively few specific studies that comprehensively consider the above two factors. Therefore, when planning a full-coverage path, the following two factors need to be considered: the weight of the large harvester is large and the rolling of the land is large, so the driving distance of the full-load harvester in the field should be reduced; in actual operation, there are intermittent Grain unloading method, the grain truck cannot enter the field and can only park at the edge of the field. It is necessary to fully consider the location distribution of the unloading point and design different coverage paths independently.

发明内容SUMMARY OF THE INVENTION

针对收获机自主路径规划有效性低、通用性弱的问题,本发明提供基于改进蚁群算法的收获机器人作业路径规划方法,建立农田模型,根据五种卸粮位置分布情况,构建作业行与卸粮位置的距离模型,以收获机粮仓容量、总行驶距离、满载行驶距离为约束条件,利用改进的蚁群算法求解作业行遍历顺序,规划作业路径,减小对土地的碾压程度,提高路径规划算法对不同卸粮位置分布的适应性。Aiming at the problems of low effectiveness and weak generality of harvester autonomous path planning, the present invention provides a harvesting robot operation path planning method based on improved ant colony algorithm, establishes a farmland model, and constructs operation lines and unloading positions according to the distribution of five kinds of unloading positions. The distance model of grain location, with the harvester’s granary capacity, total travel distance, and full-load travel distance as constraints, uses the improved ant colony algorithm to solve the traversal sequence of the operation row, plan the operation path, reduce the degree of rolling on the land, and improve the path. The adaptability of the planning algorithm to the distribution of different unloading locations.

本发明提供基于改进蚁群算法的收获机器人作业路径规划方法,其特征在于,包括如下步骤:The present invention provides a method for planning a working path of a harvesting robot based on an improved ant colony algorithm, which is characterized by comprising the following steps:

步骤1、建立农田模型;Step 1. Establish a farmland model;

设农田的四个顶点为A、B、C和D,已知四点的坐标,分别求解出边界的数学表达式,完成对农田的初步建模,以转弯次数最少、作业行与边界的垂直程度最大为条件确定作业方向,分别以四边形的边和对角线为作业方向,求解各自所需的转弯次数;Let the four vertices of the farmland be A, B, C and D, and the coordinates of the four points are known, and the mathematical expressions of the boundaries are solved respectively, and the preliminary modeling of the farmland is completed. Determine the working direction according to the condition of the maximum degree, take the side and diagonal of the quadrilateral as the working direction respectively, and solve the required number of turns;

当以AD为作业方向时,设收获机的割幅为lcut_width,则一系列平行的作业行表示为When AD is the working direction, and the cutting width of the harvester is l cut_width , then a series of parallel working lines are expressed as

Figure BDA0003079717050000021
Figure BDA0003079717050000021

其中,kAD为AD边的斜率,bAD为AD边的截距,i为作业行的序号;Among them, k AD is the slope of AD side, b AD is the intercept of AD side, and i is the sequence number of the job row;

分别求解该组平行线与四边形边界的交点,如果有两个交点,则将转弯次数加一,直到没有交点,则保留当前的转弯次数作为此作业方向的结果;Solve the intersection points of the group of parallel lines and the quadrilateral boundary respectively, if there are two intersection points, add one to the number of turns, until there is no intersection, then keep the current number of turns as the result of this work direction;

同理,再分别以AB、BC、CD、AC和BD为作业方向,求解相应的转弯次数,通过对比,转弯次数最少的作业方向即为所求,如果有多组作业方向均满足转弯次数最少,则对比作业方向与边界的夹角,由于垂直情况下转弯复杂度与转弯距离较小,所以选择夹角接近90°的作业方向,最终,求解得到每个作业行的数学表示式,完善农田模型;In the same way, take AB, BC, CD, AC, and BD as the working directions, respectively, to solve the corresponding turning times. By comparison, the working direction with the fewest turning times is the desired one. If there are multiple sets of working directions that satisfy the minimum turning times. , then compare the included angle between the working direction and the boundary. Since the turning complexity and turning distance are small in the vertical case, the working direction with an included angle close to 90° is selected. Finally, the mathematical expression of each working row is obtained by solving and improving the farmland. Model;

步骤2、将农田全覆盖路径规划抽象为车辆路线问题,并根据不同的卸粮位置分布,建立相应的VRP模型;Step 2. Abstract the farmland full coverage path planning as a vehicle routing problem, and establish a corresponding VRP model according to the distribution of different grain unloading locations;

步骤3、根据收获机容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,采用改进的蚁群算法设计最优的作业行遍历顺序;Step 3. According to the harvester capacity, total driving distance, full-load driving distance and unloading position distribution constraints, the improved ant colony algorithm is used to design the optimal traversal sequence of job rows;

步骤4、根据作业行遍历顺序和农田模型,求解各个路径的表达式,生成农田全覆盖路径,为收获机的路径跟踪提供参考。Step 4. According to the traversal sequence of the job row and the farmland model, the expressions of each path are solved to generate a farmland full coverage path, which provides a reference for the path tracking of the harvester.

进一步的,所述步骤2将农田全覆盖路径规划抽象为车辆路线问题,并根据不同的卸粮位置分布,建立相应的VRP模型,包括如下步骤:Further, the step 2 abstracts the farmland full coverage path planning as a vehicle route problem, and establishes a corresponding VRP model according to the distribution of different grain unloading positions, including the following steps:

(2.1)定义五种卸粮位置分布情况:(2.1) Define five distributions of grain unloading positions:

基于间歇式卸粮方式进行研究,且运粮车不能在农田里行驶,需停靠在路边,按照卸粮的位置和数目分为以下五种情况:The research is based on the intermittent grain unloading method, and the grain truck cannot drive in the farmland and needs to be parked on the side of the road. According to the location and number of unloading grains, it is divided into the following five situations:

“a”:只有一个卸粮位置S1,在作业行的首部或尾部;"a": There is only one unloading position S 1 , at the beginning or end of the operation line;

“b”:只有一个卸粮位置S1,在与作业行平行的一侧道路上;"b": There is only one unloading position S 1 , on the side of the road parallel to the operation row;

“c”:有两个卸粮位置S1、S2,分别在作业行的首部、尾部;"c": There are two grain unloading positions S 1 and S 2 , which are at the head and tail of the operation line respectively;

“d”:有两个卸粮位置S1、S2,分别在与作业行平行的两侧道路上;"d": There are two grain unloading positions S 1 and S 2 , which are respectively on the two sides of the road parallel to the operation row;

“e”:有两个卸粮位置S1、S2,一个在作业行的首部或尾部,一个在与作业行平行的道路上;"e": There are two grain unloading positions S 1 , S 2 , one is at the head or tail of the operation row, and the other is on the road parallel to the operation row;

(2.2)建立VRP模型:(2.2) Establish a VRP model:

农田全覆盖路径规划是指通过规划收获机的作业路径,使其遍历整块农田,且每个作业行只经过一次,收获机的装载量不能超过其自身容量,当满载或者接近满载时,需到卸粮位置进行卸粮,设路径点集合为E,其中包括每个作业行的首端点iup、尾端点idown,卸粮位置S1、S2,每个作业行具有长度li和能够收获的粮食体积Vi两个属性,收获机从卸粮位置出发,通过一定顺序遍历各个作业行,最终回到卸粮位置,设收获机容量为Vgranary,作业行序号为i、j,其中i,j∈[1,nline],卸粮点S1到作业行首端的距离为

Figure BDA0003079717050000031
到作业行尾端的距离为
Figure BDA0003079717050000032
卸粮点S2到作业行首端的距离为
Figure BDA0003079717050000033
到作业行尾端的距离为
Figure BDA0003079717050000034
作业行之间的转弯距离为
Figure BDA0003079717050000035
根据五种卸粮位置分布情况,分别建立作业行与卸粮位置间的距离模型如下:Full-coverage path planning of farmland refers to planning the operation path of the harvester so that it traverses the entire farmland, and each operation row only passes through once, and the loading capacity of the harvester cannot exceed its own capacity. To unload the grain at the unloading position, let the set of path points be E, which includes the start point i up and the tail point i down of each operation line, the unloading positions S 1 , S 2 , and each operation line has lengths li and There are two attributes of the grain volume V i that can be harvested. The harvester starts from the unloading position, traverses each operation line in a certain order, and finally returns to the unloading position. Let the capacity of the harvester be V granary , and the serial numbers of the operation lines are i, j, where i,j∈[1,n line ], the distance from the unloading point S 1 to the beginning of the operation line is
Figure BDA0003079717050000031
The distance to the end of the job line is
Figure BDA0003079717050000032
The distance from the unloading point S2 to the beginning of the operation row is
Figure BDA0003079717050000033
The distance to the end of the job line is
Figure BDA0003079717050000034
The turn distance between job rows is
Figure BDA0003079717050000035
According to the distribution of five grain unloading positions, the distance models between the operation line and the grain unloading position are respectively established as follows:

(2.2.1)收获机在作业行首端卸载:(2.2.1) The harvester is unloaded at the beginning of the job row:

Figure BDA0003079717050000036
Figure BDA0003079717050000036

其中,li为第i个作业行的长度;Among them, l i is the length of the i-th job line;

(2.2.2)收获机在与作业行平行的一侧卸载:(2.2.2) The harvester is unloaded on the side parallel to the work row:

Figure BDA0003079717050000037
Figure BDA0003079717050000037

其中,w为作业行宽度,θup为上边界与作业行的夹角,θdown为下边界与作业行的夹角;Among them, w is the width of the work row, θ up is the angle between the upper boundary and the work row, and θ down is the angle between the lower boundary and the work row;

(2.2.3)收获机在作业行的首端和尾端均可卸载:(2.2.3) The harvester can be unloaded at the beginning and end of the row:

Figure BDA0003079717050000038
Figure BDA0003079717050000038

(2.2.4)收获机在与作业行平行的两侧均可卸载:(2.2.4) The harvester can be unloaded on both sides parallel to the work row:

Figure BDA0003079717050000039
Figure BDA0003079717050000039

其中,nline为作业行数目;Among them, n line is the number of job lines;

(2.2.5)收获机在作业行首端和左侧卸载:(2.2.5) The harvester is unloaded at the beginning and left of the row:

Figure BDA0003079717050000041
Figure BDA0003079717050000041

作业行之间的转弯距离为

Figure BDA0003079717050000042
为The turn distance between job rows is
Figure BDA0003079717050000042
for

Figure BDA0003079717050000043
Figure BDA0003079717050000043

其中,ST为T型转弯方式的转弯距离,SΩ为Ω型转弯方式的转弯距离,SU为U型转弯方式的转弯距离。Among them, S T is the turning distance of the T-turn, S Ω is the turning distance of the Ω-turn, and S U is the turning distance of the U-turn.

进一步的,所述步骤3根据收获机容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,采用改进的蚁群算法设计最优的作业行遍历顺序,具体包括如下步骤:Further, the step 3 adopts the improved ant colony algorithm to design the optimal traversal sequence of work rows according to the harvester capacity, total travel distance, full load travel distance and unloading position distribution constraints, which specifically includes the following steps:

(3.1)蚁群算法初始化:(3.1) Ant colony algorithm initialization:

设置蚁群规模为M,遗留信息素的重要程度因子为α,启发函数的重要程度因子为β,信息素挥发因子为ρ,蚂蚁迭代一次释放的信息素总量为Q,最大迭代次数为ImaxSet the size of the ant colony as M, the importance factor of the legacy pheromone as α, the importance factor of the heuristic function as β, the pheromone volatility factor as ρ, the total amount of pheromone released by ants in one iteration as Q, and the maximum number of iterations as I max ;

在初次迭代中,每条路径上的初始信息素含量相同,蚁群从卸粮点出发,根据每条路线的信息素含量和启发函数,选择合理的路径,每段路径pq的启发函数为

Figure BDA0003079717050000044
距离越小,函数值越大;In the first iteration, the initial pheromone content on each path is the same. The ant colony starts from the unloading point and selects a reasonable path according to the pheromone content and heuristic function of each path. The heuristic function of each path pq is
Figure BDA0003079717050000044
The smaller the distance, the larger the function value;

(3.2)路径选择:(3.2) Path selection:

计算第n次迭代中,第m只蚂蚁从当前点p向下一个点q转移的概率为In the calculation of the nth iteration, the probability of the mth ant transferring from the current point p to the next point q is:

Figure BDA0003079717050000045
Figure BDA0003079717050000045

其中,τpq(n)为第n次迭代中路径pq的信息素;Among them, τ pq (n) is the pheromone of the path pq in the nth iteration;

选择转移概率最大的路径作为目标路径,并判断是否超过容量约束,如果超过了,则不添加该点,继续寻找下一个目标点;如果没有超过,则将其添加到当前的路径中。重复该步骤,直到将所有作业行全部遍历,完成一次迭代,记录每只蚂蚁的路径节点

Figure BDA0003079717050000046
并记录总路径长度
Figure BDA0003079717050000047
通过对比,获得最小的总路径长度
Figure BDA0003079717050000048
以及对应的路径
Figure BDA0003079717050000049
Select the path with the largest transition probability as the target path, and judge whether it exceeds the capacity constraint. If it exceeds, the point will not be added, and the next target point will continue to be found; if not, it will be added to the current path. Repeat this step until all job lines are traversed, complete one iteration, and record the path node of each ant
Figure BDA0003079717050000046
and record the total path length
Figure BDA0003079717050000047
By comparison, the minimum total path length is obtained
Figure BDA0003079717050000048
and the corresponding path
Figure BDA0003079717050000049

(3.3)基于重量权重因子调整路线长度:(3.3) Adjust the route length based on the weight weight factor:

信息素的积累与路线的长度有直接关系,通过改变路线长度,改变信息素的含量,影响蚁群算法的寻优过程,在目前的路径规划算法中,多以行驶的总距离为代价函数,通过优化算法,求解得到使该函数达到最小值的可行解,除了考虑总行驶距离,加入了满载距离约束,当蚂蚁经过一个作业行时,更新其所收获的粮食体积,将该值与路径的长度进行关联,指导蚂蚁按照满载距离约束进行寻优,对路径的距离进行如下改进:The accumulation of pheromone is directly related to the length of the route. By changing the length of the route and changing the content of pheromone, the optimization process of the ant colony algorithm is affected. Through the optimization algorithm, the feasible solution that makes the function reach the minimum value is obtained. In addition to considering the total driving distance, the full load distance constraint is added. When the ants pass through a work row, the volume of the harvested grain is updated, and the value is related to the path's value. The length is associated to guide the ants to optimize according to the full load distance constraint, and the distance of the path is improved as follows:

Figure BDA0003079717050000051
Figure BDA0003079717050000051

其中,wightmass为重量权重因子,Vnow为当前收获的粮食体积,Vgranary为粮仓容量,km为比例因子,当蚂蚁以较大的重量经过某一路径时,所记录的该段路径的距离会大于真实距离,进而减小该路径的信息素,诱导蚂蚁在满载情况下寻找较短的路径;Among them, weight mass is the weight weight factor, V now is the currently harvested grain volume, V granary is the granary capacity, and km is the scale factor. The distance will be greater than the real distance, thereby reducing the pheromone of the path, inducing the ants to find a shorter path under full load;

(3.4)更新信息素:(3.4) Update pheromone:

蚂蚁每经过一条路径,都会在该路径留下信息素。下一次迭代时,路径pq的信息素含量为Every time an ant passes a path, it will leave a pheromone on the path. At the next iteration, the pheromone content of the path pq is

τpq(n+1)=(1-ρ)τpq(n)+Δτpq τ pq (n+1)=(1-ρ)τ pq (n)+Δτ pq

其中,(1-ρ)·τpq(n)为挥发之后剩余的信息素,Δτpq为本次迭代中,所有经过该路径的蚂蚁留下的信息素为:Among them, (1-ρ) τ pq (n) is the remaining pheromone after volatilization, and Δτ pq is the pheromone left by all ants passing through this path in this iteration:

Figure BDA0003079717050000052
Figure BDA0003079717050000052

其中,每只蚂蚁留下的信息素含量为:Among them, the pheromone content left by each ant is:

Figure BDA0003079717050000053
Figure BDA0003079717050000053

该值由所经过路径的距离决定,距离越短,信息素含量越高;The value is determined by the distance of the path passed, the shorter the distance, the higher the pheromone content;

(3.5)判断是否终止迭代:(3.5) Determine whether to terminate the iteration:

如果满足蚁群算法结束条件,则本次迭代蚂蚁走过的路径即为作业行遍历顺序,转到步骤4;If the end condition of the ant colony algorithm is satisfied, the path traversed by the ants in this iteration is the traversal sequence of the job row, and go to step 4;

如果不满足蚁群算法结束条件,令迭代次数i=i+1,跳转到步骤(3.2)继续寻找下一个路径。If the end condition of the ant colony algorithm is not satisfied, set the number of iterations i=i+1, and jump to step (3.2) to continue searching for the next path.

进一步的,所述蚁群算法结束条件为:Further, the end condition of the ant colony algorithm is:

当前迭代次数i>Imax,或最优解满足精度要求:The current number of iterations i>I max , or the optimal solution meets the accuracy requirements:

Figure BDA0003079717050000061
Figure BDA0003079717050000061

其中,

Figure BDA0003079717050000062
是第i次迭代后,得到的最短路径长度,ξ是预设的精度阈值。in,
Figure BDA0003079717050000062
is the shortest path length obtained after the ith iteration, and ξ is the preset accuracy threshold.

进一步的,所述步骤4根据作业行遍历顺序和农田模型,求解各个路径的表达式,生成农田全覆盖路径,为收获机的路径跟踪提供参考,具体如下:Further, the step 4 solves the expression of each path according to the traversal sequence of the job row and the farmland model, and generates a farmland full coverage path, which provides a reference for the path tracking of the harvester, as follows:

利用步骤3根据收获机容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,采用改进的蚁群算法设计最优的作业行遍历顺序,利用该遍历顺序将步骤1求解得到的各作业行表达式联系起来,构成覆盖整个农田的路径表达式。Using step 3, according to the distribution constraints of harvester capacity, total driving distance, full-load driving distance and unloading position, the improved ant colony algorithm is used to design the optimal traversal order of job rows, and each job obtained in step 1 is solved by using the traversal order. The row expressions are linked together to form a path expression covering the entire field.

有益效果:与现有技术相比,本发明公开的基于改进蚁群算法的收获机器人作业路径规划方法具有如下优点:提出了五种卸粮位置分布情况,并相应地建立了作业行与卸粮位置的距离模型,提高了路径规划算法对不同作业环境的适应性;利用蚁群算法进行路径搜索,鲁棒性强,具有更强的全局搜索能力;利用“重量权重因子”对路径长度进行调整,对蚁群算法进行改进,能够减小满载行驶距离,减少收获机对土地的碾压程度,提高作业效率。Beneficial effects: Compared with the prior art, the method for planning the working path of the harvesting robot based on the improved ant colony algorithm disclosed in the present invention has the following advantages: five kinds of grain unloading position distributions are proposed, and the operation row and grain unloading are correspondingly established. The distance model of the location improves the adaptability of the path planning algorithm to different operating environments; the ant colony algorithm is used for path search, which has strong robustness and stronger global search ability; the "weight weight factor" is used to adjust the path length , the improvement of the ant colony algorithm can reduce the full-load driving distance, reduce the degree of rolling of the land by the harvester, and improve the operation efficiency.

附图说明Description of drawings

图1为本发明公开的基于改进蚁群算法的收获机器人作业路径规划方法的流程图。FIG. 1 is a flowchart of a method for planning a working path of a harvesting robot based on an improved ant colony algorithm disclosed in the present invention.

具体实施方式Detailed ways

下面结合附图与具体实施方式对本发明作进一步详细描述:The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments:

本发明提供基于改进蚁群算法的收获机器人作业路径规划方法,建立农田模型,根据五种卸粮位置分布情况,构建作业行与卸粮位置的距离模型,以收获机粮仓容量、总行驶距离、满载行驶距离为约束条件,利用改进的蚁群算法求解作业行遍历顺序,规划作业路径,减小对土地的碾压程度,提高路径规划算法对不同卸粮位置分布的适应性。The invention provides an operation path planning method for a harvesting robot based on an improved ant colony algorithm. A farmland model is established. According to the distribution of five kinds of grain unloading positions, a distance model between the operation row and the unloading position is constructed. The full-load driving distance is the constraint condition. The improved ant colony algorithm is used to solve the traversal sequence of the operation row, plan the operation path, reduce the degree of rolling of the land, and improve the adaptability of the path planning algorithm to the distribution of different unloading positions.

如图1所示,本发明公开了基于改进蚁群算法的收获机器人作业路径规划方法,包括如下步骤:As shown in FIG. 1 , the present invention discloses a method for planning a working path of a harvesting robot based on an improved ant colony algorithm, which includes the following steps:

步骤1、建立农田模型:Step 1. Establish a farmland model:

设农田的四个顶点为A、B、C和D,已知四点的坐标,可以分别求解出边界的数学表达式,完成对农田的初步建模。以转弯次数最少、作业行与边界的垂直程度最大为条件确定作业方向,分别以四边形的边和对角线为作业方向,求解各自所需的转弯次数。Let the four vertices of the farmland be A, B, C, and D. Knowing the coordinates of the four points, the mathematical expressions of the boundaries can be solved respectively, and the preliminary modeling of the farmland can be completed. The working direction is determined on the condition that the number of turns is the least and the perpendicularity between the working row and the boundary is the maximum, and the sides and diagonals of the quadrilateral are used as the working direction to solve the required number of turns.

当以AD为作业方向时,设收获机的割幅为lcut_width,则一系列平行的作业行可以表示为

Figure BDA0003079717050000063
When AD is the working direction, set the cutting width of the harvester as l cut_width , then a series of parallel working lines can be expressed as
Figure BDA0003079717050000063

其中,kAD为AD边的斜率,bAD为AD边的截距,i为作业行的序号;Among them, k AD is the slope of AD side, b AD is the intercept of AD side, and i is the sequence number of the job row;

分别求解该组平行线与四边形边界的交点,如果有两个交点,则将转弯次数加一,直到没有交点,则保留当前的转弯次数作为此作业方向的结果。Solve the intersection of the set of parallel lines and the quadrilateral boundary respectively. If there are two intersections, add one to the number of turns until there is no intersection, then keep the current number of turns as the result of this job direction.

同理,再分别以AB、BC、CD、AC和BD为作业方向,求解相应的转弯次数。通过对比,转弯次数最少的作业方向即为所求。如果有多组作业方向均满足转弯次数最少,则对比作业方向与边界的夹角。由于垂直情况下转弯复杂度与转弯距离较小,所以选择夹角接近90°的作业方向。最终,求解得到每个作业行的数学表示式,完善农田模型。In the same way, take AB, BC, CD, AC, and BD as the working directions to solve the corresponding turning times. By comparison, the working direction with the least number of turns is the desired one. If there are multiple sets of working directions that satisfy the minimum number of turns, compare the angle between the working direction and the boundary. Since the turning complexity and turning distance are small in the vertical case, the working direction with an included angle close to 90° is selected. Finally, the mathematical expression of each operation row is obtained by solving, and the farmland model is perfected.

步骤2、将农田全覆盖路径规划抽象为车辆路线问题,并根据不同的卸粮位置分布,建立相应的VRP模型。包括如下步骤:Step 2. Abstract the full-coverage path planning of farmland into a vehicle routing problem, and establish a corresponding VRP model according to the distribution of different unloading positions. It includes the following steps:

(2.1)定义五种卸粮位置分布情况(2.1) Define the distribution of five grain unloading locations

本发明基于间歇式卸粮方式进行研究,且运粮车不能在农田里行驶,需停靠在路边。按照卸粮的位置和数目可分为以下五种情况:The present invention is researched based on the intermittent grain unloading method, and the grain transport vehicle cannot run in the farmland and needs to be parked on the side of the road. According to the location and number of unloading grains, it can be divided into the following five situations:

“a”:只有一个卸粮位置S1,在作业行的首部(或尾部);"a": There is only one unloading position S 1 , at the head (or tail) of the operation line;

“b”:只有一个卸粮位置S1,在与作业行平行的一侧道路上;"b": There is only one unloading position S 1 , on the side of the road parallel to the operation row;

“c”:有两个卸粮位置S1、S2,分别在作业行的首部、尾部;"c": There are two grain unloading positions S 1 and S 2 , which are at the head and tail of the operation line respectively;

“d”:有两个卸粮位置S1、S2,分别在与作业行平行的两侧道路上;"d": There are two grain unloading positions S 1 and S 2 , which are respectively on the two sides of the road parallel to the operation row;

“e”:有两个卸粮位置S1、S2,一个在作业行的首部(或尾部),一个在与作业行平行的道路上。"e": There are two grain unloading positions S 1 , S 2 , one is at the head (or tail) of the operation row, and the other is on the road parallel to the operation row.

(2.2)建立VRP模型(2.2) Establish a VRP model

农田全覆盖路径规划是指通过规划收获机的作业路径,使其遍历整块农田,且每个作业行只经过一次,收获机的装载量不能超过其自身容量。当满载或者接近满载时,需到卸粮位置进行卸粮。设路径点集合为E,其中包括每个作业行的首端点iup、尾端点idown,卸粮位置S1、S2。每个作业行具有长度li和能够收获的粮食体积Vi两个属性。收获机从卸粮位置出发,通过一定顺序遍历各个作业行,最终回到卸粮位置。设收获机容量为Vgranary,作业行序号为i、j(i,j∈[1,nline]),卸粮点S1到作业行首端的距离为

Figure BDA0003079717050000071
到作业行尾端的距离为
Figure BDA0003079717050000072
卸粮点S2到作业行首端的距离为
Figure BDA0003079717050000073
到作业行尾端的距离为
Figure BDA0003079717050000074
作业行之间的转弯距离为
Figure BDA0003079717050000075
根据五种卸粮位置分布情况,分别建立作业行与卸粮位置间的距离模型如下:Farmland full coverage path planning refers to planning the operation path of the harvester so that it traverses the entire farmland, and each operation row only passes through once, and the loading capacity of the harvester cannot exceed its own capacity. When the load is full or close to full load, it needs to go to the unloading position to unload the grain. Let the set of path points be E, which includes the start point i up , the end point i down , and the unloading positions S 1 and S 2 of each job row. Each job row has two attributes : length li and harvestable grain volume Vi . The harvester starts from the unloading position, traverses each operation line in a certain order, and finally returns to the unloading position. Let the capacity of the harvester be V granary , the serial numbers of the operation lines are i, j (i,j∈[1,n line ]), and the distance from the unloading point S1 to the beginning of the operation line is
Figure BDA0003079717050000071
The distance to the end of the job line is
Figure BDA0003079717050000072
The distance from the unloading point S2 to the beginning of the operation row is
Figure BDA0003079717050000073
The distance to the end of the job line is
Figure BDA0003079717050000074
The turn distance between job rows is
Figure BDA0003079717050000075
According to the distribution of five grain unloading positions, the distance models between the operation line and the grain unloading position are respectively established as follows:

(2.2.1)收获机在作业行首端卸载(2.2.1) The harvester is unloaded at the beginning of the operation row

Figure BDA0003079717050000076
Figure BDA0003079717050000076

其中,li为第i个作业行的长度。where li is the length of the i -th job line.

(2.2.2)收获机在与作业行平行的一侧卸载(2.2.2) The harvester is unloaded on the side parallel to the working row

Figure BDA0003079717050000081
Figure BDA0003079717050000081

其中,w为作业行宽度,θup为上边界与作业行的夹角,θdown为下边界与作业行的夹角。Among them, w is the width of the work row, θ up is the angle between the upper boundary and the work row, and θ down is the angle between the lower boundary and the work row.

(2.2.3)收获机在作业行的首端和尾端均可卸载(2.2.3) The harvester can be unloaded at the beginning and end of the operation row

Figure BDA0003079717050000082
Figure BDA0003079717050000082

(2.2.4)收获机在与作业行平行的两侧均可卸载(2.2.4) The harvester can be unloaded on both sides parallel to the operation row

Figure BDA0003079717050000083
Figure BDA0003079717050000083

其中,nline为作业行数目。Among them, n line is the number of job lines.

(2.2.5)收获机在作业行首端和左侧卸载(2.2.5) The harvester is unloaded at the head and left side of the operation row

Figure BDA0003079717050000084
Figure BDA0003079717050000084

作业行之间的转弯距离为

Figure BDA0003079717050000085
为The turn distance between job rows is
Figure BDA0003079717050000085
for

Figure BDA0003079717050000086
Figure BDA0003079717050000086

其中,ST为T型转弯方式的转弯距离,SΩ为Ω型转弯方式的转弯距离,SU为U型转弯方式的转弯距离。Among them, S T is the turning distance of the T-turn, S Ω is the turning distance of the Ω-turn, and S U is the turning distance of the U-turn.

步骤3、根据收获机容量、总行驶距离、满载行驶距离和卸粮位置分布约束条件,采用改进的蚁群算法设计最优的作业行遍历顺序。具体包括如下步骤:Step 3. According to the harvester capacity, total driving distance, full-load driving distance and unloading position distribution constraints, an improved ant colony algorithm is used to design the optimal traversal sequence of job rows. Specifically include the following steps:

(3.1)蚁群算法初始化(3.1) Initialization of Ant Colony Algorithm

设置蚁群规模为M,遗留信息素的重要程度因子为α,启发函数的重要程度因子为β,信息素挥发因子为ρ,蚂蚁迭代一次释放的信息素总量为Q,最大迭代次数为ImaxSet the size of the ant colony as M, the importance factor of the legacy pheromone as α, the importance factor of the heuristic function as β, the pheromone volatility factor as ρ, the total amount of pheromone released by ants in one iteration as Q, and the maximum number of iterations as I max .

在初次迭代中,每条路径上的初始信息素含量相同。蚁群从卸粮点出发,根据每条路线的信息素含量和启发函数,选择合理的路径。每段路径pq的启发函数为

Figure BDA0003079717050000091
距离越小,函数值越大。In the first iteration, the initial pheromone content on each path is the same. The ant colony starts from the unloading point and selects a reasonable path according to the pheromone content and heuristic function of each route. The heuristic function of each path pq is
Figure BDA0003079717050000091
The smaller the distance, the larger the function value.

(3.2)路径选择(3.2) Path selection

计算第n次迭代中,第m只蚂蚁从当前点p向下一个点q转移的概率为In the calculation of the nth iteration, the probability of the mth ant transferring from the current point p to the next point q is:

Figure BDA0003079717050000092
Figure BDA0003079717050000092

其中,τpq(n)为第n次迭代中路径pq的信息素。where τ pq (n) is the pheromone of the path pq in the nth iteration.

选择转移概率最大的路径作为目标路径,并判断是否超过容量约束,如果超过了,则不添加该点,继续寻找下一个目标点;如果没有超过,则将其添加到当前的路径中。重复该步骤,直到将所有作业行全部遍历,完成一次迭代,记录每只蚂蚁的路径节点

Figure BDA0003079717050000093
并记录总路径长度
Figure BDA0003079717050000094
通过对比,获得最小的总路径长度
Figure BDA0003079717050000095
以及对应的路径
Figure BDA0003079717050000096
Select the path with the largest transition probability as the target path, and judge whether it exceeds the capacity constraint. If it exceeds, the point will not be added, and the next target point will continue to be found; if not, it will be added to the current path. Repeat this step until all job lines are traversed, complete one iteration, and record the path node of each ant
Figure BDA0003079717050000093
and record the total path length
Figure BDA0003079717050000094
By comparison, the minimum total path length is obtained
Figure BDA0003079717050000095
and the corresponding path
Figure BDA0003079717050000096

(3.3)基于重量权重因子调整路线长度(3.3) Adjust the route length based on the weight weight factor

信息素的积累与路线的长度有直接关系,通过改变路线长度,可改变信息素的含量,影响蚁群算法的寻优过程。在目前的路径规划算法中,多以行驶的总距离为代价函数,通过优化算法,求解得到使该函数达到最小值的可行解。本文除了考虑总行驶距离,加入了满载距离约束。为了减小满载情况下收获机对土地的压实程度,对路径的真实距离增加了重量权重因子。当蚂蚁经过一个作业行时,更新其所收获的粮食体积,将该值与路径的长度进行关联,指导蚂蚁按照满载距离约束进行寻优。对路径的距离进行如下改进:The accumulation of pheromone is directly related to the length of the route. By changing the length of the route, the content of pheromone can be changed, which affects the optimization process of the ant colony algorithm. In the current path planning algorithm, the total distance traveled is often used as the cost function, and through the optimization algorithm, the feasible solution that makes the function reach the minimum value is obtained. In addition to considering the total travel distance, this paper adds a full load distance constraint. In order to reduce the degree of compaction of the land by the harvester under full load, a weight weighting factor is added to the true distance of the path. When the ants pass through a job line, the volume of the harvested grain is updated, and the value is associated with the length of the path to guide the ants to optimize according to the full load distance constraint. The distance of the path is improved as follows:

Figure BDA0003079717050000097
Figure BDA0003079717050000097

其中,wightmass为重量权重因子,Vnow为当前收获的粮食体积,Vgranary为粮仓容量,km为比例因子。当蚂蚁以较大的重量经过某一路径时,所记录的该段路径的距离会大于真实距离,进而减小该路径的信息素,诱导蚂蚁在满载情况下寻找较短的路径。Among them, weight mass is the weight weight factor, V now is the volume of the currently harvested grain, V granary is the granary capacity, and km is the scale factor. When the ants pass through a certain path with a large weight, the recorded distance of the path will be greater than the real distance, thereby reducing the pheromone of the path and inducing the ants to find a shorter path under full load.

(3.4)更新信息素(3.4) Update pheromone

蚂蚁每经过一条路径,都会在该路径留下信息素。下一次迭代时,路径pq的信息素含量为Every time an ant passes a path, it will leave a pheromone on the path. At the next iteration, the pheromone content of the path pq is

τpq(n+1)=(1-ρ)τpq(n)+Δτpq τ pq (n+1)=(1-ρ)τ pq (n)+Δτ pq

其中,(1-ρ)·τpq(n)为挥发之后剩余的信息素,Δτpq为本次迭代中,所有经过该路径的蚂蚁留下的信息素为Among them, (1-ρ)·τ pq (n) is the remaining pheromone after volatilization, and Δτ pq is the pheromone left by all ants passing through the path in this iteration as

Figure BDA0003079717050000101
Figure BDA0003079717050000101

其中,每只蚂蚁留下的信息素含量为Among them, the pheromone content left by each ant is

Figure BDA0003079717050000102
Figure BDA0003079717050000102

该值由所经过路径的距离决定,距离越短,信息素含量越高。This value is determined by the distance of the path traversed, the shorter the distance, the higher the pheromone content.

(3.5)判断是否终止迭代(3.5) Determine whether to terminate the iteration

如果满足蚁群算法结束条件,则本次迭代蚂蚁走过的路径即为作业行遍历顺序,转到步骤4;If the end condition of the ant colony algorithm is satisfied, the path traversed by the ants in this iteration is the traversal sequence of the job row, and go to step 4;

如果不满足蚁群算法结束条件,令迭代次数i=i+1,跳转到步骤(3.2)继续寻找下一个路径。If the end condition of the ant colony algorithm is not satisfied, set the number of iterations i=i+1, and jump to step (3.2) to continue searching for the next path.

蚁群算法结束条件为:The end condition of the ant colony algorithm is:

当前迭代次数i>Imax,或最优解满足精度要求:The current number of iterations i>I max , or the optimal solution meets the accuracy requirements:

Figure BDA0003079717050000103
Figure BDA0003079717050000103

其中,

Figure BDA0003079717050000104
是第i次迭代后,得到的最短路径长度,ξ是预设的精度阈值。in,
Figure BDA0003079717050000104
is the shortest path length obtained after the ith iteration, and ξ is the preset accuracy threshold.

步骤4、根据作业行遍历顺序和农田模型,求解各个路径的表达式,生成农田全覆盖路径,为收获机的路径跟踪提供参考。具体如下:Step 4. According to the traversal sequence of the job row and the farmland model, the expressions of each path are solved to generate a farmland full coverage path, which provides a reference for the path tracking of the harvester. details as follows:

利用步骤3求解得到的作业行最优遍历顺序,将步骤1求解得到的各作业行表达式联系起来,构成覆盖整个农田的路径表达式。Using the optimal traversal order of the job row obtained by the solution in step 3, the expressions of each job row obtained by the solution in step 1 are connected to form a path expression covering the entire farmland.

以上所述,仅是本发明的较佳实施例之一,并非是对本发明作任何其他形式的限制,而依据本发明的技术实质所作的任何修改或等同变化,仍属于本发明所要求保护的范围。The above is only one of the preferred embodiments of the present invention, and is not intended to limit the present invention in any other form, and any modification or equivalent change made according to the technical essence of the present invention still belongs to the protection claimed by the present invention. scope.

Claims (5)

1. The harvesting robot operation path planning method based on the improved ant colony algorithm is characterized by comprising the following steps of:
step 1, establishing a farmland model:
setting the four vertexes of the farmland as A, B, C and D, knowing the coordinates of the four points, solving the mathematical expression of the boundary, completing the preliminary modeling of the farmland, determining the operation direction under the conditions of the minimum turning times and the maximum vertical degree of the operation line and the boundary, and respectively taking the sides and the diagonal lines of the quadrangle as the operation direction to solve the required turning times;
when the AD is taken as the operation direction, the cutting width of the harvester is set as lcut_widthThen a series of parallel operation behaviors
Figure FDA0003079717040000011
Wherein k isADIs the slope of the AD side, bADThe intercept is AD edge intercept, i is the serial number of the operation line;
respectively solving the intersection points of the group of parallel lines and the quadrilateral boundary, if two intersection points exist, adding one to the turn times until no intersection point exists, and keeping the current turn times as the result of the operation direction;
similarly, respectively using AB, BC, CD, AC and BD as operation directions, solving corresponding turning times, wherein the operation direction with the minimum turning times is obtained by comparison, if a plurality of groups of operation directions all meet the requirement of the minimum turning times, comparing the included angle between the operation direction and the boundary, selecting the operation direction with the included angle close to 90 degrees because the turning complexity and the turning distance are smaller under the vertical condition, and finally solving to obtain the mathematical expression of each operation line so as to perfect the farmland model;
step 2, abstracting the farmland full-coverage path planning into a vehicle route problem, and establishing a corresponding VRP model according to different grain unloading position distribution;
step 3, designing an optimal operation line traversal sequence by adopting an improved ant colony algorithm according to the capacity of the harvester, the total travel distance, the full-load travel distance and the grain unloading position distribution constraint condition;
and 4, solving the expression of each path according to the traversal sequence of the operation lines and the farmland model to generate a farmland full-coverage path and provide reference for path tracking of the harvester.
2. The harvesting robot working path planning method based on the improved ant colony algorithm according to claim 1, wherein the step 2 abstracts the farmland full coverage path planning into a vehicle route problem, and establishes a corresponding VRP model according to different grain unloading position distributions, and comprises the following steps:
(2.1) defining five grain unloading position distribution conditions:
based on intermittent type formula mode of unloading is studied, and the fortune grain car can not travel in the farmland, need berth at the roadside, divide into following five kinds of condition according to the position and the figure of unloading:
"a": only one grain unloading position S1At the head or tail of the operation line;
"b": only one grain unloading position S1On a side road parallel to the work line;
"c": with two grain unloading positions S1、S2Respectively at the head and tail of the operation line;
"d": with two grain unloading positions S1、S2On the two side roads parallel to the operation line;
"e": with two grain unloading positions S1、S2One at the head or tail of the line and one on a road parallel to the line;
(2.2) establishing a VRP model:
the farmland full-coverage path planning means that the operation path of the harvester is planned to traverse the whole farmland, each operation line only passes through once, the loading capacity of the harvester cannot exceed the capacity of the harvester, when the harvester is fully loaded or nearly fully loaded, the harvester needs to unload grains at the grain unloading position, the set of path points is E, wherein the set of path points comprises a head end point i of each operation lineupEnd point idownPosition S for unloading grain1、S2Each job row having a length of liAnd grain volume V that can be harvestediTwo attributes, starting from the grain unloading position, traversing each operation line in a certain sequence, and finally returning to the grain unloading position, and setting the capacity of the harvester as VgranaryThe sequence number of the operation line is i, j, wherein i, j belongs to [1, n ]line]Unloading point S1A distance to the head end of the working line of
Figure FDA0003079717040000021
To the tail end of the working line at a distance of
Figure FDA0003079717040000022
Grain unloading point S2A distance to the head end of the working line of
Figure FDA0003079717040000023
To the tail end of the working line at a distance of
Figure FDA0003079717040000024
The turning distance between the working lines is
Figure FDA0003079717040000025
According to five grain unloading positionsAnd (3) setting distribution conditions, and respectively establishing a distance model between an operation line and a grain unloading position as follows:
(2.2.1) unloading the harvester at the head of the working line:
Figure FDA0003079717040000026
wherein liIs the length of the ith job row;
(2.2.2) the harvester unloads on the side parallel to the working line:
Figure FDA0003079717040000027
wherein w is the working line width, θupIs the angle between the upper boundary and the line of operation, θdownIs the included angle between the lower boundary and the operation line;
(2.2.3) the harvester can be unloaded at both the head and tail ends of the work line:
Figure FDA0003079717040000028
(2.2.4) the harvester can unload on both sides parallel to the working line:
Figure FDA0003079717040000029
wherein n islineIs the number of operation lines;
(2.2.5) harvester unloading at work line head end and left side:
Figure FDA0003079717040000031
the turning distance between the working lines is
Figure FDA0003079717040000032
Is composed of
Figure FDA0003079717040000033
Wherein S isTTurning distance in T-turn mode, SΩTurning distance in omega-type turning mode, SUThe turning distance of the U-shaped turning mode.
3. The method for planning the operation path of the harvesting robot based on the improved ant colony algorithm as claimed in claim 1, wherein the step 3 is to design an optimal operation traversal order by using the improved ant colony algorithm according to the constraints of the harvester capacity, the total travel distance, the full-load travel distance and the grain unloading position distribution, and specifically comprises the following steps:
(3.1) ant colony algorithm initialization:
setting the ant colony scale as M, the important degree factor of the left pheromone as alpha, the important degree factor of the heuristic function as beta, the pheromone volatilization factor as rho, the total pheromone released by the ant in one iteration as Q, and the maximum iteration number as Imax
In the first iteration, the initial pheromone content on each path is the same, the ant colony starts from a grain unloading point, a reasonable path is selected according to the pheromone content and the heuristic function of each path, and the heuristic function of each section of path pq is
Figure FDA0003079717040000034
The smaller the distance, the larger the function value;
(3.2) path selection:
calculating the probability that the mth ant transfers from the current point p to the next point q in the nth iteration as
Figure FDA0003079717040000035
Wherein, taupq(n) is the pheromone of path pq in the nth iteration;
selecting the path with the maximum transition probability as a target path, judging whether the capacity constraint is exceeded or not, if so, not adding the point, and continuously searching the next target point; if not, it is added to the current path. Repeating the steps until all the operation lines are traversed, completing one iteration, and recording the path node of each ant
Figure FDA0003079717040000041
And recording the total path length
Figure FDA0003079717040000042
By contrast, the minimum total path length is obtained
Figure FDA0003079717040000043
And corresponding path
Figure FDA0003079717040000044
(3.3) adjusting the route length based on the weight factor:
the accumulation of pheromones has a direct relation with the length of a route, the searching process of an ant colony algorithm is influenced by changing the content of the pheromones by changing the length of the route, in the current path planning algorithm, the total distance of driving is taken as a cost function, a feasible solution for enabling the function to reach the minimum value is obtained by solving through an optimization algorithm, except for considering the total driving distance, a full load distance constraint is added, when an ant passes through an operation line, the grain volume harvested by the ant is updated, the value is associated with the length of the route, the ant is guided to search for the optimization according to the full load distance constraint, and the distance of the route is improved as follows:
Figure FDA0003079717040000045
wherein, lightmassIs a weight factorSeed, VnowFor the grain volume currently harvested, VgranaryIs the volume of the granary, kmWhen ants pass through a certain path with larger weight, the recorded distance of the path is larger than the real distance, so that pheromone of the path is reduced, and the ants are induced to search for a shorter path under the condition of full load;
(3.4) update pheromone:
every time an ant passes a path, it leaves a pheromone on that path. On the next iteration, the pheromone content of path pq is
τpq(n+1)=(1-ρ)τpq(n)+Δτpq
Wherein (1-rho). taupq(n) pheromones remaining after volatilization, Δ τpqThe pheromones left for all ants passing through this path in this iteration are:
Figure FDA0003079717040000046
wherein, the content of the pheromone left by each ant is as follows:
Figure FDA0003079717040000047
the value is determined by the distance of the path traversed, the shorter the distance, the higher the pheromone content;
(3.5) judging whether to terminate the iteration:
if the ant colony algorithm end condition is met, the path traveled by the iterative ants is the operation line traversal sequence, and the step 4 is carried out;
and if the ant colony algorithm ending condition is not met, enabling the iteration number i to be i +1, and jumping to the step (3.2) to continue to search the next path.
4. A harvesting robot working path planning method based on improved ant colony algorithm according to claim 3, characterized in that the ant colony algorithm end condition is:
the current iteration number I is more than ImaxOr the optimal solution meets the accuracy requirement:
Figure FDA0003079717040000051
wherein,
Figure FDA0003079717040000052
the shortest path length obtained after the ith iteration is shown, and xi is a preset precision threshold.
5. The method for planning the operation path of the harvesting robot based on the improved ant colony algorithm as claimed in claim 1, wherein the step 4 is to solve the expression of each path according to the traversal sequence of the operation lines and the farmland model to generate a farmland full-coverage path, and provide a reference for path tracking of the harvester, and specifically comprises the following steps:
and (3) designing an optimal operation line traversal sequence by adopting an improved ant colony algorithm according to the capacity of the harvester, the total travel distance, the full-load travel distance and the grain unloading position distribution constraint conditions in the step 3, and linking the operation line expressions obtained by the step 1 by utilizing the traversal sequence to form a path expression covering the whole farmland.
CN202110562995.0A 2021-05-24 2021-05-24 Path planning method of harvesting robot based on improved ant colony algorithm Active CN113190017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110562995.0A CN113190017B (en) 2021-05-24 2021-05-24 Path planning method of harvesting robot based on improved ant colony algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110562995.0A CN113190017B (en) 2021-05-24 2021-05-24 Path planning method of harvesting robot based on improved ant colony algorithm

Publications (2)

Publication Number Publication Date
CN113190017A true CN113190017A (en) 2021-07-30
CN113190017B CN113190017B (en) 2022-02-15

Family

ID=76984817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110562995.0A Active CN113190017B (en) 2021-05-24 2021-05-24 Path planning method of harvesting robot based on improved ant colony algorithm

Country Status (1)

Country Link
CN (1) CN113190017B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848880A (en) * 2021-08-30 2021-12-28 中车大连电力牵引研发中心有限公司 Agricultural machinery path optimization method based on improved Q-learning
CN113936023A (en) * 2021-10-21 2022-01-14 四川阿泰因机器人智能装备有限公司 Method for detecting edge straight line of granary walkway plate under strong light condition
CN114378828A (en) * 2022-01-30 2022-04-22 哈尔滨工业大学 Task planning method for nuclear industry detection robot
CN114545930A (en) * 2022-01-21 2022-05-27 江苏徐工工程机械研究院有限公司 Agricultural machinery path planning method and system
CN114879669A (en) * 2022-04-28 2022-08-09 贵州民族大学 Robot control method based on multi-objective path planning and intelligent picking
CN115067061A (en) * 2022-05-18 2022-09-20 江苏大学 Grain box grain unloading return position monitoring system and method and harvester
CN115202342A (en) * 2022-06-22 2022-10-18 扬州大学 A kind of driving method for agricultural machinery operation in the whole area
CN117308965A (en) * 2023-11-28 2023-12-29 华南农业大学 Harvester robot autonomous grain unloading path planning method based on sliding window algorithm
CN119090097A (en) * 2024-11-07 2024-12-06 中国农业大学 A multi-machine collaborative scheduling planning method and system based on harvesting-transportation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020106108A1 (en) * 2001-02-02 2002-08-08 The Board Of Trustees Of The University Method and apparatus for automatically steering a vehicle in an agricultural field using a plurality of fuzzy logic membership functions
US20050075784A1 (en) * 2003-10-07 2005-04-07 Gray Sarah Ann Modular path planner
CN104714551A (en) * 2015-03-23 2015-06-17 中国科学技术大学 Indoor area covering method suitable for vehicle type mobile robot
CN107272679A (en) * 2017-06-15 2017-10-20 东南大学 Paths planning method based on improved ant group algorithm
CN107807644A (en) * 2017-10-30 2018-03-16 洛阳中科龙网创新科技有限公司 A kind of farm machinery consumption minimization trajectory path planning method
CN110319836A (en) * 2019-04-09 2019-10-11 华东理工大学 A kind of path planning control method and device with the minimum target of energy loss
CN111026126A (en) * 2019-12-27 2020-04-17 哈尔滨工程大学 A Multi-objective Planning Method for Unmanned Vehicle Global Path Based on Improved Ant Colony Algorithm
DE102019202107B3 (en) * 2019-02-18 2020-04-23 Zf Friedrichshafen Ag Collision avoidance of an autonomous agricultural machine

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020106108A1 (en) * 2001-02-02 2002-08-08 The Board Of Trustees Of The University Method and apparatus for automatically steering a vehicle in an agricultural field using a plurality of fuzzy logic membership functions
US20050075784A1 (en) * 2003-10-07 2005-04-07 Gray Sarah Ann Modular path planner
CN104714551A (en) * 2015-03-23 2015-06-17 中国科学技术大学 Indoor area covering method suitable for vehicle type mobile robot
CN107272679A (en) * 2017-06-15 2017-10-20 东南大学 Paths planning method based on improved ant group algorithm
CN107807644A (en) * 2017-10-30 2018-03-16 洛阳中科龙网创新科技有限公司 A kind of farm machinery consumption minimization trajectory path planning method
DE102019202107B3 (en) * 2019-02-18 2020-04-23 Zf Friedrichshafen Ag Collision avoidance of an autonomous agricultural machine
CN110319836A (en) * 2019-04-09 2019-10-11 华东理工大学 A kind of path planning control method and device with the minimum target of energy loss
CN111026126A (en) * 2019-12-27 2020-04-17 哈尔滨工程大学 A Multi-objective Planning Method for Unmanned Vehicle Global Path Based on Improved Ant Colony Algorithm

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848880B (en) * 2021-08-30 2023-12-22 中车大连电力牵引研发中心有限公司 Agricultural machinery path optimization method based on improved Q-learning
CN113848880A (en) * 2021-08-30 2021-12-28 中车大连电力牵引研发中心有限公司 Agricultural machinery path optimization method based on improved Q-learning
CN113936023A (en) * 2021-10-21 2022-01-14 四川阿泰因机器人智能装备有限公司 Method for detecting edge straight line of granary walkway plate under strong light condition
CN114545930A (en) * 2022-01-21 2022-05-27 江苏徐工工程机械研究院有限公司 Agricultural machinery path planning method and system
CN114378828B (en) * 2022-01-30 2024-02-20 哈尔滨工业大学 A task planning method for nuclear industry inspection robots
CN114378828A (en) * 2022-01-30 2022-04-22 哈尔滨工业大学 Task planning method for nuclear industry detection robot
CN114879669A (en) * 2022-04-28 2022-08-09 贵州民族大学 Robot control method based on multi-objective path planning and intelligent picking
CN114879669B (en) * 2022-04-28 2024-05-28 贵州民族大学 Robot control method based on multi-objective path planning and intelligent picking
CN115067061A (en) * 2022-05-18 2022-09-20 江苏大学 Grain box grain unloading return position monitoring system and method and harvester
CN115067061B (en) * 2022-05-18 2024-04-09 江苏大学 Grain unloading and returning position monitoring system and method for grain tank and harvester
CN115202342A (en) * 2022-06-22 2022-10-18 扬州大学 A kind of driving method for agricultural machinery operation in the whole area
CN115202342B (en) * 2022-06-22 2025-01-10 扬州大学 A method for driving agricultural machinery in all-area operation
CN117308965A (en) * 2023-11-28 2023-12-29 华南农业大学 Harvester robot autonomous grain unloading path planning method based on sliding window algorithm
CN117308965B (en) * 2023-11-28 2024-03-12 华南农业大学 Harvester robot autonomous grain unloading path planning method based on sliding window algorithm
CN119090097A (en) * 2024-11-07 2024-12-06 中国农业大学 A multi-machine collaborative scheduling planning method and system based on harvesting-transportation

Also Published As

Publication number Publication date
CN113190017B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN113190017B (en) Path planning method of harvesting robot based on improved ant colony algorithm
Conesa-Muñoz et al. Mix-opt: A new route operator for optimal coverage path planning for a fleet in an agricultural environment
CN110442135A (en) A kind of unmanned boat paths planning method and system based on improved adaptive GA-IAGA
CN111310999B (en) A path planning method for warehouse mobile robot based on improved ant colony algorithm
CN113110520B (en) Robot path planning method based on multiple intelligent optimization parallel algorithms
CN109357678B (en) Multi-unmanned aerial vehicle path planning method based on heterogeneous pigeon swarm optimization algorithm
CN111174798A (en) A path planning method for a footed robot
CN113593228B (en) Automatic driving cooperative control method for bottleneck area of expressway
CN107272679A (en) Paths planning method based on improved ant group algorithm
CN103699135A (en) Automatic planning method for flight path of unmanned helicopter for spraying pesticide in farmland operation area
CN106372766A (en) UAV (Unmanned Aerial Vehicle) path planning method for electromagnetic interference environment
CN114706400B (en) Path planning method based on improved A-x algorithm in off-road environment
CN113867358B (en) Intelligent path planning method for cooperative traversal tasks of multiple unmanned vehicles
CN112037560A (en) Method for establishing parking space optimal allocation model in intelligent closed parking lot operation mode
Wang et al. Full coverage path planning methods of harvesting robot with multi-objective constraints
CN112229409B (en) A collaborative trajectory planning method for unmanned aerial vehicles based on Bayesian and evolutionary algorithms
CN115454070A (en) A multi-robot path planning method based on K-Means ant colony algorithm
CN116203965A (en) AGV-based path planning algorithm for improving ant colony algorithm
CN115456538A (en) A multi-vehicle and multi-region urban cold chain low-carbon logistics distribution method
CN116449846A (en) An Optimization Method of Ant Colony Algorithm
CN113048981A (en) DEM-oriented method for road-free regional path planning algorithm
CN116245327A (en) A method and system for cooperative operation of multi-intelligent agricultural machinery and supply transportation agricultural machinery
CN112180919A (en) Robot operation path planning method, device and system in storage system
CN114138005A (en) Method and device for urban batch logistics UAV track planning based on improved A* algorithm
CN117308965B (en) Harvester robot autonomous grain unloading path planning method based on sliding window algorithm

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