Improved method for simultaneous positioning and mapping of unmanned vehicle
By combining lidar and odometer data, and integrating observation models and motion models, the problems of unmanned vehicle positioning deviation and ineffective use of particles in traditional algorithms are solved, achieving more accurate unmanned vehicle positioning and map construction.
Patent Information
- Application Number
- CN202410562264.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional particle filter algorithm uses odometer motion data, which leads to problems in the positioning of unmanned vehicles and the ineffective use of particles, which affects the positioning and map construction accuracy of unmanned vehicles.
Combining lidar data and odometry data, the lidar observation model and the motion model are fused through sampling simulation to generate a suggested distribution function, and by normalizing particle weights, updating particle poses and maps, and introducing resampling thresholds to improve particle effectiveness. sex.
The number of invalid particles is reduced, the accuracy of unmanned vehicle positioning and the clarity of the map are improved. Compared with traditional algorithms, fewer particles are used to achieve more accurate position positioning and map construction.
Smart Images

Figure CN118583153A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned vehicles, and in particular to an improved method for simultaneous positioning and map creation of unmanned vehicles. Background Art
[0002] In the field of unmanned vehicle technology, SLAM is one of the key issues. SLAM refers to the process of a moving object calculating its own position based on sensor information while building an environmental map, solving the positioning and map building problems of robots and other vehicles moving in unknown environments. The traditional particle filter algorithm uses odometer motion data as the recommended distribution for positioning unmanned vehicles, resulting in the ineffective use of a large number of particles and positioning deviations, which affects the positioning and mapping of unmanned vehicles. Summary of the invention
[0003] The purpose of the present invention is to address the deficiencies of the prior art and provide an improved method for simultaneous positioning and map creation of an unmanned vehicle.
[0004] The technical solution of the present invention to solve the above problem is: an improved method for simultaneous positioning and map creation of an unmanned vehicle, comprising the following steps:
[0005] Step 1, receiving lidar data and odometer data according to the unmanned vehicle sensor;
[0006] Step 2: Generate the initial particle position at time k = 0 Distribute particle weights evenly N is the number of particles;
[0007] Step 3: Based on the initial particle position Building a pose estimation model for unmanned vehicles
[0008] Step 4: By sampling and simulating the lidar observation model, the observation model and the motion model are integrated to obtain the proposed distribution function, and the weight is processed by the normalization function;
[0009] Step 5: Update the particle pose and map according to the normalized particle weights;
[0010] Step 6, then repeat steps 3 and 4 until a stable robot pose and map are obtained.
[0011] Furthermore, in step 3, the method for establishing the posture estimation model of the unmanned vehicle is as follows:
[0012] The state vector of the unmanned vehicle is defined as:
[0013]
[0014] Where, X k, Y k Indicates the horizontal coordinate / vertical coordinate in the global coordinate system, v x , v y represents the lateral speed / longitudinal speed of the unmanned vehicle, a x , a y is the lateral acceleration / longitudinal acceleration, represents the yaw angle of the unmanned vehicle, θ is the heading angle of the unmanned vehicle;
[0015] The change in the lateral position coordinates of the unmanned vehicle at time k, Δx k and the change in longitudinal position coordinate Δy k It is expressed as:
[0016]
[0017]
[0018] In the formula, a x,k and a y,k is the lateral acceleration and longitudinal acceleration at time k, dt is the sampling interval;
[0019] The horizontal position X at time K+1 k+1 and vertical position Y k+1 It is expressed as:
[0020] X k+1 =X k +Δx k cosθ k +Δy k sinθ k
[0021] Y k+1 =Y k -Δx k sinθ k +Δy k cosθ k
[0022] In the formula, θ k is the heading angle at time k;
[0023] The change of heading angle at time k is expressed as is the yaw angular velocity at time k, is the yaw angular acceleration at time k;
[0024] The heading angle at time K+1 is expressed as θ K+1 =θ k +Δθ k .
[0025] Furthermore, the specific method of step 4 is:
[0026] According to the unmanned vehicle posture estimation model, the estimated posture of each particle at time k is obtained Generate a map at time k-1
[0027] The laser radar is scanned and matched to obtain the real observation value at time k, the nearest neighbor method is used for data association, a particle weight update model is established, and the weight is calculated according to the particle weight update model;
[0028] The particle weight update model is: The normalization function is
[0029] Furthermore, the specific method of step 5 is:
[0030] After updating the particle pose, we can determine whether resampling is needed by calculating the number of all valid particles and introducing a threshold to determine the parameter N. eff The effectiveness of the parameter N eff for:
[0031]
[0032] Set the threshold to N / 2, where N is the total number of particles. eff If it is less than N / 2, resampling is performed, otherwise resampling is skipped.
[0033] The present invention has the beneficial effects:
[0034] The present invention provides an improved method for simultaneous positioning and map creation of unmanned vehicles. The traditional RBPF mapping algorithm is improved based on laser radar. The traditional algorithm uses odometer motion data as the recommended distribution for positioning the unmanned vehicle, resulting in the ineffective use of a large number of particles and positioning deviation. The present invention combines laser radar observation data with odometer data, fuses the observation model with the motion model to obtain a recommended distribution function, makes the particles more directional, and reduces the number of invalid particles. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 : Initialization pose diagram.
[0036] Figure 2 : Schematic diagram of particle posture after updating.
[0037] Figure 3 : Schematic diagram of pose after processing by traditional algorithm.
[0038] Figure 4 : Schematic diagram of posture after processing by improved algorithm.
[0039] Figure 5: Schematic diagram of posture comparison between traditional algorithm and improved algorithm.
[0040] Figure 6 : Schematic diagram of error comparison between the improved algorithm and the traditional algorithm. DETAILED DESCRIPTION
[0041] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0042] An improved method for simultaneous localization and map creation of an unmanned vehicle comprises the following steps:
[0043] Step 1, receiving lidar data and odometer data according to the unmanned vehicle sensor;
[0044] Step 2: Generate the initial particle position at time k = 0 Distribute particle weights evenly N is the number of particles;
[0045] Step 3: Based on the initial particle position Building a pose estimation model for unmanned vehicles
[0046] The state vector of the unmanned vehicle is defined as:
[0047]
[0048] Where, X k , Y k Indicates the horizontal coordinate / vertical coordinate in the global coordinate system, v x , v y represents the lateral speed / longitudinal speed of the unmanned vehicle, a x , a y is the lateral acceleration / longitudinal acceleration, represents the yaw angle of the unmanned vehicle, and θ is the heading angle of the unmanned vehicle.
[0049] The change in the lateral position coordinates of the unmanned vehicle at time k, Δx k and the change in longitudinal position coordinate Δy k It is expressed as:
[0050]
[0051]
[0052] In the formula, a x,k and a y,k are the lateral acceleration and longitudinal acceleration at time k, and dt is the sampling interval.
[0053] The horizontal position X at time K+1 k+1 and vertical position Y k+1 It is expressed as:
[0054] X k+1 =X k +Δx k cosθ k +Δy k sinθ k
[0055] Y k+1 =Y k -Δx k sinθ k +Δy k cosθ k
[0056] In the formula, θ k is the heading angle at time k.
[0057] The change of heading angle at time k is expressed as is the yaw angular velocity at time k, is the yaw angular acceleration at time k.
[0058] The heading angle at time K+1 is expressed as θ K+1 =θ k +Δθ k .
[0059] Step 4: By sampling and simulating the lidar observation model, the observation model is integrated with the motion model to obtain the proposed distribution function.
[0060] According to the unmanned vehicle posture estimation model, the estimated posture of each particle at time k is obtained Generate a map at time k-1
[0061] The laser radar is scanned and matched to obtain the real observation value at time k, the nearest neighbor method is used for data association, a particle weight update model is established, the weight is calculated according to the particle weight update model, and the weight is processed by a normalization function;
[0062] The particle weight update model is: The normalization function is
[0063] Step 5: Update the particle pose according to the normalized particle weight;
[0064] After updating the particle pose, we can determine whether resampling is needed by calculating the number of all valid particles and introducing a threshold to determine the parameter N. eff The effectiveness of the parameter N eff for:
[0065]
[0066] Set the threshold to N / 2, where N is the total number of particles. eff When it is less than N / 2, resampling is performed, otherwise resampling is skipped and the map is updated.
[0067] Step 6, then repeat steps 3 and 4 until a stable robot pose and map are obtained.
[0068] Finally, a simulation verification was carried out to compare the traditional algorithm with the present invention to verify that the improved algorithm uses fewer particles to locate the position of the unmanned vehicle, and the established map is clearer and more accurate, which is superior to the previous method.
[0069] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. An improved method for simultaneous localization and map creation for unmanned vehicles, Features: The following steps are involved: Step 1, receiving lidar data and odometer data according to the unmanned vehicle sensor; Step 2: Generate the initial particle position at time k = 0 Distribute particle weights evenly N is the number of particles; Step 3: Based on the initial particle position Building a pose estimation model for unmanned vehicles Step 4: By sampling and simulating the lidar observation model, the observation model is integrated with the motion model to obtain the proposed distribution function, and the weight is processed using a normalization function; Step 5: Update the particle pose and map according to the normalized particle weights; Step 6, then repeat steps 3 and 4 until a stable robot pose and map are obtained.
2. An improved method for simultaneous positioning and map creation of an unmanned vehicle as claimed in claim 1, Features: Step 3: The method for establishing the unmanned vehicle posture estimation model is as follows: The state vector of the unmanned vehicle is defined as: Where, X k , Y k Represents the horizontal coordinate / vertical coordinate in the global coordinate system, v x , v y represents the lateral speed / longitudinal speed of the unmanned vehicle, a x , a y is the lateral acceleration / longitudinal acceleration, represents the yaw angle of the unmanned vehicle, θ is the heading angle of the unmanned vehicle; The change in the lateral position coordinates of the unmanned vehicle at time k, Δx k and the change in longitudinal position coordinate Δy k It is expressed as: In the formula, a x,k and a y,k is the lateral acceleration and longitudinal acceleration at time k, dt is the sampling interval; The horizontal position X at time K+1 k+1 and vertical position Y k+1 It is expressed as: X k+1 =X k +Δx k cosθ k +Δy k sinθ k Y k+1 =Y k -Δx k sinθ k +Δy k cosθ k In the formula, θ k is the heading angle at time k; The change of heading angle at time k is expressed as is the yaw angular velocity at time k, is the yaw angular acceleration at time k; The heading angle at time K+1 is expressed as θ K+1 =θ k +Δθ k .
3. An improved method for simultaneous positioning and map creation of an unmanned vehicle as claimed in claim 1, Features: The specific method of step 4 is: According to the unmanned vehicle posture estimation model, the estimated posture of each particle at time k is obtained Generate a map at time k-1 The laser radar is scanned and matched to obtain the real observation value at time k, the nearest neighbor method is used for data association, a particle weight update model is established, and the weight is calculated according to the particle weight update model; The particle weight update model is: The normalization function is 4. An improved method for simultaneous positioning and map creation of an unmanned vehicle as claimed in claim 3, Features: The specific method of step 5 is: After updating the particle pose, we can determine whether resampling is needed by calculating the number of all valid particles and introducing a threshold to determine the parameter N. eff The effectiveness of the parameter N eff for: Set the threshold to N / 2, where N is the total number of particles. eff If it is less than N / 2, resampling is performed, otherwise resampling is skipped.
Citation Information
Patent Citations
Indoor robot positioning and mapping method and indoor robot positioning and mapping device
CN109798896A
Method and device for constructing motion characteristic model of unmanned vehicle
CN111267867A
Unmanned vehicle positioning method fusing multi-source sensor information
CN114440881A
Multi-sensor fusion SLAM method based on improved RBPF-SLAM algorithm
CN115388892A
Radar-based system and method for real-time simultaneous localization and mapping
US20190384318A1
Cited By
Heavy-load mechanical arm pose estimation method based on multi-source heterogeneous data collaborative fusion
CN120235949A
