Adaptive-parameter local path planning method and system for mobile robot
By adaptively adjusting the cost proportion in the trajectory evaluation model, the problem of the robot falling into a local minimum point in traditional local path planning is solved, and better path planning and obstacle avoidance effects are achieved.
Patent Information
- Application Number
- PCT/CN2023/102870
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2023-06-27
- Publication Date
- 2024-08-29
AI Technical Summary
When the traditional robot local path planning algorithm encounters an obstacle in front, the robot will fall into a local minimum point, cycle or stagnate, and the obstacle avoidance effect is poor.
The local path planning method of adaptive parameters is used to sample multiple sets of speed sets in the speed space, evaluate the predicted trajectory through the preset trajectory evaluation model, and adjust the score proportion of the orientation cost and speed difference cost to avoid the robot falling into local optimal solution. The method includes adaptive adjustment of heading cost, speed difference cost and total trajectory cost, and dynamically adjusts the trajectory evaluation model to optimize path planning.
It effectively prevents the robot from falling into the local optimal solution during local path planning, improves the obstacle avoidance effect, and achieves safer and smoother path planning without increasing the computational burden.
Smart Images

Figure CN2023102870_29082024_PF_FP_ABST
Abstract
Description
A local path planning method and system for mobile robots with adaptive parameters
[0001] The present invention claims priority to the Chinese patent application filed with the Patent Office of China on February 21, 2023, with application number 202310138722.2 and invention name “A method and system for local path planning of mobile robots with adaptive parameters”, the entire contents of which are incorporated by reference into the present invention. Technical Field
[0002] The present invention belongs to the technical field of path optimization, and in particular relates to a method and system for local path planning of a mobile robot with adaptive parameters. Background Art
[0003] Path planning algorithms are mainly divided into global path planning and local path planning. Among them, the Dynamic Window Approach (DWA) is a typical local path planner. The Dynamic Window Approach prefers to select trajectories moving toward the target direction. The Dynamic Window Approach samples linear velocity and angular velocity in velocity space and predicts its trajectory for the next time interval based on the robot's kinematic model. The evaluated trajectories are scored to obtain a safer, smoother and optimal local path.
[0004] The inventors discovered that when using the traditional robot local path planning algorithm, when the robot is in a position where there is an obstacle in front of it, the desired trajectory not only needs to move towards the target, but also needs to move away from the obstacle. This contradiction causes the robot to fall into a local minimum point and become trapped in a local optimal solution. Specifically, it constantly cycles back and forth or even stagnates near this position, resulting in poor obstacle avoidance effect.
[0005] Summary of the Invention
[0006] In order to solve the above problems, the present invention proposes a method and system for local path planning of a mobile robot with adaptive parameters. The present invention uses a robot local path planning algorithm with adaptive parameters to prevent the robot from falling into local optimum when performing local path planning.
[0007] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0008] In a first aspect, the present invention provides a method for local path planning of a mobile robot with adaptive parameters, comprising:
[0009] Sampling in the velocity space to obtain multiple sets of velocity sets;
[0010] Perform trajectory prediction for each set of speeds to obtain the predicted trajectory;
[0011] The predicted trajectory is evaluated by a preset trajectory evaluation model, and the path is planned by adjusting the parameters in the trajectory evaluation model to obtain the optimal path;
[0012] The trajectory evaluation model includes a heading cost, a speed difference cost, and a total trajectory cost. All predicted trajectories corresponding to multiple speed sets are traversed to determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories encountering obstacles is greater than a set threshold, the score proportion of the heading cost and the score proportion of the speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions.
[0013] Furthermore, the orientation cost is the angle between the robot's current position and the local target position, as well as the current target orientation of the robot; the speed difference cost is the difference between the robot's current speed and the robot's maximum speed; the total trajectory cost is the sum of the costs corresponding to all trajectory points in the cost map in a set of sampled speeds.
[0014] Furthermore, the trajectory evaluation model is equal to the product of the adaptive coefficient of the orientation cost, the orientation cost, and the score proportion corresponding to the orientation cost, plus the sum of the products of the adaptive coefficient of the speed difference cost, the speed difference cost, and the score proportion corresponding to the speed difference cost, plus the sum of the products of the total trajectory value and the score proportion corresponding to the total trajectory value.
[0015] Furthermore, the adaptive coefficient of the heading cost and the adaptive coefficient of the speed difference cost are both the largest value between 0.1 and the predicted value; the predicted value is equal to the ratio of the total number of predicted trajectories and the number of trajectories encountering obstacles to the total number of predicted trajectories.
[0016] Furthermore, it is determined whether a collision occurs when the first control cycle trajectory point in the predicted trajectory is emergency stopped. If so, the corresponding speed sample is discarded. Otherwise, the cost corresponding to the trajectory point in the cost map in each control cycle is accumulated.
[0017] Furthermore, if the number of predicted trajectories encountering obstacles is less than or equal to the set threshold, the robot's current point is connected to the local target point; if there is obstacle information on the line connecting the robot's current point and the local target point, the global planner is used to replan the path, and the planned path is placed in the local planning target point set, the local target point is updated, substituted into the trajectory evaluation model, and the optimal sampling speed is calculated.
[0018] Furthermore, the global planner is used to search for path points to the target point;
[0019] Use Floyd's path smoothing algorithm to set key points for local path planning;
[0020] Select the target point among the key points;
[0021] When the machine is moving, it builds a local map and trajectory evaluation model, and adjusts the local planning scheme according to whether there are obstacles between the current point and the target point.
[0022] In a second aspect, the present invention further provides a local path planning system for a mobile robot with adaptive parameters, comprising:
[0023] The sampling module is configured to: sample in the velocity space to obtain multiple velocity sets;
[0024] The prediction module is configured to: perform trajectory prediction on each set of speeds to obtain a predicted trajectory;
[0025] The planning module is configured to: evaluate the predicted trajectory using a preset trajectory evaluation model, and plan the path by adjusting parameters in the trajectory evaluation model to obtain an optimal path;
[0026] The trajectory evaluation model includes a heading cost, a speed difference cost, and a total trajectory cost. All predicted trajectories corresponding to multiple speed sets are traversed to determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories encountering obstacles is greater than a set threshold, the score proportion of the heading cost and the score proportion of the speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions.
[0027] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for local path planning of a mobile robot with adaptive parameters described in the first aspect.
[0028] In a fourth aspect, the present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for local path planning of a mobile robot with adaptive parameters described in the first aspect are implemented.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] In the present invention, when evaluating the predicted trajectory and planning the path through the trajectory evaluation model, all predicted trajectories corresponding to multiple groups of speed sets are traversed, and the number of obstacles encountered in all predicted trajectories is determined. If the number of predicted trajectories that encounter obstacles is greater than a set threshold, the proportion of orientation cost and the proportion of speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions. By adaptively adjusting the proportion of orientation cost and the proportion of speed difference cost in the trajectory evaluation model, the problem of the robot falling into a local optimal solution is effectively avoided without increasing the computational burden. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings constituting a part of the specification of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments and descriptions of this embodiment are used to explain this embodiment and do not constitute an improper limitation on this embodiment.
[0032] FIG1 is a flow chart of Example 1 of the present invention;
[0033] FIG2 is a local planner solution of embodiment 1 of the present invention. DETAILED DESCRIPTION
[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0035] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present application belongs.
[0036] Example 1:
[0037] This embodiment provides a method for local path planning of a mobile robot with adaptive parameters, including:
[0038] S1. Use the global planner to search for path points to the target point;
[0039] S2. Using the Floyd path smoothing algorithm, path points that are on a straight line from the starting point and exceed a certain threshold are set as local path planning key points. It can be understood that there are no obstacles on this straight line. The straight line refers to the line connecting the current point and the local target point, and the threshold can be understood as the shortest distance between the local path key points.
[0040] S3. Select a local target point based on the robot's current location and the target point threshold. The target point is selected from the key points. Specifically, the selection process needs to meet the following conditions: the distance from the current point exceeds a certain threshold, and the point is selected as a local target point for the first time.
[0041] S4, when the robot is walking, by building a local map and sampling evaluation model, the local planning scheme is adjusted according to whether there are obstacles between the current point and the local target point;
[0042] Specifically, when building a local map, in this embodiment, it is selected to first delete the data information of the previous frame, and then construct the obstacle information based on the data of the current frame; the sampling evaluation model is a trajectory evaluation model.
[0043] S5. Send robot walking information;
[0044] It can be understood that the robot is controlled by the adjusted local planning scheme.
[0045] Through this embodiment, different obstacle stopping and obstacle avoidance distances can be set according to different needs of different mobile robots, and the machine can be effectively prevented from falling into a local optimal solution without increasing the computational burden.
[0046] As described in the background art, when using the traditional dynamic window method for local path planning, when there is an obstacle in front of the robot, the desired trajectory needs to move not only toward the target but also away from the obstacle. This contradiction causes the robot to be trapped in a local minimum point. To solve the above problem, in the local path planning method for mobile robots with adaptive parameters, the following improvements are made:
[0047] Sampling in the velocity space to obtain multiple sets of velocity sets;
[0048] Perform trajectory prediction on each set of velocity sets to obtain a predicted trajectory. Trajectory prediction can be achieved through conventional techniques, which will not be described in detail here.
[0049] The predicted trajectory is evaluated by a preset trajectory evaluation model, and the path is planned by adjusting the parameters in the trajectory evaluation model to obtain the optimal path;
[0050] The trajectory evaluation model includes a heading cost, a speed difference cost, and a total trajectory cost. All predicted trajectories corresponding to multiple speed sets are traversed to determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories encountering obstacles is greater than a set threshold, the score proportion of the heading cost and the score proportion of the speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions.
[0051] When evaluating the predicted trajectory and planning the path through the trajectory evaluation model, all predicted trajectories corresponding to multiple groups of speed sets are traversed to determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories encountering obstacles is greater than the set threshold, the proportion of the orientation cost and the proportion of the speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions. By adaptively adjusting the proportion of the orientation cost and the proportion of the speed difference cost in the trajectory evaluation model, the problem of the robot falling into local minimum points is effectively avoided without increasing the computational burden.
[0052] The orientation cost A is the angle between the robot's current position and the local target position, as well as the robot's current target orientation, indicating the robot's planned direction. The score percentage corresponding to the orientation cost is As, with a default minimum value of 0.1, and the default value of the orientation cost's adaptive coefficient Aa is 1. The speed difference cost B is the difference between the robot's current speed v and its maximum speed Mv, indicating that the faster the robot is, the closer it is to the target. The score percentage corresponding to the speed difference cost Bs has a default minimum value of 0.1, and the default value of the speed difference cost's adaptive coefficient Ba is 1. The total trajectory cost C is the sum of the costs corresponding to all trajectory points in a set of sampled speeds in the cost map, and the score percentage corresponding to the total trajectory cost is Cs. The cost map refers to a map that simplifies the robot into a point in the cost map based on the obstacle information in the static map and the robot's configuration space. It can be understood as an obstacle point, and the obstacle is inflated according to the shape of the robot.
[0053] The total trajectory cost C = 1 - adaptive coefficient Aa of the orientation cost * score share As corresponding to the orientation cost - adaptive coefficient Ba of the speed difference cost * score share Bs corresponding to the speed difference cost. The score share As corresponding to the orientation cost + the score share Bs corresponding to the speed difference cost + the score share Cs corresponding to the total trajectory cost = 1; * represents the multiplication sign.
[0054] The trajectory evaluation model is equal to the product of the adaptive coefficient of the orientation cost, the orientation cost and the score ratio corresponding to the orientation cost plus the sum of the products of the adaptive coefficient of the speed difference cost, the speed difference cost and the score ratio corresponding to the speed difference cost, plus the sum of the products of the total trajectory value and the score ratio corresponding to the total trajectory value; specifically, the final trajectory score = adaptive coefficient of orientation cost Aa*orientation cost A*score ratio corresponding to orientation cost As+adaptive coefficient of speed difference cost Ba*speed difference cost B*score ratio corresponding to speed difference cost Bs+total trajectory value C*score ratio corresponding to total trajectory value Cs; * represents the multiplication sign.
[0055] The velocity sampling space is Vs∩Vd, and trajectory prediction is performed for each set of velocity sets in the sampling space; Vs={(sv, sw)|sv∈[Nv, Mv]Λsw∈[Nw, Mw]} Vd={(sv, sw)|sv∈[Cv-Av*St,Cv+Av*St]Λsw∈[Cw-Aw*St,Cw+Aw*St]}
[0056] Among them, Vs is the speed that the robot can reach under the motion model; sv is the sampling speed; sw is the sampling angular velocity; Nv is the minimum speed; Mv is the maximum speed; sw is the sampling angular velocity; Nw is the minimum angular velocity; Mw is the maximum angular velocity; Vd is the sampling speed that the machine can reach under the robot dynamic model; Cv is the current speed; Av is the linear acceleration; St is the sampling time, and the sampling time St is greater than the control time Ct; Cw is the current angular velocity; Aw is the angular acceleration.
[0057] For the first control cycle trajectory point in the predicted trajectory, an emergency stop is performed to determine whether a collision will occur. If a collision occurs, the group of velocity samples is discarded. Otherwise, the cost corresponding to the trajectory point in the cost map in each control cycle is accumulated to record whether the trajectory touches an obstacle.
[0058] The total number of trajectories of all group speeds is SUM, and the set of trajectories that encounter obstacles is determined. The number of trajectories that encounter obstacles is N. If the set size exceeds the threshold, it is determined that the machine will enter a dense obstacle area, and the speed difference and orientation ratio are reduced; the trajectory evaluation model normalizes the trajectory score, updates the corresponding score ratio, and calculates the optimal sampling speed. It can be understood that each sampled speed and angular velocity can obtain a trajectory information, and each trajectory information can obtain a score. The sampling speed and angular velocity corresponding to the trajectory with the smallest score is the optimal speed; the adaptive coefficient of the orientation cost and the adaptive coefficient of the speed difference cost are both the largest value between 0.1 and the predicted value; the predicted value is equal to the ratio of the total number of predicted trajectories and the number of trajectories encountering obstacles to the total number of predicted trajectories; specifically, the adaptive coefficient of the orientation cost Aa = max((SUM-N) / SUM, 0.1); the adaptive coefficient of the speed difference cost Ba = max((SUM-N) / SUM, 0.1).
[0059] If the set size does not exceed the threshold, connect the current point and the local target point. If there is obstacle information on the connection line, use the global planner to replan the path and limit the global planner's path search time to avoid the path search taking too long. Put the path into the local planning target point set, update the local target point, substitute it into the trajectory evaluation model, and calculate the optimal sampling speed.
[0060] The optimal sampling speed is sent to the chassis of the mobile robot to achieve robot control and path planning.
[0061] Example 2:
[0062] This embodiment provides a local path planning system for a mobile robot with adaptive parameters, including:
[0063] The sampling module is configured to: sample in the velocity space to obtain multiple velocity sets;
[0064] The prediction module is configured to: perform trajectory prediction on each set of speeds to obtain a predicted trajectory;
[0065] The planning module is configured to: evaluate the predicted trajectory using a preset trajectory evaluation model, and plan the path by adjusting parameters in the trajectory evaluation model to obtain an optimal path;
[0066] The trajectory evaluation model includes a heading cost, a speed difference cost, and a total trajectory cost. All predicted trajectories corresponding to multiple speed sets are traversed to determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories encountering obstacles is greater than a set threshold, the score proportion of the heading cost and the score proportion of the speed difference cost in the trajectory evaluation model are reduced, and the sampling speed is calculated based on the updated proportions.
[0067] The working method of the system is the same as the local path planning method of the mobile robot with adaptive parameters in Example 1, and will not be repeated here.
[0068] Example 3:
[0069] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the method for local path planning of a mobile robot with adaptive parameters described in Example 1 are implemented.
[0070] Example 4:
[0071] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the method for local path planning of a mobile robot with adaptive parameters described in Example 1 are implemented.
[0072] The above description is merely a preferred embodiment of this embodiment and is not intended to limit this embodiment. Those skilled in the art will readily appreciate that this embodiment may be modified and varied in various ways. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this embodiment shall be within the scope of protection of this embodiment.
Claims
1. A method for local path planning of a mobile robot with adaptive parameters, characterized in that: include: Sampling in the velocity space to obtain multiple groups of velocity sets; Perform trajectory prediction for each set of speeds to obtain a predicted trajectory; The predicted trajectory is evaluated by a preset trajectory evaluation model, and the path is planned by adjusting the parameters in the trajectory evaluation model to obtain the optimal path; Wherein, the trajectory evaluation model includes orientation cost, speed difference cost and total trajectory cost; Traverse all predicted trajectories corresponding to multiple groups of speed sets, and determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories that encounter obstacles is greater than the set threshold, reduce the score proportion of the orientation cost and the score proportion of the speed difference cost in the trajectory evaluation model, and calculate the sampling speed based on the updated proportion.
2. A method for local path planning of a mobile robot with adaptive parameters as claimed in claim 1, characterized in that: The orientation cost is the angle between the current position of the robot and the local target position, as well as the current target orientation of the robot; the speed difference cost is the difference between the current speed of the robot and the maximum speed of the robot; the total trajectory cost is the sum of the corresponding costs of all trajectory points in the cost map in a set of sampled speeds.
3. A method for local path planning of a mobile robot with adaptive parameters as claimed in claim 1, characterized in that: The trajectory evaluation model is equal to the product of the adaptive coefficient of the orientation cost, the orientation cost and the score proportion corresponding to the orientation cost, plus the sum of the products of the adaptive coefficient of the speed difference cost, the speed difference cost and the score proportion corresponding to the speed difference cost, plus the sum of the products of the trajectory total value and the score proportion corresponding to the trajectory total value.
4. A method for local path planning of a mobile robot with adaptive parameters as claimed in claim 3, characterized in that: The adaptive coefficient of the orientation cost and the adaptive coefficient of the speed difference cost are both the largest value between 0.1 and the predicted value; the predicted value is equal to the ratio of the total number of predicted trajectories and the number of trajectories encountering obstacles to the total number of predicted trajectories.
5. The method for local path planning of a mobile robot with adaptive parameters as claimed in claim 1, characterized in that: Determine whether a collision occurs when emergency stopping is performed on the first control cycle trajectory point in the predicted trajectory. If so, discard the corresponding speed sampling. Otherwise, accumulate the corresponding cost of the trajectory point in the cost map in each control cycle.
6. A method for local path planning of a mobile robot with adaptive parameters as claimed in claim 1, characterized in that: If the number of predicted trajectories encountering obstacles is less than or equal to the set threshold, the current point of the robot is connected to the local target point; if there is obstacle information on the line connecting the current point of the robot and the local target point, the global planner is used to replan the path, and the planned path is put into the local planning target point set, the local target point is updated, substituted into the trajectory evaluation model, and the optimal sampling speed is calculated.
7. A method for local path planning of a mobile robot with adaptive parameters as claimed in claim 6, characterized in that: Use the global planner to search for path points to the target point; Use Floyd's path smoothing algorithm to set the key points of local path planning; Select the target point among the key points; When the machine is moving, it builds a local map and trajectory evaluation model, and adjusts the local planning scheme according to whether there are obstacles between the current point and the target point.
8. A local path planning system for a mobile robot with adaptive parameters, characterized in that: include: The sampling module is configured to: sample in the velocity space to obtain multiple groups of velocity sets; The prediction module is configured to: perform trajectory prediction on each set of speed sets to obtain a predicted trajectory; The planning module is configured to: evaluate the predicted trajectory through a preset trajectory evaluation model, and plan the path by adjusting parameters in the trajectory evaluation model to obtain an optimal path; Wherein, the trajectory evaluation model includes orientation cost, speed difference cost and total trajectory cost; Traverse all predicted trajectories corresponding to multiple groups of speed sets, and determine the number of obstacles encountered in all predicted trajectories. If the number of predicted trajectories that encounter obstacles is greater than the set threshold, reduce the score proportion of the orientation cost and the score proportion of the speed difference cost in the trajectory evaluation model, and calculate the sampling speed based on the updated proportion.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for local path planning of a mobile robot with adaptive parameters as described in any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for local path planning of a mobile robot with adaptive parameters as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Automatic guiding vehicle global route planning method applicable to logistics warehousing system
CN108469827A
Unmanned vehicle path tracking and obstacle avoidance method
CN110703763A
Parking method and system for unmanned vehicle in mining area
CN112572416A
Global dynamic path planning method integrating jump point search method and dynamic window method
CN112731916A
Vehicle path planning method and device, vehicle and storage medium
CN113238565A
Cited By
Method for automatically acquiring map label by AGV chassis
CN119104064A
Path planning method for underwater vehicle to pass through narrow water channel
CN119268717A
Method for predicting equipment fault in industrial internet based on AI large model
CN119357677A
Robot alarm processing method and system based on target detection algorithm and cloud platform
CN119418174A
Path planning method, system and device for local restricted area, and storage medium
CN119533491A
