Mobile robot path planning method and system based on hybrid particle swarm algorithm

The particle swarm-genetic hybrid algorithm is used to calculate the path of the mobile robot and combined with real-time trajectory prediction, which solves the problems of path planning blind spots and high learning sample requirements in multi-obstacle environments in the existing technology, and achieves efficient and fast path planning and adaptability to complex environmental capabilities.

CN114995400BActive Publication Date: 2024-10-15WUYI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210538337.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-10-15
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

Existing mobile robot path planning methods have problems with blind spots and high learning sample requirements in multi-obstacle environments, resulting in poor path planning effects and high computational complexity.

Method used

A path planning method based on particle swarm-genetic hybrid algorithm is adopted. By constructing a path planning model, the particle swarm-genetic hybrid algorithm is used to calculate the optimal path, and the robot motion information and obstacle information are combined for real-time trajectory prediction and evaluation to select the optimal path. The trajectory moves.

Benefits of technology

It achieves efficient and fast path planning in complex environments, reduces early preparation conditions, reduces blind spot risks, and improves the accuracy and adaptability of path selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995400B_ABST
    Figure CN114995400B_ABST
Patent Text Reader

Abstract

The present invention discloses a mobile robot path planning method and system based on a hybrid particle swarm algorithm. The optimal path is selected by a particle swarm-genetic hybrid algorithm, which does not require a large number of learning samples, has a faster convergence speed, and a better planning effect. After the optimal path is obtained, during the movement of the robot along the optimal path, the trajectory prediction is obtained in real time according to the current position of the robot and the running speed, heading angle and obstacle information of the robot at the current moment, and the predicted trajectory at this time is evaluated to select the optimal trajectory, which requires fewer preparation conditions before moving and has relatively fewer blind spots during moving. The optimal path is selected by a particle swarm-genetic hybrid algorithm and the optimal trajectory is selected by real-time trajectory prediction, which not only completes the selection of the optimal path for all positions, but also controls the robot to move from the current position to the next position to move along the optimal trajectory in real time, which fully conforms to the path planning model and can well adapt to complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile robot path planning, and in particular to a mobile robot path planning method and system based on a hybrid particle swarm algorithm. Background Art

[0002] Nowadays, mobile robots have a wide range of application needs in various fields, and path planning plays an important role in them. A mature and reliable path planning method can greatly improve the intelligence of robots and enable them to complete more complex tasks. However, some current planning methods have more or less blind spots and defects.

[0003] On the one hand, the existing planning methods complete path planning by finally obtaining the potential field map. However, there are certain blind spots in using the potential field to achieve obstacle avoidance path planning. If there are multiple obstacles near the target point, it is often impossible to reach the destination. On the other hand, the comprehensive use of polymorphic ant colonies and chaotic optimization algorithms to complete path planning often requires a large number of learning samples to obtain various pheromone concentration samples before planning, and the prerequisites for path planning are relatively harsh. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a mobile robot path planning method based on a hybrid particle swarm algorithm, which obtains the optimal path through a particle swarm-genetic hybrid algorithm, uses the obtained obstacle information and the robot's own motion information to cooperate with the target point to predict the trajectory in each direction, and finally evaluates the optimal path to complete the planning, which has strong real-time performance, few blind spots, and fewer preparation conditions required before planning operation.

[0005] The present invention also provides a system, a device and a storage medium for executing the above-mentioned mobile robot path planning method based on the hybrid particle swarm algorithm.

[0006] In a first aspect, an embodiment of the present invention provides a mobile robot path planning method based on a hybrid particle swarm algorithm, comprising the following steps:

[0007] Step S100, constructing a path planning model, wherein the model construction includes constructing a corresponding map coordinate system, a robot initial position and a robot motion model;

[0008] Step S200, using the path planning model and a particle swarm-genetic hybrid algorithm to calculate the optimal path of the robot from the starting position to the end position, wherein the optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions;

[0009] Step S300: driving the robot to move along the optimal path, and calculating the movement trajectory of the robot from the current position to the next position in the following manner during the movement process:

[0010] Step S301, obtaining the current position of the robot and the current running speed, heading angle and obstacle information of the robot;

[0011] Step S302: obtaining a predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot, evaluating the predicted trajectory to obtain an evaluation result, and selecting the predicted trajectory with the best evaluation result to move;

[0012] Step S303, determining whether the robot has reached the next position; if the robot has reached the next position, determining whether the robot has reached the end position; if the robot has reached the end position, the robot stops moving.

[0013] The control method according to the embodiment of the present invention has at least the following beneficial effects:

[0014] Constructing a path planning model and selecting the optimal path through a particle swarm-genetic hybrid algorithm does not require a large number of learning samples, has a faster convergence speed, and a better planning effect. After obtaining the optimal path, the robot moves along the optimal path, obtains trajectory prediction in real time based on the robot's current position and the robot's current running speed, heading angle, and obstacle information, and evaluates the predicted trajectory at this time to select the optimal trajectory. It requires fewer preparation conditions before moving and has relatively fewer blind spots during movement. Overall, the optimal path is selected through a particle swarm-genetic hybrid algorithm and the optimal trajectory is selected through real-time trajectory prediction, which not only completes the selection of the optimal path for all positions, but also controls the robot to move from the current position to the next position in real time to move along the optimal trajectory, which fully fits the path planning model and can adapt well to complex environments.

[0015] According to some embodiments of the present invention, obtaining the optimal path according to the particle swarm-genetic hybrid algorithm includes the following steps:

[0016] Step S210, performing particle initialization to obtain a particle swarm; the particle initialization includes randomly setting particle positions and setting individual historical optimal values ​​and group historical optimal values;

[0017] Step S220, calculating the current individual fitness value according to the particle position and the end point position, wherein the individual fitness value is the path length;

[0018] Step S230: updating the individual historical optimal value and the group historical optimal value; the updating of the individual historical optimal value and the group historical optimal value includes the following steps:

[0019] Step S231, judging whether the current individual fitness value is better than the individual historical optimal value;

[0020] Step S232: If the current individual fitness value is better than the individual historical optimal value, the individual historical optimal value is updated to the current individual fitness value;

[0021] Step S233, judging whether the current individual fitness value is better than the historical optimal value of the group;

[0022] Step S234: If the current individual fitness value is better than the group historical optimal value, the group historical optimal value is updated to the current individual fitness value;

[0023] Step S240, performing genetic transformation on the particles to update the particle population;

[0024] Step S250, determine whether the termination condition is met; if the termination condition is not met, jump to step S220; if the termination condition is met, obtain the optimal path according to the individual historical optimal value and the group historical optimal value; the termination condition includes the number of iterations and the individual historical optimal value and the group historical optimal value reaching a threshold.

[0025] According to some embodiments of the present invention, the genetic transformation of the particles to update the particle population comprises the following steps:

[0026] Step S241, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the individual historical optimal value;

[0027] Step S242, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the group historical optimal value;

[0028] Step S243: performing self-variation of the particle corresponding to the individual fitness value.

[0029] According to some embodiments of the invention, the interleaving comprises the following steps:

[0030] Generate a crossing position for two particles by using a discrete uniform random integer function, wherein the crossing position generates a crossing region;

[0031] Deleting the same elements in the intersection region to obtain new intersection particles;

[0032] The fitness value of the cross-new particle is compared with the current individual fitness value, and if the fitness value of the cross-new particle is better, the cross-new particle is retained.

[0033] According to some embodiments of the present invention, the self-variation comprises the following steps:

[0034] Generate variation bits for particles by rounding and random functions, wherein the variation bits generate variation regions;

[0035] retaining the mutated region to obtain a mutated new particle;

[0036] The fitness value of the mutated new particle is compared with the current individual fitness value, and if the fitness value of the mutated new particle is better, the mutated new particle is retained.

[0037] According to some embodiments of the present invention, the evaluating the robot according to the running speed, heading angle and obstacle information of the robot comprises the following steps:

[0038] The predicted trajectory is obtained by simulating the forward time according to the robot motion model and the running speed of the robot; the running speed includes linear velocity, angular velocity, linear acceleration and angular acceleration;

[0039] Calculating the orientation angle of the robot during movement according to the predicted trajectory, the angular velocity, the angular acceleration, and the heading angle of the robot;

[0040] Calculating obstacle distance according to the predicted trajectory route and the obstacle information;

[0041] Calculating a predicted speed of the robot according to the predicted trajectory route, the linear speed and the acceleration;

[0042] An evaluation is performed based on the orientation angle, the obstacle distance and the predicted speed to obtain an evaluation result.

[0043] According to some embodiments of the present invention, the calculation formula for evaluating the robot based on the running speed, heading angle and obstacle information of the robot includes:

[0044] G(v,ω)=a1·heading(v,ω)+a2·dist(v,ω)+a3·velocity(v,ω)

[0045] heading(v,ω)=180°-∣target-curθ∣

[0046] Among them, v and ω respectively represent the running speed and angular velocity of the robot, heading(v,ω) represents the heading angle evaluation, dist(v,ω) represents the obstacle distance evaluation, velocity(v,ω) represents the speed evaluation, target represents the angle between the center position of the robot and the target point and the positive x-axis, curθ represents the heading angle of the robot, and a1, a2 and a3 respectively represent the preset parameters of the heading angle evaluation, the obstacle distance evaluation and the speed evaluation.

[0047] In a second aspect, an embodiment of the present invention provides a mobile robot path planning system based on a hybrid particle swarm algorithm, comprising:

[0048] A model building module is used to build a path planning model, wherein the model building includes building a corresponding map coordinate system, a robot initial position and a robot motion model;

[0049] An optimal path module, used to calculate the optimal path of the robot from the starting position to the end position by using the particle swarm-genetic hybrid algorithm through the path planning model, wherein the optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions;

[0050] The optimal trajectory module drives the robot to move along the optimal path, and during the movement process, calculates the movement trajectory of the robot from the current position to the next position in the following manner:

[0051] Obtain the current position of the robot and the current running speed, heading angle and obstacle information of the robot;

[0052] Obtaining a predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot, evaluating the predicted trajectory to obtain an evaluation result, and selecting the predicted trajectory with the best evaluation result to move;

[0053] Determine whether the robot has reached the next position; if the robot has reached the next position, determine whether the robot has reached the end position; if the robot has reached the end position, stop moving.

[0054] In a third aspect, an embodiment of the present invention provides an electronic device comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the mobile robot path planning method based on the hybrid particle swarm algorithm as described in the first aspect.

[0055] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the mobile robot path planning method based on the hybrid particle swarm algorithm as described in the first aspect.

[0056] It should be noted that the beneficial effects between the second to fourth aspects of the present invention and the prior art are the same as the beneficial effects of the above-mentioned mobile robot path planning method based on the hybrid particle swarm algorithm, and will not be described in detail here.

[0057] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0059] Figure 1 is a flow chart of a mobile robot path planning method based on a hybrid particle swarm algorithm provided by an embodiment of the present invention;

[0060] Figure 2 is a flow chart of a method for selecting an optimal trajectory provided by an embodiment of the present invention;

[0061] Figure 3 is a flow chart of a method for calculating an optimal path using a particle swarm-genetic hybrid algorithm provided by an embodiment of the present invention;

[0062] Figure 4 is a flow chart of a method for updating individual historical optimal values ​​and group historical optimal values ​​provided by an embodiment of the present invention;

[0063] Figure 5 is a flow chart of a method for genetic transformation provided by one embodiment of the present invention;

[0064] Figure 6 It is a schematic diagram of a mobile robot path planning method based on a hybrid particle swarm algorithm provided by an embodiment of the present invention;

[0065] Figure 7 It is a schematic diagram of a method for calculating an optimal path using a particle swarm-genetic hybrid algorithm provided by an embodiment of the present invention;

[0066] Figure 8 It is a structural diagram of a mobile robot path planning system based on a hybrid particle swarm algorithm provided by an embodiment of the present invention;

[0067] Fig. 9An electronic device is provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0068] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0069] In the description of the present invention, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0070] In the description of the present invention, it should be understood that descriptions involving orientation, such as orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0071] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0072] Reference Figure 1 and Figure 2 In some embodiments of the present invention, a mobile robot path planning method based on a hybrid particle swarm algorithm is provided, comprising the following steps:

[0073] Step S100: construct a path planning model, where the model construction includes constructing a corresponding map coordinate system, a robot initial position, and a robot motion model.

[0074] Step S200, through the path planning model, the particle swarm-genetic hybrid algorithm is used to calculate the optimal path of the robot from the starting position to the end position. The optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions.

[0075] Step S300: drive the robot to move along the optimal path, and calculate the movement trajectory of the robot from the current position to the next position in the following manner during the movement process:

[0076] Step S301, obtaining the current position of the robot and the current running speed, heading angle and obstacle information of the robot;

[0077] Step S302: obtaining the predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot, evaluating the predicted trajectory to obtain an evaluation result, and selecting the predicted trajectory with the best evaluation result to move;

[0078] Step S303, determine whether the robot has reached the next position; if the robot has reached the next position, determine whether the robot has reached the end position; if the robot has reached the end position, the robot stops moving.

[0079] According to the mobile robot path planning method based on the hybrid particle swarm algorithm of the embodiment of the present invention, a path planning model is constructed, and the optimal path is selected by the particle swarm-genetic hybrid algorithm, which does not require a large number of learning samples, has a faster convergence speed, and a better planning effect; after obtaining the optimal path, the robot obtains trajectory prediction in real time according to the current position of the robot and the current running speed, heading angle and obstacle information of the robot during the movement along the optimal path, and evaluates the predicted trajectory at this time to select the optimal trajectory, which requires fewer preparation conditions before moving and has relatively fewer blind spots during moving; on the whole, the optimal path is selected by the particle swarm-genetic hybrid algorithm and the optimal trajectory is selected by real-time trajectory prediction, which not only completes the selection of the optimal path for all positions, but also controls the robot to move from the current position to the next position in real time to move along the optimal trajectory, which fully conforms to the path planning model and can adapt well to complex environments.

[0080] Reference Figure 3 and Figure 4 In some embodiments of the present invention, obtaining the optimal path according to the particle swarm-genetic hybrid algorithm includes the following steps:

[0081] Step S210, initializing particles to obtain a particle swarm; particle initialization includes randomly setting particle positions and setting individual historical optimal values ​​and group historical optimal values.

[0082] Step S220: Calculate the current individual fitness value according to the particle position and the end point position, where the individual fitness value is the path length.

[0083] Step S230: updating the individual historical optimal value and the group historical optimal value; the updating of the individual historical optimal value and the group historical optimal value includes the following steps:

[0084] Step S231, judging whether the current individual fitness value is better than the individual historical optimal value;

[0085] Step S232: If the current individual fitness value is better than the individual historical optimal value, the individual historical optimal value is updated as the current individual fitness value;

[0086] Step S233, judging whether the current individual fitness value is better than the historical optimal value of the group;

[0087] Step S234: If the current individual fitness value is better than the historical optimal value of the group, the historical optimal value of the group is updated to the current individual fitness value.

[0088] Step S240: Genetically transform the particles to update the particle group.

[0089] Step S250, determine whether the termination condition is met; if the termination condition is not met, jump to step S220; if the termination condition is met, obtain the optimal path according to the individual historical optimal value and the group historical optimal value; the termination condition includes the number of iterations and the individual historical optimal value and the group historical optimal value reaching the threshold.

[0090] By improving the particle swarm algorithm and the genetic algorithm, the particle swarm algorithm only compares the fitness values ​​of the initially set particle swarm and selects particles with better fitness values, while the genetic algorithm can expand the number of particles in the particle swarm by simulating the natural evolution process to search for the optimal solution, and can use fewer samples to carry out learning and training on a larger amount of data, and obtain the optimal path based on the individual historical optimal value and the group historical optimal value, thereby improving the accuracy of the optimal path selection, making the algorithm more robust, and significantly accelerating the convergence speed.

[0091] Reference Figure 5 In some embodiments of the present invention, genetic transformation of particles to update the particle population includes the following steps:

[0092] Step S241: Crossover of the particle corresponding to the individual fitness value and the particle corresponding to the individual historical optimal value.

[0093] Step S242: Crossover of the particle corresponding to the individual fitness value and the particle corresponding to the historical optimal value of the group.

[0094] Step S243: Perform self-variation of the particle corresponding to the individual fitness value.

[0095] New particles with better fitness values ​​are obtained by crossing the current particles with the particles corresponding to the individual historical optimal values ​​and the particles corresponding to the group historical optimal values. New particles with better fitness values ​​are obtained by self-mutation of particles corresponding to individual fitness values. Genetic algorithms can directly operate on structural objects without the limitations of derivatives and function continuity; they have inherent implicit parallelism and better global optimization capabilities; they use probabilistic optimization methods, which can automatically obtain and guide the optimized search space without the need for definite rules, and adaptively adjust the search direction.

[0096] In some embodiments of the invention, interleaving comprises the following steps:

[0097] The intersection position of two particles is generated by a discrete uniform random integer function, and the intersection position generates an intersection area;

[0098] Delete the same elements in the intersection area to obtain new intersection particles;

[0099] Compare the fitness value of the new cross particle with the current individual fitness value. If the fitness value of the new cross particle is better, the new cross particle is retained.

[0100] The objects of the crossover operation are the particles corresponding to the individual historical optimal values ​​and the group historical optimal values. Therefore, the excellent elements in the particles can be retained, new particles can be generated through the excellent elements, and new particles with higher fitness values ​​can be generated with a high probability, reducing the complexity of the algorithm.

[0101] In some embodiments of the invention, the self-variation comprises the following steps:

[0102] Through rounding and random functions, the particles are subjected to mutation bits, and the mutation bits generate mutation regions;

[0103] The mutated region is retained to obtain new mutated particles;

[0104] Compare the fitness value of the mutated new particle with the current individual fitness value. If the fitness value of the mutated new particle is better, the mutated new particle is retained.

[0105] Self-mutation is different from the crossover operation. Although the crossover operation can generate new particles through excellent elements and can generate new particles with higher fitness values ​​with a high probability, the crossover operation still selects the original elements and does not generate new elements. The self-mutation operation supplements the new elements generated by the particle's own mutation, breaking through the current search limitations and being more conducive to the algorithm finding the global optimal solution.

[0106] In some embodiments of the present invention, evaluating the robot according to the running speed, heading angle and obstacle information of the robot includes the following steps:

[0107] The predicted trajectory is obtained by simulating the time forward according to the robot motion model and the robot's running speed; the running speed includes linear speed, angular speed, linear acceleration and angular acceleration;

[0108] Calculate the robot's heading angle during movement based on the predicted trajectory, angular velocity, angular acceleration, and heading angle of the robot;

[0109] Calculate obstacle distance based on predicted trajectory and obstacle information;

[0110] Calculate the predicted speed of the robot based on the predicted trajectory route, linear velocity and acceleration;

[0111] An evaluation is performed based on the heading angle, obstacle distance and predicted speed to obtain an evaluation result.

[0112] The robot is evaluated by its running speed, heading angle and obstacle information, which is completely consistent with the optimal path obtained by the particle swarm-genetic hybrid algorithm, and is adjusted in real time during the movement, so it can adapt well to complex environments.

[0113] In some embodiments of the present invention, the calculation formula for evaluating the robot based on the running speed, heading angle and obstacle information of the robot includes:

[0114] G(v,ω)=a1·heading(v,ω)+a2·dist(v,ω)+a3·velocity(v,ω)

[0115] heading(v,ω)=180°-∣target-curθ∣

[0116] Wherein, v, ω represent the running speed and angular velocity of the robot respectively, heading(v, ω) represents the heading angle evaluation, dist(v, ω) represents the obstacle distance evaluation, velocity(v, ω) represents the speed evaluation, target represents the angle between the center position of the robot and the target point and the positive x-axis, curθ represents the heading angle of the robot, a1, a2 and a3 represent the preset parameters of the heading angle evaluation, obstacle distance evaluation and speed evaluation respectively.

[0117] Reference Figure 6 and Figure 7 In order to facilitate the understanding of those skilled in the art, a specific embodiment of a mobile robot path planning method based on a hybrid particle swarm algorithm is provided, comprising the following steps:

[0118] The first step is to initialize the robot according to the environment: construct the corresponding map coordinate system, the initial position of the robot, and the robot motion model, such as the robot motion structure, model size, maximum motion speed, motion acceleration, rotation speed, rotation acceleration and other information.

[0119] The second step is to calculate the optimal path of the robot from the starting position to the end position through the path planning model using the particle swarm-genetic hybrid algorithm. The optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions (it should be noted that Figure 6 In the above, the global optimal path is the path with the shortest distance from the starting position to the end position, and the optimal path includes multiple intermediate positions. The target point is the starting position, the end position and multiple intermediate positions. Figure 7The particles in the figure are another name for microparticles). The steps of using the particle swarm-genetic hybrid algorithm to calculate the optimal path of the robot from the starting position to the end position are as follows:

[0120] First, the particles are initialized to obtain a particle swarm; the particle initialization includes randomly setting the particle positions and setting the individual historical optimal values ​​and the group historical optimal values;

[0121] Secondly, according to the particle position and the end point position, the current individual fitness value is calculated, and the individual fitness value is the path length;

[0122] Then, the individual historical optimal value and the group historical optimal value are updated; the updating of the individual historical optimal value and the group historical optimal value includes the following steps:

[0123] Determine whether the current individual fitness value is better than the individual's historical optimal value;

[0124] If the current individual fitness value is better than the individual historical optimal value, the individual historical optimal value is updated to the current individual fitness value;

[0125] Determine whether the current individual fitness value is better than the historical optimal value of the group;

[0126] If the current individual fitness value is better than the historical optimal value of the group, the historical optimal value of the group is updated to the current individual fitness value;

[0127] Genetically transform the particles to update the particle swarm; the genetic transformation includes the following steps:

[0128] Cross the particles corresponding to the individual fitness value with the particles corresponding to the individual historical optimal value;

[0129] Cross the particles corresponding to the individual fitness value with the particles corresponding to the historical optimal value of the group;

[0130] Carry out self-variation of particles corresponding to individual fitness values.

[0131] The crossover includes the following steps:

[0132] The intersection position of two particles is generated by a discrete uniform random integer function, and the intersection position generates an intersection area;

[0133] Delete the same elements in the intersection area to obtain new intersection particles;

[0134] Compare the fitness value of the new cross particle with the current individual fitness value. If the fitness value of the new cross particle is better, the new cross particle is retained.

[0135] The automutation process includes the following steps:

[0136] Through rounding and random functions, the particles are subjected to mutation bits, and the mutation bits generate mutation regions;

[0137] The mutated region is retained to obtain new mutated particles;

[0138] Compare the fitness value of the mutated new particle with the current individual fitness value. If the fitness value of the mutated new particle is better, the mutated new particle is retained.

[0139] Finally, determine whether the termination condition is met; if the termination condition is not met, continue to iterate; if the termination condition is met, the optimal path is obtained according to the individual historical optimal value and the group historical optimal value; the termination condition includes the number of iterations and the individual historical optimal value and the group historical optimal value reaching the threshold.

[0140] Step 3: Drive the robot to move along the optimal path, and calculate the movement trajectory of the robot from the current position to the next position in the following way during the movement process:

[0141] Get the current position of the robot and its current running speed, heading angle and obstacle information;

[0142] The robot's predicted trajectory is obtained according to the robot's current running speed, heading angle and obstacle information, and an evaluation result is obtained by evaluation, and the predicted trajectory with the best evaluation result is selected for movement; the evaluation steps include:

[0143] The predicted trajectory is obtained by simulating the time forward according to the robot motion model and the robot's running speed; the running speed includes linear speed, angular speed, linear acceleration and angular acceleration;

[0144] Calculate the robot's heading angle during movement based on the predicted trajectory, angular velocity, angular acceleration, and heading angle of the robot;

[0145] Calculate obstacle distance based on predicted trajectory and obstacle information;

[0146] Calculate the predicted speed of the robot based on the predicted trajectory route, linear velocity and acceleration;

[0147] An evaluation is performed based on the heading angle, obstacle distance and predicted speed to obtain an evaluation result.

[0148] The evaluation calculation formula includes:

[0149] G(v,ω)=a1·heading(v,ω)+a2·dist(v,ω)+a3·velocity(v,ω)

[0150] heading(v,ω)=180°-∣target-curθ∣

[0151] Wherein, v, ω represent the running speed and angular velocity of the robot respectively, heading(v, ω) represents the heading angle evaluation, dist(v, ω) represents the obstacle distance evaluation, velocity(v, ω) represents the speed evaluation, target represents the angle between the center position of the robot and the target point and the positive x-axis, curθ represents the heading angle of the robot, a1, a2 and a3 represent the preset parameters of the heading angle evaluation, obstacle distance evaluation and speed evaluation respectively.

[0152] Determine whether the robot has reached the next position; if the robot has reached the next position, determine whether the robot has reached the end position; if it has reached the end position, the robot stops moving.

[0153] Reference Figure 8 , an embodiment of the present invention provides a mobile robot path planning system 1000 based on a hybrid particle swarm algorithm, comprising a model building module 1001, an optimal path module 1002 and an optimal trajectory module 1003, wherein:

[0154] Model construction module 1001, used to construct a path planning model, the model construction includes constructing a corresponding map coordinate system, a robot initial position and a robot motion model;

[0155] The optimal path module 1002 is used to calculate the optimal path of the robot from the starting position to the end position by using a particle swarm-genetic hybrid algorithm through a path planning model. The optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions;

[0156] The optimal trajectory module 1003 drives the robot to move along the optimal path, and during the movement process, calculates the movement trajectory of the robot from the current position to the next position in the following manner:

[0157] Get the current position of the robot and its current running speed, heading angle and obstacle information;

[0158] The robot's predicted trajectory is obtained based on the robot's current running speed, heading angle, and obstacle information, and an evaluation result is obtained by evaluation, and the predicted trajectory with the best evaluation result is selected for movement;

[0159] Determine whether the robot has reached the next position; if the robot has reached the next position, determine whether the robot has reached the end position; if it has reached the end position, the robot stops moving.

[0160] It should be noted that since the mobile robot path planning system based on a hybrid particle swarm algorithm in this embodiment and the above-mentioned mobile robot path planning method based on a hybrid particle swarm algorithm are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the device embodiment and will not be described in detail here.

[0161] Reference Fig. 9 Another embodiment of the present invention further provides an electronic device, and the electronic device 6000 can be any type of smart terminal, such as a mobile phone, a tablet computer, a personal computer, etc.

[0162] Specifically, the electronic device 6000 includes: one or more control processors 6001 and a memory 6002, Fig. 9 In the example, a control processor 6001 and a memory 6002 are used. The control processor 6001 and the memory 6002 can be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0163] The memory 6002 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to an electronic device in an embodiment of the present invention;

[0164] The control processor 6001 executes various functional applications and data processing of a mobile robot path planning method based on a hybrid particle swarm algorithm by running non-transient software programs, instructions and modules stored in the memory 6002, that is, a mobile robot path planning method based on a hybrid particle swarm algorithm is implemented in the above-mentioned method embodiment.

[0165] The memory 6002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the use of a mobile robot path planning method based on a hybrid particle swarm algorithm, etc. In addition, the memory 6002 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 6002 may optionally include a memory remotely arranged relative to the control processor 6001, and these remote memories may be connected to the electronic device 6000 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0166] In one or more modules stored in the memory 6002, when executed by the one or more control processors 6001, the mobile robot path planning method based on the hybrid particle swarm algorithm in the above method embodiment is executed, for example, the above described Figures 1 to 5 method steps.

[0167] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0168] It should be noted that, since an electronic device in this embodiment and the above-mentioned mobile robot path planning method based on a hybrid particle swarm algorithm are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the device embodiment and will not be described in detail here.

[0169] One embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute: the mobile robot path planning method based on the hybrid particle swarm algorithm as described in the above embodiment.

[0170] It should be noted that since the computer-readable storage medium in this embodiment and the above-mentioned mobile robot path planning method based on the hybrid particle swarm algorithm are based on the same inventive concept, the corresponding contents in the method embodiment are also applicable to the device embodiment and will not be described in detail here.

[0171] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing data (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired data and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any data delivery media.

[0172] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A mobile robot path planning method based on a hybrid particle swarm algorithm, characterized in that: The following steps are involved: Step S100, constructing a path planning model, wherein the model construction includes constructing a corresponding map coordinate system, a robot initial position and a robot motion model; Step S200: Calculate the optimal path of the robot from the starting position to the end position by using the particle swarm-genetic hybrid algorithm through the path planning model, wherein the optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions; the use of the particle swarm-genetic hybrid algorithm to calculate the optimal path of the robot from the starting position to the end position includes the following steps: Step S210, performing particle initialization to obtain a particle swarm; the particle initialization includes randomly setting particle positions and setting individual historical optimal values ​​and group historical optimal values; Step S220, calculating the current individual fitness value according to the particle position and the end point position, wherein the individual fitness value is the path length; Step S230: updating the individual historical optimal value and the group historical optimal value; the updating of the individual historical optimal value and the group historical optimal value includes the following steps: Step S231, judging whether the current individual fitness value is better than the individual historical optimal value; Step S232: If the current individual fitness value is better than the individual historical optimal value, the individual historical optimal value is updated to the current individual fitness value; Step S233, judging whether the current individual fitness value is better than the historical optimal value of the group; Step S234: If the current individual fitness value is better than the group historical optimal value, the group historical optimal value is updated to the current individual fitness value; Step S240, genetically transforming the particles to update the particle population; genetically transforming the particles includes the following steps: Step S241, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the individual historical optimal value; Step S242, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the historical optimal value of the group; Step S243, performing self-variation of the particle corresponding to the individual fitness value; Step S250, judging whether the termination condition is met; if the termination condition is not met, jumping to step S220; if the termination condition is met, obtaining the optimal path according to the individual historical optimal value and the group historical optimal value; the termination condition includes the number of iterations and the individual historical optimal value and the group historical optimal value reaching a threshold; Step S300: driving the robot to move along the optimal path, and calculating the movement trajectory of the robot from the current position to the next position in the following manner during the movement process: Step S301, obtaining the current position of the robot and the current running speed, heading angle and obstacle information of the robot; Step S302: obtaining a predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot, evaluating the predicted trajectory to obtain an evaluation result, and selecting the predicted trajectory with the best evaluation result to move; Step S303, determining whether the robot has reached the next position; if the robot has reached the next position, determining whether the robot has reached the end position; if the robot has reached the end position, the robot stops moving.

2. The mobile robot path planning method based on hybrid particle swarm algorithm according to claim 1 is characterized in that: The crossover comprises the following steps: Generate a crossing position for two particles by using a discrete uniform random integer function, wherein the crossing position generates a crossing region; Deleting the same elements in the intersection region to obtain new intersection particles; The fitness value of the cross-new particle is compared with the current individual fitness value, and if the fitness value of the cross-new particle is better, the cross-new particle is retained.

3. The mobile robot path planning method based on hybrid particle swarm algorithm according to claim 1 is characterized in that: The self-variation comprises the following steps: Generate variation bits for particles by rounding and random functions, wherein the variation bits generate variation regions; retaining the mutated region to obtain a mutated new particle; The fitness value of the mutated new particle is compared with the fitness value of the current individual, and if the fitness value of the mutated new particle is better, the mutated new particle is retained.

4. The mobile robot path planning method based on hybrid particle swarm algorithm according to claim 1 is characterized in that: The step of obtaining the predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot and evaluating the evaluation result comprises the following steps: The predicted trajectory route is obtained by simulating the forward time according to the robot motion model and the running speed of the robot; the running speed includes linear velocity, angular velocity, linear acceleration and angular acceleration; Calculating the orientation angle of the robot during movement according to the predicted trajectory, the angular velocity, the angular acceleration, and the heading angle of the robot; Calculating obstacle distance according to the predicted trajectory route and the obstacle information; Calculating a predicted speed of the robot according to the predicted trajectory route, the linear speed and the acceleration; An evaluation is performed based on the orientation angle, the obstacle distance and the predicted speed to obtain an evaluation result.

5. The mobile robot path planning method based on hybrid particle swarm algorithm according to claim 4 is characterized in that: The calculation formula for evaluating and obtaining the evaluation result includes: Among them, the Respectively represent the running speed and angular velocity of the robot, the Indicates the orientation angle evaluation, Indicates obstacle distance evaluation, Indicates speed evaluation, Indicates the line connecting the robot center position and the target point The angle between the positive axis and the Indicates the robot's orientation angle. , and stated Respectively represent preset parameters for the orientation angle evaluation, the obstacle distance evaluation and the speed evaluation.

6. A mobile robot path planning system based on a hybrid particle swarm algorithm, characterized in that: include; A model building module is used to build a path planning model, wherein the model building includes building a corresponding map coordinate system, a robot initial position and a robot motion model; The optimal path module is used to calculate the optimal path of the robot from the starting position to the end position by using the particle swarm-genetic hybrid algorithm through the path planning model, wherein the optimal path refers to the path with the shortest distance from the starting position to the end position of the robot and the optimal path includes multiple intermediate positions; the optimal path of the robot from the starting position to the end position is calculated by using the particle swarm-genetic hybrid algorithm, including the following steps: Step S210, performing particle initialization to obtain a particle swarm; the particle initialization includes randomly setting particle positions and setting individual historical optimal values ​​and group historical optimal values; Step S220, calculating the current individual fitness value according to the particle position and the end point position, wherein the individual fitness value is the path length; Step S230: updating the individual historical optimal value and the group historical optimal value; the updating of the individual historical optimal value and the group historical optimal value includes the following steps: Step S231, judging whether the current individual fitness value is better than the individual historical optimal value; Step S232: If the current individual fitness value is better than the individual historical optimal value, the individual historical optimal value is updated to the current individual fitness value; Step S233, judging whether the current individual fitness value is better than the historical optimal value of the group; Step S234: If the current individual fitness value is better than the group historical optimal value, the group historical optimal value is updated to the current individual fitness value; Step S240, genetically transforming the particles to update the particle population; genetically transforming the particles includes the following steps: Step S241, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the individual historical optimal value; Step S242, performing a crossover between the particle corresponding to the individual fitness value and the particle corresponding to the historical optimal value of the group; Step S243, performing self-variation of the particle corresponding to the individual fitness value; Step S250, judging whether the termination condition is met; if the termination condition is not met, jumping to step S220; if the termination condition is met, obtaining the optimal path according to the individual historical optimal value and the group historical optimal value; the termination condition includes the number of iterations and the individual historical optimal value and the group historical optimal value reaching a threshold; The optimal trajectory module drives the robot to move along the optimal path, and during the movement process, calculates the movement trajectory of the robot from the current position to the next position in the following manner: Obtain the current position of the robot and the current running speed, heading angle and obstacle information of the robot; Obtaining a predicted trajectory of the robot according to the current running speed, heading angle and obstacle information of the robot, evaluating the predicted trajectory to obtain an evaluation result, and selecting the predicted trajectory with the best evaluation result to move; Determine whether the robot has reached the next position; if the robot has reached the next position, determine whether the robot has reached the end position; if the robot has reached the end position, stop moving.

7. An electronic device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the mobile robot path planning method based on the hybrid particle swarm algorithm as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the mobile robot path planning method based on the hybrid particle swarm algorithm as described in any one of claims 1 to 5.