CN111610786A - Mobile robot path planning method based on improved RRT algorithm - Google Patents

Mobile robot path planning method based on improved RRT algorithm Download PDF

Info

Publication number
CN111610786A
CN111610786A CN202010466195.4A CN202010466195A CN111610786A CN 111610786 A CN111610786 A CN 111610786A CN 202010466195 A CN202010466195 A CN 202010466195A CN 111610786 A CN111610786 A CN 111610786A
Authority
CN
China
Prior art keywords
grid
path
parent
node
mobile robot
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
CN202010466195.4A
Other languages
Chinese (zh)
Other versions
CN111610786B (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.)
Shenyang Ligong University
Original Assignee
Shenyang Ligong 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 Shenyang Ligong University filed Critical Shenyang Ligong University
Priority to CN202010466195.4A priority Critical patent/CN111610786B/en
Publication of CN111610786A publication Critical patent/CN111610786A/en
Application granted granted Critical
Publication of CN111610786B publication Critical patent/CN111610786B/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/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0242Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using non-visible light signals, e.g. IR or UV signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • 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/0255Control of position or course in two dimensions specially adapted to land vehicles using acoustic signals, e.g. ultra-sonic singals
    • 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/0257Control of position or course in two dimensions specially adapted to land vehicles using a radar
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Feedback Control In General (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention provides a mobile robot path planning method based on an improved RRT algorithm in an indoor environment. Firstly, establishing a high-precision grid map of a robot working environment, dividing the map, then determining the next grid to be searched by adopting a neighborhood expansion strategy, determining the type of a searched grid and the number of effective sampling points by using a random sampling experiment, then adding the effective sampling points into a random tree by adopting a neighborhood optimal principle, updating the state of the grid based on a memory strategy, and finally smoothing the obtained planned path by adopting a pruning algorithm and a Bezier curve. The map segmentation and obstacle edge detection ideas are introduced, so that the sampling efficiency of the RRT algorithm in complex maps such as narrow channels is improved; due to the introduction of a memory mechanism and a neighborhood expansion strategy, the success rate of planning of the algorithm in a complex environment is improved; and the father node is selected according to the optimal neighborhood mode, so that the problems of strong algorithm randomness, non-optimal path and the like are solved.

Description

Mobile robot path planning method based on improved RRT algorithm
Technical Field
The invention relates to the technical field of mobile robot path planning, in particular to a mobile robot path planning method based on an improved RRT algorithm.
Background
With the development and progress of science and technology, the intelligent robot is more and more widely applied to human life. The path planning is used as a key technology of the intelligent robot, is the basis for executing various high-level tasks and realizing autonomous navigation, and aims to search a collision-free path from a starting point to a target point in an environment with obstacles. The currently commonly used path planning algorithms mainly include a fast-expanding random tree (RRT), a random road mapping method (PRM), an A-star, Dijkstra, an artificial potential field, a fuzzy logic algorithm, a particle swarm algorithm, an ant colony algorithm and the like. The A-star and Dijkstra algorithms are not suitable for large-scale or high-precision grid maps, and the running time is increased sharply along with the increase of the size of the map; the artificial potential field and fuzzy logic algorithm is influenced by an environment structure and is easy to fall into a local minimum value, so that the path planning fails; the intelligent bionic algorithms such as particle swarms and ant swarms have the problems of large calculated amount and poor real-time performance, and the setting of related parameters in the algorithms seriously influences the success rate of planning, so that the intelligent bionic algorithms cannot be effectively adapted to various environments of different types; the RRT and the PRM can only ensure completeness on probability, and have the defects of inconsistent multi-time planning results, non-optimal path, low success rate in complex environments and the like.
The fast-expanding random tree (RRT) is a planning algorithm based on sampling, overcomes the defect of high time complexity of other planning algorithms in a high-dimensional space, and can be combined with the kinematic or dynamic constraint of a mobile robot to plan a path. However, the planning success rate of the RRT algorithm is affected by the environmental structure or the shape of the obstacle: when no narrow passage exists in the environment and all the obstacles are convex, the algorithm can plan a path with higher success rate; on the contrary, if there are some concave obstacles in the environment, such as "walls" in an indoor scene, the algorithm is easily trapped in a local minimum, resulting in a low success rate of the algorithm planning. Meanwhile, the RRT algorithm has strong randomness, and the planned path is often far away from the optimal solution. Although the RRT algorithm can achieve a gradual optimization of the path by introducing a "rewiring" process, such optimization sacrifices the performance of the RRT algorithm in rapidly converging, and is not suitable for real-time path planning.
Disclosure of Invention
Aiming at the problems of non-optimal path, low planning success rate in a complex environment, poor real-time performance of an RRT algorithm and the like of the RRT algorithm, the invention provides a mobile robot path planning method based on an improved RRT algorithm, which overcomes the defects of the prior art, improves the planning success rate and real-time performance of the algorithm in the complex environment, reduces the randomness of the path and enables the planned path to be close to the optimal path as much as possible.
In order to achieve the technical effect, the invention provides a mobile robot path planning method based on an improved RRT algorithm, which comprises the following steps:
step 1: the method comprises the steps that working environment information of the robot is collected through a vision camera, a laser radar sensor, an ultrasonic sensor and an infrared sensor which are arranged on the mobile robot, and then a Map of the working environment of the mobile robot is established by utilizing information fusion and SLAM technology;
step 2: defining the current position point of the mobile robot as a starting point QstartThe task place of the mobile robot is a target point Qgoal
Step 3, dividing the Map into m × n grids according to a preset search step S, namely Map is { R (i, j) }, R (i, j) represents the grids positioned in the ith row and the jth column in the Map, wherein i is 0,1, …, m, j is 0,1, …, n, and then setting a starting point QstartThe grid where is marked as the starting grid R (X)start,Ystart) Aim point QgoalThe grid where is marked as target grid R (X)goal,Ygoal) Wherein X isstart、YstartRespectively represent the horizontal and vertical coordinates, X, of the starting grid on the Mapgoal、YgoalRespectively representing the horizontal coordinates and the vertical coordinates of the target grid on the Map;
Figure BDA0002512738020000021
in the formula, rmaxRepresents a maximum radius of the mobile robot;
and 4, step 4: determining the next grid R to be searched by adopting a neighborhood expansion strategynext
And 5: to the grid RnextPerforming random sampling experiment to determine grid RnextThe number num of middle effective sampling points;
step 6: according to a neighborhood optimization principle, searching a father node for each effective sampling point, and adding the effective sampling points of the found father node into the random tree T;
and 7: using memory strategy to mesh RnextPerforming state updates while updating grid RnextThe path cost of (2);
and 8: repeating the steps 4 to 7 until the target point QgoalSuccessfully adding the path to the random tree T, and then searching a path to be smoothly planned from a target point to a starting point by using a backtracking method;
and step 9: and deleting redundant nodes in the path to be smoothly planned by adopting a pruning algorithm, and then smoothing the path to be smoothly planned after the redundant nodes are deleted by adopting a Bezier curve to obtain a motion curve which can be used for track tracking and is used as the planned path of the tracking mobile robot.
The step 4 is specifically expressed as follows:
step 4.1: for the set L of searched gridspastIs initialized and is marked as Lpast={R(Xstart,Ystart)};
Step 4.2: calculating a grid set L needing to be searched next step by using the formulas (2) to (3)next
Lnext={∪N(x,y)-Lpast|R(x,y)∈Lpast} (2)
N(x,y)={R(i,j)|R(i,j)∈Map,0<|x-i|≤1,0<|y-j|≤1} (3)
Wherein R (x, y) represents the searched grid, N (x, y) represents the neighborhood of the searched grid R (x, y);
step 4.3: predicting the set L using equation (4)nextEach grid in
Figure BDA0002512738020000031
To the starting point QstartPath cost of
Figure BDA0002512738020000032
Then, the grid corresponding to the minimum path cost is selected as the grid R to be searched next stepnext
Figure BDA0002512738020000033
Figure BDA0002512738020000034
In the formula (I), the compound is shown in the specification,
Figure BDA0002512738020000035
representing the grid that may be searched next, and C (R (i, j)) representing the grid R (i, j) to the starting point QstartThe cost of the path of (a) is,
Figure BDA0002512738020000036
representation grid
Figure BDA0002512738020000037
The neighborhood of (a) is determined,
Figure BDA0002512738020000038
respectively representing grids
Figure BDA0002512738020000039
Abscissa and ordinate in Map.
The step 5 is specifically expressed as follows:
step 5.1: to the grid RnextPerforming N random sampling experiments, and calculating the grid R by using a formula (6)nextThe area ratio P occupied by the medium free space,
P=M/N (6)
in the formula, M represents the number of sample points falling in free space;
step 5.2: judging grid R according to PnextWhen P is 0, denotes a grid RnextIs a barrier grid; when P is 1, it represents a grid RnextIs a free grid; when 0 is present<P<At 1, it represents a grid RnextAs barrier edge grids;
Step 5.3: determining the grid R using equation (7)nextIs the number num of valid sampling points that fall within free space in a random sampling experiment,
Figure BDA00025127380200000310
where ρ represents a grid RnextThe broadcast density of the middle effective sampling point, and k represents a density weighting factor;
step 5.4: representing num valid sample points as a set Lsample={Qh|h=1,2,…,num},QhRepresenting the h-th valid sample point.
The step 6 is specifically expressed as:
step 6.1: at the effective sampling point QhGrid of positions RnextIn the neighborhood of (2), Q is calculated by the following equations (8) to (9)hThe node with the minimum path cost and no collision is taken as QhParent node Q ofparent
C(Qh)=min{C(Qparent)+wL||Qh-Qparent||+wsα(Qancestor,Qparent,Qh)},Qparent∈T∩N(Rnext) (8)
Figure BDA0002512738020000041
In the formula, C (Q)h) Representing a node QhTo the starting point QstartPath cost of N (R)next) Represents a grid RnextNeighborhood of (2), QparentDenotes a number falling within N (R)next) Node, C (Q), within and having been added to the random tree Tparent) Representing a node QparentTo the starting point QstartPath cost of, wLWeight, w, representing path lengthsWeight representing smoothness of the path, | Qh-QparentI represents the effective sampling point QhTo node QparentEuclidean distance of, QancestorRepresenting a node QparentParent node of α (Q)ancestor,Qparent,Qh) Representing a path at node QparentSteering angle of (v)1Representation is represented by node QancestorPoint of reference QparentDirection vector of (v)2Representation is represented by node QparentPointing to valid sampling point QhThe direction vector of (a);
step 6.2: adding the effective sampling points of the found father nodes into the random tree T, and if the effective sampling points Q are added in the adding processhAnd QparentOf (2) a connection line
Figure BDA0002512738020000042
When colliding with the obstacle, the effective sampling point Q cannot be obtainedhAdding the random tree into a random tree;
step 6.3: and 6.1-6.2 are repeated, and the father node of each effective sampling point is calculated and added into the random tree T.
The step 7 is specifically expressed as: according to a grid RnextWhether the inner num effective sampling points can be successfully added into the random tree T or not, and the grid R is addednextThe state update of (2) is divided into three cases:
1) if num valid sample points can be successfully added to the random tree T, the grid R is addednextMarking as searched grid and marking grid RnextIs added to LpastThen, R is updated using the formula (10)nextPath cost of C (R)next) Finally, go to step 4.1 to continue execution;
C(Rnext)=(∑C(Qh))/num (10)
2) if none of the num valid sample points is successfully added to the random tree T, the trellis R is addednextMarking as unsearched grid and from LnextIn which R is removednextFinally, go to step 4.3 to continue execution;
3) if some of the num valid samples are successfully added to the random tree T, the trellis R is setnextMarking as unsearched grid and from LnextIn which R is removednextR is then updated using equation (10) based on the valid sample points successfully added to the random tree TnextPath cost of C (R)next) Finally, go to step 4.3 to continue execution.
The invention has the beneficial effects that:
the invention provides a mobile robot path planning method based on an improved RRT algorithm, which is improved from the following three aspects aiming at the problems of the basic RRT algorithm and the RRT algorithm:
1) the map segmentation and obstacle edge detection ideas are introduced into an RRT basic frame, so that the sampling efficiency of the algorithm in complex maps such as narrow channels is improved;
2) a memory mechanism and a neighborhood expansion strategy are introduced into an RRT basic framework, so that the problem of excessive search of the algorithm in a local trap area is avoided, and the planning success rate of the algorithm in a complex environment is improved;
3) the cost function is designed by combining various performance indexes such as path length, path smoothness and the like, and the father node is selected according to the optimal mode of the neighborhood, so that the problems of strong randomness, non-optimal or suboptimal path and the like of an RRT algorithm are solved;
practice proves that the method provided by the invention is not only suitable for simple structured environment, but also suitable for complex unstructured environment.
Drawings
Fig. 1 is a flow chart of a mobile robot path planning method based on an improved RRT algorithm in the present invention.
Fig. 2 is a flow chart of the pruning algorithm in the present invention.
Fig. 3 is a schematic diagram of a smoothing path using bezier curves in the present invention.
Fig. 4 is a sample diagram of a convex obstacle environment and a non-convex obstacle environment in the present invention, in which (a) shows a sample diagram of a convex obstacle environment and (b) shows a sample diagram of a non-convex obstacle environment.
Fig. 5 is a graph of three-time simulation results of the basic RRT algorithm in the convex obstacle environment and the non-convex obstacle environment, where (a) to (c) show the simulation results in the convex obstacle environment, and (d) to (f) show the simulation results in the non-convex obstacle environment.
Fig. 6 is a simulation result diagram of the mobile robot path planning method based on the improved RRT algorithm in different maps, wherein diagrams (a) to (d) respectively represent simulation result diagrams of 4 different maps.
Fig. 7 is a comparison diagram of the basic RRT algorithm, and the mobile robot path planning method of the improved RRT algorithm in the present invention in terms of path length.
Fig. 8 is a comparison graph of the basic RRT algorithm, and the mobile robot path planning method of the improved RRT algorithm in the present invention in terms of planning time.
Detailed Description
The invention is further described with reference to the following figures and specific examples.
As shown in fig. 1, a method for planning a path of a mobile robot based on an improved RRT algorithm includes the following steps:
step 1: the method comprises the steps that working environment information of a robot is collected through a vision camera, a laser radar sensor, an ultrasonic sensor And an infrared sensor which are arranged on the mobile robot, then a Map of the working environment of the mobile robot is established by utilizing information fusion And SLAM (Simultaneous localization And Mapping for short SLAM) technology, wherein the vision camera collects image information of obstacles, the laser radar sensor And the ultrasonic sensor collect position information of surrounding objects, the infrared sensor collects distance information between the mobile robot And the obstacles, And in the graphs of 4-6, a black part is an obstacle area And a white part is a free area;
step 2: defining the current position point of the mobile robot as a starting point QstartThe task place of the mobile robot is a target point Qgoal
Step 3, dividing the Map into m × n grids according to a preset search step S, namely Map is { R (i, j) }, R (i, j) represents grids positioned at the ith row and the jth column in the Map, wherein i is 0,1, …, m, j is 0,1, …, n, and then setting a starting point QstartGrid mark of placeIs a starting grid R (X)start,Ystart) Aim point QgoalThe grid where is marked as target grid R (X)goal,Ygoal) Wherein X isstart、YstartRespectively represent the horizontal and vertical coordinates, X, of the starting grid on the Mapgoal、YgoalRespectively representing the horizontal coordinates and the vertical coordinates of the target grid on the Map;
Figure BDA0002512738020000061
in the formula, rmaxRepresents a maximum radius of the mobile robot;
and 4, step 4: determining the next grid R to be searched by adopting a neighborhood expansion strategynextThe concrete expression is as follows:
step 4.1: for the set L of searched gridspastIs initialized and is marked as Lpast={R(Xstart,Ystart)};
Step 4.2: calculating a grid set L needing to be searched next step by using the formulas (2) to (3)next
Lnext={∪N(x,y)-Lpast|R(x,y)∈Lpast} (2)
N(x,y)={R(i,j)|R(i,j)∈Map,0<|x-i|≤1,0<|y-j|≤1} (3)
Wherein R (x, y) represents the searched grid, N (x, y) represents the neighborhood of the searched grid R (x, y);
step 4.3: predicting the set L using equation (4)nextEach grid in
Figure BDA0002512738020000062
To the starting point QstartPath cost of
Figure BDA0002512738020000063
Then, the grid corresponding to the minimum path cost is selected as the grid R to be searched next stepnext
Figure BDA0002512738020000064
Figure BDA0002512738020000065
In the formula (I), the compound is shown in the specification,
Figure BDA0002512738020000066
representing the grid that may be searched next, and C (R (i, j)) representing the grid R (i, j) to the starting point QstartThe cost of the path of (a) is,
Figure BDA0002512738020000067
representation grid
Figure BDA00025127380200000610
The neighborhood of (a) is determined,
Figure BDA0002512738020000068
respectively representing grids
Figure BDA0002512738020000069
Abscissa and ordinate in Map.
And 5: to the grid RnextPerforming random sampling experiment to determine grid RnextThe number num of the middle effective sampling points is specifically expressed as follows:
step 5.1: to the grid RnextPerforming N random sampling experiments, and calculating the grid R by using a formula (6)nextThe area ratio P occupied by the medium free space,
P=M/N (6)
in the formula, M represents the number of sample points falling in free space;
step 5.2: judging grid R according to PnextWhen P is 0, denotes a grid RnextIs a barrier grid; when P is 1, it represents a grid RnextIs a free grid; when 0 is present<P<At 1, it represents a grid RnextIs a barrier edge grid;
step 5.3: determining the grid R using equation (7)nextNumber of valid sampling points num in (1), saidThe effective sampling points are sample points falling in free space in a random sampling experiment,
Figure BDA0002512738020000071
where ρ represents a grid RnextThe broadcast density of the middle effective sampling point, and k represents a density weighting factor;
step 5.4: representing num valid sample points as a set Lsample={Qh|h=1,2,…,num},QhRepresenting the h-th valid sample point.
Step 6: according to the neighborhood optimization principle, a father node is searched for each effective sampling point, the effective sampling points of the found father nodes are added into a random tree T, and the method is specifically expressed as follows:
step 6.1: at the effective sampling point QhGrid of positions RnextIn the neighborhood of (2), Q is calculated by the following equations (8) to (9)hThe node with the minimum path cost and no collision is taken as QhParent node Q ofparent
C(Qh)=min{C(Qparent)+wL||Qh-Qparent||+wsα(Qancestor,Qparent,Qh)},Qparent∈T∩N(Rnext) (8)
Figure BDA0002512738020000072
In the formula, C (Q)h) Representing a node QhTo the starting point QstartPath cost of N (R)next) Represents a grid RnextNeighborhood of (2), QparentDenotes a number falling within N (R)next) Node, C (Q), within and having been added to the random tree Tparent) Representing a node QparentTo the starting point QstartPath cost of, wLWeight, w, representing path lengthsWeight representing smoothness of the path, | Qh-QparentI represents the effective sampling point QhTo node QparentEuclidean distance ofFrom, QancestorRepresenting a node QparentParent node of α (Q)ancestor,Qparent,Qh) Representing a path at node QparentSteering angle of (v)1Representation is represented by node QancestorPoint of reference QparentDirection vector of (v)2Representation is represented by node QparentPointing to valid sampling point QhThe direction vector of (a);
step 6.2: adding the effective sampling points of the found father nodes into the random tree T, and if the effective sampling points Q are added in the adding processhAnd QparentOf (2) a connection line
Figure BDA0002512738020000073
When colliding with the obstacle, the effective sampling point Q cannot be obtainedhAdding the random tree into a random tree;
step 6.3: and 6.1-6.2 are repeated, and the father node of each effective sampling point is calculated and added into the random tree T.
And 7: using memory strategy to mesh RnextPerforming state updates while updating grid RnextThe path cost is specifically expressed as: according to a grid RnextWhether the inner num effective sampling points can be successfully added into the random tree T or not, and the grid R is addednextThe state update of (2) is divided into three cases:
1) if num valid sample points can be successfully added to the random tree T, the grid R is addednextMarking as searched grid and marking grid RnextIs added to LpastThen, R is updated using the formula (10)nextPath cost of C (R)next) Finally, go to step 4.1 to continue execution;
C(Rnext)=(∑C(Qh))/num (10)
2) if none of the num valid sample points is successfully added to the random tree T, the trellis R is addednextMarking as unsearched grid and from LnextIn which R is removednextFinally, go to step 4.3 to continue execution;
3) if part of num valid samples are effectively sampledIf the point is successfully added to the random tree T, the grid R is addednextMarking as unsearched grid and from LnextIn which R is removednextR is then updated using equation (10) based on the valid sample points successfully added to the random tree TnextPath cost of C (R)next) Finally, go to step 4.3 to continue execution.
And 8: repeating the steps 4 to 7 until the target point QgoalSuccessfully adding the path to the random tree T, and then searching a path to be smoothly planned from a target point to a starting point by using a backtracking method;
and step 9: and deleting redundant nodes in the path to be smoothly planned by adopting a pruning algorithm, and then smoothing the path to be smoothly planned after the redundant nodes are deleted by adopting a Bezier curve to obtain a motion curve which can be used for track tracking and is used as the planned path of the tracking mobile robot.
The pseudo code for the improved RRT algorithm used in the present invention is shown in table 1, with the programming software used being python.
In order to solve the problem that a path generated by an RRT algorithm has a large number of unnecessary redundant turning points, the invention uses a pruning algorithm to carry out smooth processing on the planned path obtained in the step 8, and as shown in FIG. 2, the invention specifically comprises the following steps:
step 9.1: marking all nodes on the broken line path obtained in the step 8 as P in sequence0,P1,…,Ps-1Where s is the number of turning points on the path including the starting point and the target point, where P0And Ps-1Respectively representing the start point and the target point, and setting the cache path as path { P ═ P0}。
Step 9.2: trying to connect to point PstartInitialized to a starting point P0Another attempted connection point is denoted as PendHere, the pruning operation is implemented using the dichotomy: (a) the attempted connection point P is indicated by low and highendThe lower limit and the upper limit of the subscript respectively have the initial values of low ═ start +1 and high ═ s-1; (b) initializing end to high, judging PstartAnd PendWhether the connection line of (a) will cross the barrier; (c) if the obstacle is crossed, let high ═end-1, end ═ low + high)/2, return to step (b); (d) if the obstacle is not crossed, making low equal to end and end equal to (low + high +1)/2, and returning to the step (b); (e) repeating the steps (b), (c) and (d), and when low is end, adding PendAdded to the path.
Step 9.3: will PstartAssigned a value of PendAnd repeating step 9.2;
step 9.4: repeat step 9.3 until P is reacheds-1Adding the path into the path, and then sequentially connecting the junction points in the path to obtain the pruned path.
The path after pruning operation is still a broken line segment, which does not conform to the kinematics or dynamics constraint of the robot, so the path is continuously smoothed by using a Bezier curve, as shown in FIG. 3;
in order to verify the effectiveness and feasibility of the mobile robot path planning method based on the improved RRT algorithm, simulation is carried out by using python under the hardware environment of an Intel Core i7-6700 processor with the main frequency of 3.4Ghz and the internal memory of 8GB, a map is a two-dimensional plane of 900 x 900, and the search step length is set to be S-10 in a simulation experiment.
TABLE 1 pseudo code table for improved RRT algorithm
Figure BDA0002512738020000091
The RRT algorithm is a complete search algorithm with probability sensitive to the environment, when the structure of the environment is complex, the success rate of planning of the algorithm is low, particularly when a narrow channel or a non-convex obstacle exists in the environment, the algorithm often fails to plan due to the fact that the narrow channel or the non-convex obstacle exists in the environment, the environment is divided into a convex obstacle environment and a non-convex obstacle environment according to the concave-convex performance of the obstacle, the convex obstacle environment refers to the situation that all obstacles in the environment are convex, the non-convex obstacle environment refers to the situation that a concave obstacle exists in the environment, and a sample graph of the convex obstacle environment and the non-convex obstacle environment is shown in FIG. 4.
In order to verify the performance of the basic RRT algorithm in the two environments, 50 simulations are performed in the two environments respectively, and the maximum iteration number is set to 10000 times, and the experimental results show that: for the convex obstacle environment, the search success rate of the algorithm is 100%, the convergence rate is high, and the average iteration number is 1853; when the environment is a non-convex environment, the search success rate of the algorithm is 38%, and the average iteration number is 7568; three groups of simulation results are randomly shown in fig. 5, wherein, graphs (a) to (c) represent simulation result graphs in a convex obstacle environment, graphs (d) to (f) represent simulation result graphs in a non-convex obstacle environment, gray lines in the graphs represent random trees generated by the improved RRT algorithm, black thin lines represent paths from target points to starting points in the random trees, black thick lines represent smooth paths obtained after pruning, simulation shows that the RRT algorithm is easy to generate oversampling in a local minimum area in the non-convex obstacle environment, and the paths generated each time are often very deviated.
In order to verify the ability of the improved RRT algorithm to adapt to the environment, simulation experiments are performed in different environments, the obstacle has been subjected to expansion processing according to the size of the robot, the experimental results are shown in fig. 6 to 8, and in four simulation maps given in fig. 6, wherein a gray line represents a random tree generated by the improved RRT algorithm, a black thin line represents a path from a target point to a starting point in the random tree, and a black thick line represents a smooth path obtained after pruning; as can be seen from simulation results, the path searched by the improved RRT algorithm provided by the invention is optimal, and a path can be planned in an extremely complex environment.
In order to verify the environment adaptability of the improved RRT algorithm of the present invention, a plurality of experimental simulations are performed on four maps shown in fig. 6 (a) to (d) below using the basic RRT algorithm, and the improved RRT algorithm herein, respectively, table 2 shows the success rate of planning the algorithms in different environments, where the maximum number of iterations is set to 40000, and maps 1 to Map4 in table 2 correspond to four different maps shown in fig. 6 (a) to (d), respectively.
TABLE 2 comparative analysis table of experimental results of basic RRT algorithm, basic RRT algorithm and improved RRT algorithm
Figure BDA0002512738020000101
As can be seen from Table 2, the improved RRT algorithm of the present invention has strong adaptability to both simple convex obstacle environments and complex non-convex obstacle environments.
In order to compare the basic RRT, and improve the stability and real-time performance of the RRT algorithm, a plurality of simulation experiments are performed in a second type of map shown in fig. 6 as a map (b), fig. 7 and 8 respectively count the experimental data of the three algorithms in terms of both the path length and the calculation time, and the simulation results show that the improved RRT algorithm has stability in a plurality of simulations regardless of the path length or the calculation time.

Claims (5)

1. A mobile robot path planning method based on an improved RRT algorithm is characterized by comprising the following steps:
step 1: the method comprises the steps that working environment information of the robot is collected through a vision camera, a laser radar sensor, an ultrasonic sensor and an infrared sensor which are arranged on the mobile robot, and then a Map of the working environment of the mobile robot is established by utilizing information fusion and SLAM technology;
step 2: defining the current position point of the mobile robot as a starting point QstartThe task place of the mobile robot is a target point Qgoal
Step 3, dividing the Map into m × n grids according to a preset search step S, namely Map is { R (i, j) }, R (i, j) represents grids positioned at the ith row and the jth column in the Map, wherein i is 0,1, …, m, j is 0,1, …, n, and then setting a starting point QstartThe grid where is marked as the starting grid R (X)start,Ystart) Aim point QgoalThe grid where is marked as target grid R (X)goal,Ygoal) Wherein X isstart、YstartRespectively represent the horizontal and vertical coordinates, X, of the starting grid on the Mapgoal、YgoalRespectively representing the horizontal coordinates and the vertical coordinates of the target grid on the Map;
Figure FDA0002512738010000011
in the formula, rmaxRepresents a maximum radius of the mobile robot;
and 4, step 4: determining the next grid R to be searched by adopting a neighborhood expansion strategynext
And 5: to the grid RnextPerforming random sampling experiment to determine grid RnextThe number num of middle effective sampling points;
step 6: according to a neighborhood optimization principle, searching a father node for each effective sampling point, and adding the effective sampling points of the found father node into the random tree T;
and 7: using memory strategy to mesh RnextPerforming state updates while updating grid RnextThe path cost of (2);
and 8: repeating the steps 4 to 7 until the target point QgoalSuccessfully adding the path to the random tree T, and then searching a path to be smoothly planned from a target point to a starting point by using a backtracking method;
and step 9: and deleting redundant nodes in the path to be smoothly planned by adopting a pruning algorithm, and then smoothing the path to be smoothly planned after the redundant nodes are deleted by adopting a Bezier curve to obtain a motion curve which can be used for track tracking and is used as the planned path of the tracking mobile robot.
2. The method for planning the path of the mobile robot based on the improved RRT algorithm of claim 1, wherein the step 4 is specifically expressed as:
step 4.1: for the set L of searched gridspastIs initialized and is marked as Lpast={R(Xstart,Ystart)};
Step 4.2: calculating a grid set L needing to be searched next step by using the formulas (2) to (3)next
Lnext={∪N(x,y)-Lpast|R(x,y)∈Lpast} (2)
N(x,y)={R(i,j)|R(i,j)∈Map,0<|x-i|≤1,0<|y-j|≤1} (3)
Wherein R (x, y) represents the searched grid, N (x, y) represents the neighborhood of the searched grid R (x, y);
step 4.3: predicting the set L using equation (4)nextEach grid in
Figure FDA0002512738010000021
To the starting point QstartPath cost of
Figure FDA0002512738010000022
Then, the grid corresponding to the minimum path cost is selected as the grid R to be searched next stepnext
Figure FDA0002512738010000023
Figure FDA0002512738010000024
In the formula (I), the compound is shown in the specification,
Figure FDA0002512738010000025
representing the grid that may be searched next, and C (R (i, j)) representing the grid R (i, j) to the starting point QstartThe cost of the path of (a) is,
Figure FDA0002512738010000026
representation grid
Figure FDA0002512738010000027
The neighborhood of (a) is determined,
Figure FDA0002512738010000028
respectively representing grids
Figure FDA0002512738010000029
Sit-ups and sit-downs in MapAnd (4) marking.
3. The method for planning the path of the mobile robot based on the improved RRT algorithm as claimed in claim 1, wherein the step 5 is specifically expressed as:
step 5.1: to the grid RnextPerforming N random sampling experiments, and calculating the grid R by using a formula (6)nextThe area ratio P occupied by the medium free space,
P=M/N (6)
in the formula, M represents the number of sample points falling in free space;
step 5.2: judging grid R according to PnextWhen P is 0, denotes a grid RnextIs a barrier grid; when P is 1, it represents a grid RnextIs a free grid; when 0 is present<P<At 1, it represents a grid RnextIs a barrier edge grid;
step 5.3: determining the grid R using equation (7)nextIs the number num of valid sampling points that fall within free space in a random sampling experiment,
Figure FDA00025127380100000210
where ρ represents a grid RnextThe broadcast density of the middle effective sampling point, and k represents a density weighting factor;
step 5.4: representing num valid sample points as a set Lsample={Qh|h=1,2,…,num},QhRepresenting the h-th valid sample point.
4. The method for planning the path of the mobile robot based on the improved RRT algorithm of claim 1, wherein the step 6 is specifically expressed as:
step 6.1: at the effective sampling point QhGrid of positions RnextIn the neighborhood of (2), Q is calculated by the following equations (8) to (9)hThe node with the minimum path cost and no collision is used as the nodeQhParent node Q ofparent
C(Qh)=min{C(Qparent)+wL||Qh-Qparent||+wsα(Qancestor,Qparent,Qh)},Qparent∈T∩N(Rnext) (8)
Figure FDA0002512738010000031
In the formula, C (Q)h) Representing a node QhTo the starting point QstartPath cost of N (R)next) Represents a grid RnextNeighborhood of (2), QparentDenotes a number falling within N (R)next) Node, C (Q), within and having been added to the random tree Tparent) Representing a node QparentTo the starting point QstartPath cost of, wLWeight, w, representing path lengthsWeight representing smoothness of the path, | Qh-QparentI represents the effective sampling point QhTo node QparentEuclidean distance of, QancestorRepresenting a node QparentParent node of α (Q)ancestor,Qparent,Qh) Representing a path at node QparentSteering angle of (v)1Representation is represented by node QancestorPoint of reference QparentDirection vector of (v)2Representation is represented by node QparentPointing to valid sampling point QhThe direction vector of (a);
step 6.2: adding the effective sampling points of the found father nodes into the random tree T, and if the effective sampling points Q are added in the adding processhAnd QparentOf (2) a connection line
Figure FDA0002512738010000032
When colliding with the obstacle, the effective sampling point Q cannot be obtainedhAdding the random tree into a random tree;
step 6.3: and 6.1-6.2 are repeated, and the father node of each effective sampling point is calculated and added into the random tree T.
5. The method for planning the path of the mobile robot based on the improved RRT algorithm of claim 1, wherein the step 7 is specifically expressed as: according to a grid RnextWhether the inner num effective sampling points can be successfully added into the random tree T or not, and the grid R is addednextThe state update of (2) is divided into three cases:
1) if num valid sample points can be successfully added to the random tree T, the grid R is addednextMarking as searched grid and marking grid RnextIs added to LpastThen, R is updated using the formula (10)nextPath cost of C (R)next) Finally, go to step 4.1 to continue execution;
C(Rnext)=(∑C(Qh))/num (10)
2) if none of the num valid sample points is successfully added to the random tree T, the trellis R is addednextMarking as unsearched grid and from LnextIn which R is removednextFinally, go to step 4.3 to continue execution;
3) if some of the num valid samples are successfully added to the random tree T, the trellis R is setnextMarking as unsearched grid and from LnextIn which R is removednextR is then updated using equation (10) based on the valid sample points successfully added to the random tree TnextPath cost of C (R)next) Finally, go to step 4.3 to continue execution.
CN202010466195.4A 2020-05-28 2020-05-28 Mobile robot path planning method based on improved RRT algorithm Active CN111610786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010466195.4A CN111610786B (en) 2020-05-28 2020-05-28 Mobile robot path planning method based on improved RRT algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010466195.4A CN111610786B (en) 2020-05-28 2020-05-28 Mobile robot path planning method based on improved RRT algorithm

Publications (2)

Publication Number Publication Date
CN111610786A true CN111610786A (en) 2020-09-01
CN111610786B CN111610786B (en) 2023-06-23

Family

ID=72194817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010466195.4A Active CN111610786B (en) 2020-05-28 2020-05-28 Mobile robot path planning method based on improved RRT algorithm

Country Status (1)

Country Link
CN (1) CN111610786B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711256A (en) * 2020-12-23 2021-04-27 杭州电子科技大学 Automatic target search observation point generation method for mobile robot
CN113156970A (en) * 2021-05-08 2021-07-23 珠海市一微半导体有限公司 Path fusion planning method for passing area, robot and chip
CN113296498A (en) * 2021-04-12 2021-08-24 山东科技大学 Improved RRT path planning method based on adaptive resolution octree map
CN113934218A (en) * 2021-11-16 2022-01-14 杭州云象商用机器有限公司 Cleaning robot path planning method, device, equipment and storage medium
CN114115271A (en) * 2021-11-25 2022-03-01 江苏科技大学 Robot path planning method and system for improving RRT
CN114489052A (en) * 2021-12-31 2022-05-13 杭州电子科技大学 Path planning method for improving RRT algorithm reconnection strategy
CN115016458A (en) * 2022-05-05 2022-09-06 安徽理工大学 Method for planning path of tunnel exploration robot based on RRT algorithm
CN115077556A (en) * 2022-07-26 2022-09-20 中国电子科技集团公司第二十八研究所 Unmanned vehicle field operation path planning method based on multi-dimensional map
CN116578121A (en) * 2023-07-10 2023-08-11 广东电网有限责任公司云浮供电局 Constraint sampling-based generation method and track planning method for extended random tree
CN116922398A (en) * 2023-09-15 2023-10-24 华侨大学 Rope robot and path planning method and device thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108983780A (en) * 2018-07-24 2018-12-11 武汉理工大学 One kind is based on improvement RRT*The method for planning path for mobile robot of algorithm

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108983780A (en) * 2018-07-24 2018-12-11 武汉理工大学 One kind is based on improvement RRT*The method for planning path for mobile robot of algorithm

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
JONATHAN D. GAMMELL: "Informed RRT*: Optimal sampling-based path planning focused via direct sampling of an admissible ellipsoidal heuristic" *
NAN CHAO: "Grid-based RRT∗ for minimum dose walking path-planning in complex radioactive environments" *
WEI ZHANG: "Improve RRT algorithm for Path Planning in Complex Environments" *
冯来春;梁华为;杜明博;余彪;: "基于A~*引导域的RRT智能车辆路径规划算法" *
杨邱滟: "基于Kinect的仿人机器人伺服抓取物体研究" *

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711256B (en) * 2020-12-23 2022-05-20 杭州电子科技大学 Automatic generation method for target search observation points of mobile robot
CN112711256A (en) * 2020-12-23 2021-04-27 杭州电子科技大学 Automatic target search observation point generation method for mobile robot
CN113296498A (en) * 2021-04-12 2021-08-24 山东科技大学 Improved RRT path planning method based on adaptive resolution octree map
CN113296498B (en) * 2021-04-12 2022-09-27 山东科技大学 Improved RRT path planning method based on adaptive resolution octree map
CN113156970A (en) * 2021-05-08 2021-07-23 珠海市一微半导体有限公司 Path fusion planning method for passing area, robot and chip
CN113156970B (en) * 2021-05-08 2023-06-09 珠海一微半导体股份有限公司 Path fusion planning method for traffic area, robot and chip
CN113934218B (en) * 2021-11-16 2022-03-25 杭州云象商用机器有限公司 Cleaning robot path planning method, device, equipment and storage medium
CN113934218A (en) * 2021-11-16 2022-01-14 杭州云象商用机器有限公司 Cleaning robot path planning method, device, equipment and storage medium
CN114115271A (en) * 2021-11-25 2022-03-01 江苏科技大学 Robot path planning method and system for improving RRT
CN114115271B (en) * 2021-11-25 2024-04-26 江苏科技大学 Robot path planning method and system for improving RRT
CN114489052A (en) * 2021-12-31 2022-05-13 杭州电子科技大学 Path planning method for improving RRT algorithm reconnection strategy
CN114489052B (en) * 2021-12-31 2024-05-28 杭州电子科技大学 Path planning method for improving RRT algorithm reconnection strategy
CN115016458B (en) * 2022-05-05 2024-04-16 安徽理工大学 RRT algorithm-based path planning method for hole exploration robot
CN115016458A (en) * 2022-05-05 2022-09-06 安徽理工大学 Method for planning path of tunnel exploration robot based on RRT algorithm
CN115077556A (en) * 2022-07-26 2022-09-20 中国电子科技集团公司第二十八研究所 Unmanned vehicle field operation path planning method based on multi-dimensional map
CN115077556B (en) * 2022-07-26 2022-11-18 中国电子科技集团公司第二十八研究所 Unmanned vehicle field operation path planning method based on multi-dimensional map
CN116578121A (en) * 2023-07-10 2023-08-11 广东电网有限责任公司云浮供电局 Constraint sampling-based generation method and track planning method for extended random tree
CN116578121B (en) * 2023-07-10 2023-11-03 广东电网有限责任公司云浮供电局 Constraint sampling-based generation method and track planning method for extended random tree
CN116922398B (en) * 2023-09-15 2023-12-22 华侨大学 Rope robot and path planning method and device thereof
CN116922398A (en) * 2023-09-15 2023-10-24 华侨大学 Rope robot and path planning method and device thereof

Also Published As

Publication number Publication date
CN111610786B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111610786A (en) Mobile robot path planning method based on improved RRT algorithm
CN113219998B (en) Improved bidirectional-RRT-based vehicle path planning method
CN108036790B (en) Robot path planning method and system based on ant-bee algorithm in obstacle environment
CN111562785B (en) Path planning method and system for collaborative coverage of cluster robots
CN110083165A (en) A kind of robot paths planning method under complicated narrow environment
Huang et al. Global path planning for autonomous robot navigation using hybrid metaheuristic GA-PSO algorithm
CN107992040B (en) Robot path planning method based on combination of map grid and QPSO algorithm
CN112650229A (en) Mobile robot path planning method based on improved ant colony algorithm
CN113867368A (en) Robot path planning method based on improved gull algorithm
CN116804879B (en) Robot path planning framework method for improving dung beetle algorithm and fusing DWA algorithm
CN112161627A (en) Intelligent path planning method for fire-fighting robot
CN113110507A (en) Path planning method for autonomous obstacle avoidance
CN114895707B (en) Agricultural unmanned aerial vehicle path planning method and system based on variable frequency bat algorithm
CN113110520A (en) Robot path planning method based on multiple intelligent optimization parallel algorithms
CN114877905A (en) Inform-RRT path planning method for bidirectional dynamic growth
Tian Research on robot optimal path planning method based on improved ant colony algorithm
CN113589809A (en) Obstacle-avoidable excavator working device operation track planning method and device
CN113219981A (en) Mobile robot path planning method based on ant colony algorithm
CN114995431A (en) Mobile robot path planning method for improving A-RRT
Bai et al. Design and Simulation of a Collision-free Path Planning Algorithm for Mobile Robots Based on Improved Ant Colony Optimization.
CN110705803B (en) Route planning method based on triangle inner center guide RRT algorithm
Dirik et al. Rrt-dijkstra: An improved path planning algorithm for mobile robots
Liu et al. An efficient robot exploration method based on heuristics biased sampling
Ying et al. Path planning of mobile robot based on Improved RRT Algorithm
CN108227718B (en) Self-adaptive switching automatic carrying trolley path planning method

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