A path planning method for a wheeled plant protection robot
Through the combination of ant colony algorithm and lidar information, the weight coefficient is dynamically updated and the objective function is constructed, which solves the problem of uneven path planning and oscillation of wheeled plant protection robots in complex environments, and improves movement efficiency and safety.
Patent Information
- Application Number
- CN202410336368.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing technology In complex environments such as mountainous orchards, wheeled plant protection robot path planning suffers from insufficient weight of the speed planning objective function, resulting in problems such as uneven paths and oscillation between obstacles when the movement speed is high, and it is difficult to adapt to complex environmental factors.
Ant colony algorithm is used combined with lidar to obtain grid map information, calculate obstacle density and robot status in real time, dynamically update weight coefficients, construct an objective function for path planning, integrate movement speed, heading and collision safety, and generate an optimal speed set.
It improves the efficiency and safety of path planning, reduces the detour distance outside obstacles, and ensures the stable movement of the robot in complex environments.
Smart Images

Figure CN118243127B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of robot path planning, and in particular relates to a path planning method for a wheeled plant protection robot. Background Art
[0002] At present, plant protection robots mostly use GNSS navigation systems to provide global positioning of the path, and laser radars to perceive local environmental parameters to compensate for the influence of unstable GNSS signals in scenes such as mountain orchards. The existing technology mainly uses the following solutions for the local operation path planning of robots: first, voxel grid processing of spatial point clouds is used to reduce the density of point clouds and simplify the calculation; then, the spatial point cloud coordinates are transformed into the image coordinate system to form a ground point cloud; then, the point cloud information segmentation and clustering algorithms are performed in sequence to finally extract the trunk area for the robot to pass between rows. In some classic local path planning algorithms (Dynamic Window Approaches, DWA), the position control of the robot is converted into speed control, so that the obstacle avoidance problem is described as an optimization problem with constraints on the robot's speed space. The designed constraints include speed, heading, and the position constraints of surrounding obstacles. However, when the robot moves at a high speed and the density of surrounding obstacles is large, the passability will be significantly reduced, and it may also lead to problems such as the planned path being too long, not smooth, and the robot oscillating between multiple obstacles. The essence of these problems is that once the weight coefficient in the speed planning objective function is determined, it is not enough to adapt to various complex and changeable environmental factors. It can be seen that there is still a lack of wheeled plant protection robot path planning methods that can be well applied to non-standard orchards such as mountainous areas in this field to solve the problems of misjudgment of visual information caused by dense branches and leaves in orchards, and the robot's failure to avoid obstacles in time due to complex operating terrain. Summary of the invention
[0003] In view of this, in order to solve the technical problems existing in the art, the present invention provides a path planning method for a wheeled plant protection robot, which specifically includes the following steps:
[0004] Step 1: Obtain the grid map information of the robot's working environment by laser radar, locate the starting point and target point of the robot's movement; obtain the state node information of all robot movements in the space, and calculate the adjacent matrix and heuristic information matrix used for the ant colony algorithm;
[0005] Step 2: Initialize the parameters of the ant colony algorithm, including setting the number of iterations to N, the ant colony size to M, the information heuristic factor α, the expected heuristic factor β, the pheromone volatility coefficient ρ, and the pheromone concentration τ;
[0006] Step 3: Calculate the obstacle density, the actual distance and position between the robot and each obstacle in real time;
[0007] Step 4, execute the ant colony algorithm to update the path: query the adjacent matrix, obtain the feasible node set for the current state node i to move to the next state node, calculate the state transition probability of the mth ant selecting the adjacent state node based on the heuristic information matrix, and generate the movement path based on the state transition probability; in this update process, according to the captured map information, the obstacle density, the actual distance and orientation between the robot and each obstacle, etc., determine whether to enter the obstacle dense area: if entering, continue to execute the subsequent steps 5 to 7; if not entering, make all the weight coefficients to be dynamically updated through step 5 fixed value processing;
[0008] Step 5: Eliminate the straight-line distance dist(u between the robot and the obstacle in the global path planning node a ,ω r ) is greater than the threshold value, and the ant sequence number is updated; the on-board processor calculates the distance D between each obstacle ij and the robot's travel performance number D s , get its maximum and minimum values D max and minimum value D min , and calculate and update pheromones; weighted fusion of robot motion speed, heading and collision safety to construct the objective function of path planning, and dynamically update each weight coefficient in the objective function;
[0009] Step 6: Obtain the alternative speed space of the robot, and obtain the optimal speed set of the robot at the next moment based on the objective function;
[0010] Step 7: Make the robot run at the optimal speed and determine whether it has reached the target point; if so, end the iteration process; otherwise, return to step 1.
[0011] Furthermore, the specific process of obtaining the grid map information of the robot working environment in step 1 includes:
[0012] First, the grid map is constructed using the spatial point cloud collected by the laser radar. ω (x ω ,y ω ,z ω ) and the transformation g(r,c) of the grid cell to which it belongs is:
[0013]
[0014] In the formula, floor() is the floor function, r and c represent the row and column respectively, and x ω ,y ω 、z ω are the coordinates of each axis of the spatial rectangular coordinate system;
[0015] Calculate the height difference, height variance and height gradient of each grid cell and compare them with their respective thresholds, divide the grid cells that meet the conditions into ground areas, and establish the ground projection of the point cloud;
[0016] Then, the K-mean clustering algorithm is used to extract the trunk area where the robot passes between the fruit tree rows:
[0017] Assume that the acquired ground point cloud set is S, then for any point (x i ,y i ) and its adjacent point (x j ,y j ) is expressed as follows:
[0018]
[0019] The following k values are set for estimating the number of point clouds of fruit tree rows:
[0020]
[0021] Where h is the height of the laser radar reference line from the ground, l p is the estimated spacing between fruit trees; for each ground point cloud sample point, the distance to the k cluster center points is calculated, and the sample point is assigned to the cluster with the smallest distance to the center point;
[0022] After clustering, the center point of the i-th cluster is:
[0023]
[0024] In the formula, S i is the number of point clouds in the i-th point cloud cluster, X i is the horizontal coordinate of the cluster center point of the i-th point cloud cluster, and x is the horizontal coordinate of any point in the i-th point cloud cluster.
[0025] The clustering criterion of the algorithm is:
[0026]
[0027] Furthermore, in step 2, when initializing the ant colony algorithm, in order to ensure that the distance between the robot and the obstacle is not too close and the robot does not detour during operation, the expansion radius value is first set to 0.3, there are 100 cells in the grid map, and the resolution is 1% of the robot's linear velocity and angular velocity, so as to ensure that each cell has a state node; the resolutions of the linear velocity and angular velocity are 0.03 and 0.2 respectively; according to the level of the robot's initial linear velocity and the size of the grid map, considering the longest range of path planning, the simulation test time value is set to 4s; the number of iterations N is set to 100-500, the ant colony size M is set to 10-50, the information heuristic factor α is in the range of [1,4], the expected heuristic factor β is in the range of [3,5], and the pheromone volatility coefficient ρ and pheromone concentration τ are selected based on experience.
[0028] Furthermore, in step 4, the state transition rate from state node i to adjacent state node j at time t is specifically defined as for:
[0029]
[0030] In the formula, is the pheromone concentration on path (i,j), is the heuristic function for the mth ant to select the adjacent state node j at state node i, U m is the set of next nodes that the ant has not visited yet, s is the set of optional nodes adjacent to the current position, is the pheromone concentration between the current state node i and each adjacent state node of the mth ant, is the heuristic function between the current node i and each adjacent state node of the mth ant;
[0031] The set of state nodes of the path (i, j) that the mth ant currently passes through is X{(i, j)|i=1,2,…,n;j=1,2,…,n}, then the pheromone concentration increment of the path from state node i to adjacent state node j of the ant from time t-1 to time t is:
[0032]
[0033] Where Q is the pheromone intensity, which is a constant greater than 0.
[0034] Furthermore, in step 5, when calculating the distance D between obstacles ij and the robot's travel performance number D s When the robot is traveling in the direction of the robot, the number of obstacles in the area is compared with the threshold to determine whether the area is an obstacle-dense area. For an obstacle-dense area, the shortest distance between the i-th obstacle and the j-th obstacle is defined as the distance Dij :
[0035]
[0036] Considering the safety and maneuverability of the robot in passing through obstacles, in order to measure the robot's passability between two obstacles, its passing function number D is defined as s for:
[0037]
[0038] Among them, ω rmax is the yaw angular velocity ω r The maximum value of θ max is the heading angle θ i is the maximum value of , a and b are constants; it can be seen from the above formula that the larger the heading angle, the easier it is for the robot to travel; and the larger the yaw angular velocity of the robot, the worse the handling stability and the lower the driving safety.
[0039] Taking into account the expansion radius of the obstacle and introducing the expansion radius influence coefficient σ, the condition for the robot to pass safely between two obstacles is:
[0040]
[0041] Therefore, pheromones can be dynamically updated through the following formula:
[0042]
[0043] In the formula, δ = D max -D min , ε is the acceptable error for the nth iteration, which is a constant.
[0044] Furthermore, the objective function constructed in step 5 specifically adopts the following form:
[0045] G(u ad ,ω rd )=l·θ+m·dist(u a ,ω r )+n·u amax
[0046] In the formula, θ represents the angle between the robot's driving direction and the target line; l, m, and n are three weight coefficients respectively.
[0047] Furthermore, in step six, the alternative speed space U(u a ,ω r ):
[0048] Based on the physical constraints of obstacles around the robot's motion trajectory nodes, determine the velocity set U consisting of the longitudinal velocity and the robot's yaw angular velocity limit. s (u a ,ω r ) must satisfy:
[0049] U S ={(u a ,ω r )|0≤u a ≤u amax' -ω rmax ≤ω r ≤ω rmax}
[0050] Among them, u a is the longitudinal velocity of the robot;
[0051] Assume that the robot's driving trajectory is composed of n broken line segments in n time periods. The connection points of the broken line segments are considered to be the closest to the obstacle position under the premise of satisfying the obstacle expansion size limit. To ensure that the robot does not collide with obstacles during movement, the speed set U after time dt can be obtained by kinematic conditions. a Must meet:
[0052]
[0053] Assume that the robot's current velocity set is (u acurr ,ω rcurr ), then the velocity set U at the next moment d Must meet:
[0054]
[0055] Then the final speed set U is determined as:
[0056] U=U S ∩U a ∩U d
[0057] When obtaining the optimal speed set of the robot at the next moment based on the objective function, each weight coefficient is specifically normalized to a constant coefficient between [0, 1].
[0058] The path planning method for the wheeled plant protection robot provided by the present invention first obtains orchard environmental information through lidar, applies the voxelized grid method to simplify the point cloud density, uses the grid method to segment the ground point cloud, and clusters to extract the robot's inter-row passage area; then, combined with the kinematic model and operation specification constraints of the plant protection robot, a model-based prediction method is used to generate a series of candidate trajectory sets, thereby improving the traditional ant colony algorithm-based path planning, and integrating the robot's travel cost into the node search, thereby effectively improving the algorithm's operating efficiency, reducing the distance the robot travels outside obstacles, and ensuring the safety of the robot's driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 The present invention is a schematic diagram of the process of the method provided by the present invention. DETAILED DESCRIPTION
[0060] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The path planning method of the wheeled plant protection robot provided by the present invention is as follows: Figure 1 As shown, the specific steps include:
[0062] Step 1: Obtain the grid map information of the robot's working environment by laser radar, locate the starting point and target point of the robot's movement; obtain the state node information of all robot movements in the space, and calculate the adjacent matrix and heuristic information matrix used for the ant colony algorithm;
[0063] Step 2: Initialize the parameters of the ant colony algorithm, including setting the number of iterations to N, the ant colony size to M, the information heuristic factor α, the expected heuristic factor β, the pheromone volatility coefficient ρ, and the pheromone concentration τ;
[0064] Step 3: Calculate the obstacle density, the actual distance and position between the robot and each obstacle in real time;
[0065] Step 4, execute the ant colony algorithm to update the path: query the adjacent matrix, obtain the feasible node set for the current state node i to move to the next state node, calculate the state transition probability of the mth ant selecting the adjacent state node based on the heuristic information matrix, and generate the movement path based on the state transition probability; in this update process, according to the captured map information, the obstacle density, the actual distance and orientation between the robot and each obstacle, etc., determine whether to enter the obstacle dense area: if entering, continue to execute the subsequent steps 5 to 7; if not entering, make all the weight coefficients to be dynamically updated through step 5 fixed value processing;
[0066] Step 5: Eliminate the straight-line distance dist(u between the robot and the obstacle in the global path planning node a ,ω r ) is greater than the threshold value, and the ant sequence number is updated; the on-board processor calculates the distance D between each obstacle ij and the robot's travel performance number D s , get its maximum and minimum values D max and minimum value D min , and calculate and update pheromones; weighted fusion of robot motion speed, heading and collision safety to construct the objective function of path planning, and dynamically update each weight coefficient in the objective function;
[0067] Step 6: Obtain the alternative speed space of the robot, and obtain the optimal speed set of the robot at the next moment based on the objective function;
[0068] Step 7: Make the robot run at the optimal speed and determine whether it has reached the target point; if so, end the iteration process; otherwise, return to step 1.
[0069] In a preferred embodiment of the present invention, the specific process of obtaining the grid map information of the robot working environment in step 1 includes:
[0070] First, the grid map is constructed using the spatial point cloud collected by the laser radar. ω (x ω ,y ω ,z ω ) and the transformation g(r,c) of the grid cell to which it belongs is:
[0071]
[0072] In the formula, floor() is the floor function, r and c represent the row and column respectively, and x ω ,y ω 、z ω are the coordinates of each axis of the spatial rectangular coordinate system;
[0073] Calculate the height difference, height variance and height gradient of each grid cell and compare them with their respective thresholds, divide the grid cells that meet the conditions into ground areas, and establish the ground projection of the point cloud;
[0074] Then, the K-mean clustering algorithm is used to extract the trunk area where the robot passes between the fruit tree rows:
[0075] Assume that the acquired ground point cloud set is S, then for any point (x i ,y i ) and its adjacent point (x j ,y j ) is expressed as follows:
[0076]
[0077] The following k values are set for estimating the number of point clouds of fruit tree rows:
[0078]
[0079] Where h is the height of the laser radar reference line from the ground, l p is the estimated spacing between fruit trees; for each ground point cloud sample point, the distance to the k cluster center points is calculated, and the sample point is assigned to the cluster with the smallest distance to the center point;
[0080] After clustering, the center point of the i-th cluster is:
[0081]
[0082] In the formula, S i is the number of point clouds in the i-th point cloud cluster, X i is the horizontal coordinate of the cluster center point of the i-th point cloud cluster, and x is the horizontal coordinate of any point in the i-th point cloud cluster.
[0083] The clustering criterion of the algorithm is:
[0084]
[0085] In a preferred embodiment of the present invention, when the ant colony algorithm is initialized in step 2, in order to ensure that the distance between the robot and the obstacle is not too close and the robot does not detour during operation, the expansion radius value is first set to 0.3, there are 100 cells in the grid map, and the resolution is 1% of the robot's linear velocity and angular velocity, so as to ensure that each cell has a state node; the initial value settings of each algorithm parameter are shown in the following Table 1:
[0086] Table 1 Initialization parameters of the improved ACO-DWA algorithm
[0087]
[0088] In a preferred embodiment of the present invention, step 4 specifically defines the state transition rate from state node i to adjacent state node j at time t: for:
[0089]
[0090] In the formula, is the pheromone concentration on path (i,j), is the heuristic function for the mth ant to select the adjacent state node j at state node i, U m is the set of next nodes that the ant has not visited yet, s is the set of optional nodes adjacent to the current position, is the pheromone concentration between the current state node i and each adjacent state node of the mth ant, is the heuristic function between the current node i and each adjacent state node of the mth ant;
[0091] The set of state nodes of the path (i, j) that the mth ant currently passes through is X{(i, j)|i=1,2,…,n;j=1,2,…,n}, then the pheromone concentration increment of the path from state node i to adjacent state node j of the ant from time t-1 to time t is:
[0092]
[0093] Where Q is the pheromone intensity, which is a constant greater than 0.
[0094] In a preferred embodiment of the present invention, in step 5, when calculating the distance D between each obstacle, ij and the robot's travel performance number D s When the robot is traveling in the direction of the robot, the number of obstacles in the area is compared with the threshold to determine whether the area is an obstacle-dense area. For an obstacle-dense area, the shortest distance between the i-th obstacle and the j-th obstacle is defined as the distance D ij :
[0095]
[0096] Considering the safety and maneuverability of the robot in passing through obstacles, in order to measure the robot's passability between two obstacles, its passing function number D is defined as s for:
[0097]
[0098] Among them, ω rmax is the yaw angular velocity ω r The maximum value of θ max is the heading angle θi is the maximum value of , a and b are constants; it can be seen from the above formula that the larger the heading angle, the easier it is for the robot to travel; and the larger the yaw angular velocity of the robot, the worse the handling stability and the lower the driving safety.
[0099] Taking into account the expansion radius of the obstacle and introducing the expansion radius influence coefficient σ, the condition for the robot to pass safely between two obstacles is:
[0100]
[0101] Therefore, pheromones can be dynamically updated through the following formula:
[0102]
[0103] In the formula, δ = D max -D min , ε is the acceptable error for the nth iteration, which is a constant.
[0104] In a preferred embodiment of the present invention, the objective function constructed in step 5 specifically takes the following form:
[0105] G(u ad ,ω rd )=l·θ+m·dist(u a ,ω r )+n·u amax
[0106] In the formula, θ represents the angle between the robot's driving direction and the target line; l, m, and n are three weight coefficients respectively.
[0107] In a preferred embodiment of the present invention, in step six, the alternative speed space U(u a ,ω r ):
[0108] Based on the physical constraints of obstacles around the robot's motion trajectory nodes, determine the velocity set U consisting of the longitudinal velocity and the robot's yaw angular velocity limit. s (u a ,ω r ) must satisfy:
[0109] U S ={(u a ,ω r )|0≤u a ≤u amax' -ω rmax ≤ω r ≤ω rmax}
[0110] Among them, u ais the longitudinal velocity of the robot;
[0111] Assume that the robot's driving trajectory is composed of n broken line segments in n time periods. The connection points of the broken line segments are considered to be the closest to the obstacle position under the premise of satisfying the obstacle expansion size limit. To ensure that the robot does not collide with obstacles during movement, the speed set U after time dt can be obtained by kinematic conditions. a Must meet:
[0112]
[0113] Assume that the robot's current velocity set is (u acurr ,ω rcurr ), then the velocity set U at the next moment d Must meet:
[0114]
[0115] Then the final speed set U is determined as:
[0116] U=U S ∩U a ∩U d
[0117] When obtaining the optimal speed set of the robot at the next moment based on the objective function, each weight coefficient is specifically normalized to a constant coefficient between [0, 1].
[0118] It should be understood that the size of the serial numbers of the steps in the embodiment of the present invention does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0119] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A path planning method for a wheeled plant protection robot, characterized in that: The specific steps include: Step 1: Obtain the grid map information of the robot's working environment by laser radar, locate the starting point and target point of the robot's movement; obtain the state node information of all robot movements in the space, and calculate the adjacent matrix and heuristic information matrix used for the ant colony algorithm; Step 2: Initialize the parameters of the ant colony algorithm, including setting the number of iterations to N, the ant colony size to M, the information heuristic factor α, the expected heuristic factor β, the pheromone volatility coefficient ρ, and the pheromone concentration τ; Step 3: Calculate the obstacle density, the actual distance and position between the robot and each obstacle in real time; Step 4: Execute the ant colony algorithm to update the path: query the adjacent matrix, obtain the feasible node set for the current state node i to move to the next state node, calculate the state transition probability of the mth ant selecting the adjacent state node based on the heuristic information matrix, and generate the movement path based on the state transition probability; During this updating process, the captured map information is used to determine whether the robot has entered an obstacle-dense area based on the obstacle density, the actual distance between the robot and each obstacle, and the orientation information. If the robot has entered an obstacle-dense area, the subsequent steps 5 to 7 are continued. If the robot has not entered an obstacle-dense area, all the weight coefficients that will be dynamically updated in step 5 are fixed. Step 5: Eliminate the straight-line distance dist(u between the robot and the obstacle in the global path planning node a ,ω r ) is greater than the threshold value, and the ant sequence number is updated, where u a is the longitudinal velocity of the robot, ω r is the yaw rate; the onboard processor calculates the distance D between each obstacle ij and the robot's travel performance number D s , get its maximum and minimum values D max and minimum value D min , and calculate the updated pheromone; The objective function of path planning is constructed by weighted fusion of the robot's motion speed, heading and collision safety, and the weight coefficients in the objective function are dynamically updated; Step 6: Obtain the alternative speed space of the robot, and obtain the optimal speed set of the robot at the next moment based on the objective function; Step 7: Make the robot run at the optimal speed and determine whether it has reached the target point; if so, end the iteration process; Otherwise, return to step 1.
2. The method according to claim 1, characterized in that: The specific process of obtaining the grid map information of the robot's working environment in step 1 includes: First, the grid map is constructed using the spatial point cloud collected by the laser radar. ω (x ω ,y ω ,z ω ) and the transformation g(r,c) of the grid cell to which it belongs is: In the formula, floor() is the floor function, r and c represent the row and column respectively, and x ω ,y ω 、z ω are the coordinates of each axis of the spatial rectangular coordinate system; Calculate the height difference, height variance and height gradient of each grid cell and compare them with their respective thresholds, divide the grid cells that meet the conditions into ground areas, and establish the ground projection of the point cloud; Then, the K-mean clustering algorithm is used to extract the trunk area where the robot passes between the fruit tree rows: Assume that the acquired ground point cloud set is S, then for any point (x i ,y i ) and its adjacent point (x j ,y j ) is expressed as follows: The following k values are set for estimating the number of point clouds of fruit tree rows: Where h is the height of the laser radar reference line from the ground, l p is the estimated spacing between fruit trees; for each ground point cloud sample point, the distance to the k cluster center points is calculated, and the sample point is assigned to the cluster with the smallest distance to the center point; After clustering, the center point of the i-th cluster is: In the formula, S i is the number of point clouds in the i-th point cloud cluster, X i is the horizontal coordinate of the cluster center point of the i-th point cloud cluster, and x is the horizontal coordinate of any point in the i-th point cloud cluster; The clustering criterion of the algorithm is:
3. The method according to claim 2, characterized in that: In step 2, when initializing the ant colony algorithm, in order to ensure that the distance between the robot and the obstacle is not too close and the robot does not detour during operation, the expansion radius value is first set to 0.3, there are 100 cells in the grid map, and the resolution is 1% of the robot's linear velocity and angular velocity, so as to ensure that each cell has a state node; the resolution of the linear velocity and angular velocity are 0.03 and 0.2 respectively; according to the level of the robot's initial linear velocity and the size of the grid map, considering the longest range of path planning, the simulation test time value is set to 4s; The number of iterations N is set to 100-500, the ant colony size M is set to 10-50, the information heuristic factor α is in the range of [1,4], the expected heuristic factor β is in the range of [3,5], and the pheromone volatility coefficient ρ and pheromone concentration τ are selected based on experience.
4. The method according to claim 3, characterized in that: In step 4, the state transition rate from state node i to adjacent state node j at time t is specifically defined as for: In the formula, is the pheromone concentration on path (i,j), is the heuristic function for the mth ant to select the adjacent state node j at state node i, U m is the set of next nodes that the ant has not visited yet, s is the set of optional nodes adjacent to the current position, is the pheromone concentration between the current state node i and each adjacent state node of the mth ant, is the heuristic function between the current node i and each adjacent state node of the mth ant; The set of state nodes of the path (i, j) that the mth ant currently passes through is X{(i, j)|i=1,2,…,n;j=1,2,…,n}, then the pheromone concentration increment of the path from state node i to adjacent state node j of the ant from time t-1 to time t is: Where Q is the pheromone intensity, which is a constant greater than 0.
5. The method according to claim 4, characterized in that: In step 5, the distance D between obstacles is calculated. ij and the robot's travel performance number D s When the robot is traveling in the direction of the robot, the number of obstacles in the area is compared with the threshold to determine whether the area is an obstacle-dense area. For an obstacle-dense area, the shortest distance between the i-th obstacle and the j-th obstacle is defined as the distance D ij : Considering the safety and maneuverability of the robot in passing through obstacles, in order to measure the robot's passability between two obstacles, its passing function number D is defined as s for: Among them, ω rmax is the yaw angular velocity ω r The maximum value of θ max is the heading angle θ i The maximum value of a and b are constants. As can be seen from the above formula, the larger the heading angle, the easier it is for the robot to travel; and the larger the yaw angular velocity of the robot, the worse the handling stability and the lower the driving safety. Taking into account the expansion radius of the obstacle and introducing the expansion radius influence coefficient σ, the condition for the robot to pass safely between two obstacles is: The pheromone is thus dynamically updated by the following formula: In the formula, δ = D max -D min , ε is the error accepted at the nth iteration, which is a constant.
6. The method according to claim 5, characterized in that: The objective function constructed in step 5 is specifically in the following form: G(u ad ,ω rd )=l·θ+m·dist(u a ,ω r )+n·u amax In the formula, θ represents the angle between the robot's driving direction and the target line; l, m, and n are three weight coefficients respectively.
7. The method according to claim 6, characterized in that: In step 6, the alternative speed space U(u) is obtained by the following steps: a ,ω r ): Based on the physical constraints of obstacles around the robot's motion trajectory nodes, determine the velocity set U consisting of the longitudinal velocity and the robot's yaw angular velocity limit. s (u a ,ω r ) must satisfy: U S ={(u a ,oh r )|0≤u a ≤u amax' -oh rmax ≤ω r ≤ω rmax } Among them, u a is the longitudinal velocity of the robot; Assume that the robot's driving trajectory is composed of n broken line segments in n time periods. The connection points of the broken line segments are considered to be the closest to the obstacle position under the premise of satisfying the obstacle expansion size limit. To ensure that the robot does not collide with obstacles during movement, the velocity set U after time dt is obtained by kinematic conditions. a Must meet: Assume that the robot's current velocity set is (u acurr ,ω rcurr ), then the velocity set U at the next moment d Must meet: Then the final speed set U is determined as: U=U S ∩U a ∩U d When obtaining the optimal speed set of the robot at the next moment based on the objective function, each weight coefficient is specifically normalized to a constant coefficient between [0, 1].
