A local real-time obstacle avoidance path planning method based on weak positioning conditions
By combining the fusion of IMU and lidar data in the local coordinate system and using the Hybrid A* algorithm guided by the artificial potential field to optimize the path, the problem of path planning deviation in scenarios with weak GPS signals or large environmental changes is solved, and the vehicle is able to navigate obstacles Autonomous driving capabilities to avoid objects.
Patent Information
- Application Number
- CN202211139042.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-09-19
AI Technical Summary
In scenarios where the GPS signal is weak or the environment changes greatly, it is difficult for existing technologies to achieve accurate path planning, causing the vehicle to deviate from the planned path or be unable to avoid obstacles, which in turn leads to the failure of autonomous driving.
Using a method based on global path planning, the vehicle positioning error is obtained in real time, converted to the local coordinate system for path planning, and IMU and lidar data are used for fusion, combined with the Hybrid A* algorithm guided by the artificial potential field, to optimize the path to avoid obstacle.
It effectively avoids obstacles, ensures that the vehicle travels along the predetermined path and successfully reaches the target point, while reducing the calculation amount of local path planning.
Smart Images

Figure CN115454079B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a local real-time obstacle avoidance path planning method under weak positioning conditions. Background Art
[0002] At present, for some scenes with weak GPS signals and large changes in the surrounding environment, such as ports and pedestrian streets with heavy traffic, whether relying on RTK data under GPS alone or SLAM positioning technology combined with laser radar or vision, the calculated positioning will have large deviations or even loss of positioning. In this case, the current path planning algorithm either has a large deviation between the planned path and the actual path, and the vehicle gradually deviates from the predetermined path during operation, which eventually causes the path to fail collision detection and the vehicle is forced to stop in front of obstacles; or the positioning is lost and the path planning cannot be carried out directly, and the vehicle stops immediately. This makes the entire vehicle unable to perform autonomous driving intelligently in such scenes.
[0003] The shortcomings of the existing technology: This method can only perform secondary positioning correction when the positioning is poor. Although it can obtain relatively high positioning accuracy, it requires that the vehicle speed at this time should not be too fast. At the same time, it is necessary to affix a QR code icon to the designated place where the positioning accuracy may be poor at the beginning for identification and positioning, which increases the additional cost of use. In addition, in the case of bad weather and poor visibility, it is easy to make mistakes based on visual recognition of QR codes, which makes this method unusable. In this case, the current path planning algorithm either has a large deviation between the planned path and the actual planned path, and the vehicle gradually deviates from the predetermined path during operation, which eventually causes the path to fail the collision detection and the vehicle is forced to stop in front of the obstacle. Solving the above problems has become an issue that we urgently need to solve. Summary of the invention
[0004] In view of the above shortcomings of the prior art, the present invention provides a local real-time obstacle avoidance path planning method based on weak positioning conditions, which not only ensures that the local path planning is performed after it is not on the obstacle, so that the car travels along the predetermined path, but also effectively avoids obstacles and successfully reaches the final target point, and reduces the planning calculation amount in the local coordinate system.
[0005] In order to achieve the above-mentioned purpose and other related purposes, the technical solution provided by the present invention is as follows:
[0006] A local real-time obstacle avoidance path planning method based on weak positioning conditions comprises the following steps:
[0007] N1: Based on the global path planning, the vehicle starts, obtains the vehicle positioning error in real time, and sets a preset threshold. When the vehicle positioning error is less than the preset threshold, the vehicle drives according to the global path planning. When the vehicle positioning error exceeds the preset threshold, it enters N2.
[0008] N2: On the high-precision map, point A is the actual position of the vehicle, and point A′ is the position of the vehicle due to positioning error. The current positioning position A′ of the vehicle is projected to point A″ on the global path AC, and then segment A″C on the global path is intercepted, and A″C is converted to the new local coordinate system on the actual vehicle body point A coordinate system to obtain the local path AC′;
[0009] N3: Use IMU to perform pre-integration and ICP registration of lidar data to obtain IMU odometer and laser odometer, and fuse them in EKF. The position of vehicle point A in the local coordinate system is derived based on the fused odometer.
[0010] N4: Select point B on the local path AC′ with a distance of L from the vehicle point A as the local path target point;
[0011] N5: Determine whether point B is outside the obstacle calibration box. If so, plan a local path from the vehicle to point B with obstacle avoidance using the Hybrid A* algorithm guided by the artificial potential field; otherwise, proceed to step N6;
[0012] N6: Offset point B by a step length k in the direction of the normal vector of the obstacle calibration frame, which is away from the edge of point B, and away from the center of the obstacle calibration frame, until point B is outside the obstacle calibration frame.
[0013] N7: Repeat steps N3 to N6, and then output the optimized local path AB;
[0014] N8: Determine whether the vehicle has reached the global target point. If so, the process ends. Otherwise, repeat steps N1 to N7.
[0015] Further optimized, in step N2, the local coordinate system is a Cartesian coordinate system.
[0016] Further optimized, in step N5, the Hybrid A* algorithm guided by the artificial potential field comprises the following steps:
[0017] 1) Based on the high-precision map, the position point H of the obstacle is obtained, and a gravitational potential field function is established according to the position of the vehicle point A and the position of the local path target point B;
[0018] 2) establishing a repulsive potential field function according to the position of the vehicle body point A and the position point H of the obstacle;
[0019] 3) Based on the gravitational potential field function and the repulsive potential field function, the vehicle travels a distance of m, outputs the path nodes of each vehicle during the driving process, and optimizes the driving path of each vehicle in combination with the Hybrid A* algorithm;
[0020] 4) Obtain the optimal path planning from vehicle point A to the local path target point B.
[0021] Further optimized, in step 1), the gravitational potential field function is:
[0022] where ξ is the scale factor, ρ(x,x goal ) represents the distance between the vehicle’s current state and the target point.
[0023] Further optimized, in step 2), the repulsive potential field function is:
[0024]
[0025] Among them, η is the repulsive force scale factor, ρ(y,y obs ) represents the distance between the vehicle and the obstacle, and ρ0 represents the influence radius of each obstacle.
[0026] Further optimized, based on the repulsive potential field function, a repulsive potential field constraint function is established, and the constraint function is:
[0027]
[0028] Among them, η is the repulsive force scale factor, ρ0 represents the influence radius of each obstacle, and ρ(z,z obs ) represents the distance between the vehicle and the obstacle, Represents the reduction factor of the repulsive potential field.
[0029] In order to achieve the above-mentioned objectives and other related objectives, the present invention also provides a local real-time obstacle avoidance path planning system based on weak positioning conditions, including a computer device, which is programmed or configured to execute any step of the local real-time obstacle avoidance path planning method based on weak positioning conditions.
[0030] In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a computer-readable storage medium, which stores a computer program programmed or configured to execute any one of the local real-time obstacle avoidance path planning methods based on weak positioning conditions.
[0031] The present invention has the following positive effects:
[0032] 1) The present invention avoids further accumulation of errors in the case of large positioning deviations by intercepting the corresponding part of the global path and converting it to the local path of the vehicle coordinate system for planning, while reducing the amount of planning calculations in the local coordinate system.
[0033] 2) The present invention selects a target point on a local path and optimizes it to ensure that it is not on an obstacle, and then performs local path planning, so that the vehicle travels along a predetermined path, while also effectively avoiding obstacles and successfully reaching the final target point. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the process of the present invention;
[0035] Figure 2 This is a schematic diagram of local path planning of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Example: Figure 1 or Figure 2 As shown, a local real-time obstacle avoidance path planning method based on weak positioning conditions includes the following steps:
[0038] N1: Based on the global path planning, the vehicle starts, obtains the vehicle positioning error in real time, and sets a preset threshold. When the vehicle positioning error is less than the preset threshold, the vehicle drives according to the global path planning. When the vehicle positioning error exceeds the preset threshold, it enters N2.
[0039] N2: On the high-precision map, point A is the actual position of the vehicle, and point A′ is the position of the vehicle due to positioning error. The current positioning position A′ of the vehicle is projected to point A″ on the global path AC, and then segment A″C on the global path is intercepted, and A″C is converted to the new local coordinate system on the actual vehicle body point A coordinate system to obtain the local path AC′;
[0040] N3: Use IMU to perform pre-integration and ICP registration of lidar data to obtain IMU odometer and laser odometer, and fuse them in EKF. The position of vehicle point A in the local coordinate system is derived based on the fused odometer.
[0041] N4: Select point B on the local path AC′ with a distance of L from the vehicle point A as the local path target point;
[0042] N5: Determine whether point B is outside the obstacle calibration box. If so, plan a local path from the vehicle to point B with obstacle avoidance using the Hybrid A* algorithm guided by the artificial potential field; otherwise, proceed to step N6;
[0043] N6: Offset point B by a step length k in the direction of the normal vector of the obstacle calibration frame, which is away from the edge of point B, and away from the center of the obstacle calibration frame, until point B is outside the obstacle calibration frame.
[0044] N7: Repeat steps N3 to N6, and then output the optimized local path AB;
[0045] N8: Determine whether the vehicle has reached the global target point. If so, the process ends. Otherwise, repeat steps N1 to N7.
[0046] Further optimized, in step N2, the local coordinate system is a Cartesian coordinate system.
[0047] Further optimized, in step N5, the Hybrid A* algorithm guided by the artificial potential field comprises the following steps:
[0048] 1) Based on the high-precision map, the position point H of the obstacle is obtained, and a gravitational potential field function is established according to the position of the vehicle point A and the position of the local path target point B;
[0049] 2) establishing a repulsive potential field function according to the position of the vehicle body point A and the position point H of the obstacle;
[0050] 3) Based on the gravitational potential field function and the repulsive potential field function, the vehicle travels a distance of m, outputs the path nodes of each vehicle during the driving process, and optimizes the driving path of each vehicle in combination with the Hybrid A* algorithm;
[0051] 4) Obtain the optimal path planning from vehicle point A to the local path target point B.
[0052] Further optimized, in step 1), the gravitational potential field function is:
[0053] where ξ is the scale factor, ρ(x,x goal ) represents the distance between the vehicle’s current state and the target point.
[0054] Further optimized, in step 2), the repulsive potential field function is:
[0055]
[0056] Among them, η is the repulsive force scale factor, ρ(y,y obs) represents the distance between the vehicle and the obstacle, and ρ0 represents the influence radius of each obstacle.
[0057] Further optimized, based on the repulsive potential field function, a repulsive potential field constraint function is established, and the constraint function is:
[0058]
[0059] Among them, η is the repulsive force scale factor, ρ0 represents the influence radius of each obstacle, and ρ(z,z obs ) represents the distance between the vehicle and the obstacle, Represents the reduction factor of the repulsive potential field.
[0060] In order to achieve the above-mentioned objectives and other related objectives, the present invention also provides a local real-time obstacle avoidance path planning system based on weak positioning conditions, including a computer device, which is programmed or configured to execute any step of the local real-time obstacle avoidance path planning method based on weak positioning conditions.
[0061] In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a computer-readable storage medium, which stores a computer program programmed or configured to execute any one of the local real-time obstacle avoidance path planning methods based on weak positioning conditions.
[0062] In summary, the present invention provides a local real-time obstacle avoidance path planning method based on weak positioning conditions, which not only ensures that the local path planning is performed after it is not on an obstacle, so that the vehicle travels along the predetermined path, but also effectively avoids obstacles and successfully reaches the final target point, and reduces the planning calculation amount in the local coordinate system.
[0063] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A local real-time obstacle avoidance path planning method under weak positioning conditions, characterized in that: The following steps are involved: N1: Based on the global path planning, the vehicle starts, obtains the vehicle positioning error in real time, and sets a preset threshold. When the vehicle positioning error is less than the preset threshold, the vehicle drives according to the global path planning. When the vehicle positioning error exceeds the preset threshold, it enters N2. N2: On the high-precision map, point A is the actual position of the vehicle, and point A′ is the position of the vehicle due to positioning error. The current positioning position A′ of the vehicle is projected to point A″ on the global path AC, and then segment A″C on the global path is intercepted, and A″C is converted to the new local coordinate system on the actual vehicle body point A coordinate system to obtain the local path AC′; N3: Use IMU to perform pre-integration and ICP registration of lidar data to obtain IMU odometer and laser odometer, and fuse them in EKF. The position of vehicle point A in the local coordinate system is derived based on the fused odometer. N4: Select point B on the local path AC′ with a distance of L from the vehicle point A as the local path target point; N5: Determine whether point B is outside the obstacle calibration box. If so, plan a local path from the vehicle to point B with obstacle avoidance using the Hybrid A* algorithm guided by the artificial potential field; otherwise, proceed to step N6; N6: Offset point B by a step length k in the direction of the normal vector of the obstacle calibration frame, which is away from the edge of point B, and away from the center of the obstacle calibration frame, until point B is outside the obstacle calibration frame. N7: Repeat steps N3 to N6, and then output the optimized local path AB; N8: Determine whether the vehicle has reached the global target point. If so, the process ends. Otherwise, repeat steps N1 to N7.
2. The local real-time obstacle avoidance path planning method based on weak positioning conditions according to claim 1, characterized in that: In step N2, the local coordinate system is a Cartesian coordinate system.
3. The local real-time obstacle avoidance path planning method based on weak positioning conditions according to claim 1, characterized in that: In step N5, the Hybrid A* algorithm guided by artificial potential field comprises the following steps: 1) Based on the high-precision map, the position point H of the obstacle is obtained, and a gravitational potential field function is established according to the position of the vehicle point A and the position of the local path target point B; 2) establishing a repulsive potential field function according to the position of the vehicle body point A and the position point H of the obstacle; 3) Based on the gravitational potential field function and the repulsive potential field function, the vehicle travels a distance of m, outputs the path nodes of each vehicle during the driving process, and optimizes the driving path of each vehicle in combination with the Hybrid A* algorithm; 4) Obtain the optimal path planning from vehicle point A to the local path target point B.
4. The local real-time obstacle avoidance path planning method based on weak positioning conditions according to claim 3 is characterized in that: In step 1), the gravitational potential field function is: where ξ is the scale factor, ρ(x,x goal ) represents the distance between the vehicle’s current state and the target point.
5. The local real-time obstacle avoidance path planning method based on weak positioning conditions according to claim 3 is characterized in that: In step 2), the repulsive potential field function is: Among them, η is the repulsive force scale factor, ρ(y,y obs ) represents the distance between the vehicle and the obstacle, and ρ0 represents the influence radius of each obstacle.
6. The local real-time obstacle avoidance path planning method based on weak positioning conditions according to claim 5, characterized in that: Based on the repulsive potential field function, a repulsive potential field constraint function is established, and the constraint function is: Among them, η is the repulsive force scale factor, ρ0 represents the influence radius of each obstacle, and ρ(z,z obs ) represents the distance between the vehicle and the obstacle, Represents the reduction factor of the repulsive potential field.
7. A local real-time obstacle avoidance path planning system based on weak positioning conditions, comprising a computer device, characterized in that: The computer device is programmed or configured to execute the steps of the local real-time obstacle avoidance path planning method based on weak positioning conditions as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that is programmed or configured to execute the local real-time obstacle avoidance path planning method based on weak positioning conditions as described in any one of claims 1 to 6.
