Path optimization method, device and vehicle
By smoothing the reference reversing path, the steering wheel angle in the target reversing path is made smaller than the angle threshold, which solves the problem of limited application scenarios for reversing tracking and enables the smooth reversing process of the vehicle.
Patent Information
- Application Number
- CN202410053821.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-12
AI Technical Summary
Existing automotive driver assistance systems have limited application scenarios for reversing tracking, mainly due to the limitation of steering wheel angle.
By acquiring multiple path points in the reference reversing path, and based on the steering wheel angle corresponding to the path point, a target path point greater than the angle threshold is determined. The reference reversing path is then smoothed to make the steering wheel angle in the target reversing path less than the angle threshold, thus keeping it within the steerable angle range of the EPS actuator.
This ensures that the steering wheel angle at all path points during vehicle reversing is within the range of the EPS actuator's steerable angle, avoiding the problem of limited steering wheel angle and ensuring smooth operation of reversing tracking applications.
Smart Images

Figure CN117864137B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more specifically, to a path optimization method, apparatus, and vehicle. Background Technology
[0002] With the continuous development of vehicle technology, automotive driver assistance systems are also gradually improving. For example, automotive driver assistance systems can achieve reversing tracking. In this process, the vehicle can reverse based on its forward trajectory to solve the problem of difficulty in reversing on narrow roads. However, there are still limitations in the application scenarios of vehicle reversing tracking. Summary of the Invention
[0003] In view of the above problems, this application proposes a path optimization method, apparatus and vehicle to improve the above problems.
[0004] In a first aspect, this application provides a path optimization method, the method comprising: obtaining multiple path points in a reference reversing path, the reference reversing path having the same trajectory but opposite direction to the vehicle's forward driving path; obtaining a target path point based on the steering wheel angle corresponding to each of the multiple path points, the target path point being a path point whose steering wheel angle is greater than a steering angle threshold; performing a smoothing operation on the reference reversing path based on the target path point, and using the smoothed reference reversing path as the target reversing path, the steering wheel angle corresponding to the target path point in the target reversing path being less than the steering angle threshold.
[0005] Secondly, this application provides a path optimization device, the device comprising: a data acquisition unit for acquiring multiple path points in a reference reversing path, the reference reversing path having the same trajectory but opposite direction to the vehicle's forward driving path; a data processing unit for obtaining a target path point based on the steering wheel angle corresponding to each of the multiple path points, the target path point being a path point whose steering wheel angle is greater than a steering angle threshold; and a path determination unit for smoothing the reference reversing path based on the target path point, and using the smoothed reference reversing path as the target reversing path, the steering wheel angle corresponding to the target path point in the target reversing path being less than the steering angle threshold.
[0006] Thirdly, this application provides a vehicle including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the methods described above.
[0007] Fourthly, this application provides a computer-readable storage medium storing program code, wherein the above-described method is executed when the program code is run.
[0008] This application provides a path optimization method, apparatus, vehicle, and storage medium. After obtaining multiple path points in a reference reversing path, a target path point is obtained based on the steering wheel angle corresponding to each of the multiple path points, indicating that the steering wheel angle is greater than a certain angle threshold. The reference reversing path is then smoothed based on the target path point, and the smoothed reference reversing path is used as the target reversing path. This method enables the determination of target path points with steering wheel angles greater than a certain angle threshold based on the steering wheel angles corresponding to multiple path points in the reference reversing path. The smoothing operation on the reference reversing path based on these target path points ensures that the steering wheel angles of the target path points are less than the angle threshold. This ensures that during vehicle reversing, the steering wheel angles of all path points in the target reversing path are within the steerable angle range of the EPS actuator, allowing the vehicle to reverse smoothly based on the target reversing path. This avoids limitations on reversing tracking applications caused by restricted steering wheel angles. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart of a path optimization method proposed in an embodiment of this application is shown;
[0011] Figure 2 A schematic diagram of a reference reversing path proposed in this application is shown;
[0012] Figure 3 This application shows Figure 1 A flowchart of an implementation method proposed in S130;
[0013] Figure 4 This application shows Figure 3 A flowchart of an implementation method proposed in S131;
[0014] Figure 5 A schematic diagram of a target reversing path proposed in this application is shown;
[0015] Figure 6 A flowchart of a path optimization method according to another embodiment of this application is shown;
[0016] Figure 7 A flowchart of a preferred path optimization method proposed in this application is shown;
[0017] Figure 8 This paper shows a structural block diagram of a path optimization device proposed in an embodiment of this application;
[0018] Figure 9 A structural block diagram of a vehicle proposed in this application is shown. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0020] In this application embodiment, the inventors propose a path optimization method, device, and vehicle. After obtaining multiple path points in a reference reversing path, a target path point is obtained based on the steering wheel angle corresponding to each of the multiple path points, indicating that the steering wheel angle is greater than a threshold. The reference reversing path is then smoothed based on the target path point, and the smoothed reference reversing path is used as the target reversing path. This method enables the determination of target path points with steering wheel angles greater than a threshold based on the steering wheel angles corresponding to the multiple path points in the reference reversing path. The smoothing operation on the reference reversing path based on these target path points ensures that the steering wheel angles of the target path points are less than the threshold. This ensures that during vehicle reversing, the steering wheel angles of all path points in the target reversing path are within the steerable angle range of the EPS actuator, allowing the vehicle to reverse smoothly based on the target reversing path. This avoids limitations on reversing tracking applications caused by steering wheel angle constraints.
[0021] Please see Figure 1 This application provides a path optimization method, the method comprising:
[0022] S110: Obtain multiple path points in the reference reversing path, wherein the reference reversing path is the same as the trajectory of the vehicle's forward driving path but in the opposite direction.
[0023] Among them, a path point can refer to a point on the reference reversing path, a point sampled from the reference reversing path, or a starting point, ending point, turning point, or other point of the reference reversing path.
[0024] One approach is to obtain a reference reversing path for the vehicle based on its forward driving trajectory. After obtaining the reference reversing path, the reference reversing path can be processed using a preset sampling algorithm (e.g., equidistant sampling or equal time difference sampling) to obtain multiple path points in the reference reversing path.
[0025] For example, such as Figure 2 As shown, the vehicle can move from point N to point M, meaning its forward travel path is path NM, with point N being the starting point and point M being the ending point. Therefore, the vehicle's reference reversing path can be path MN, with point M being the starting point and point N being the ending point. After obtaining the vehicle's reference reversing path, it can be processed. The processed reference reversing path can correspond to multiple path points, including but not limited to points M, I, K, J, and N.
[0026] S120: Based on the steering wheel angle corresponding to each of the multiple path points, a target path point is obtained, wherein the target path point is a path point whose steering wheel angle is greater than a steering angle threshold.
[0027] The steering wheel angle corresponding to a path point represents the angle the steering wheel needs to turn to move the vehicle from the current path point to the next path point. The steering angle threshold can be the maximum allowable steering wheel angle within the steerable angle range of the EPS (Electric Power Steering) actuator.
[0028] As one approach, after obtaining multiple path points, one can start polling multiple path points of the reference reversing path from the reversing starting point. While polling multiple path points, one can obtain the steering wheel angle corresponding to each path point. Then, one can determine whether the steering wheel angle corresponding to each path point is greater than the angle threshold. If the steering wheel angle corresponding to the path point is greater than the angle threshold, then the path point can be used as the target path point.
[0029] For example, the turning angle threshold can be represented by θ1, and the steering wheel angle corresponding to the path point can be represented by θ2; if the steering wheel angle corresponding to the path point is greater than the turning angle threshold, that is, θ2>θ1, then the path point can be used as the target path point.
[0030] As another approach, the maximum steering wheel angle can be obtained based on the steering wheel angles corresponding to multiple path points. If the maximum steering wheel angle is greater than the angle threshold, the path point corresponding to the maximum steering wheel angle can be used as the target path point.
[0031] Optionally, after obtaining multiple path points, all path points of the reference reversing path can be polled from the reversing starting point of the reference reversing path, and the steering wheel angle corresponding to each path point can be obtained. Then, the steering wheel angles corresponding to each path point can be compared to obtain the comparison results, and the maximum steering wheel angle in the comparison results can be obtained. After obtaining the maximum steering wheel angle, it can be determined whether the maximum steering wheel angle is greater than the angle threshold. If the maximum steering wheel angle is greater than the angle threshold, then the path point corresponding to the maximum steering wheel angle can be used as the target path point.
[0032] For example, the turning angle threshold can be represented by θ1, and the steering wheel angles corresponding to multiple path points can be represented by θ2, θ3, θ4, and θ5 respectively. Compare θ2, θ3, θ4, and θ5 to obtain the comparison result. The comparison result can be θ2 < θ3 < θ4 < θ5. In this case, θ5 is the maximum steering wheel angle. Then, the size relationship between θ1 and θ5 can be determined. If θ1 < θ5, then the path point corresponding to θ5 can be taken as the target path point.
[0033] S130: Smooth the reference reversing path based on the target path point, and use the smoothed reference reversing path as the target reversing path, wherein the steering wheel angle corresponding to the target path point in the target reversing path is less than the angle threshold.
[0034] The target reversing path can be the actual path used by the vehicle when reversing, and the target reversing path can be a smoothed reference reversing path.
[0035] As a way, such as Figure 3 As shown, the reference reversing path can be smoothed based on the target path point, and the smoothed reference reversing path can be used as the target reversing path, including:
[0036] S131: Based on the target path point, perform a smoothing operation on the first sub-path in the reference reversing path to obtain the first optimized sub-path.
[0037] The first sub-path can be a sub-path from the reversing starting point to the target path point in the reference reversing path. The first sub-path can include multiple path points, and the first optimized sub-path can be the smoothed first sub-path.
[0038] For example, such as Figure 2 As shown, if the starting point of the reference reversing path is point M and the target path point is point K, then the first sub-path can be path MK, where points M, I, and K can be path points in the first sub-path.
[0039] As a way, such as Figure 4As shown, a smoothing operation can be performed on the first sub-path of the reference reversing path based on the target path point to obtain the first optimized sub-path, including:
[0040] S1311: Based on the target path point and the target radius of curvature, a first optimized path point is obtained, wherein the target radius of curvature is obtained based on the turning angle threshold.
[0041] The first optimized path point can be a path point after smoothing the first sub-path in the reference reversing path; that is, the first optimized path point can be a path point in the first optimized sub-path.
[0042] One approach is to obtain the vehicle wheel angle corresponding to the steering angle threshold based on the steering angle threshold and the steering gear ratio. The steering gear ratio can be used to characterize the mapping relationship between the steering wheel angle and the vehicle wheel angle. Then, based on the vehicle wheel angle and the vehicle's front and rear wheelbases, the target radius of curvature can be obtained. The formula for calculating the target radius of curvature is as follows:
[0043] δ=k*θ1;
[0044]
[0045] Where δ can be used to represent the vehicle wheel angle; k can be used to represent the steering ratio; θ1 can be used to represent the angle threshold; R can be used to represent the target radius of curvature; and L can be used to represent the front and rear wheelbase of the vehicle.
[0046] As one approach, based on the target path point and the target radius of curvature, a first reference point can be obtained, which is the center of a circle with the target path point as the tangent and the target radius of curvature as the radius. Based on the first reference point, multiple path points in the first sub-path, and the target radius of curvature, a second reference point can be obtained, which is the path point closest to the target path point and whose distance from the first reference point is greater than the target radius of curvature. Based on the first reference point, a third reference point can be obtained, which is the path point in the first sub-path closest to the first reference point, and whose distance from the target path point is less than the distance between the second reference point and the target path point. Based on the second and third reference points, a fourth reference point can be obtained, which is the midpoint between the second and third reference points in the first sub-path. Extending the target radius of curvature from the first reference point along a first specified direction yields a first optimized path point, where the first specified direction is the direction from the first reference point to the fourth reference point.
[0047] For example, such as Figure 5As shown, the first sub-path can be path MK, the start point of the first sub-path can be point M, the target path point can be point K, the path points in the first sub-path can include point I, point I can be located between point K and point M, and the target radius of curvature can be R. The center of the circle with point K as the tangent point and R as the radius can be taken as the first reference point, and the first reference point can be point O. After obtaining point O, multiple path points can be polled along the direction from point I to point M in the path from point I to point M, and the distances between the path points and point O can be obtained. The first path point with a distance greater than R is taken as the second reference point, and the second reference point can be point B. During the process of obtaining point B, the path point closest to point O along the direction from point I to point B in the path from point I to point B can be obtained as the third reference point, and the third reference point can be point L. After obtaining point B and point L, the midpoint of point B and point L in path MK can be obtained as the fourth reference point, and the fourth reference point can be point H. That is, the distance from point H to point B is the same as the distance from point H to point L. After obtaining point H, a length R can be extended from point O along the OH direction to obtain a first optimized path point, and the first optimized path point can be point C.
[0048] Optionally, during the process of obtaining the second reference point, the distances between the first reference point and multiple path points in the first sub-path can be obtained, and the distances greater than the target radius of curvature are taken as reference distances to obtain multiple reference distances; afterwards, the multiple reference distances are compared to obtain the smallest reference distance, and the path point corresponding to the smallest reference distance is taken as the second reference point.
[0049] For example, the distances between the first reference point and multiple path points in the first sub-path can include d1, d2, d3, d4, d5, d6, and it is determined whether the above distances are greater than the target radius of curvature. If d3, d4, d5, d6 are distances greater than the target radius of curvature, d3, d4, d5, d6 can be respectively taken as reference distances, and the multiple reference distances are compared to obtain a comparison result. The comparison result can be d3<d4<d5<d6, then the path point corresponding to the smallest reference distance d3 can be taken as the second reference point.
[0050] S1312: Obtain a second optimized path point based on the first optimized path point and a preset increment value.
[0051] The second optimized path point can be a path point obtained by smoothing the first sub-path in the reference reversing path, that is, the second optimized path point can be a path point in the first optimized sub-path. The preset increment value can be a preset length or arc length. In this application, the preset increment value can be set to 0.125 meters, and the preset increment value can be adjusted based on multiple experimental results.
[0052] As one approach, a second optimized path point can be obtained by extending a specified length along a second specified direction from the first optimized path point, where the specified length is the length corresponding to at least one preset increment value.
[0053] Optionally, a vehicle coordinate system can be established, with the vehicle itself as the origin, the direction of the vehicle's forward movement as the Y-axis, and the left side of the vehicle as the X-axis. The second specified direction can be the positive direction of the Y-axis.
[0054] Optionally, a second optimized path point can be obtained by extending the first optimized path point along the positive Y-axis by three preset increment values.
[0055] For example, such as Figure 5 As shown, the first sub-path can be path MK, the starting point of the first sub-path can be point M, and the target path point can be point K. The first optimized path point can be represented as point C. Based on point C, it can be translated 0.375 meters (i.e., 0.125 * 3 meters) along the Y-axis to obtain the second optimized path point, which can be represented as point D.
[0056] As another approach, during the current auxiliary point acquisition process, based on the previous auxiliary point and the preset radius of curvature, a reference auxiliary point can be obtained. The reference auxiliary point is the center of a circle with the previous auxiliary point as the tangent and the preset radius of curvature as the radius. The preset radius of curvature is greater than the target radius of curvature, and the previous auxiliary point is the first optimized path point. Using the reference auxiliary point as the center, the preset radius of curvature is extended along the first reference direction from the previous auxiliary point by a specified arc length to obtain the auxiliary point of the current auxiliary point acquisition process. The first reference direction is the direction away from the target path point, and the specified arc length is the same as the preset increment value. If the auxiliary point of the current auxiliary point acquisition process is not the last auxiliary point, the process can continue to the next auxiliary point acquisition process, and the auxiliary point of the current auxiliary point acquisition process can be used as the previous auxiliary point in the next process, until the last auxiliary point is obtained, which can then be used as the second optimized path point.
[0057] Optionally, the preset radius of curvature corresponding to the auxiliary point in the current auxiliary point acquisition process is always greater than the preset radius of curvature corresponding to the previous auxiliary point in the current auxiliary point acquisition process. The preset radius of curvature corresponding to the auxiliary point in the current auxiliary point acquisition process can be represented by R1, and the preset radius of curvature corresponding to the previous auxiliary point in the current auxiliary point acquisition process can be represented by R0. Furthermore, the preset radius of curvature can be adjusted based on the results of multiple experiments.
[0058] For example, such as Figure 5As shown, the first sub-path can be path MK, the starting point of the first sub-path can be point M, the target path point can be point K, and the first optimized path point can be point C. The auxiliary point in the current auxiliary point acquisition process can be point CD1, and the previous auxiliary point in the current auxiliary point acquisition process can be point CD0. In the process of acquiring point CD1, point CD0 can be used as the tangent point, and the center of a circle with radius R0 can be used as the reference auxiliary point for the current auxiliary point acquisition process. Then, using the reference auxiliary point as the center, R0 can be extended from point CD0 along a direction closer to point M by a specified arc length (the length corresponding to a preset increment value, i.e., 0.125 meters) to obtain point CD1. Furthermore, the CD0 point corresponding to the first CD1 point acquisition process can be point C, and the CD1 point corresponding to the last CD1 point acquisition process can be point D.
[0059] Optionally, the process of obtaining auxiliary points can be repeated three times, and the auxiliary point corresponding to the third auxiliary point acquisition process can be used as the second optimized path point.
[0060] In this embodiment, since the preset radius of curvature corresponding to the auxiliary point in the current auxiliary point acquisition process is always greater than the preset radius of curvature corresponding to the previous auxiliary point in the current auxiliary point acquisition process, the preset radius of curvature gradually increases during the process of obtaining the auxiliary point in the current auxiliary point acquisition process based on the reference auxiliary point and the preset radius of curvature corresponding to the previous auxiliary point. That is, the path between the first optimized path point and the second optimized path point in the first optimized sub-path gradually becomes smoother, thereby gradually reducing the steering wheel angle corresponding to the path point in the first optimized sub-path, which makes it easier for the vehicle to reverse based on the first optimized sub-path.
[0061] S1313: Based on the second optimized path point and the radius of curvature corresponding to the second optimized path point, obtain the third optimized path point.
[0062] The third optimized path point can be a path point in the first sub-path of the reference reversing path, and the third optimized path point can be a path point in the first optimized sub-path.
[0063] As one approach, based on the second optimized path point and the radius of curvature corresponding to the second optimized path point, a fifth reference point can be obtained. The fifth reference point is the center of a circle with the second optimized path point as the tangent and the radius of curvature corresponding to the second optimized path point as the radius. Based on the fifth reference point, multiple path points in the first sub-path, and the radius of curvature corresponding to the second optimized path point, a third optimized path point can be obtained. The third optimized path point is the path point whose distance from the fifth reference point is greater than the radius of curvature corresponding to the second optimized path point and is the closest to the second reference point.
[0064] For example, such as Figure 5As shown, the first sub-path can be path MK, the starting point of the first sub-path can be point M, the target path point can be point K, the second optimized path point can be point D, and the radius of curvature corresponding to the second optimized path point can be R1. The center of the circle with point D as the tangent and radius R1 can be used as the fifth reference point, which can be point F. After obtaining point F, in the path from point B to point M, all path points can be iterated in the direction from point B to point M, and the distances between multiple path points and point F can be obtained. The first path point with a distance greater than R1 can be used as the third optimized path point, which can be point A.
[0065] S1314: Based on the target path point, the first optimized path point, the second optimized path point, and the third optimized path point, the first optimized sub-path is obtained.
[0066] One approach is to derive the first optimized sub-path based on the target pathpoint, the first optimized pathpoint, the second optimized pathpoint, and the third optimized pathpoint. For example, such as... Figure 5 As shown, the first optimized sub-path can be represented as path MADCK. The starting point of the first optimized sub-path is point M, and the ending point is point K.
[0067] S132: Based on the target path point, perform a smoothing operation on the second sub-path in the reference reversing path to obtain a second optimized sub-path, where the second sub-path is the sub-path from the target path point to the reversing endpoint.
[0068] The second sub-path can be the path from the target path point in the reference reversing path to the reversing endpoint. The second sub-path can include multiple path points, and the second optimized sub-path can be a smoothed version of the second sub-path.
[0069] For example, such as Figure 2 As shown, if the target path point is point K and the endpoint of the reference reversing path is point N, then the second sub-path can be path KN, where points K, J, and N can be path points in the second sub-path.
[0070] As one approach, the smoothing operation performed on the first sub-path in steps S131-S133 can be applied to the second sub-path simultaneously to obtain a second optimized sub-path. For example, as shown... Figure 5 As shown, the second optimized sub-path can be represented as path KRSTN. The starting point of the second optimized sub-path is point K, and the ending point is point N.
[0071] S133: If the first optimized sub-path and the second optimized sub-path satisfy the corresponding conditions, the target reversing path is obtained based on the first optimized sub-path and the second optimized sub-path.
[0072] The first optimized sub-path satisfying the corresponding condition can be defined as the number of path points between the third optimized path point and the starting point of the first optimized sub-path reaching a threshold; the second optimized sub-path satisfying the corresponding condition can be defined as the number of path points between the third optimized path point and the ending point of the second optimized sub-path reaching a threshold. In this application, the threshold for the number of path points can be 2. Furthermore, the threshold for the number of path points can be adjusted based on the results of multiple experiments.
[0073] As one approach, if the number of path points between the third optimized path point in the first optimized sub-path and the starting point of the first optimized sub-path reaches a threshold, and the number of path points between the third optimized path point in the second optimized sub-path and the ending point of the second optimized sub-path reaches a threshold, then the first optimized sub-path and the second optimized sub-path can be combined to obtain the target reversing path.
[0074] For example, such as Figure 5 As shown, the first optimized sub-path can be represented as path MADCK, the second optimized sub-path can be represented as path KRSTN, and the target reversing path can be represented as path MADCKRSTN.
[0075] This embodiment provides a path optimization method. After obtaining multiple path points in a reference reversing path, a target path point is obtained based on the steering wheel angle corresponding to each of the multiple path points, indicating that the steering wheel angle is greater than a certain angle threshold. The reference reversing path is then smoothed based on the target path point, and the smoothed reference reversing path is used as the target reversing path. This method allows for the identification of target path points with steering wheel angles greater than a certain angle threshold based on the steering wheel angles corresponding to the multiple path points in the reference reversing path. The smoothing operation on the reference reversing path based on these target path points ensures that the steering wheel angles of the target path points are less than the angle threshold. This ensures that during vehicle reversing, the steering wheel angles of all path points in the target reversing path are within the steerable angle range of the EPS actuator, enabling the vehicle to reverse smoothly based on the target reversing path. This avoids limitations on reversing tracking applications caused by restricted steering wheel angles.
[0076] Please see Figure 6 This application provides a path optimization method, the method comprising:
[0077] S210: Obtain multiple path points in the reference reversing path, wherein the reference reversing path is the same as the trajectory of the vehicle's forward driving path but in the opposite direction.
[0078] S220: Based on the steering wheel angles corresponding to the multiple path points, a target path point is obtained, wherein the target path point is a path point whose steering wheel angle is greater than a steering angle threshold.
[0079] S230: Based on the target path point, perform a smoothing operation on the first sub-path in the reference reversing path to obtain a first optimized sub-path, wherein the first sub-path is the sub-path from the reversing starting point to the target path point.
[0080] S240: Based on the target path point, perform a smoothing operation on the second sub-path in the reference reversing path to obtain a second optimized sub-path, where the second sub-path is the sub-path from the target path point to the reversing endpoint.
[0081] S250: The first optimized sub-path and the second optimized sub-path satisfy the corresponding conditions, and the target reversing path is obtained based on the first optimized sub-path and the second optimized sub-path.
[0082] As one approach, if the number of path points between the third optimized path point in the first optimized sub-path and the starting point of the first optimized sub-path reaches a threshold, and the number of path points between the third optimized path point in the second optimized sub-path and the ending point of the second optimized sub-path does not reach a threshold, then the first optimized sub-path and the second sub-path can be combined to obtain the target reversing path.
[0083] For example, such as Figure 5 As shown, the first optimized sub-path can be represented as path MADCK, the second optimized sub-path can be represented as path KN, and the target reversing path can be represented as path MADCKN.
[0084] As another approach, if the number of path points between the third optimized path point in the first optimized sub-path and the starting point of the first optimized sub-path does not reach the threshold, and the number of path points between the third optimized path point in the second optimized sub-path and the ending point of the second optimized sub-path reaches the threshold, then the first sub-path and the second optimized sub-path can be combined to obtain the target reversing path.
[0085] For example, such as Figure 5 As shown, the first sub-path can be represented as path MK, the second optimized sub-path can be represented as path KRSTN, and the target reversing path can be represented as path MKRSTN.
[0086] Optionally, if the number of path points between the third optimized path point in the first optimized sub-path and the starting point of the first optimized sub-path does not reach the threshold, and the number of path points between the third optimized path point in the second optimized sub-path and the ending point of the second optimized sub-path also does not reach the threshold, then the first optimized sub-path, the second optimized sub-path, and the reference reversing path can all be deleted.
[0087] Optionally, after deleting all reference reversing paths, the system can obtain the destination location entered by the user on the vehicle's main unit, and regenerate a new reversing path based on the vehicle's current position, attitude, and map road conditions. The new reversing path can then be displayed to the user to instruct them to reverse based on the new path.
[0088] Optionally, when the vehicle is in automatic parking mode, the vehicle's steering, acceleration, and braking can be automatically controlled by the vehicle's onboard sensors and preset algorithms, so that the vehicle can automatically follow the generated new reversing path to reverse.
[0089] This embodiment provides a path optimization method that, through the aforementioned approach, allows for the identification of target path points with steering wheel angles greater than a threshold based on the steering wheel angles corresponding to multiple path points. A smoothing operation is then performed on the reference reversing path based on these target path points, ensuring that the steering wheel angles of the target path points are less than the threshold. This guarantees that during vehicle reversing, the steering wheel angles of all path points within the EPS actuator's directional control angle range, enabling the vehicle to reverse smoothly along the target path and avoiding limitations on reversing tracking applications caused by steering wheel angle constraints. Furthermore, this application allows for the generation of different target reversing paths based on whether the first and second optimized sub-paths meet corresponding conditions, providing different options for vehicle reversing and thus improving the flexibility of vehicle reversing.
[0090] To better understand the solutions in the embodiments of this application, the process of a preferred implementation is described below.
[0091] Please see Figure 7Based on step S1, multiple path points of the reference reversing path can be polled. In step S2, while polling multiple path points, it can be determined whether the steering wheel angle corresponding to each path point is less than a turning angle threshold. If the steering wheel angle corresponding to each path point is less than the turning angle threshold, then in step S3, the original path points can be retained, and this reference reversing path can be used as the target reversing path. If there is a path point with a steering wheel angle greater than the turning angle threshold, a smoothing operation can be performed on the reference reversing path to obtain a first optimized sub-path and a second optimized sub-path. Then, in step S4, it can be determined whether both the first optimized sub-path and the second optimized sub-path satisfy the corresponding conditions. If both the first optimized sub-path and the second optimized sub-path satisfy the corresponding conditions, then in step S5, the target reversing path can be obtained. At this point, the target reversing path is based on the first optimized sub-path and the second optimized sub-path. The first and second optimized sub-paths are obtained by optimizing the sub-paths. If either the first or second optimized sub-path does not meet the corresponding condition, then step S6 can be used to determine whether the first optimized sub-path meets the corresponding condition. If the first optimized sub-path meets the corresponding condition, then step S7 can be used to obtain the target reversing path, which is obtained based on the first and second optimized sub-paths. If the first optimized sub-path does not meet the corresponding condition, then step S8 can be used to determine whether the second optimized sub-path meets the corresponding condition. If the second optimized sub-path meets the corresponding condition, then step S9 can be used to obtain the target reversing path, which is obtained based on the first and second optimized sub-paths. If the second optimized sub-path does not meet the corresponding condition, then step S10 can be used to clear the path points of the reference reversing path and delete the reference reversing path.
[0092] Please see Figure 8 This application provides a path optimization device 800, the device 800 comprising:
[0093] The data acquisition unit 810 is used to acquire multiple path points in the reference reversing path, wherein the reference reversing path is the same as the trajectory of the vehicle's forward driving path but in the opposite direction.
[0094] The data processing unit 820 is used to obtain a target path point based on the steering wheel angle corresponding to each of the plurality of path points, wherein the target path point is a path point whose steering wheel angle is greater than a steering angle threshold.
[0095] The path determination unit 830 is used to smooth the reference reversing path based on the target path point, and use the smoothed reference reversing path as the target reversing path, wherein the steering wheel angle corresponding to the target path point in the target reversing path is less than the angle threshold.
[0096] In one approach, the data processing unit 820 is specifically used to obtain the maximum steering wheel angle based on the steering wheel angle corresponding to each of the plurality of path points; if the maximum steering wheel angle is greater than the angle threshold, the path point corresponding to the maximum steering wheel angle is taken as the target path point.
[0097] In one approach, the path determination unit 830 is specifically used to perform a smoothing operation on a first sub-path in the reference reversing path based on the target path point to obtain a first optimized sub-path, wherein the first sub-path is the sub-path from the reversing start point to the target path point; to perform a smoothing operation on a second sub-path in the reference reversing path based on the target path point to obtain a second optimized sub-path, wherein the second sub-path is the sub-path from the target path point to the reversing end point; if the first optimized sub-path and the second optimized sub-path satisfy corresponding conditions, the target reversing path is obtained based on the first optimized sub-path and the second optimized sub-path.
[0098] Optionally, the path determination unit 830 is specifically used to obtain a first optimized path point based on the target path point and the target radius of curvature, wherein the target radius of curvature is obtained based on the corner threshold; to obtain a second optimized path point based on the first optimized path point and a preset increase value; to obtain a third optimized path point based on the second optimized path point and the radius of curvature corresponding to the second optimized path point; and to obtain a first optimized sub-path based on the target path point, the first optimized path point, the second optimized path point, and the third optimized path point.
[0099] Optionally, the path determination unit 830 is specifically configured to: obtain a first reference point based on the target path point and the target radius of curvature, wherein the first reference point is the center of a circle with the target path point as the tangent and the target radius of curvature as the radius; obtain a second reference point based on the first reference point, multiple path points in the first sub-path, and the target radius of curvature, wherein the second reference point is the path point closest to the target path point and whose distance from the first reference point is greater than the target radius of curvature; obtain a third reference point based on the first reference point, wherein the third reference point is the path point closest to the first reference point in the first sub-path, and the distance between the third reference point and the target path point is less than the distance between the second reference point and the target path point; obtain a fourth reference point based on the second reference point and the third reference point, wherein the fourth reference point is the midpoint between the second reference point and the third reference point in the first sub-path; and extend the length of the target radius of curvature from the first reference point along a first specified direction to obtain the first optimized path point, wherein the first specified direction is the direction from the first reference point to the fourth reference point.
[0100] Optionally, the path determination unit 830 is specifically used to obtain a fifth reference point based on the second optimized path point and the radius of curvature corresponding to the second optimized path point, wherein the fifth reference point is the center of a circle with the second optimized path point as the tangent point and the radius of curvature corresponding to the second optimized path point as the radius; and to obtain a third optimized path point based on the fifth reference point, multiple path points in the first sub-path, and the radius of curvature corresponding to the second optimized path point, wherein the third optimized path point is the path point whose distance from the fifth reference point is greater than the radius of curvature corresponding to the second optimized path point and is closest to the second reference point.
[0101] In one approach, the path determination unit 830 is specifically used to extend a specified length from the first optimized path point along a second specified direction to obtain the second optimized path point, wherein the specified length is the length corresponding to at least one of the preset increment values.
[0102] As another approach, the path determination unit 830 is specifically used to, during the current auxiliary point acquisition process, obtain a reference auxiliary point corresponding to the current auxiliary point acquisition process based on the previous auxiliary point and a preset radius of curvature. The reference auxiliary point is the center of a circle with the previous auxiliary point as the tangent and the preset radius of curvature as the radius. The preset radius of curvature is greater than the target radius of curvature, and the previous auxiliary point corresponding to the first auxiliary point acquisition process is the first optimized path point. Using the reference auxiliary point as the center, the preset radius of curvature is extended along a first reference direction from the previous auxiliary point by a specified arc length to obtain the auxiliary point of the current auxiliary point acquisition process. The first reference direction is the direction away from the target path point, and the specified arc length is the same as the preset increment value. If the auxiliary point of the current auxiliary point acquisition process is not the last auxiliary point, the process continues to the next auxiliary point acquisition process, and the auxiliary point of the current auxiliary point acquisition process is used as the previous auxiliary point in the next auxiliary point acquisition process, until the last auxiliary point is obtained, and the last auxiliary point is used as the second optimized path point.
[0103] The following will combine Figure 9 This application describes one type of vehicle.
[0104] Please see Figure 9 Based on the aforementioned path optimization method and apparatus, this application embodiment also provides another vehicle 100 capable of executing the aforementioned path optimization method. The vehicle 100 includes a processor 102 and a memory 104, wherein the memory 104 stores a program capable of executing the contents of the aforementioned embodiments, and the processor 102 can execute the program stored in the memory 104.
[0105] The processor 102 may include one or more processing cores. The processor 102 connects to various parts within the vehicle 100 using various interfaces and lines, and performs various functions and processes data of the vehicle 100 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and by calling data stored in the memory 104. Optionally, the processor 102 may be implemented using at least one of the following hardware forms: a Neural Network Processing Unit (NPU), a Digital Signal Processing Unit (DSP), a Field-Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA). The processor 102 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Neural Network Processing Unit (NPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; the NPU handles multimedia data such as video and images; and the modem handles wireless communication. It is understandable that the aforementioned modem may not be integrated into the processor 102, but may be implemented using a separate communication chip.
[0106] The memory 104 may include random access memory (RAM), read-only memory (ROM), and double data rate synchronous dynamic random access memory (DDR). The memory 104 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 104 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created during the use of the vehicle 100 (such as phonebooks, audio and video data, chat log data, etc.).
[0107] This application provides a computer-readable storage medium. The computer-readable storage medium stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0108] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, computer-readable storage media include non-transitory computer-readable storage media. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.
[0109] In summary, the path optimization method, apparatus, and vehicle provided in this application, after obtaining multiple path points in a reference reversing path, obtains target path points indicating that the steering wheel angle is greater than a threshold based on the steering wheel angle corresponding to each of the multiple path points. The reference reversing path is then smoothed based on the target path points, and the smoothed reference reversing path is used as the target reversing path. This method enables the determination of target path points with steering wheel angles greater than a threshold based on the steering wheel angles corresponding to multiple path points in the reference reversing path. By smoothing the reference reversing path based on these target path points, the steering wheel angles of the target path points in the target reversing path are made less than the threshold. This ensures that during vehicle reversing, the steering wheel angles of all path points in the target reversing path are within the steerable angle range of the EPS actuator, allowing the vehicle to reverse smoothly based on the target reversing path. This avoids limitations on reversing tracking applications caused by steering wheel angle constraints.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A path optimization method, characterized in that, The method includes: Obtain multiple path points in the reference reversing path, wherein the reference reversing path is the same as the trajectory of the vehicle's forward driving path but in the opposite direction; Based on the steering wheel angles corresponding to each of the multiple path points, a target path point is obtained, wherein the target path point is a path point whose steering wheel angle is greater than a steering angle threshold. The reference reversing path is smoothed based on the target path point, and the smoothed reference reversing path is used as the target reversing path. The steering wheel angle corresponding to the target path point in the target reversing path is less than the angle threshold. The step of obtaining the target path point based on the steering wheel angles corresponding to each of the plurality of path points includes: obtaining the maximum steering wheel angle based on the steering wheel angles corresponding to each of the plurality of path points; if the maximum steering wheel angle is greater than the angle threshold, the path point corresponding to the maximum steering wheel angle is taken as the target path point. The step of smoothing the reference reversing path based on the target path point and using the smoothed reference reversing path as the target reversing path includes: smoothing a first sub-path in the reference reversing path based on the target path point to obtain a first optimized sub-path, wherein the first sub-path is the sub-path from the reversing start point to the target path point; and smoothing a second sub-path in the reference reversing path based on the target path point to obtain a second optimized sub-path, wherein the second sub-path is the sub-path from the target path point to the reversing end point. If the first optimized sub-path and the second optimized sub-path meet the corresponding conditions, the target reversing path is obtained based on the first optimized sub-path and the second optimized sub-path. The first optimized sub-path meets the corresponding conditions if the number of path points between the third optimized path point in the first optimized sub-path and the starting point of the first optimized sub-path reaches a threshold. The second optimized sub-path meets the corresponding conditions if the number of path points between the third optimized path point in the second optimized sub-path and the ending point of the second optimized sub-path reaches a threshold.
2. The method according to claim 1, characterized in that, The step of smoothing the first sub-path in the reference reversing path based on the target path point to obtain the first optimized sub-path includes: Based on the target path point and the target radius of curvature, a first optimized path point is obtained, wherein the target radius of curvature is obtained based on the turning angle threshold; Based on the first optimized path point and the preset increase value, the second optimized path point is obtained; Based on the second optimized path point and the radius of curvature corresponding to the second optimized path point, the third optimized path point is obtained; Based on the target path point, the first optimized path point, the second optimized path point, and the third optimized path point, the first optimized sub-path is obtained.
3. The method according to claim 2, characterized in that, The process of obtaining the first optimized path point based on the target path point and the target radius of curvature includes: Based on the target path point and the target radius of curvature, a first reference point is obtained, which is the center of a circle with the target path point as the tangent point and the target radius of curvature as the radius. Based on the first reference point, multiple path points in the first sub-path, and the target radius of curvature, a second reference point is obtained. The second reference point is the path point that is closest to the target path point and whose distance from the first reference point is greater than the target radius of curvature. Based on the first reference point, a third reference point is obtained. The third reference point is the path point in the first sub-path that is closest to the first reference point, and the distance between the third reference point and the target path point is less than the distance between the second reference point and the target path point. Based on the second reference point and the third reference point, a fourth reference point is obtained, which is the midpoint between the second reference point and the third reference point in the first sub-path; The first optimized path point is obtained by extending the target radius of curvature from the first reference point along the first specified direction, where the first specified direction is the direction from the first reference point to the fourth reference point.
4. The method according to claim 3, characterized in that, The process of obtaining the third optimized path point based on the second optimized path point and the radius of curvature corresponding to the second optimized path point includes: Based on the second optimized path point and the radius of curvature corresponding to the second optimized path point, a fifth reference point is obtained. The fifth reference point is the center of a circle with the second optimized path point as the tangent point and the radius of curvature corresponding to the second optimized path point as the radius. Based on the fifth reference point, multiple path points in the first sub-path, and the radius of curvature corresponding to the second optimized path point, the third optimized path point is obtained. The third optimized path point is the path point that is closest to the second reference point and whose distance from the fifth reference point is greater than the radius of curvature corresponding to the second optimized path point.
5. The method according to claim 2, characterized in that, The process of obtaining the second optimized path point based on the first optimized path point and the preset increase value includes: The second optimized path point is obtained by extending a specified length along a second specified direction from the first optimized path point, wherein the specified length is the length corresponding to at least one of the preset amplification values.
6. The method according to claim 2, characterized in that, The process of obtaining the second optimized path point based on the first optimized path point and the preset increase value includes: During the current auxiliary point acquisition process, a reference auxiliary point is obtained based on the previous auxiliary point and the preset radius of curvature corresponding to the current auxiliary point acquisition process. The reference auxiliary point is the center of a circle with the previous auxiliary point as the tangent and the preset radius of curvature as the radius. The preset radius of curvature is greater than the target radius of curvature, and the previous auxiliary point corresponding to the first auxiliary point acquisition process is the first optimized path point. Using the reference auxiliary point as the center, the preset radius of curvature is extended along the first reference direction from the previous auxiliary point by a specified arc length to obtain the auxiliary point in the current auxiliary point acquisition process. The first reference direction is the direction away from the target path point, and the specified arc length is the same as the preset increase value. If the auxiliary point obtained in the current auxiliary point acquisition process is not the last auxiliary point, the process continues to the next auxiliary point acquisition process, and the auxiliary point obtained in the current auxiliary point acquisition process is used as the previous auxiliary point in the next auxiliary point acquisition process, until the last auxiliary point is obtained, and the last auxiliary point is used as the second optimized path point.
7. A path optimization device, characterized in that, The device includes: The data acquisition unit is used to acquire multiple path points in the reference reversing path, wherein the reference reversing path is the same as the trajectory of the vehicle's forward driving path but in the opposite direction. The data processing unit is used to obtain a target path point based on the steering wheel angle corresponding to each of the plurality of path points, wherein the target path point is a path point whose steering wheel angle is greater than a steering angle threshold; The path determination unit is used to smooth the reference reversing path based on the target path point, and use the smoothed reference reversing path as the target reversing path, wherein the steering wheel angle corresponding to the target path point in the target reversing path is less than the angle threshold. Specifically, the data processing unit is used to: obtain the maximum steering wheel angle based on the steering wheel angles corresponding to each of the plurality of path points; if the maximum steering wheel angle is greater than the angle threshold, take the path point corresponding to the maximum steering wheel angle as the target path point; The path determination unit is specifically configured to: perform a smoothing operation on a first sub-path in the reference reversing path based on the target path point to obtain a first optimized sub-path, wherein the first sub-path is a sub-path from the reversing start point to the target path point; perform a smoothing operation on a second sub-path in the reference reversing path based on the target path point to obtain a second optimized sub-path, wherein the second sub-path is a sub-path from the target path point to the reversing end point; if the first optimized sub-path and the second optimized sub-path satisfy corresponding conditions, obtain the target reversing path based on the first optimized sub-path and the second optimized sub-path, wherein the first optimized sub-path satisfies the corresponding conditions including that the number of path points between the third optimized path point in the first optimized sub-path and the start point of the first optimized sub-path reaches a threshold, and the second optimized sub-path satisfies the corresponding conditions including that the number of path points between the third optimized path point in the second optimized sub-path and the end point of the second optimized sub-path reaches a threshold.
8. A vehicle, characterized in that, Includes one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code, wherein the method described in any one of claims 1-6 is executed when the program code is run.
Citation Information
Patent Citations
Vehicle backing tracking method and device, vehicle and storage medium
CN115158294A
Method of determining vehicle travel trajectory, electronic device, storage medium, and vehicle
US20220219730A1
