Vehicle parking method and device, electronic equipment and storage medium

By updating the heading angle during the parking process of the vehicle and using the second environment sensing information to improve the accuracy of vehicle parking, the parking inaccuracy problem caused by the limited sensor detection range is solved and obstacle collision is avoided.

CN118529036APending Publication Date: 2024-08-23CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410812420.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the scenario where a vehicle automatically parks into an ultrasonic parking space, due to the limited detection range of the sensor, the obstacle information output by the sensor is inaccurate, resulting in a mismatch between the vehicle's parking position and attitude and the ultrasonic parking space, and it is easy to collide with surrounding obstacles.

Method used

By collecting the first environment sensing information for the first time during the vehicle parking process, the second environment sensing information is collected again, the initial heading angle is updated as the target heading angle according to the second environment sensing information, and the target heading angle is used to park the vehicle, improving parking efficiency. input accuracy.

Benefits of technology

It improves the accuracy of parking the vehicle into the ultrasonic parking space, makes the parking posture of the vehicle more consistent with the posture of the ultrasonic parking space, and avoids collision with obstacles around the ultrasonic parking space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118529036A
    Figure CN118529036A
Patent Text Reader

Abstract

The invention relates to a vehicle parking method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining first environment perception information collected when a vehicle is parked in an ultrasonic parking space, and determining an initial course angle based on the first environment perception information; acquiring second environment sensing information acquired when the vehicle is parked in the ultrasonic parking space according to the initial course angle, wherein the acquisition time of the second environment sensing information is later than the acquisition time of the first environment sensing information; updating the initial course angle to a target course angle based on the second environment perception information; and parking the vehicle in the ultrasonic parking space according to the target course angle. According to the embodiment of the invention, the accuracy of ultrasonic parking space parking of the vehicle can be improved, the parking posture of the vehicle is more matched with the posture of the ultrasonic parking space, and the vehicle is prevented from colliding with obstacles around the ultrasonic parking space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving, and in particular to a vehicle parking method, device, electronic device and storage medium. Background Art

[0002] With the development of the automobile industry, more and more families own cars, and the difficulty of parking comes with it. Intelligent parking systems have emerged. With the rapid increase in the number of cars, the resources of standardized parking spaces have become tight. Therefore, ultrasonic parking based on non-drawing lines will be more popular with users in this environment.

[0003] The vehicle plans its path based on the perception information, and the parking target posture is one of the foundations of path planning. The accuracy of its calculation affects the parking effect. In the scenario where the vehicle automatically parks in an ultrasonic parking space, the obstacle information output by the sensor may be inaccurate due to the limited detection range of the sensor, resulting in the mismatch between the parking position and the ultrasonic parking space, which in turn makes it difficult for the vehicle to park in the ultrasonic parking space and the vehicle is prone to collision with obstacles around the ultrasonic parking space. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a vehicle parking method, device, electronic device and storage medium.

[0005] In a first aspect, the present application provides a vehicle parking method, comprising:

[0006] Acquire first environmental perception information collected when the vehicle is parked in the ultrasonic parking space, and determine an initial heading angle based on the first environmental perception information;

[0007] Acquire second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, where the second environment perception information is collected later than the first environment perception information;

[0008] Updating the initial heading angle to a target heading angle based on the second environment perception information;

[0009] The vehicle is parked in the ultrasonic parking space according to the target heading angle.

[0010] Optionally, updating the initial heading angle to a target heading angle based on the second environment perception information includes:

[0011] Extracting side obstacle information of obstacles located on the side of the vehicle from the second environment perception information;

[0012] Determining the side obstacle type of the ultrasonic parking space based on the side obstacle information;

[0013] Determining the target heading angle based on the side obstacle type;

[0014] The initial heading angle is updated to the target heading angle.

[0015] Optionally, determining the target heading angle based on the side obstacle type includes:

[0016] If the side obstacle type is a unilateral side obstacle type, determining a reference heading angle based on the side obstacle information;

[0017] The target heading angle is determined based on the reference heading angle.

[0018] Optionally, determining the target heading angle based on the side obstacle type includes:

[0019] If the side obstacle type is a bilateral side obstacle type, for each side obstacle information on one side, determining a reference heading angle based on the side obstacle information;

[0020] The target heading angle is determined based on the average of the reference heading angles.

[0021] Optionally, determining the reference heading angle based on the side obstacle information includes:

[0022] The side obstacle information is screened according to preset rules to obtain target obstacle information;

[0023] The reference heading angle is determined based on the target obstacle information.

[0024] Optionally, the side obstacle information is screened according to a preset rule to obtain target obstacle information, including:

[0025] Projecting all first obstacle line segments in the side obstacle information into a parking coordinate system to obtain a plurality of second obstacle line segments;

[0026] Screening a second obstacle line segment that does not meet a preset direction condition from a plurality of second obstacle line segments;

[0027] The side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information.

[0028] Optionally, the side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information, including:

[0029] Acquire a first obstacle line segment of a plurality of obstacles whose distances from the vehicle to the obstacle are less than a preset distance threshold in the side obstacle information;

[0030] Based on the second obstacle line segment that does not meet the preset direction condition, among the first obstacle line segments whose distances from the obstacles to the vehicle are less than a preset distance threshold, the corresponding first obstacle line segment is eliminated;

[0031] The remaining first obstacle line segments among the first obstacle line segments whose distances from the multiple obstacles to the vehicle are less than a preset distance threshold are determined as the target obstacle information.

[0032] Optionally, determining the reference heading angle based on the target obstacle information includes:

[0033] Linear fitting is performed on the first obstacle line segment in the target obstacle information to obtain the reference heading angle.

[0034] Optionally, parking the vehicle into the ultrasonic parking space according to the target heading angle includes:

[0035] In the process of parking the vehicle in the ultrasonic parking space according to the target heading angle, determining whether a deviation between the actual heading angle of the vehicle and the target heading angle satisfies a preset error tolerance condition;

[0036] If the deviation satisfies a preset error tolerance condition, the vehicle continues to be parked in the ultrasonic parking space according to the target heading angle.

[0037] In a second aspect, the present application provides a vehicle parking device, comprising:

[0038] A first acquisition module, configured to acquire first environmental perception information collected when the vehicle is parked in an ultrasonic parking space, and determine an initial heading angle based on the first environmental perception information;

[0039] A second acquisition module is used to acquire second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, and the collection time of the second environment perception information is later than the collection time of the first environment perception information;

[0040] An updating module, configured to update the initial heading angle to a target heading angle based on the second environment perception information;

[0041] A parking module is used to park the vehicle in the ultrasonic parking space according to the target heading angle.

[0042] Optionally, the update module includes:

[0043] an extraction submodule, configured to extract side obstacle information of obstacles located on the side of the vehicle from the second environment perception information;

[0044] A first determination submodule, configured to determine the side obstacle type of the ultrasonic parking space based on the side obstacle information;

[0045] A second determination submodule, configured to determine the target heading angle based on the side obstacle type;

[0046] The updating submodule is used to update the initial heading angle to the target heading angle.

[0047] Optionally, the second determining submodule includes:

[0048] a first determining unit, configured to determine a reference heading angle based on the side obstacle information if the side obstacle type is a unilateral side obstacle type;

[0049] The second determining unit is configured to determine the target heading angle based on the reference heading angle.

[0050] Optionally, the second determining submodule includes:

[0051] a third determining unit, configured to determine a reference heading angle based on the side obstacle information on each side if the side obstacle type is a bilateral side obstacle type;

[0052] A fourth determining unit is used to determine the target heading angle based on the average of the reference heading angles.

[0053] Optionally, the first determining unit or the third determining unit includes:

[0054] A first screening subunit, configured to screen the side obstacle information according to a preset rule to obtain target obstacle information;

[0055] The first determining subunit is configured to determine the reference heading angle based on the target obstacle information.

[0056] Optionally, the first screening subunit is further used for:

[0057] Projecting all first obstacle line segments in the side obstacle information into a parking coordinate system to obtain a plurality of second obstacle line segments;

[0058] Screening a second obstacle line segment that does not meet a preset direction condition from a plurality of second obstacle line segments;

[0059] The side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information.

[0060] Optionally, the first screening subunit is further used for:

[0061] Acquire a first obstacle line segment of a plurality of obstacles whose distances from the vehicle to the obstacle are less than a preset distance threshold in the side obstacle information;

[0062] Based on the second obstacle line segment that does not meet the preset direction condition, among the first obstacle line segments whose distances from the obstacles to the vehicle are less than a preset distance threshold, the corresponding first obstacle line segment is eliminated;

[0063] The remaining first obstacle line segments among the first obstacle line segments whose distances from the multiple obstacles to the vehicle are less than a preset distance threshold are determined as the target obstacle information.

[0064] Optionally, the first determining subunit is further used for:

[0065] Linear fitting is performed on the first obstacle line segment in the target obstacle information to obtain the reference heading angle.

[0066] Optionally, the docking module includes:

[0067] In the process of parking the vehicle in the ultrasonic parking space according to the target heading angle, determining whether a deviation between the actual heading angle of the vehicle and the target heading angle satisfies a preset error tolerance condition;

[0068] If the deviation satisfies a preset error tolerance condition, the vehicle continues to be parked in the ultrasonic parking space according to the target heading angle.

[0069] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0070] Memory, used to store computer programs;

[0071] The processor is used to implement any vehicle parking method described in the first aspect when executing the program stored in the memory.

[0072] In a fourth aspect, the present application provides a computer-readable storage medium having a program of a vehicle parking method stored thereon, wherein the program of the vehicle parking method, when executed by a processor, implements the steps of any one of the vehicle parking methods described in the first aspect.

[0073] Beneficial effects of the present invention: After the first environmental perception information around the ultrasonic parking space is initially collected, the embodiment of the present application collects the second environmental perception information around the ultrasonic parking space again as the parking depth increases according to the initial heading angle, and determines a more accurate target heading angle based on the second environmental perception information, and uses the target heading angle to replace the initial heading angle for parking the vehicle, thereby improving the accuracy of the vehicle parking in the ultrasonic parking space, making the parking posture of the vehicle more matched with the posture of the ultrasonic parking space, and avoiding the vehicle from colliding with obstacles around the ultrasonic parking space. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0075] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0076] Figure 1 A flow chart of a vehicle parking method provided in an embodiment of the present application;

[0077] Figure 2 for Figure 1 Flow chart of step S103;

[0078] Figure 3 for Figure 2 Flow chart of step S203;

[0079] Figure 4 for Figure 3 Flowchart of step S301 or step S303;

[0080] Figure 5 for Figure 4 Flow chart of step S401 in FIG.

[0081] Figure 6 is a schematic diagram of the parking coordinate system;

[0082] Figure 7 for Figure 5 Flow chart of step S503;

[0083] Figure 8 A structural diagram of a vehicle parking device provided in an embodiment of the present application;

[0084] Fig. 9 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0085] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0086] In order to solve the technical problem in the prior art that, in the scenario where a vehicle automatically parks in an ultrasonic parking space, the obstacle information output by the sensor may be inaccurate due to the detection range of the sensor, resulting in the mismatch between the parking position and the ultrasonic parking space, which in turn makes it difficult for the vehicle to park in the ultrasonic parking space and the vehicle is prone to collision with obstacles around the ultrasonic parking space, the present application provides a vehicle parking method, device, electronic device and storage medium, which can realize that after the first environmental perception information around the ultrasonic parking space is initially collected, as the parking depth increases according to the initial heading angle, the second environmental perception information around the ultrasonic parking space is collected again, and a more accurate target heading angle is determined based on the second environmental perception information, and the target heading angle is used to replace the initial heading angle for parking the vehicle, thereby improving the accuracy of the vehicle parking in the ultrasonic parking space, making the parking posture of the vehicle more matched with the posture of the ultrasonic parking space, and avoiding the vehicle colliding with obstacles around the ultrasonic parking space.

[0087] The embodiment of the present application provides a vehicle parking method, such as Figure 1 As shown, the method may include the following steps:

[0088] Step S101, obtaining first environment perception information collected when the vehicle is parked in an ultrasonic parking space, and determining an initial heading angle based on the first environment perception information;

[0089] The embodiment of the present application is aimed at the scenario where there are no parking space lines or the parking space lines are unclear, and ultrasound is used for parking space detection and parking. When the vehicle starts to park in the ultrasonic parking space, due to the limitation of the detection range of the sensor to detect the current position, it can only preliminarily detect the entrance position of the ultrasonic parking space and estimate the heading angle matching the ultrasonic parking space. Therefore, in this step, the initial heading angle used when the vehicle is initially parked is determined based on the first environmental perception information of the preliminary detection.

[0090] Step S102, obtaining second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, wherein the second environment perception information is collected later than the first environment perception information;

[0091] As the depth of the vehicle parked in the ultrasonic parking space along the initial heading angle increases, the surrounding environment detected by the sensor becomes more accurate. Therefore, the second environmental perception information collected when the vehicle further parks in the ultrasonic parking space can be obtained again, so as to determine a more accurate target heading angle based on the more accurate second environmental perception information.

[0092] Step S103, updating the initial heading angle to a target heading angle based on the second environment perception information;

[0093] In order to make the parking posture of the vehicle more compatible with the posture of the ultrasonic parking space, the target heading angle can be determined according to the second environment perception information, and the initial heading angle is replaced by the target heading angle, so that the vehicle can be parked in the ultrasonic parking space according to the target heading angle.

[0094] Step S104: parking the vehicle in the ultrasonic parking space according to the target heading angle.

[0095] Step S104 parks the vehicle in the ultrasonic parking space according to the target heading angle, including: in the process of parking the vehicle in the ultrasonic parking space according to the target heading angle, judging whether the deviation between the actual heading angle of the vehicle and the target heading angle meets the preset error tolerance condition; if the deviation meets the preset error tolerance condition, continuing to park the vehicle in the ultrasonic parking space according to the target heading angle. By judging the error between the actual heading angle and the target heading angle, it can be ensured that the vehicle is parked in the ultrasonic parking space according to the target heading angle, ensuring the parking posture of the vehicle, and avoiding collision with obstacles around the ultrasonic parking space.

[0096] After the first environmental perception information around the ultrasonic parking space is initially collected, the embodiment of the present application collects the second environmental perception information around the ultrasonic parking space again as the parking depth increases according to the initial heading angle, and determines a more accurate target heading angle based on the second environmental perception information, and uses the target heading angle to replace the initial heading angle for parking the vehicle, thereby improving the accuracy of the vehicle parking in the ultrasonic parking space, making the parking posture of the vehicle more matched with the posture of the ultrasonic parking space, and avoiding the vehicle from colliding with obstacles around the ultrasonic parking space.

[0097] In another embodiment of the present application, step S103 updates the initial heading angle to a target heading angle based on the second environment perception information, such as Figure 2 As shown, including:

[0098] Step S201, extracting side obstacle information of obstacles located on the side of the vehicle from the second environment perception information;

[0099] In actual applications, when an ultrasonic parking space is parked vertically, there may be obstacles on at least one of the two sides. Therefore, it is possible to determine whether there is an obstacle on one side or on both sides of the vehicle based on the second environmental perception information. Therefore, the side obstacle information of the vehicle can be extracted from the second environmental perception information.

[0100] Step S202, determining the side obstacle type of the ultrasonic parking space based on the side obstacle information;

[0101] In the embodiment of the present application, the side obstacle types include: a single-side side obstacle type and a double-side side obstacle type;

[0102] If the coordinates of multiple obstacle line segments in the second environmental perception information are divided into two groups, each group of obstacle line segments is located on the same side of the vehicle and the distance between the two groups of obstacle line segments exceeds the preset second distance, it can be determined that there are obstacles on both sides of the vehicle, the side obstacle type is a double-sided side obstacle type, and the preset distance can be determined according to the average width of multiple types of vehicles; if the coordinates of multiple obstacle line segments in the second environmental perception information are only one group, and the group of obstacle line segments is located on the same side of the vehicle, it can be determined that there is an obstacle on one side of the vehicle, and the side obstacle type is a single-sided side obstacle type.

[0103] Step S203, determining the target heading angle based on the side obstacle type;

[0104] In this step, after the side obstacle type is determined, the target heading angle may be determined according to each obstacle line segment in the side obstacle information.

[0105] Step S204: Update the initial heading angle to the target heading angle.

[0106] In this step, the initial heading angle may be replaced by the target heading angle.

[0107] The embodiment of the present application can determine the target heading angle in a targeted manner according to the type of side obstacle, thereby avoiding the situation where the target heading angle is determined directly based on the second environment perception information, resulting in excessive deviation and inaccuracy in the determination of the target heading angle.

[0108] In another embodiment of the present application, step S203 determines the target heading angle based on the side obstacle type, such as Figure 3 As shown, including:

[0109] Step S301: if the side obstacle type is a unilateral side obstacle type, determine a reference heading angle based on the side obstacle information;

[0110] In this step, the reference heading angle may be determined according to a plurality of obstacle segments in the side obstacle information. For details, please refer to the following embodiments.

[0111] Step S302: determining the target heading angle based on the reference heading angle.

[0112] In this step, because the side obstacle type is a single-side side obstacle type, that is, there is an obstacle only on one side of the ultrasonic parking space, when parking the vehicle in the ultrasonic parking space, it is only necessary to match the posture of the vehicle with the posture of the obstacle on this side, so the reference heading angle can be directly determined as the target heading angle.

[0113] Step S303: if the side obstacle type is a bilateral side obstacle type, for each side obstacle information on one side, determine a reference heading angle based on the side obstacle information;

[0114] In this step, the reference heading angle may be determined for each side according to multiple obstacle segments in the side obstacle information. The specific method is the same as step S301. For details, please refer to the following embodiments.

[0115] Step S304: determining the target heading angle based on the average of the reference heading angles.

[0116] In this step, because the side obstacle type is a bilateral side obstacle type, that is, there are obstacles on both sides of the ultrasonic parking space, when parking the vehicle in the ultrasonic parking space, the posture of the vehicle needs to be matched with the postures of the obstacles on both sides, so the average of the reference heading angles of the obstacles on both sides can be determined as the target heading angle.

[0117] The embodiment of the present application can determine the target heading angle in different ways according to different types of side obstacles, thereby ensuring that the posture of the vehicle parking in the ultrasonic parking space matches the posture of the obstacles on one side or both sides of the ultrasonic parking space, thereby improving the accuracy of the heading angle of the determined parking posture.

[0118] In the scenario where a vehicle automatically parks in an ultrasonic parking space, the obstacle information output by the sensor is not accurate and continuous due to the limitations of the sensor and the algorithm. For example, if the side obstacle is a car, there is a large angle difference between the obstacle line segments in the output side obstacle information, which increases the difficulty of calculating the heading angle of the parking target posture, resulting in difficulty in parking in the ultrasonic parking space and easy collision with surrounding obstacles. Therefore, in another embodiment of the present application, step S301 or step S303 determines the reference heading angle based on the side obstacle information, such as Figure 4 As shown, including:

[0119] Step S401, filtering the side obstacle information according to a preset rule to obtain target obstacle information;

[0120] In the embodiment of the present application, the obstacle line segments in the side obstacle information may be screened according to preset rules to obtain the target obstacle information.

[0121] Step S402: determining the reference heading angle based on the target obstacle information.

[0122] The embodiment of the present application can filter out obstacle segments that are likely to cause large errors by screening the side obstacle information, thereby improving the accuracy of the heading angle of the parking target posture, making the posture of the vehicle more matched with the posture of the ultrasonic parking space, making it easier to park in the ultrasonic parking space, and avoiding collisions with surrounding obstacles.

[0123] In another embodiment of the present application, step S401 filters the side obstacle information according to a preset rule to obtain target obstacle information, such as Figure 5 As shown, including:

[0124] Step S501, projecting all first obstacle line segments in the side obstacle information into a parking coordinate system to obtain a plurality of second obstacle line segments;

[0125] like Figure 6 As shown, the parking coordinate system can be constructed based on the plane where the vehicle is located, P0 and P1 correspond to the front direction of the vehicle, P2 and P3 correspond to the rear direction of the vehicle. For example, the origin of the parking coordinate system can be P1, extending to the right side of the vehicle as the X-axis direction, and to the forward direction of the vehicle as the Y-axis direction.

[0126] The first obstacle line segment is actually collected. Due to inaccurate perception and detection, after being projected into the parking coordinate system, it may be projected into a line segment with a changed length and / or a changed direction, that is, the second obstacle line segment.

[0127] Step S502, screening out second obstacle line segments that do not meet a preset direction condition from a plurality of second obstacle line segments;

[0128] After being projected to the parking coordinate system, the side obstacle contours are projected into line segments. Most of the line segments have the same orientation and can form the rough outline of the obstacle, but some line segments will be greatly different from this orientation. This direction determines the direction in which some obstacle line segments are greatly different from the contour line segments, and these line segments are eliminated.

[0129] In an embodiment of the present application, preset direction conditions can be set in advance, such as: a heading angle range, a second obstacle line segment located within the heading angle range, whose direction is slightly different from the line segment of the obstacle contour, and a second obstacle line segment located outside the heading angle range, whose direction is significantly different from the line segment of the obstacle contour.

[0130] When the side obstacle is a car, the preset direction conditions of the embodiment of the present application can filter out interference factors such as the rearview mirror of the obstacle vehicle that have a greater impact on the heading angle of determining the posture of the side obstacle in the ultrasonic parking space.

[0131] Step S503: Screen the side obstacle information based on the second obstacle line segment that does not meet the preset direction condition to obtain target obstacle information.

[0132] In this step, the second obstacle line segment that does not meet the preset direction condition can be used to filter the relevant obstacle line segments in the side obstacle information to obtain the target obstacle information.

[0133] The embodiment of the present application can screen out the second obstacle line segments that do not meet the preset direction conditions from multiple second obstacle line segments, and use the second obstacle line segments that do not meet the preset direction conditions to screen the side obstacle information, so as to screen out the obstacle line segments that do not meet the preset direction conditions in the side obstacle information, exclude the obstacle line segments that do not meet the preset direction conditions in the side obstacle contour, avoid the obstacle line segments that do not meet the preset direction conditions from interfering with the heading angle for determining the side obstacle posture, improve the accuracy of the determined heading angle of the side obstacle, and then facilitate improving the accuracy of the finally determined target heading angle.

[0134] In another embodiment of the present application, step S503 filters the side obstacle information based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information, such as Figure 7 As shown, including:

[0135] Step S601, obtaining a first obstacle line segment from the side obstacle information, wherein the distance from the obstacle to the vehicle is less than a preset distance threshold;

[0136] The preset length threshold may exemplarily be 0.4m to 0.8m. If the distance from the obstacle of the first obstacle line segment to the vehicle is less than the preset distance threshold, it indicates that both endpoints of the first obstacle line segment are located on the side contour line of the side obstacle; if the distance from the obstacle of the first obstacle line segment to the vehicle is greater than or equal to the preset distance threshold, it indicates that one endpoint of the first obstacle line segment is located on the side contour line of the side obstacle, and the other endpoint is located on the contour line in front of or behind the side obstacle.

[0137] Step S602, based on the second obstacle line segments that do not meet the preset direction condition, the corresponding first obstacle line segments are removed from the first obstacle line segments where the distance from the obstacle to the vehicle is less than a preset distance threshold;

[0138] In an embodiment of the present application, each first obstacle line segment and second obstacle line segment can be represented by the coordinates of their two ends respectively. The corresponding first obstacle line segment can be found by the coordinates of the two endpoints of the second obstacle line segment that does not meet the preset direction condition, and the information of the first obstacle line segment can be eliminated.

[0139] Step S603: determining the remaining first obstacle line segments among the first obstacle line segments whose distances from the multiple obstacles to the vehicle are less than a preset distance threshold as the target obstacle information.

[0140] After the corresponding first obstacle line segment information is eliminated, the remaining first obstacle line segments may be determined as the target obstacle information.

[0141] In the embodiment of the present application, the first obstacle line segment in the side obstacle information, in which the distance from the obstacle to the vehicle is less than a preset distance threshold, can be screened again according to the second obstacle line segment that does not meet the preset condition to obtain the target obstacle information. Through this screening, only the first obstacle line segment whose two endpoints are both located on the side contour line of the side obstacle can be retained to obtain the target obstacle information, so as to avoid the first obstacle line segment whose one end is located on the contour line in front of or behind the side obstacle and the other end is located on the side contour line of the side obstacle, which interferes with the heading angle for determining the posture of the side obstacle, thereby improving the accuracy of the determined heading angle of the side obstacle, and further facilitating the improvement of the accuracy of the finally determined target heading angle.

[0142] In the scenario where a vehicle automatically parks in an ultrasonic parking space, the obstacle information output by the sensor is not accurate and continuous due to the limitations of the sensor and the algorithm. For example, if the side obstacle is a car, the output side obstacle information is usually a disconnected line segment, which increases the difficulty of calculating the heading angle of the parking target posture, resulting in difficulty in parking in the ultrasonic parking space and easy collision with surrounding obstacles. Therefore, in another embodiment of the present application, step S402 determines the reference heading angle based on the target obstacle information, including:

[0143] Linear fitting is performed on the first obstacle line segment in the target obstacle information to obtain the reference heading angle.

[0144] The embodiment of the present application can fit the disconnected first obstacle line segments into continuous lines through linear fitting, which is convenient for determining the heading angle of the side obstacle, improving the accuracy of the determined heading angle of the side obstacle, and further facilitating improving the accuracy of the finally determined target heading angle.

[0145] In another embodiment of the present application, a vehicle parking device is also provided, such as Figure 8 As shown, including:

[0146] A first acquisition module 11 is used to acquire first environmental perception information collected when the vehicle is parked in an ultrasonic parking space, and determine an initial heading angle based on the first environmental perception information;

[0147] A second acquisition module 12 is used to acquire second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, and the collection time of the second environment perception information is later than the collection time of the first environment perception information;

[0148] An updating module 13, configured to update the initial heading angle to a target heading angle based on the second environment perception information;

[0149] The parking module 14 is configured to park the vehicle in the ultrasonic parking space according to the target heading angle.

[0150] Optionally, the update module includes:

[0151] an extraction submodule, configured to extract side obstacle information of obstacles located on the side of the vehicle from the second environment perception information;

[0152] A first determination submodule, configured to determine the side obstacle type of the ultrasonic parking space based on the side obstacle information;

[0153] A second determination submodule, configured to determine the target heading angle based on the side obstacle type;

[0154] An updating submodule is used to update the initial heading angle to the target heading angle.

[0155] Optionally, the second determining submodule includes:

[0156] a first determining unit, configured to determine a reference heading angle based on the side obstacle information if the side obstacle type is a unilateral side obstacle type;

[0157] The second determining unit is configured to determine the target heading angle based on the reference heading angle.

[0158] Optionally, the second determining submodule includes:

[0159] a third determining unit, configured to determine a reference heading angle based on the side obstacle information on each side if the side obstacle type is a bilateral side obstacle type;

[0160] A fourth determining unit is used to determine the target heading angle based on the average of the reference heading angles.

[0161] Optionally, the first determining unit or the third determining unit includes:

[0162] A first screening subunit, configured to screen the side obstacle information according to a preset rule to obtain target obstacle information;

[0163] The first determining subunit is configured to determine the reference heading angle based on the target obstacle information.

[0164] Optionally, the first screening subunit is further used for:

[0165] Projecting all first obstacle line segments in the side obstacle information into a parking coordinate system to obtain a plurality of second obstacle line segments;

[0166] Screening a second obstacle line segment that does not meet a preset direction condition from a plurality of second obstacle line segments;

[0167] The side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information.

[0168] Optionally, the first screening subunit is further used for:

[0169] Acquire a first obstacle line segment of a plurality of obstacles whose distances from the vehicle to the obstacle are less than a preset distance threshold in the side obstacle information;

[0170] Based on the second obstacle line segment that does not meet the preset direction condition, among the first obstacle line segments whose distances from the obstacles to the vehicle are less than a preset distance threshold, the corresponding first obstacle line segment is eliminated;

[0171] The remaining first obstacle line segments among the first obstacle line segments whose distances from the multiple obstacles to the vehicle are less than a preset distance threshold are determined as the target obstacle information.

[0172] Optionally, the first determining subunit is further used for:

[0173] Linear fitting is performed on the first obstacle line segment in the target obstacle information to obtain the reference heading angle.

[0174] Optionally, the docking module includes:

[0175] In the process of parking the vehicle in the ultrasonic parking space according to the target heading angle, determining whether a deviation between the actual heading angle of the vehicle and the target heading angle satisfies a preset error tolerance condition;

[0176] If the deviation satisfies a preset error tolerance condition, the vehicle continues to be parked in the ultrasonic parking space according to the target heading angle.

[0177] In another embodiment of the present application, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0178] Memory, used to store computer programs;

[0179] The processor is used to implement the vehicle parking method described in any of the above method embodiments when executing the program stored in the memory.

[0180] In yet another embodiment of the present application, a computer-readable storage medium is provided, on which a program of a vehicle parking method is stored. When the program of the vehicle parking method is executed by a processor, the steps of the vehicle parking method described in any of the aforementioned method embodiments are implemented.

[0181] In another embodiment of the present application, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0182] Memory, used to store computer programs;

[0183] The processor is used to implement the vehicle parking method described in any of the above method embodiments when executing the program stored in the memory.

[0184] In the electronic device provided by the embodiment of the present invention, the processor realizes, by executing the program stored in the memory, that after the first environmental perception information around the ultrasonic parking space is initially collected, as the parking depth according to the initial heading angle increases, the second environmental perception information around the ultrasonic parking space is collected again, and a more accurate target heading angle is determined based on the second environmental perception information, and the target heading angle is used to replace the initial heading angle for parking the vehicle, thereby improving the accuracy of the vehicle parking in the ultrasonic parking space, making the parking posture of the vehicle more matched with the posture of the ultrasonic parking space, and avoiding the vehicle from colliding with obstacles around the ultrasonic parking space.

[0185] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0186] The communication interface 1120 is used for communication between the above electronic device and other devices.

[0187] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0188] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0189] In yet another embodiment of the present application, a computer-readable storage medium is provided, on which a program of a vehicle parking method is stored. When the program of the vehicle parking method is executed by a processor, the steps of the vehicle parking method described in any of the aforementioned method embodiments are implemented.

[0190] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0191] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A vehicle parking method, characterized in that: include: Acquire first environmental perception information collected when the vehicle is parked in the ultrasonic parking space, and determine an initial heading angle based on the first environmental perception information; Acquire second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, where the second environment perception information is collected later than the first environment perception information; Updating the initial heading angle to a target heading angle based on the second environment perception information; The vehicle is parked in the ultrasonic parking space according to the target heading angle.

2. The vehicle parking method according to claim 1, characterized in that: Updating the initial heading angle to a target heading angle based on the second environment perception information includes: Extracting side obstacle information of obstacles located on the side of the vehicle from the second environment perception information; Determining the side obstacle type of the ultrasonic parking space based on the side obstacle information; Determining the target heading angle based on the side obstacle type; The initial heading angle is updated to the target heading angle.

3. The vehicle parking method according to claim 2, characterized in that: Determining the target heading angle based on the side obstacle type includes: If the side obstacle type is a unilateral side obstacle type, determining a reference heading angle based on the side obstacle information; The target heading angle is determined based on the reference heading angle.

4. The vehicle parking method according to claim 2, characterized in that: Determining the target heading angle based on the side obstacle type includes: If the side obstacle type is a bilateral side obstacle type, for each side obstacle information on one side, determining a reference heading angle based on the side obstacle information; The target heading angle is determined based on the average of the reference heading angles.

5. The vehicle parking method according to claim 3 or 4, characterized in that: Determining a reference heading angle based on the side obstacle information includes: The side obstacle information is screened according to preset rules to obtain target obstacle information; The reference heading angle is determined based on the target obstacle information.

6. The vehicle parking method according to claim 5, characterized in that: The side obstacle information is screened according to preset rules to obtain target obstacle information, including: Projecting all first obstacle line segments in the side obstacle information into a parking coordinate system to obtain a plurality of second obstacle line segments; Screening a second obstacle line segment that does not meet a preset direction condition from a plurality of second obstacle line segments; The side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information.

7. The vehicle parking method according to claim 6, characterized in that: The side obstacle information is screened based on the second obstacle line segment that does not meet the preset direction condition to obtain the target obstacle information, including: Acquire a first obstacle line segment of a plurality of obstacles whose distances from the vehicle to the obstacle are less than a preset distance threshold in the side obstacle information; Based on the second obstacle line segment that does not meet the preset direction condition, among the first obstacle line segments whose distances from the obstacles to the vehicle are less than a preset distance threshold, the corresponding first obstacle line segment is eliminated; The remaining first obstacle line segments among the first obstacle line segments whose distances from the multiple obstacles to the vehicle are less than a preset distance threshold are determined as the target obstacle information.

8. The vehicle parking method according to claim 5, characterized in that: Determining the reference heading angle based on the target obstacle information includes: Linear fitting is performed on the first obstacle line segment in the target obstacle information to obtain the reference heading angle.

9. The vehicle parking method according to claim 1, characterized in that: Parking the vehicle in the ultrasonic parking space according to the target heading angle includes: In the process of parking the vehicle in the ultrasonic parking space according to the target heading angle, determining whether a deviation between the actual heading angle of the vehicle and the target heading angle satisfies a preset error tolerance condition; If the deviation satisfies a preset error tolerance condition, the vehicle continues to be parked in the ultrasonic parking space according to the target heading angle.

10. A vehicle parking device, characterized in that: include: A first acquisition module, configured to acquire first environmental perception information collected when the vehicle is parked in an ultrasonic parking space, and determine an initial heading angle based on the first environmental perception information; A second acquisition module is used to acquire second environment perception information collected when the vehicle is parked in the ultrasonic parking space according to the initial heading angle, and the collection time of the second environment perception information is later than the collection time of the first environment perception information; An updating module, configured to update the initial heading angle to a target heading angle based on the second environment perception information; A parking module is used to park the vehicle in the ultrasonic parking space according to the target heading angle.

11. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the vehicle parking method described in any one of claims 1 to 9 when executing the program stored in the memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vehicle parking method program, and when the vehicle parking method program is executed by a processor, the steps of the vehicle parking method according to any one of claims 1 to 9 are implemented.