A positioning method based on particle swarm positioning algorithm

By introducing a subsampling process into the particle swarm positioning algorithm to re-adjust the particle distribution and form a Gaussian distribution, the problem of insufficient positioning accuracy and slow convergence speed of the mobile robot is solved, and higher positioning accuracy and speed are achieved.

CN112014854BActive Publication Date: 2024-09-06WOOTION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010896148.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-09-06
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In the existing technology, the positioning accuracy of mobile robots is insufficient and the convergence speed is slow, mainly because the particle swarm algorithm cannot completely cover all possible poses of the robot, resulting in the true pose being ignored.

Method used

Introducing a secondary sampling process into the particle swarm positioning algorithm, by re-adjusting the particle distribution and forming a Gaussian distribution, ensures that the pose distribution covers all possibilities and improves positioning accuracy and convergence speed.

Benefits of technology

The particle distribution is corrected through secondary sampling, which improves the positioning accuracy and convergence speed, and improves the positioning effect of the original algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112014854B
    Figure CN112014854B
Patent Text Reader

Abstract

The present invention relates to the field of robot positioning technology, and in particular to a positioning method based on a particle swarm positioning algorithm, comprising the steps of: S1, taking a sample particle distribution set at the previous positioning; S2, calculating a weight value of each particle in the set according to sensor data; S3, re-sampling, re-adjusting the particle distribution according to the weight value, and generating a new set X; S4, taking the particle with the greatest possibility as the current estimated posture p according to the weight value; S5, performing a secondary sampling process, and returning to S1 after the secondary sampling is completed; S6, outputting the positioning result. The present invention corrects the particle distribution set by performing secondary sampling so that it covers all possibilities of posture as much as possible, thereby solving the technical problem that the real robot posture may be ignored in the prior art, resulting in insufficient positioning accuracy and low convergence speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of robot positioning, and in particular to a positioning method based on a particle swarm positioning algorithm. Background Art

[0002] With the development of science and technology and artificial intelligence, the application of mobile robots is becoming more and more extensive. For mobile robots, high-precision positioning is required to perform tasks. In order to achieve real-time, accurate and efficient positioning of mobile robots, the adaptive Monte Carlo localization algorithm (AMCL) is widely used. Although the AMCL algorithm is relatively stable, the overall positioning accuracy is not high, and a large number of particles are required to maintain a high positioning accuracy. Therefore, it is necessary to make appropriate corrections to the AMCL algorithm.

[0003] In this regard, the document CN110927740A discloses a method for positioning a mobile robot, including placing a robot equipped with a two-dimensional laser radar in the current positioning environment and obtaining a map point cloud of obstacles; using an adaptive Monte Carlo positioning algorithm to estimate the current posture of the robot; using the current posture of the robot to convert the real-time data of the two-dimensional laser radar into a point cloud PTCloudscan in the same coordinate system as the map point cloud; using each frame of the point cloud PTCloudscan as the input of the iterative nearest point to obtain the rotation matrix R and translation matrix T of the current frame of the point cloud PTCloudscan relative to the map point cloud; and calculating the final posture of the robot based on the rotation matrix R and translation matrix T. By using the posture obtained by the adaptive Monte Carlo positioning algorithm as a reference value to transform the point cloud coordinate system of the two-dimensional laser radar so that it is close enough to the current map point cloud, the matching speed of the iterative nearest point is accelerated and the positioning accuracy is improved.

[0004] For a highly robust particle swarm algorithm, such as the AMCL algorithm, various possible postures (positions and directions) of the robot are sampled and distributed in space. Each sample particle in the space represents a possible posture. The particle with the largest weight value, that is, the posture with the greatest possibility, is taken as the robot's current estimated posture.

[0005] Since the particles represent the various possible positions of the robot, which are discretely sampled, and the set capacity is limited, the particle distribution set cannot completely cover all the possibilities of the position, and the real robot position may be ignored, resulting in insufficient positioning accuracy. In addition, the next positioning is based on the set generated by the previous positioning. The accuracy of the previous set distribution will directly affect the accuracy of the next positioning, which will not only further affect the positioning accuracy, but also reduce the convergence speed. Summary of the invention

[0006] The present invention provides a positioning method based on a particle swarm positioning algorithm, which solves the technical problem in the prior art that the real robot posture may be ignored, resulting in insufficient positioning accuracy and low convergence speed.

[0007] The basic solution provided by the present invention is: a positioning method based on a particle swarm positioning algorithm, comprising the steps of:

[0008] S1, take the sample particle distribution set at the previous positioning;

[0009] S2, calculate the weight value of each particle in the collection according to the sensor data;

[0010] S3, re-sample, readjust the particle distribution according to the weight value, and generate a new set X;

[0011] S4, taking the particle with the greatest probability as the current estimated position p according to the weight value;

[0012] S5, perform secondary sampling process, and return to S1 after secondary sampling is completed;

[0013] S6. Output the positioning result.

[0014] The working principle and advantages of the present invention are: various possible postures (including position and direction) of the robot are sampled and distributed in space, each sample particle in the space represents a possible posture, and the particle with the largest weight value, that is, the posture with the greatest possibility, is taken as the current estimated posture of the robot. However, the various possible postures of the robot are discretely sampled, and the set capacity is limited, so the particle distribution set cannot completely cover all possibilities of the posture, and the real robot posture may be ignored. Therefore, after taking the particle with the greatest possibility as the current estimated posture P according to the weight value, the positioning result is not directly output, but secondary sampling is performed to correct the particle distribution set so that it covers all possibilities of the posture as much as possible. In this way, the influence of the accuracy of the previous set distribution on the accuracy of the next positioning can be reduced, thereby improving the positioning accuracy and convergence speed.

[0015] The present invention corrects the particle distribution set by performing secondary sampling to cover all possibilities of posture as much as possible, thereby solving the technical problem in the prior art that the real robot posture may be ignored, resulting in insufficient positioning accuracy and low convergence speed.

[0016] Furthermore, S5 specifically includes:

[0017] S51, extracting the set X generated before subsampling and the estimated pose p;

[0018] S52, taking p as the center, forming a new local sample particle set Xs;

[0019] S53, calculating the weight value of each particle in Xs according to the sensor data;

[0020] S54, select the particle pmax with the largest weight in Xs;

[0021] S55, forming a Gaussian distribution particle set Xg with pmax as the mean;

[0022] S56, add Xg to X;

[0023] S57. Use p as the estimated position and posture of this positioning.

[0024] The beneficial effect is that in this way, after the original particle swarm positioning algorithm is added with the secondary sampling process, the positioning accuracy and convergence speed can be improved, thereby improving the positioning effect of the original algorithm.

[0025] Furthermore, after S52 and before S53, the particle with the largest weight in X is added to Xs.

[0026] The beneficial effect is that in this way, the local sample particle set can cover all possibilities as much as possible.

[0027] Furthermore, after S52 and before S53, the estimated pose finally determined by the last positioning is added to Xs.

[0028] The beneficial effect is that in this way, the local sample particle set can cover all possibilities as much as possible.

[0029] Furthermore, in S52, with p as the center, the neighborhood postures are sampled at a specified interval and quantity to form a new local sample particle set Xs.

[0030] The beneficial effect is that in this way, the neighborhood with p as the center point forms a three-dimensional space, which is convenient for analysis.

[0031] Furthermore, in S52, the interval and the number can be adjusted and set by the user.

[0032] The beneficial effect is that in this way, the user can adjust the interval and quantity according to the actual situation, thereby improving the adaptability of the algorithm.

[0033] Further, in S53, based on the posture, the distance and angle data of the obstacle are integrated, the matching degree with the obstacle position in the given map is calculated, and the weight value is calculated according to the matching degree.

[0034] The beneficial effect is that in this way, the calculation is simple and fast, and the convergence of the algorithm can be improved.

[0035] Furthermore, in S55, a Gaussian distribution particle set Xg is formed according to a specified number and a specified variance with pmax as the mean.

[0036] The beneficial effect is that in this way, the variance of the Gaussian distribution and the number of random samples can be adjusted and set by the user.

[0037] Further, in S56, Xg is updated to X.

[0038] The beneficial effect is that unreasonable data can be replaced in this way.

[0039] Further, in S57, pmax is used as the estimated pose of this positioning.

[0040] The beneficial effect is that the estimated posture can be corrected in this way. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The present invention is a flowchart of a positioning method embodiment based on a particle swarm positioning algorithm.

[0042] Figure 2 The present invention is a flowchart of secondary sampling of a positioning method embodiment based on a particle swarm positioning algorithm.

[0043] Figure 3 It is a schematic diagram of a three-dimensional space body of an embodiment of a positioning method based on a particle swarm positioning algorithm of the present invention.

[0044] Figure 4 It is a schematic diagram of Gaussian distribution of an embodiment of a positioning method based on a particle swarm positioning algorithm of the present invention. DETAILED DESCRIPTION

[0045] The following is a further detailed description through specific implementation methods:

[0046] Example 1

[0047] An embodiment of a positioning method based on a particle swarm positioning algorithm of the present invention is basically as shown in the attached Figure 1 As shown, the steps include:

[0048] S1, take the sample particle distribution set at the previous positioning;

[0049] S2, calculate the weight value of each particle in the collection according to the sensor data;

[0050] S3, re-sample, readjust the particle distribution according to the weight value, and generate a new set X;

[0051] S4, taking the particle with the greatest probability as the current estimated position p according to the weight value;

[0052] S5, perform secondary sampling process, and return to S1 after secondary sampling is completed;

[0053] S6. Output the positioning result.

[0054] The specific implementation process is as follows:

[0055] S1. Get the sample particle distribution set from the previous positioning.

[0056] The various possible postures of the robot, including position and direction, are sampled and distributed in space. Each possible posture is a sample particle, and these sample particles are combined together to form a sample particle distribution set. Among them, the position is the coordinate of the x and y axes in the two-dimensional space, and the direction b is the angle of the robot's orientation.

[0057] S2. Calculate the weight value of each particle in the collection based on the sensor data.

[0058] Each particle is a possible posture of a robot. Based on this posture, the distance and angle data of the surrounding obstacles measured by the laser sensor are integrated to calculate the degree of match with the obstacle position in a given map. The higher the degree of match, the greater the weight value, and thus the weight value is calculated. For details, please refer to the existing technology.

[0059] S3. Resample and readjust the particle distribution according to the weight value to generate a new set X.

[0060] After calculating the weight value of each particle in the set, resampling is performed and the particle distribution is readjusted according to the weight value to generate a new set X.

[0061] S4. According to the weight value, the particle with the greatest possibility is selected as the current estimated pose p.

[0062] From the new set X, select the particle with the largest weight value, that is, the greatest possibility, and use it as the current estimated pose P.

[0063] S5: Perform secondary sampling process, and return to S1 after secondary sampling is completed.

[0064] Detailed process as attached Figure 2 As shown,

[0065] S51, extract the set X generated before subsampling and the estimated pose p obtained previously.

[0066] X is the particle set obtained by re-adjusting the particle distribution according to the weight value in the resampling stage of the original algorithm, where each particle is a possible posture of the robot, and the weight represents the possibility that the posture is the true posture of the robot. The larger the weight value, the greater the possibility. p is the estimated posture obtained by the original algorithm according to the weight before secondary sampling, that is, the maximum possible posture of the robot.

[0067] S52. With p as the center, sample the neighborhood poses at a specified interval and quantity to form a new local sample set Xs.

[0068] The robot's posture is a three-dimensional vector (x, y, b), that is, a point in three-dimensional space, where x and y are the robot's two-dimensional spatial coordinates, and b is the robot's heading angle. Then the neighborhood with p as the center point constitutes a three-dimensional space body, as shown in the following figure. Figure 3 As shown. With p as the central sampling point, sampling points are taken along the x-axis, y-axis, and b-axis in three-dimensional space at specified intervals, and finally a specified number of sampling points are sampled. These sampling points form a local sample set Xs, where the interval and number can be adjusted by the user.

[0069] S53. Calculate the weight value of each particle in Xs according to the sensor data.

[0070] There are many ways to calculate weight values, and the original algorithm also provides ready-made methods, which are used in this step. For example, each particle is a possible posture of a robot. Based on this posture, the distance and angle data of the surrounding obstacles measured by the laser sensor can be integrated to calculate the degree of match with the obstacle position in a given map. The higher the degree of match, the greater the weight value, and thus the weight value can be calculated. For details, please refer to the existing technology.

[0071] S54. Select the particle pmax with the largest weight value in Xs.

[0072] According to the obtained weight values ​​of each particle, the particle with the largest weight is extracted.

[0073] S55. Form a Gaussian distribution particle set Xg according to the specified number, specified variance and with pmax as the mean.

[0074] Random sampling is performed according to Gaussian distribution, as shown in the attached Figure 4 As shown, it represents Gaussian probability random sampling on the particle x-axis, where pmax(x) represents the x-axis component of particle pmax, which is the mean of Gaussian distribution; probability axis is sampling probability, and the curve obeys Gaussian probability distribution. The greater the probability, the greater the chance of being randomly sampled to the particle; the variance of Gaussian distribution and the number of random sampling can be adjusted by the user. With pmax particle as the center, Gaussian random sampling is performed on the x, y, and b axes respectively to obtain the particle set Xg.

[0075] S56. Add or update Xg to X.

[0076] Add the particles in Xg to the original set X, or replace the particles in Xg with the particles in X. Finally, the newly generated X is used as the final sample particle distribution set generated by this positioning to prepare for the next positioning.

[0077] S57. Use p or pmax as the estimated pose for this positioning.

[0078] The estimated pose p determined before the secondary sampling, or the maximum weight particle pmax generated in Xs after the secondary sampling, is used as the final estimated pose generated by this positioning.

[0079] S6. Output the positioning result.

[0080] Finally, the positioning result of the robot is output.

[0081] Example 2

[0082] The only difference from Example 1 is that the particle with the largest weight in X is added to Xs, that is, a particle with the largest weight is selected from the original set X and placed in Xs. The estimated posture finally determined by the last positioning is added to Xs, that is, the result of the last positioning, that is, the final robot posture is placed as a particle in Xs.

[0083] Example 3

[0084] The only difference from Example 2 is that after the positioning result is output, the difference between the output positioning result and the positioning result measured by the laser sensor is calculated, and correction and self-learning are performed based on the difference. Specifically, if the output positioning result is (x1, y1, b1) and the positioning result measured by the laser sensor is (x2, y2, b2), then the difference between the output positioning result and the positioning result measured by the laser sensor is (x2-x1, y2-y1, b2-b1), that is, (Δx, Δy, Δb); if the positioning result output next time is (x3, y3, b3), it is corrected based on the difference calculated this time, that is, the corrected positioning result is (x3+Δx, y3+Δy, b3+Δb). By continuously repeating such steps, the algorithm can self-learn the process of "calculating the difference" + "correcting according to the difference", and can continuously correct errors during the positioning process, thereby improving the accuracy of positioning.

[0085] The above is only an embodiment of the present invention. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The protection scope required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. A positioning method based on particle swarm positioning algorithm, It is characterized in that Includes steps: S1, take the sample particle distribution set at the previous positioning; S2, calculate the weight value of each particle in the collection according to the sensor data; S3, re-sample, readjust the particle distribution according to the weight value, and generate a new set X; S4, taking the particle with the greatest probability as the current estimated position p according to the weight value; S5, perform secondary sampling process, and return to S1 after secondary sampling is completed; S6, output positioning results; Among them, S5 specifically includes: S51, extracting the set X generated before subsampling and the estimated pose p; S52, taking p as the center, forming a new local sample particle set Xs; S53, calculating the weight value of each particle in Xs according to the sensor data; S54, select the particle pmax with the largest weight in Xs; S55, forming a Gaussian distribution particle set Xg with pmax as the mean; S56, adding or replacing Xg into X; S57, taking pmax as the estimated position and posture of this positioning; After S52 and before S53, the particle with the largest weight in X is added to Xs, and the estimated pose finally determined by the last positioning is added to Xs; In S52, with p as the center, the neighborhood postures are sampled at specified intervals and quantities to form a new local sample particle set Xs.

2. The positioning method based on the particle swarm positioning algorithm as claimed in claim 1, It is characterized in that In S52, the interval and the number are adjusted and set by the user.

3. The positioning method based on the particle swarm positioning algorithm as claimed in claim 2, It is characterized in that In S53, based on the posture, the distance and angle data of the obstacle are integrated to calculate the matching degree with the obstacle position in the given map, and the weight value is calculated according to the matching degree.

4. The positioning method based on the particle swarm positioning algorithm as claimed in claim 3, It is characterized in that In S55, a Gaussian distribution particle set Xg is formed according to a specified number and a specified variance with pmax as the mean.