Vehicle positioning method and obstacle avoidance method in parking process

By combining the extended Kalman filter and obstacle position information, the accuracy of vehicle positioning and reliability of obstacle avoidance in automatic parking are improved, the problem of inaccurate positioning information in the existing technology is solved, and the hardware cost is reduced.

CN118794431APending Publication Date: 2024-10-18HUMAN HORIZONS (SHANGHAI) AUTONOMOUS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310391573.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In existing automatic parking technology, the position information obtained through the fusion of vehicle-mounted sensors and field-side sensors is not accurate enough, resulting in reduced reliability of obstacle avoidance during automatic parking.

Method used

The extended Kalman filter is used to combine the point cloud information and obstacle position information of the vehicle during parking to calculate the observation covariance and gain coefficient, improve the accuracy of vehicle positioning, and determine whether obstacle avoidance is needed through trajectory circle prediction.

Benefits of technology

It improves the accuracy of vehicle positioning information and reliability of obstacle avoidance, while reducing the need for vehicle hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118794431A_ABST
    Figure CN118794431A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle positioning method and an obstacle avoidance method in a parking process. The vehicle positioning method comprises the steps that in the process that a vehicle is parked in a target parking space, observation position information of the vehicle at the current moment and position information of an obstacle on the side of the target parking space in a parking space adjacent to the side of the target parking space are acquired based on point cloud information collected by a field end sensor; calculating the observation covariance of the field end sensor at the current moment by using the position information of the obstacle on the side of the target parking space in the parking space adjacent to the side of the target parking space, and further obtaining the gain coefficient of an extended Kalman filter at the current moment; and performing fusion positioning by using the extended Kalman filter to obtain target position information of the vehicle at the current moment. According to the technical scheme provided by the embodiment of the invention, the accuracy of the position information obtained by carrying out fusion positioning on the vehicle through the vehicle-mounted sensor and the field end sensor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic parking, and in particular to a vehicle positioning method and a method for avoiding obstacles during parking. Background Art

[0002] Automatic parking technology mainly uses on-board sensors and field sensors configured in parking spaces to integrate and locate the vehicle and measure the relative distance, speed and angle between the vehicle and surrounding obstacles. Then, the on-board computing platform or cloud computing platform determines the action that the vehicle should perform based on the vehicle's position information and the relative distance, speed and angle between the vehicle and surrounding obstacles, and controls the vehicle to perform corresponding actions, such as steering and obstacle avoidance.

[0003] However, in the prior art, when the vehicle is positioned by integrating the on-board sensors and the field sensors, the position information obtained is often not accurate enough. Inaccurate position information often reduces the reliability of the vehicle's obstacle avoidance during automatic parking, thereby reducing the reliability of automatic parking. Therefore, how to improve the accuracy of the position information obtained by integrating the on-board sensors and the field sensors has become a problem that needs to be solved in the development of automatic parking. Summary of the invention

[0004] The embodiments of the present application provide a vehicle positioning method and an obstacle avoidance method during parking, so as to improve the accuracy of position information obtained by fusion positioning of the vehicle through on-board sensors and field sensors.

[0005] In a first aspect, an embodiment of the present application provides a vehicle positioning method, comprising:

[0006] When the vehicle is parked in the target parking space, the observation position information of the vehicle at the current moment and the position information of the obstacles on the side of the target parking space in the adjacent parking spaces on the side of the target parking space are obtained based on the point cloud information collected by the field end sensor;

[0007] Using the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space, the observation covariance of the field sensor at the current moment is calculated, and then the gain coefficient of the extended Kalman filter at the current moment is obtained;

[0008] According to the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, the extended Kalman filter is used for fusion positioning to obtain the target position information of the vehicle at the current moment.

[0009] In a second aspect, an embodiment of the present application provides a method for avoiding obstacles during parking, including:

[0010] In the process of parking the vehicle in the target parking space, the position information of the vehicle at multiple times in the current time period is obtained, and based on the position information of the vehicle at multiple times, the trajectory circle corresponding to the vehicle in the current time period is calculated; the position information of the vehicle at multiple times is located by using the vehicle positioning method according to any one of claims 1 to 6;

[0011] The trajectory circle is used to predict the position of the vehicle at the next moment, and whether the vehicle needs to avoid obstacles when driving to the predicted position is determined based on whether the collision constraint conditions are met. The collision constraint conditions include: the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, and the length value of the radius of the trajectory circle is greater than the specified length value; the first obstacle is an obstacle located on the adjacent parking space on the side of the target parking space closer to the center of the circle; the first edge point is the edge point on the first obstacle close to the target parking space; the specified length value is half of the vehicle body width and the sum of the length values ​​of the connecting line between the center of the circle and the first edge point.

[0012] The technical solution of the embodiment of the present application, when the vehicle is parked in the target parking space, the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space will be used to calculate the observation covariance of the field-side sensor at the current moment, and then obtain the gain coefficient of the extended Kalman filter at the current moment. Since the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space is introduced when calculating the observation covariance of the field-side sensor at the current moment, the observation covariance of the field-side sensor calculated at the current moment will be affected by the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space. In the real world, the observation covariance of the field-side sensor at the current moment will inevitably be affected by the lateral obstacle of the target parking space, so when calculating the observation covariance of the field-side sensor at the current moment, the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space is introduced, which can make the observation covariance of the field-side sensor calculated at the current moment more consistent with the actual observation covariance of the field-side sensor in the real world at the current moment. When the calculated observation covariance of the field-side sensor at the current moment is more in line with the actual observation covariance of the field-side sensor in the real world at the current moment, the gain coefficient of the extended Kalman filter at the current moment obtained based on the calculated observation covariance of the field-side sensor at the current moment can be more in line with the actual gain coefficient of the extended Kalman filter in the real world at the current moment.

[0013] When the gain coefficient of the extended Kalman filter obtained at the current moment can be more closely matched to the actual gain coefficient of the extended Kalman filter in the real world at the current moment, the target position information of the vehicle at the current moment is obtained by using the extended Kalman filter for fusion positioning based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, so that the target position information of the vehicle at the current moment can be obtained more accurately, that is, the technical solution of the embodiment of the present application can improve the accuracy of the position information obtained by fusion positioning of the vehicle by the on-board sensor and the field sensor. At the same time, as the accuracy of the target position information of the vehicle at the current moment is improved, the reliability of the vehicle's obstacle avoidance will also be improved during the process of the vehicle parking in the target parking space.

[0014] In addition, when the accuracy of the location information obtained by fusion positioning of the vehicle through on-board sensors and field sensors is high, there is no need to configure on-board sensors on the vehicle for collecting point cloud information to collect point cloud information for assisting vehicle positioning. In order to improve the accuracy of the vehicle's location information, there is no need to configure on-board sensors on the vehicle for collecting point cloud information, which can reduce the hardware cost required for vehicle positioning.

[0015] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.

[0017] Figure 1 A flow chart of a vehicle positioning method provided in an embodiment of the present disclosure;

[0018] Figure 2 A schematic diagram of a parking space provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of a vehicle parking method provided in an embodiment of the present application;

[0020] Figure 4 A flowchart of a method for avoiding obstacles during parking provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a situation in which a vehicle does not need to avoid obstacles when traveling to a predicted position provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.

[0023] The vehicle positioning method provided in the embodiment of the present application is as follows: Figure 1 As shown, it is a flow chart of a vehicle positioning method provided in an embodiment of the present disclosure. Figure 1 The vehicle positioning method shown may include the following steps:

[0024] Step S101: When a vehicle is parked in a target parking space, based on the point cloud information collected by the field sensor, the observed position information of the vehicle at the current moment and the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space are obtained.

[0025] Step S102: using the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space, the observation covariance of the field sensor at the current moment is calculated, and then the gain coefficient of the extended Kalman filter at the current moment is obtained.

[0026] Step S103: Based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, the extended Kalman filter is used for fusion positioning to obtain the target position information of the vehicle at the current moment.

[0027] The vehicle positioning method provided in the embodiment of the present application, when the vehicle is parked in the target parking space, will use the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space to calculate the observation covariance of the field-side sensor at the current moment, and then obtain the gain coefficient of the extended Kalman filter at the current moment. Since the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space is introduced when calculating the observation covariance of the field-side sensor at the current moment, the observation covariance of the field-side sensor calculated at the current moment will be affected by the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space. In the real world, the observation covariance of the field-side sensor at the current moment will inevitably be affected by the lateral obstacle of the target parking space, so when calculating the observation covariance of the field-side sensor at the current moment, the position information of the lateral obstacle of the target parking space in the adjacent parking space on the side of the target parking space is introduced, which can make the observation covariance of the field-side sensor calculated at the current moment more consistent with the actual observation covariance of the field-side sensor in the real world at the current moment. When the calculated observation covariance of the field-side sensor at the current moment is more in line with the actual observation covariance of the field-side sensor in the real world at the current moment, the gain coefficient of the extended Kalman filter at the current moment obtained based on the calculated observation covariance of the field-side sensor at the current moment can be more in line with the actual gain coefficient of the extended Kalman filter in the real world at the current moment.

[0028] When the gain coefficient of the extended Kalman filter obtained at the current moment can be more closely matched to the actual gain coefficient of the extended Kalman filter in the real world at the current moment, the target position information of the vehicle at the current moment is obtained by fusion positioning using the extended Kalman filter based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, so that the target position information of the vehicle at the current moment can be obtained more accurately. That is to say, the vehicle positioning method provided in the embodiment of the present application can improve the accuracy of the position information obtained by fusion positioning of the vehicle through the on-board sensor and the field sensor. At the same time, as the accuracy of the target position information of the vehicle at the current moment is improved, the reliability of the vehicle's obstacle avoidance will also be improved during the process of the vehicle parking in the target parking space.

[0029] In addition, when the accuracy of the location information obtained by fusion positioning of the vehicle through on-board sensors and field sensors is high, there is no need to configure on-board sensors on the vehicle for collecting point cloud information to collect point cloud information for assisting vehicle positioning. In order to improve the accuracy of the vehicle's location information, there is no need to configure on-board sensors on the vehicle for collecting point cloud information, which can reduce the hardware cost required for vehicle positioning.

[0030] In the embodiment of the present application, the field-side sensor is a laser radar, a laser scanner, etc. configured in the parking place. In one example, the field-side sensor is a laser radar configured in an underground parking lot. The extended Kalman filter (Extended Kalman Filter, EKF) is a highly efficient recursive filter (autoregressive filter). The vehicle-mounted sensor includes a vehicle-mounted wheel speed sensor or an inertial measurement unit (Inertial Measurement Unit, IMU), etc. Generally, the vehicle-mounted sensor is a vehicle-mounted wheel speed sensor or an inertial measurement unit. When the vehicle-mounted sensor is a vehicle-mounted wheel speed sensor, the information collected by the vehicle-mounted sensor (vehicle-mounted wheel speed sensor) is the wheel speed pulse information of the vehicle. When the vehicle-mounted sensor is an inertial measurement unit, the information collected by the vehicle-mounted sensor (inertial measurement unit) is the angular velocity and acceleration of the vehicle.

[0031] The target parking space refers to the parking space where the vehicle is to be parked. The adjacent parking space on the side of the target parking space may refer to the parking space located on the side of the target parking space and adjacent to the target parking space, including at least one of the parking space located on the left side of the target parking space and adjacent to the target parking space, and the parking space located on the right side of the target parking space and adjacent to the target parking space. Correspondingly, the lateral obstacle of the target parking space may refer to the obstacle located in the adjacent parking space on the side of the target parking space, including at least one of the obstacle located in the adjacent parking space on the left side of the target parking space and the obstacle located in the adjacent parking space on the right side of the target parking space. Specifically, Figure 2 As shown, if parking space 209 is the target parking space, parking space 208 is the parking space adjacent to the left side of the target parking space, and parking space 210 is the parking space adjacent to the right side of the target parking space. Accordingly, the obstacle in parking space 208 is the obstacle on the left side of the target parking space, and the obstacle in parking space 210 is the obstacle on the right side of the target parking space.

[0032] The lateral obstacle of the target parking space generally refers to a vehicle, and may also refer to other objects located in the adjacent parking spaces to the side of the target parking space. The following specifically takes the adjacent parking spaces to the side of the target parking space including the adjacent parking spaces to the left of the target parking space and the adjacent parking spaces to the right of the target parking space, and the lateral obstacles of the target parking space including the obstacles to the left of the target parking space and the obstacles to the right of the target parking space as an example to describe in detail the vehicle positioning method provided in the embodiment of the present application.

[0033] When obtaining the observed position information of the vehicle at the current moment and the position information of the lateral obstacle of the target parking space in the adjacent parking space to the side of the target parking space based on the point cloud information collected by the field-side sensor, the three-dimensional coordinates of the vehicle in the three-dimensional coordinate system can be first read from the point cloud information, and the observed position information of the vehicle at the current moment can be determined based on the three-dimensional coordinates of the vehicle in the three-dimensional coordinate system. Then, the three-dimensional coordinates of the lateral obstacle of the target parking space and the three-dimensional coordinates of the adjacent parking space to the side of the target parking space can be determined respectively, and the position information of the lateral obstacle of the target parking space in the adjacent parking space to the side of the target parking space can be determined based on the three-dimensional coordinates of the lateral obstacle of the target parking space and the three-dimensional coordinates of the adjacent parking space to the side of the target parking space.

[0034] In a possible implementation, when using the position information of the lateral obstacle of the target parking space in the lateral adjacent parking space of the target parking space to calculate the observation covariance of the field-side sensor at the current moment and then obtain the gain coefficient of the extended Kalman filter at the current moment, the position information of the lateral obstacle of the target parking space in the lateral adjacent parking space of the target parking space can be first used to calculate the straight-line distance of the lateral obstacle of the target parking space from the far side of the lateral adjacent parking space of the target parking space in the parking space width direction, and the straight-line distance of the lateral obstacle of the target parking space from the rear side of the lateral adjacent parking space of the target parking space in the parking space length direction. Then, based on the straight-line distance of the lateral obstacle of the target parking space from the far side of the lateral adjacent parking space of the target parking space in the parking space width direction, and the straight-line distance of the lateral obstacle of the target parking space from the rear side of the lateral adjacent parking space of the target parking space in the parking space length direction, the observation covariance of the field-side sensor at the current moment is calculated.

[0035] The observation covariance of the field-side sensor at the current moment includes the observation covariance of the field-side sensor in the parking space width direction at the current moment and the observation covariance of the field-side sensor in the parking space length direction at the current moment. In one example, the observation covariance of the field-side sensor at the current moment can be calculated using the following formula:

[0036]

[0037] Among them, the adjacent parking spaces on the side of the target parking space include the adjacent parking spaces on the left side of the target parking space and the adjacent parking spaces on the right side of the target parking space, and the lateral obstacles of the target parking space include the obstacles on the left side of the target parking space and the obstacles on the right side of the target parking space. R is used to represent the observation covariance of the field-side sensor at the current moment, δ1 is used to represent the observation covariance of the field-side sensor in the width direction of the parking space at the current moment, δ2 is used to represent the observation covariance of the field-side sensor in the length direction of the parking space at the current moment, and δ x It is used to represent the initial observation covariance of the field sensor in the parking space width direction at the current moment, δ yIt is used to represent the initial observation covariance of the field sensor in the direction of the parking space length at the current moment, k1 is used to represent the weight set for the adjacent parking space on the right side of the target parking space, f1 is used to represent the straight-line distance from the right side of the obstacle on the right side of the target parking space to the right side of the adjacent parking space on the right side of the target parking space in the parking space width direction, k2 is used to represent the weight set for the adjacent parking space on the left side of the target parking space, f2 is used to represent the straight-line distance from the left side of the obstacle on the left side of the target parking space to the left side of the adjacent parking space on the left side of the target parking space in the parking space width direction, g1 is used to represent the straight-line distance from the right side of the obstacle on the target parking space to the rear side of the adjacent parking space on the right side of the target parking space in the parking space length direction, g2 is used to represent the straight-line distance from the left side of the obstacle on the left side of the target parking space to the rear side of the adjacent parking space on the left side of the target parking space in the parking space length direction, k1+k2=1.

[0038] In addition, when the side obstacles of the target parking space only include the obstacles on the left side of the target parking space, k1, f1, and g1 in the above formula can be set to 0, and k2 can be set to 1. Correspondingly, when the side obstacles of the target parking space only include the obstacles on the right side of the target parking space, k2, f2, and g2 in the above formula can be set to 0, and k1 can be set to 1.

[0039] k1 and k2 are generally set by relevant personnel based on prior values. At the same time, in the process of setting k1 and k2, it is necessary to ensure that k1 and k2 meet the following constraints: when the vehicle is parked from the right front of the target parking space to the target parking space, it is necessary to ensure that k1>k2. When the vehicle is parked from the left front of the target parking space to the target parking space, it is necessary to ensure that k1 <k2。

[0040] In addition, δ x and δ y It is generally determined based on radar parameters calibrated by field-side sensors.

[0041] In one example, the parking space width direction, the parking space length direction, the left side, the right side, the front side, and the rear side are as follows: Figure 3 As shown, it shows a schematic diagram of a vehicle parking provided in an embodiment of the present application. Figure 3 The parking space 209 is the target parking space, the parking space 208 is the parking space adjacent to the left side of the target parking space, and the parking space 210 is the parking space adjacent to the right side of the target parking space. Figure 3 The obstacles on the left side of the target parking space and the obstacles on the right side of the target parking space shown in are all other vehicles. Figure 3 Also shown are f1, f2, g1 and g2.

[0042] In the embodiment of the present application, the positioning formula based on which the extended Kalman filter is used for fusion positioning is as follows:

[0043]

[0044] in, Used to indicate the target position of the vehicle at the current moment. It is used to represent the predicted position of the vehicle at the current moment, K t Used to represent the gain coefficient of the extended Kalman filter at the current moment, z t It is used to indicate the observed position information of the vehicle at the current moment, and H is used to indicate the Convert to z t The data conversion matrix of the data with the same dimension is set. Therefore, when using the extended Kalman filter for fusion positioning, it is necessary to first obtain the gain coefficient of the extended Kalman filter at the current moment.

[0045] In a possible implementation, the gain coefficient of the extended Kalman filter at the current moment is obtained by first obtaining the predicted covariance of the vehicle-mounted sensor at the current moment, and then calculating the gain coefficient of the extended Kalman filter at the current moment based on the predicted covariance of the vehicle-mounted sensor at the current moment and the observed covariance of the field-side sensor at the current moment. The predicted covariance of the vehicle-mounted sensor at the current moment can be calculated according to a predetermined predicted covariance calculation formula.

[0046] In addition, when the extended Kalman filter is used for fusion positioning based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, after obtaining the above data, the above data is substituted into the above positioning formula The target position information of the vehicle at the current moment can be calculated.

[0047] In addition, since it is necessary to use the extended Kalman filter for fusion positioning based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensors, therefore, before using the extended Kalman filter for fusion positioning to obtain the target position information of the vehicle at the current moment, it is also necessary to first obtain the predicted position information of the vehicle at the current moment based on the on-board sensors. Specifically, the target position information of the vehicle at the previous moment can be obtained first, and then, based on the target position information of the vehicle at the previous moment and the information collected by the on-board sensors, the predicted position information of the vehicle at the current moment can be obtained.

[0048] In one example, the vehicle-mounted sensor includes a vehicle-mounted wheel speed sensor. At this time, based on the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor, the predicted position information of the vehicle at the current moment is obtained, which means that based on the target position information of the vehicle at the previous moment and the wheel speed pulse information of the vehicle collected by the vehicle-mounted wheel speed sensor, the predicted position information of the vehicle at the current moment is obtained. Specifically, the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor can be input into the wheel speed model, and then the predicted position information of the vehicle at the current moment is calculated based on the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor according to the wheel speed model.

[0049] In another example, the vehicle-mounted sensor includes an inertial measurement unit. In this case, based on the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor, the predicted position information of the vehicle at the current moment is obtained, which means that based on the target position information of the vehicle at the previous moment and the angular velocity and acceleration of the vehicle collected by the inertial measurement unit, the predicted position information of the vehicle at the current moment is obtained. Specifically, the target position information of the vehicle at the previous moment and the angular velocity and acceleration of the vehicle collected by the inertial measurement unit can be input into the differential motion model, and then, according to the differential motion model, the predicted position information of the vehicle at the current moment is calculated based on the target position information of the vehicle at the previous moment and the angular velocity and acceleration of the vehicle collected by the inertial measurement unit. It should be noted that the vehicle-mounted sensor in the embodiment of the present application can be other types of sensors in addition to the vehicle-mounted wheel speed sensor or the inertial measurement unit, and the type of the vehicle-mounted wheel speed sensor is not specifically limited in the embodiment of the present application.

[0050] Corresponding to the vehicle positioning method provided in the embodiment of the present application, the embodiment of the present application also provides a method for avoiding obstacles during parking, such as Figure 4 As shown, it is a flowchart of a method for avoiding obstacles during parking provided in an embodiment of the present disclosure. Figure 4 The method for avoiding obstacles during parking may include the following steps:

[0051] Step S401: When the vehicle is parked in the target parking space, the position information of the vehicle at multiple times in the current time period is obtained, and based on the position information of the vehicle at multiple times, the trajectory circle corresponding to the vehicle in the current time period is calculated; the position information of the vehicle at multiple times is located using the vehicle positioning method provided in the present application.

[0052] Step S402: Use the trajectory circle to predict the position of the vehicle at the next moment, and determine whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint conditions are met. The collision constraint conditions include: the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, and the length value of the radius of the trajectory circle is greater than the specified length value; the first obstacle is an obstacle located on the side of the target parking space that is closer to the center of the circle; the first edge point is the edge point of the first obstacle close to the target parking space; the specified length value is half of the vehicle body width value and the sum of the length values ​​of the connecting line between the center of the circle and the first edge point.

[0053] The obstacle avoidance method during parking provided in an embodiment of the present application first uses the trajectory circle corresponding to the vehicle in the current time period to predict the position of the vehicle at the next moment when the vehicle is parked in the target parking space. Then, it further determines whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraints are met.

[0054] Since the collision constraint condition includes that the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, and the length value of the radius of the trajectory circle is greater than the specified length value, when the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, if the length value of the radius of the trajectory circle is greater than the specified length value, it indicates that the vehicle has a certain spacing distance with the first edge point when driving to the predicted position, that is, the vehicle will not collide with the first edge point when driving to the predicted position. In this case, it can be determined that the vehicle does not need to avoid obstacles when driving to the predicted position, and if the length value of the radius of the trajectory circle is not greater than the specified length value, it indicates that the distance interval between the vehicle and the first edge point when driving to the predicted position is less than or equal to 0, that is, the vehicle will collide with the first edge point when driving to the predicted position. In this case, it can be determined that the vehicle needs to avoid obstacles when driving to the predicted position. Therefore, based on the collision constraint condition, it can be simply, directly and quickly determined whether the vehicle needs to avoid obstacles when driving to the predicted position.

[0055] In addition, since the position information of the vehicle at multiple times used in calculating the trajectory circle is obtained by using the vehicle positioning method provided by the present application, and the vehicle positioning method provided by the present application can more accurately locate the position information of the vehicle, the trajectory circle can be more closely aligned with the actual trajectory circle corresponding to the vehicle in the real world within the current time period. At this time, the trajectory circle corresponding to the vehicle within the current time period is first used to predict the position of the vehicle at the next moment. Then, whether the vehicle needs to avoid obstacles when driving to the predicted position will be further determined based on whether the collision constraints are met, which can make the obstacle avoidance prediction more accurate.

[0056] In the embodiment of the present application, obstacle avoidance prediction is continuously performed during the process of the vehicle parking in the target parking space, and the prediction time interval of each obstacle avoidance prediction can be preset according to the demand, for example, the prediction time interval can be 3 seconds, 5 seconds or 10 seconds, etc. The current time period corresponds to the prediction time interval, for example, if the prediction time interval is 5 seconds, then obtaining the position information of the vehicle at multiple times in the current time period means obtaining the position information of the vehicle at multiple times in 5 seconds, and for another example, if the prediction time interval is 10 seconds, then obtaining the position information of the vehicle at multiple times in the current time period means obtaining the position information of the vehicle at multiple times in 10 seconds.

[0057] In the embodiment of the present application, during the process of parking the vehicle in the target parking space, the vehicle needs to be continuously positioned according to the vehicle positioning method provided by the present application, and the positioning time interval for each vehicle positioning can be preset according to the demand, for example, the positioning time interval can be 0.5 seconds, 1 second or 2 seconds, etc. If the prediction time interval is 5 seconds and the positioning time interval is 1 second, the location information of the vehicle at 5 moments can be obtained in the current time period, for example, the location information of the vehicle at 10:01 seconds, the location information of the vehicle at 10:02 seconds, the location information of the vehicle at 10:03 seconds, the location information of the vehicle at 10:04 seconds, and the location information of the vehicle at 10:05 seconds.

[0058] It should be noted that since at least three points are required to determine a circle, in order to determine the trajectory circle corresponding to the vehicle in the current time period, it is necessary to ensure that the position information of the vehicle at multiple times is the position information of the vehicle at at least three times.

[0059] In addition, when determining a circle based on points, the more points given, the higher the accuracy of the determined circle. Therefore, in order to improve the accuracy of the trajectory circle, the position information of the vehicle at multiple moments is often set to at least 10 moments. At the same time, it should be noted that in the embodiment of the present application, the multiple moments are only limited to at least 3, and the specific number of the multiple moments is not limited. The multiple moments can be continuous moments or discontinuous moments. In practical applications, it can be pre-set according to the accuracy requirements of the trajectory circle.

[0060] In addition, in order to determine the trajectory circle, in the embodiment of the present application, it is also necessary to pre-eliminate unreasonable position information of the vehicle at multiple times in the current time period before determining the trajectory circle.

[0061] The following specifically describes the calculation process of the trajectory circle by taking the calculation of the trajectory circle corresponding to the vehicle in the current time period based on the position information of the vehicle at three moments as an example. At this time, the calculation process of the trajectory circle is as follows:

[0062] Step 1: First, assume that the coordinates of the center R are (x, y) and the radius is r.

[0063] Step 2: Select three location information from the location information of multiple historical moments, and obtain the coordinates A (x1, y1), B (x2, y2) and C (x3, y3) corresponding to the three location information.

[0064] Step 3: Substitute A(x1, y1), B(x2, y2) and C(x3, y3) into the following formulas to solve for x, y and r. The formulas are as follows:

[0065]

[0066] After calculating the coordinates of the center R as (x, y) and the radius as r, the corresponding trajectory circle can be determined.

[0067] In one example, a vehicle parks in the target parking space from the right side of the target parking space. In the process of parking in the target parking space from the right side of the target parking space, the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle means that the center of the trajectory circle and the first edge point of the first obstacle are both located on the right side of the vehicle, and the center is to the right of the first edge point, and the lateral adjacent parking space of the target parking space that is closer to the center of the circle refers to the adjacent parking space to the right of the target parking space, that is, the first obstacle is an obstacle located on the adjacent parking space to the right of the target parking space.

[0068] In an embodiment of the present application, when determining whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint condition is met, if the collision constraint condition is met, it is determined that the vehicle does not need to avoid obstacles when driving to the predicted position (that is, the vehicle will not collide with the first obstacle when driving to the predicted position), otherwise, it is determined that the vehicle needs to avoid obstacles when driving to the predicted position (that is, the vehicle will collide with the first obstacle when driving to the predicted position). Specifically, if the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, and the length value of the radius of the trajectory circle is greater than the specified length value, it is determined that the vehicle does not need to avoid obstacles when driving to the predicted position, and if the center of the trajectory circle and the first edge point of the first obstacle are not located on the same side of the vehicle and farther away from the vehicle, or the length value of the radius of the trajectory circle is not greater than the specified length value, it is determined that the vehicle needs to avoid obstacles when driving to the predicted position.

[0069] Please refer to Figure 5 , Figure 5 A schematic diagram showing a situation where the vehicle does not need to avoid obstacles when traveling to the predicted position. Figure 5The figure shows the process of a vehicle parking from the right side of a target parking space to the target parking space. In this process, the positions of the vehicle at multiple times in the current time period are position ①, position ②, and position ③, and positions ①, position ②, position ③, and position ④ are all on the trajectory circle calculated based on the position information corresponding to positions ①, position ②, and position ③. Among them, position ④ is used to represent the position of the vehicle at the next moment, and Figure 5 Only a portion of the arc of the trajectory circle is shown.

[0070] like Figure 5 As shown, in the process of the vehicle parking from the right side of the target parking space to the target parking space, when the center R and the first edge point (edge ​​point C) of the first obstacle are both located on the right side of the vehicle, and the center R is located on the right side of the edge point C, if the length value of the radius r is determined to be greater than the specified length value, it can be determined that the vehicle has a certain spacing distance from the edge point C when driving to position ④, that is, it can be determined that the vehicle does not need to avoid obstacles when driving to position ④ (that is, the vehicle will not collide with the first obstacle when driving to the predicted position). Among them, the length value of r is equal to the length value of the line segment RK, K is a point on the central axis of the vehicle, and the specified length value is half of the vehicle body width value and the sum of the length values ​​of the connecting line of the center R and the edge point C.

[0071] Generally, edge point C refers to the edge point in front of the left side of the first obstacle. When edge point C is the edge point in front of the left side of the first obstacle, the vehicle has a certain distance from edge point C when it travels to position ④. Generally, it means that the edge point behind the right side of the vehicle (edge ​​point B) has a certain distance from edge point C, that is, edge point B will not collide with edge point C.

[0072] It should be noted that, when there is an obstacle on the side adjacent to the target parking space that is farther away from the center of the circle (referred to as the second obstacle), the collision constraint condition also includes that the vehicle does not collide with the second edge point of the second obstacle, wherein the second obstacle is the obstacle on the side adjacent to the target parking space that is farther away from the center of the circle; and the second edge point is the edge point on the second obstacle close to the target parking space.

[0073] That is to say, when the first obstacle and the second obstacle exist at the same time, determining whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint condition is satisfied means that if the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, the length value of the radius of the trajectory circle is greater than the specified length value, and the vehicle does not collide with the second edge point of the second obstacle, then it is determined that the vehicle does not need to avoid obstacles when driving to the predicted position (that is, the vehicle will not collide with the first obstacle or the second obstacle when driving to the predicted position), and if the center of the trajectory circle and the first edge point of the first obstacle are not located on the same side of the vehicle and farther away from the vehicle, the length value of the radius of the trajectory circle is not greater than the specified length value, or the vehicle collides with the second edge point of the second obstacle, then it is determined that the vehicle needs to avoid obstacles when driving to the predicted position (that is, the vehicle will collide with the first obstacle or the second obstacle when driving to the predicted position).

[0074] Please refer to Figure 5 , in the case where there is still a second obstacle, if the vehicle will not collide with the first obstacle when traveling to the predicted position (position ④), it is necessary to further determine that the vehicle will not collide with the second edge point (edge ​​point D) of the second obstacle (that is, determine that the vehicle will not collide with the second obstacle when traveling to the predicted position). Only when the vehicle will not collide with the first obstacle and will not collide with the second obstacle when traveling to the predicted position (position ④), can it be determined that the vehicle does not need to avoid obstacles when traveling to the predicted position.

[0075] Generally, edge point D refers to the edge point in front of the right side of the second obstacle. When edge point D is the edge point in front of the right side of the second obstacle, the vehicle does not collide with edge point D, which means that the edge point behind the left side of the vehicle (edge ​​point A) has a certain spacing distance from edge point D, that is, the distance interval a between edge point A and edge point D is greater than 0.

[0076] It should be noted that in the embodiment of the present application, an obstacle avoidance predicted stop position is also pre-configured. After the trajectory circle is used to predict the position of the vehicle at the next moment and the predicted position is obtained, it can be determined whether the predicted position reaches the obstacle avoidance predicted stop position. Only when the predicted position does not reach the obstacle avoidance predicted stop position, it is further determined whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint condition is met. Among them, the obstacle avoidance predicted stop position refers to the position where the vehicle is unlikely to collide with the side obstacle.

[0077] In addition, after determining whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint condition is satisfied, a corresponding control instruction may be sent to the vehicle to control the vehicle to perform a corresponding action. Specifically, if it is determined that the vehicle does not need to avoid obstacles when driving to the predicted position, a control instruction to continue parking is sent to the vehicle to control the vehicle to continue parking, and if it is determined that the vehicle needs to avoid obstacles when driving to the predicted position, a control instruction to avoid obstacles is sent to the vehicle to control the vehicle to avoid obstacles.

[0078] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0079] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A vehicle positioning method, characterized in that: include: When the vehicle is parked in the target parking space, the observation position information of the vehicle at the current moment and the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space are obtained based on the point cloud information collected by the field end sensor; Using the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space, the observation covariance of the field-side sensor at the current moment is calculated, and then the gain coefficient of the extended Kalman filter at the current moment is obtained; Based on the gain coefficient of the extended Kalman filter at the current moment, the observed position information of the vehicle at the current moment, and the predicted position information of the vehicle at the current moment obtained based on the on-board sensor, the extended Kalman filter is used for fusion positioning to obtain the target position information of the vehicle at the current moment.

2. The method according to claim 1, characterized in that The calculating the observation covariance of the field-side sensor at the current moment by using the position information of the obstacle on the side of the target parking space in the adjacent parking space on the side of the target parking space includes: Using the position information of the lateral obstacle of the target parking space in the lateral adjacent parking space of the target parking space, the straight-line distance of the lateral obstacle of the target parking space from the far side edge of the lateral adjacent parking space of the target parking space in the parking space width direction, and the straight-line distance of the lateral obstacle of the target parking space from the rear side edge of the lateral adjacent parking space of the target parking space in the parking space length direction are calculated; Based on the straight-line distance of the lateral obstacle of the target parking space from the far side of the adjacent parking space on the side of the target parking space in the parking space width direction, and the straight-line distance of the lateral obstacle of the target parking space from the rear side of the adjacent parking space on the side of the target parking space in the parking space length direction, the observation covariance of the field-side sensor at the current moment is calculated.

3. The method according to claim 2, characterized in that The observation covariance of the field-side sensor at the current moment includes: the observation covariance of the field-side sensor in the parking space width direction at the current moment, and the observation covariance of the field-side sensor in the parking space length direction at the current moment; the observation covariance of the field-side sensor at the current moment is calculated based on the straight-line distance of the target parking space side obstacle from the far side of the target parking space side adjacent parking space in the parking space width direction, and the straight-line distance of the target parking space side obstacle from the rear side of the target parking space side adjacent parking space in the parking space length direction, including: The observation covariance of the field-side sensor at the current moment is calculated using the following formula: Among them, the adjacent parking spaces on the side of the target parking space include the adjacent parking spaces on the left side of the target parking space and the adjacent parking spaces on the right side of the target parking space, the lateral obstacles of the target parking space include the obstacles on the left side of the target parking space and the obstacles on the right side of the target parking space, R is used to represent the observation covariance of the field-side sensor at the current moment, δ1 is used to represent the observation covariance of the field-side sensor in the width direction of the parking space at the current moment, δ2 is used to represent the observation covariance of the field-side sensor in the length direction of the parking space at the current moment, δ x It is used to represent the initial observation covariance of the field sensor in the parking space width direction at the current moment, δ y It is used to represent the initial observation covariance of the field sensor in the direction of the parking space length at the current moment, k1 is used to represent the weight set for the adjacent parking space on the right side of the target parking space, f1 is used to represent the straight-line distance from the right side of the obstacle on the right side of the target parking space to the right side of the adjacent parking space on the right side of the target parking space in the parking space width direction, k2 is used to represent the weight set for the adjacent parking space on the left side of the target parking space, f2 is used to represent the straight-line distance from the left side of the obstacle on the left side of the target parking space to the left side of the adjacent parking space on the left side of the target parking space in the parking space width direction, g1 is used to represent the straight-line distance from the right side of the obstacle on the target parking space to the rear side of the adjacent parking space on the right side of the target parking space in the parking space length direction, g2 is used to represent the straight-line distance from the left side of the obstacle on the left side of the target parking space to the rear side of the adjacent parking space on the left side of the target parking space in the parking space length direction, k1+k2=1.

4. The method according to claim 1, characterized in that: The gain coefficient of the extended Kalman filter at the current moment is obtained in the following manner: Obtaining the predicted covariance of the vehicle-mounted sensor at the current moment; Based on the predicted covariance of the vehicle-mounted sensor at the current moment and the observed covariance of the field-side sensor at the current moment, the gain coefficient of the extended Kalman filter at the current moment is calculated.

5. The method according to claim 1, characterized in that Before using the extended Kalman filter to perform fusion positioning to obtain the target position information of the vehicle at the current moment, the method further includes: Obtaining target position information of the vehicle at the last moment; Based on the target position information of the vehicle at the previous moment and the information collected by the on-board sensor, the predicted position information of the vehicle at the current moment is obtained.

6. The method according to claim 5, characterized in that The vehicle-mounted sensor includes a vehicle-mounted wheel speed sensor; the predicted position information of the vehicle at the current moment is obtained based on the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor, including: Based on the target position information of the vehicle at the previous moment and the wheel speed pulse information of the vehicle collected by the on-board wheel speed sensor, the predicted position information of the vehicle at the current moment is obtained.

7. The method according to claim 5, characterized in that The vehicle-mounted sensor includes an inertial measurement unit; the predicted position information of the vehicle at the current moment is obtained based on the target position information of the vehicle at the previous moment and the information collected by the vehicle-mounted sensor, including: Based on the target position information of the vehicle at the previous moment and the angular velocity and acceleration of the vehicle collected by the inertial measurement unit, the predicted position information of the vehicle at the current moment is obtained.

8. A method for avoiding obstacles during parking, characterized in that: include: In the process of parking the vehicle in the target parking space, the position information of the vehicle at multiple times in the current time period is obtained, and based on the position information of the vehicle at multiple times, the trajectory circle corresponding to the vehicle in the current time period is calculated; the position information of the vehicle at multiple times is located by using the vehicle positioning method according to any one of claims 1 to 6; The trajectory circle is used to predict the position of the vehicle at the next moment, and whether the vehicle needs to avoid obstacles when driving to the predicted position is determined based on whether collision constraints are met. The collision constraints include: the center of the trajectory circle and the first edge point of the first obstacle are located on the same side of the vehicle and farther away from the vehicle, and the length value of the radius of the trajectory circle is greater than a specified length value; the first obstacle is an obstacle located on the side of the target parking space that is closer to the center of the circle; the first edge point is an edge point on the first obstacle close to the target parking space; the specified length value is half of the vehicle body width value and the sum of the length values ​​of the connecting line between the center of the circle and the first edge point.

9. The method according to claim 8, characterized in that The determining whether the vehicle needs to avoid obstacles when driving to the predicted position based on whether the collision constraint condition is satisfied includes: When the collision constraint condition is met, it is determined that the vehicle does not need to avoid obstacles when traveling to the predicted position.

10. The method according to claim 8 or 9, characterized in that: The collision constraint condition also includes: the vehicle does not collide with the second edge point of the second obstacle; the second obstacle is an obstacle located on the side adjacent to the target parking space further away from the center of the circle; the second edge point is an edge point on the second obstacle close to the target parking space.