Vehicle parking method and device, electronic equipment and storage medium
By obtaining collision point information in the automatic parking assistance system and re-planning the parking path, the problem of stuck parking and collision with obstacles during parallel parking is solved, and safe and normal parking of the vehicle is achieved.
Patent Information
- Application Number
- CN202410812419.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
When using the automatic parking assistance system to parallel park a vehicle, it may become stuck or hit an obstacle in front of the vehicle. It is difficult to effectively avoid these problems with existing technology.
By obtaining the collision point information collected during the parking process of the vehicle, it is determined whether the obstacle is located on the parking path, and based on this information, the parking path is re-planned and a new avoidance path is generated to avoid obstruction and collision with obstacles.
It achieves the effect of avoiding getting stuck when parking and avoiding collision with obstacles in front, ensuring that the vehicle can park normally.
Smart Images

Figure CN118618360A
Abstract
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 increase in the number of cars, parking spaces are becoming increasingly narrow and parking environments are becoming increasingly complex. It is extremely difficult for novice drivers to park their cars in narrow parking spaces.
[0003] At present, the automatic parking assistance system, as a key technology for driverless cars, can realize automatic parking in and out of the vehicle, and can park in and out of lateral parking spaces vertically and in and out of longitudinal parking spaces, etc. Among them, the path planning method for parallel parking in and out and vertical parking in and out is mainly based on the parking path planning of the initially detected target parking space, and the actuator performs tracking control according to the planned trajectory.
[0004] However, when parallel parking out of a parking space using an automatic parking assistance system, the vehicle may get stuck or even collide with an obstacle in front. Summary of the invention
[0005] 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.
[0006] In a first aspect, the present application provides a vehicle parking method, comprising:
[0007] Acquiring first collision point information collected from a surrounding environment of the vehicle when the vehicle is parked out according to a first parking-out path, wherein the first parking-out path is determined based on parking environment information collected from the surrounding environment after the vehicle is parked;
[0008] determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path;
[0009] If the first obstacle is located on the first parking exit path, determining a second parking exit path based on the first collision point information;
[0010] The vehicle is unparked based on the second unparking path.
[0011] Optionally, determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path includes:
[0012] determining second collision point information according to the parking environment information;
[0013] Determining position jump information of the first obstacle relative to a second obstacle corresponding to the second collision point information;
[0014] If the position jump information is within a preset range, it is determined that the first obstacle is located on the first parking exit path.
[0015] Optionally, determining a second exit path based on the first collision point information includes:
[0016] determining a length of the first obstacle based on the first collision point information;
[0017] The second parking-out path is determined based on a path determination strategy corresponding to the length of the first obstacle.
[0018] Optionally, determining the second exit path based on a path determination strategy corresponding to the length of the first obstacle includes:
[0019] If the length of the first obstacle is less than or equal to a preset length threshold, determining a second parking path based on an initial heading angle of the vehicle before parking;
[0020] If the length of the first obstacle is greater than a preset threshold, a second exit path is determined based on the heading angle of the first obstacle.
[0021] Optionally, determining a second exit path based on the heading angle of the first obstacle includes:
[0022] If the heading angle of the first obstacle is parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the initial heading angle of the vehicle.
[0023] Optionally, determining a second parking path based on the initial heading angle of the vehicle comprises:
[0024] Determining a heading angle of the vehicle based on an initial heading angle of the vehicle;
[0025] Obtaining a path end point corresponding to the first collision information;
[0026] A second parking path is generated based on the heading angle of the vehicle and the path end point.
[0027] Optionally, determining a second exit path based on the heading angle of the first obstacle includes:
[0028] If the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the heading angle of the first obstacle.
[0029] Optionally, determining a second exit path based on the heading angle of the first obstacle includes:
[0030] Determining the heading angle of the first obstacle as the heading angle of the vehicle;
[0031] Obtaining a path end point corresponding to the first collision information;
[0032] A second parking path is generated based on the heading angle of the vehicle and the path end point.
[0033] Optionally, determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path further includes:
[0034] If the position jump information is outside the preset range, determining that the first obstacle is not located on the first parking exit path;
[0035] The method further comprises:
[0036] If the first obstacle is not located on the first parking exit path, the vehicle is parked out based on the first parking exit path.
[0037] In a second aspect, the present application provides a vehicle parking device, comprising:
[0038] an information acquisition module, configured to acquire first collision point information collected from a surrounding environment when the vehicle is parked out according to a first parking-out path, wherein the first parking-out path is determined based on parking environment information collected from the surrounding environment after the vehicle is parked;
[0039] A first determination module, configured to determine whether a first obstacle corresponding to the first collision point information is located on the first parking exit path;
[0040] a second determining module, configured to determine a second parking path based on the first collision point information if the first obstacle is located on the first parking path;
[0041] A vehicle parking module is used to park the vehicle based on the second parking path.
[0042] Optionally, the first determining module includes:
[0043] A first determining submodule, configured to determine second collision point information according to the parking environment information;
[0044] A second determining submodule, configured to determine position jump information of the first obstacle relative to a second obstacle corresponding to the second collision point information;
[0045] A third determining submodule is configured to determine that the first obstacle is located on the first parking exit path if the position jump information is within a preset range.
[0046] Optionally, the second determining module includes:
[0047] a fourth determining submodule, configured to determine a length of the first obstacle based on the first collision point information;
[0048] The fifth determination submodule is used to determine the second parking exit path based on a path determination strategy corresponding to the length of the first obstacle.
[0049] Optionally, the fifth determining submodule includes:
[0050] a first determining unit, configured to determine a second parking path based on an initial heading angle of the vehicle before parking if the length of the first obstacle is less than or equal to a preset length threshold;
[0051] The second determining unit is configured to determine a second exit path based on a heading angle of the first obstacle if the length of the first obstacle is greater than a preset threshold.
[0052] Optionally, the second determining unit includes:
[0053] The first determining subunit is configured to determine a second parking exit path based on the initial heading angle of the vehicle if the heading angle of the first obstacle is parallel to the initial heading angle of the vehicle.
[0054] Optionally, the first determining subunit is further used for:
[0055] Determining a heading angle of the vehicle based on an initial heading angle of the vehicle;
[0056] Obtaining a path end point corresponding to the first collision information;
[0057] A second parking path is generated based on the heading angle of the vehicle and the path end point.
[0058] Optionally, the second determining unit includes:
[0059] The second determining subunit is configured to determine a second parking exit path based on the heading angle of the first obstacle if the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle.
[0060] Optionally, the first determining subunit is further used for:
[0061] Determining the heading angle of the first obstacle as the heading angle of the vehicle;
[0062] Obtaining a path end point corresponding to the first collision information;
[0063] A second parking path is generated based on the heading angle of the vehicle and the path end point.
[0064] Optionally, the first determining module further includes:
[0065] If the position jump information is outside the preset range, determining that the first obstacle is not located on the first parking exit path;
[0066] The method further comprises:
[0067] If the first obstacle is not located on the first parking exit path, the vehicle is parked out based on the first parking exit path.
[0068] 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;
[0069] Memory, used to store computer programs;
[0070] The processor is used to implement the vehicle parking method described in any one of the first aspects of the claims when executing the program stored in the memory.
[0071] In a fourth aspect, the present application provides a computer-readable storage medium, on which a program of a vehicle parking method is stored, and when the program of the vehicle parking method is executed by a processor, the steps of any one of the vehicle parking methods described in the first aspect are implemented.
[0072] Beneficial effects of the present invention: The embodiment of the present application can determine whether the outline of the first obstacle is on the first parking path during the vehicle parking process. If the outline of the first obstacle is on the first parking path, the first parking path is replanned based on the outline of the first obstacle to obtain a new second parking path, thereby avoiding parking jams due to the obstruction of the first obstacle and avoiding collisions with obstacles ahead. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] 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.
[0074] 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.
[0075] Figure 1 A flow chart of a vehicle parking method provided in an embodiment of the present application;
[0076] Figure 2 A schematic diagram of the path planning without obstacle coordinate update and the corresponding parking coordinate system;
[0077] Figure 3 Schematic diagram of collision point;
[0078] Figure 4 This is a parking diagram without path replanning;
[0079] Figure 5 A schematic diagram of the parking for path replanning;
[0080] Figure 6 A flowchart of step S102 provided in an embodiment of the present application;
[0081] Figure 7 A flowchart of step S103 provided in an embodiment of the present application;
[0082] Figure 8 A flowchart of step S302 provided in an embodiment of the present application;
[0083] Fig. 9 A structural diagram of a vehicle parking device provided in an embodiment of the present application;
[0084] Fig.10 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 when using an automatic parking assistance system to parallel park out of a parking space, the vehicle may get stuck or even collide with an obstacle in front, the present application provides a vehicle parking method, device, electronic device and storage medium, which can avoid parking getting stuck due to the obstruction of a first obstacle and avoid collision with an obstacle in front.
[0087] The present application embodiment provides an embodiment of a vehicle parking method, such as Figure 1 As shown, the vehicle parking method may include the following steps:
[0088] Step S101, obtaining first collision point information collected from the surrounding environment when the vehicle is parked out according to a first parking path;
[0089] In the embodiment of the present application, the first parking-out path is determined based on parking environment information collected about the surrounding environment after the vehicle is parked. That is, after the vehicle is parked in the parking space according to the parking path, parking environment information about the surrounding environment of the parking path is collected, and second collision point information is obtained based on the parking environment information. The first parking-out path is planned based on the second collision point information, and the parking environment information refers to information about the surrounding environment of the vehicle after the vehicle is parked.
[0090] For example, after the vehicle enters the storage space, various sensors are used to obtain the current real-time location information of the vehicle and the surrounding environment information, and the contours of the surrounding obstacles are output through the perception fusion algorithm, such as Figure 2 As shown, after the vehicle is parked in the parking space, K and B are the directions of the front of the vehicle, A and J are the directions of the parking space, and the horizontal direction is the Y-axis direction shown in the figure. In the figure, xF1 is the obstacle information input by the sensing end. The vertical line at XF1 represents the front boundary when the vehicle is parked out, and the vertical line on the far left is the rear boundary when the vehicle is parked out. The front boundary and the rear boundary are both the positions of the obstacles in the parking coordinate system.
[0091] When the vehicle needs to park, the parking environment information is obtained, and the decision module gives a recommended parking direction. The driver selects the parking direction of the vehicle. According to the parking environment information, the center of the rear axle of the vehicle when the function is turned on is used as the coordinate origin, the front direction of the vehicle is used as the X-axis direction, and the left side of the vehicle is used as the Y-axis direction. Figure 2 The parking coordinate system shown in Figure 2 In the parking coordinate system shown, the center point of the rear axle is the starting point of the path planning. The four-segment outbound path planning method can be used, that is, the arc (arc segment from (Exout, Eyout) to (xt1, yt1))-straight line (line segment from (xt1, yt1) to (xt2, yt2))-arc (arc segment from (xt2, yt2) to (xs, ys))-straight line ((xs, ys) is the starting ray) method for path planning, and the heading of the first straight line is specified. Angle is a preset fixed value, the radius of each arc is the minimum turning radius of the vehicle, and an arc tangent to the vehicle's X-axis direction and the first straight line is found as the first arc path. Given the coordinates of the end point of path planning, an arc tangent to the first straight line and the second straight line (the heading angle of the second straight line is the same as the heading angle corresponding to the initial heading angle of the vehicle) is found as the second arc path. Finally, a four-segment path of arc-straight line-arc-straight line is planned as the first parking path.
[0092] In this step, when the vehicle is parked parallel to the parking space according to the first parking path, that is, after the front of the vehicle leaves the garage, multiple sensors installed at different positions on the vehicle collect environmental information in the surrounding environment, and then obtain first collision point information based on the environmental information. The multiple sensors can be of the same type or of different types. The first collision point information includes: the outline and position of the first obstacle.
[0093] Step S102, determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path;
[0094] Since the first parking exit path is obtained based on environmental data collected after the vehicle is parked, there may be a situation where the first obstacle that may be located on the first parking exit path cannot be avoided due to the limited perception range of multiple sensors and the existence of perception blind spots. As the front of the vehicle parks out, the perception range of multiple sensors is updated, and real-time information about the first collision point can be gradually detected. At this time, based on the real-time first collision point information, it can be determined whether the first obstacle corresponding to the first collision point information is located on the first parking exit path, that is, it can be determined whether the outline of the first obstacle constitutes an obstacle to the normal parking of the vehicle.
[0095] Step S103: if the first obstacle is located on the first parking exit path, determine a second parking exit path based on the first collision point information;
[0096] When the first obstacle is located on the first parking path, that is, the first obstacle hinders the normal parking of the vehicle, a new parking path, that is, the second parking path, can be determined based on the first collision point information. The second parking path can avoid the obstruction of the first obstacle and enable the vehicle to park normally.
[0097] Step S104: unparking the vehicle based on the second unparking path.
[0098] After the second parking exit path is determined, the vehicle can be parked normally by bypassing the first obstacle along the second parking exit path.
[0099] When the vehicle is parked out, the first obstacle can be detected, and the point on the first obstacle closest to the vehicle, that is, the point that the vehicle needs to avoid when parking out, is the collision point. The collision point can be as follows: Figure 3 As shown in FIG, since the first obstacle is located on the first parking path, if the path replanning is not performed according to this embodiment, as shown in FIG. Figure 4 As shown, when the vehicle is parked out along the first parking path, it will collide with the first obstacle or get stuck. Only by replanning the path according to this embodiment to obtain the second parking path, and Figure 5As shown, when the vehicle is parked according to the second parking path, the vehicle can be parked normally without colliding with the first obstacle or getting stuck during parking.
[0100] The embodiment of the present application can determine whether the outline of the first obstacle is on the first parking path during the vehicle parking process. If the outline of the first obstacle is on the first parking path, the first parking path is replanned based on the outline of the first obstacle to obtain a new second parking path, thereby avoiding parking jams due to the obstruction of the first obstacle and avoiding collisions with obstacles ahead.
[0101] In order to determine whether the first obstacle is located on the first parking path, in another embodiment of the present application, step S102 determines whether the first obstacle corresponding to the first collision point information is located on the first parking path. Figure 6 As shown, including:
[0102] Step S201, determining second collision point information according to the parking environment information;
[0103] After the vehicle is parked, the parking environment around the vehicle may include a second obstacle. Therefore, the parking environment information collected by multiple sensors includes the second collision point information of the second obstacle. By processing the parking environment information with a perception fusion algorithm, the second collision point information including the outline, position and other information of the second obstacle can be obtained.
[0104] Step S202, determining position jump information of the first obstacle relative to the second obstacle corresponding to the second collision point information;
[0105] The second collision point information is obtained based on the parking environment information, and the first collision point information is obtained based on the parking environment information collected in the surrounding environment when the vehicle is parked out according to the first parking path. If the surrounding environment of the vehicle changes, the position of the second obstacle relative to the first obstacle will change. Therefore, the position jump information of the first obstacle relative to the second obstacle can be obtained by comparing the positions and contours of the first obstacle and the second obstacle. The position jump information can refer to the jump distance of the position of the first obstacle on the Y axis. Exemplarily, if the first obstacle approaches the first parking path relative to the second obstacle, the position jump information is a positive number, and the closer the first obstacle is to the first parking path, the larger the value of the position jump information is; if the first obstacle moves away from the first parking path relative to the second obstacle, the position jump information is a negative number, and the farther the first obstacle is from the first parking path, the smaller the value of the position jump information is.
[0106] Step S203: If the position jump information is within a preset range, it is determined that the first obstacle is located on the first parking exit path.
[0107] In an embodiment of the present application, a preset range can be set according to the numerical change rule of the position jump information. The position jump information within the preset range indicates that the first obstacle is located on the first parking exit path, and the position jump information outside the preset range indicates that the first obstacle is not located on the first parking exit path.
[0108] In the embodiment of the present application, the position jump situation of the first obstacle relative to the second obstacle can be determined through the position jump information of the first obstacle detected when the vehicle is parked out relative to the second obstacle detected after the vehicle is parked in, that is, the position change situation of the obstacles in the surrounding environment during the parking process of the vehicle is obtained. If the position jump information is within the preset range, it can be determined that the first obstacle is located on the first parking out path. At this time, the first obstacle affects the normal parking of the vehicle.
[0109] In order to re-plan a second exit path that can avoid the first obstacle, in another embodiment of the present application, step S103 determines the second exit path based on the first collision point information, such as Figure 7 As shown, including:
[0110] Step S301, determining the length of the first obstacle based on the first collision point information;
[0111] In this step, the length of the first obstacle may be calculated according to the outline of the first obstacle in the first collision point information. Exemplarily, the length of the first obstacle may refer to the length of the first obstacle in the Y-axis direction in the parking coordinate system.
[0112] Step S302: determining the second exit path based on a path determination strategy corresponding to the length of the first obstacle.
[0113] Different path determination strategies may be preset according to different lengths of the first obstacle, so that the second parking-out paths determined based on the different path determination strategies can avoid the first obstacle.
[0114] In another embodiment of the present application, step S302 determines the second exit path based on a path determination strategy corresponding to the length of the first obstacle, such as Figure 8 As shown, including:
[0115] Step S401, if the length of the first obstacle is less than or equal to a preset length threshold, determining a second parking path based on the initial heading angle of the vehicle before parking;
[0116] When the first obstacle is short, the first obstacle may only affect the normal parking of the vehicle in the Y-axis direction, and does not affect the normal parking of the vehicle in the X-axis direction. Therefore, the second parking path can be determined based on the initial heading angle of the vehicle in the initial position before parking, and the last straight line in the second parking path moves a certain position in the positive direction of the Y-axis.
[0117] Step S402: If the length of the first obstacle is greater than a preset threshold, determine a second exit path based on the heading angle of the first obstacle.
[0118] When the first obstacle is long, the existence of the first obstacle will affect the normal parking of the vehicle. Therefore, the second parking path is determined based on the heading angle of the first obstacle, and the slope of the last straight line in the second parking path is set with reference to the heading angle of the first obstacle.
[0119] The embodiment of the present application can determine the second parking path by adopting different path determination strategies according to the different lengths of the first obstacle, so that the vehicle can avoid the first obstacle when parking along the second parking path.
[0120] In another embodiment of the present application, step S402 determines a second exit path based on the heading angle of the first obstacle, including:
[0121] If the heading angle of the first obstacle is parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the initial heading angle of the vehicle.
[0122] In an embodiment of the present application, determining a second parking exit path based on the initial heading angle of the vehicle includes: determining the heading angle of the vehicle based on the initial heading angle of the vehicle; obtaining a path end point corresponding to the first collision information; and generating a second parking exit path based on the heading angle of the vehicle and the path end point.
[0123] In the embodiment of the present application, the heading angle of the first obstacle can be parallel to the initial heading angle of the vehicle, that is, when the heading angle of the first obstacle is not updated, the slope achieved in the last section of the second parking path refers to the initial heading angle, thereby avoiding excessive adjustments to the vehicle's heading angle and causing waste of resources.
[0124] In another embodiment of the present application, step S402 determines a second exit path based on the heading angle of the first obstacle, including:
[0125] If the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the heading angle of the first obstacle.
[0126] In an embodiment of the present application, determining a second parking exit path based on the heading angle of the first obstacle includes: determining the heading angle of the first obstacle as the heading angle of the vehicle; obtaining a path end point corresponding to the first collision information; and generating a second parking exit path based on the heading angle of the vehicle and the path end point.
[0127] In the embodiment of the present application, when the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle, that is, when the heading angle of the first obstacle is updated, the slope achieved in the last section of the second parking path can refer to the heading angle of the first obstacle to avoid the vehicle colliding with the first obstacle.
[0128] In another embodiment of the present application, step S102 of determining whether the first obstacle corresponding to the first collision point information is located on the first parking exit path further includes:
[0129] If the position jump information is outside the preset range, determining that the first obstacle is not located on the first parking exit path;
[0130] The method further comprises:
[0131] If the first obstacle is not located on the first parking exit path, the vehicle is parked out based on the first parking exit path.
[0132] The embodiment of the present application can park the vehicle along the first parking path when the first obstacle does not affect the normal parking of the vehicle along the first parking path, thereby saving resources.
[0133] In another embodiment of the present application, a vehicle parking device is also provided, such as Fig. 9 As shown, including:
[0134] An information acquisition module 11 is used to acquire first collision point information collected from the surrounding environment of the vehicle when the vehicle is parked out according to a first parking exit path, wherein the first parking exit path is determined based on parking environment information collected from the surrounding environment after the vehicle is parked;
[0135] In the embodiment of the present application, the first parking-out path is determined based on parking environment information collected about the surrounding environment after the vehicle is parked. That is, after the vehicle is parked in the parking space according to the parking path, parking environment information about the surrounding environment of the parking path is collected, and second collision point information is obtained based on the parking environment information. The first parking-out path is planned based on the second collision point information, and the parking environment information refers to information about the surrounding environment of the vehicle after the vehicle is parked.
[0136] For example, after the vehicle enters the storage space, various sensors are used to obtain the current real-time location information of the vehicle and the surrounding environment information, and the contours of the surrounding obstacles are output through the perception fusion algorithm, such as Figure 2As shown, after the vehicle is parked in the parking space, K and B are the directions of the front of the vehicle, A and J are the directions of the parking space, and the horizontal direction is the Y-axis direction shown in the figure. In the figure, xF1 is the obstacle information input by the sensing end. The vertical line at XF1 represents the front boundary when the vehicle is parked out, and the vertical line on the far left is the rear boundary when the vehicle is parked out. The front boundary and the rear boundary are both the positions of the obstacles in the parking coordinate system.
[0137] When the vehicle needs to park, the parking environment information is obtained, and the decision module gives a recommended parking direction. The driver selects the parking direction of the vehicle. According to the parking environment information, the center of the rear axle of the vehicle when the function is turned on is used as the coordinate origin, the front direction of the vehicle is used as the X-axis direction, and the left side of the vehicle is used as the Y-axis direction. Figure 2 The parking coordinate system shown in Figure 2 In the parking coordinate system shown, the center point of the rear axle is the starting point of the path planning. The four-segment outbound path planning method can be used, that is, the arc (arc segment from (Exout, Eyout) to (xt1, yt1))-straight line (line segment from (xt1, yt1) to (xt2, yt2))-arc (arc segment from (xt2, yt2) to (xs, ys))-straight line ((xs, ys) is the starting ray) method for path planning, and the heading of the first straight line is specified. Angle is a preset fixed value, the radius of each arc is the minimum turning radius of the vehicle, and an arc tangent to the vehicle's X-axis direction and the first straight line is found as the first arc path. Given the coordinates of the end point of path planning, an arc tangent to the first straight line and the second straight line (the heading angle of the second straight line is the same as the heading angle corresponding to the initial heading angle of the vehicle) is found as the second arc path. Finally, a four-segment path of arc-straight line-arc-straight line is planned as the first parking path.
[0138] In this module, when the vehicle is parked parallel to the parking space according to the first parking path, that is, after the front of the vehicle leaves the garage, multiple sensors installed at different positions on the vehicle collect environmental information in the surrounding environment, and then obtain first collision point information based on the environmental information. The multiple sensors can be of the same type or of different types. The first collision point information includes: the outline and position of the first obstacle.
[0139] A first determination module 12, configured to determine whether a first obstacle corresponding to the first collision point information is located on the first parking exit path;
[0140] Since the first parking exit path is obtained based on environmental data collected after the vehicle is parked, there may be a situation where the first obstacle that may be located on the first parking exit path cannot be avoided due to the limited perception range of multiple sensors and the existence of perception blind spots. As the front of the vehicle parks out, the perception range of multiple sensors is updated, and real-time information about the first collision point can be gradually detected. At this time, based on the real-time first collision point information, it can be determined whether the first obstacle corresponding to the first collision point information is located on the first parking exit path, that is, it can be determined whether the outline of the first obstacle constitutes an obstacle to the normal parking of the vehicle.
[0141] A second determining module 13, configured to determine a second parking exit path based on the first collision point information if the first obstacle is located on the first parking exit path;
[0142] When the first obstacle is located on the first parking path, that is, the first obstacle hinders the normal parking of the vehicle, a new parking path, that is, the second parking path, can be determined based on the first collision point information. The second parking path can avoid the obstruction of the first obstacle and enable the vehicle to park normally.
[0143] The vehicle parking exit module 14 is configured to park the vehicle based on the second parking exit path.
[0144] After the second parking exit path is determined, the vehicle can be parked normally by bypassing the first obstacle along the second parking exit path.
[0145] When the vehicle is parked out, the first obstacle can be detected, and the point on the first obstacle closest to the vehicle, that is, the point that the vehicle needs to avoid when parking out, that is, the collision point, can be detected. Figure 3 As shown in FIG, since the first obstacle is located on the first parking path, if the path replanning is not performed according to this embodiment, as shown in FIG. Figure 4 As shown, when the vehicle is parked out along the first parking path, it will collide with the first obstacle or get stuck. Only by replanning the path according to this embodiment to obtain the second parking path, and Figure 5 As shown, when the vehicle is parked according to the second parking path, the vehicle can be parked normally without colliding with the first obstacle or getting stuck during parking.
[0146] The embodiment of the present application can determine whether the outline of the first obstacle is on the first parking path during the vehicle parking process. If the outline of the first obstacle is on the first parking path, the first parking path is replanned based on the outline of the first obstacle to obtain a new second parking path, thereby avoiding parking jams due to the obstruction of the first obstacle and avoiding collisions with obstacles ahead.
[0147] In order to determine whether the first obstacle is located on the first parking path, optionally, the first determination module includes:
[0148] A first determining submodule, configured to determine second collision point information according to the parking environment information;
[0149] After the vehicle is parked, the parking environment around the vehicle may include a second obstacle. Therefore, the parking environment information collected by multiple sensors includes the second collision point information of the second obstacle. By processing the parking environment information with a perception fusion algorithm, the second collision point information including the outline, position and other information of the second obstacle can be obtained.
[0150] A second determining submodule, configured to determine position jump information of the first obstacle relative to a second obstacle corresponding to the second collision point information;
[0151] The second collision point information is obtained based on the parking environment information, and the first collision point information is obtained based on the parking environment information collected in the surrounding environment when the vehicle is parked out according to the first parking path. If the surrounding environment of the vehicle changes, the position of the second obstacle relative to the first obstacle will change. Therefore, the position jump information of the first obstacle relative to the second obstacle can be obtained by comparing the positions and contours of the first obstacle and the second obstacle. The position jump information can refer to the jump distance of the position of the first obstacle on the Y axis. Exemplarily, if the first obstacle approaches the first parking path relative to the second obstacle, the position jump information is a positive number, and the closer the first obstacle is to the first parking path, the larger the value of the position jump information is; if the first obstacle moves away from the first parking path relative to the second obstacle, the position jump information is a negative number, and the farther the first obstacle is from the first parking path, the smaller the value of the position jump information is.
[0152] A third determining submodule is configured to determine that the first obstacle is located on the first parking exit path if the position jump information is within a preset range.
[0153] In an embodiment of the present application, a preset range can be set according to the numerical change rule of the position jump information. The position jump information within the preset range indicates that the first obstacle is located on the first parking exit path, and the position jump information outside the preset range indicates that the first obstacle is not located on the first parking exit path.
[0154] In the embodiment of the present application, the position jump situation of the first obstacle relative to the second obstacle can be determined through the position jump information of the first obstacle detected when the vehicle is parked out relative to the second obstacle detected after the vehicle is parked in, that is, the position change situation of the obstacles in the surrounding environment during the parking process of the vehicle is obtained. If the position jump information is within the preset range, it can be determined that the first obstacle is located on the first parking out path. At this time, the first obstacle affects the normal parking of the vehicle.
[0155] In order to re-plan a second exit path that can avoid the first obstacle, optionally, the second determining module includes:
[0156] a fourth determining submodule, configured to determine a length of the first obstacle based on the first collision point information;
[0157] In this step, the length of the first obstacle may be calculated according to the outline of the first obstacle in the first collision point information. Exemplarily, the length of the first obstacle may refer to the length of the first obstacle in the Y-axis direction in the parking coordinate system.
[0158] The fifth determination submodule is used to determine the second parking exit path based on a path determination strategy corresponding to the length of the first obstacle.
[0159] Different path determination strategies may be preset according to different lengths of the first obstacle, so that the second parking-out paths determined based on the different path determination strategies can avoid the first obstacle.
[0160] Optionally, the fifth determining submodule includes:
[0161] a first determining unit, configured to determine a second parking path based on an initial heading angle of the vehicle before parking if the length of the first obstacle is less than or equal to a preset length threshold;
[0162] When the first obstacle is short, the first obstacle may only affect the normal parking of the vehicle in the Y-axis direction, and does not affect the normal parking of the vehicle in the X-axis direction. Therefore, the second parking path can be determined based on the initial heading angle of the vehicle in the initial position before parking, and the last straight line in the second parking path moves a certain position in the positive direction of the Y-axis.
[0163] The second determining unit is configured to determine a second exit path based on a heading angle of the first obstacle if the length of the first obstacle is greater than a preset threshold.
[0164] When the first obstacle is long, the existence of the first obstacle will affect the normal parking of the vehicle. Therefore, the second parking path is determined based on the heading angle of the first obstacle, and the slope of the last straight line in the second parking path is set with reference to the heading angle of the first obstacle.
[0165] The embodiment of the present application can determine the second parking path by adopting different path determination strategies according to the different lengths of the first obstacle, so that the vehicle can avoid the first obstacle when parking along the second parking path.
[0166] Optionally, the second determining unit includes:
[0167] The first determining subunit is configured to determine a second parking exit path based on the initial heading angle of the vehicle if the heading angle of the first obstacle is parallel to the initial heading angle of the vehicle.
[0168] In an embodiment of the present application, determining a second parking exit path based on the initial heading angle of the vehicle includes: determining the heading angle of the vehicle based on the initial heading angle of the vehicle; obtaining a path end point corresponding to the first collision information; and generating a second parking exit path based on the heading angle of the vehicle and the path end point.
[0169] In the embodiment of the present application, the heading angle of the first obstacle can be parallel to the initial heading angle of the vehicle, that is, when the heading angle of the first obstacle is not updated, the slope achieved in the last section of the second parking path refers to the initial heading angle, thereby avoiding excessive adjustments to the vehicle's heading angle and causing waste of resources.
[0170] Optionally, the second determining unit includes:
[0171] The second determining subunit is configured to determine a second parking exit path based on the heading angle of the first obstacle if the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle.
[0172] In an embodiment of the present application, determining a second parking exit path based on the heading angle of the first obstacle includes: determining the heading angle of the first obstacle as the heading angle of the vehicle; obtaining a path end point corresponding to the first collision information; and generating a second parking exit path based on the heading angle of the vehicle and the path end point.
[0173] In the embodiment of the present application, when the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle, that is, when the heading angle of the first obstacle is updated, the slope achieved in the last section of the second parking path can refer to the heading angle of the first obstacle to avoid the vehicle colliding with the first obstacle.
[0174] Optionally, the first determining module further includes:
[0175] If the position jump information is outside the preset range, determining that the first obstacle is not located on the first parking exit path;
[0176] The method further comprises:
[0177] If the first obstacle is not located on the first parking exit path, the vehicle is parked out based on the first parking exit path.
[0178] The embodiment of the present application can park the vehicle along the first parking path when the first obstacle does not affect the normal parking of the vehicle along the first parking path, thereby saving resources.
[0179] 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;
[0180] Memory, used to store computer programs;
[0181] The processor is configured to implement the vehicle parking method described in any of the above method embodiments when executing the program stored in the memory. During the vehicle parking process, it can be determined whether the outline of the first obstacle is on the first parking path. If the outline of the first obstacle is on the first parking path, the first parking path is replanned based on the outline of the first obstacle to obtain a new second parking path, thereby avoiding parking jams caused by the obstruction of the first obstacle and avoiding collisions with obstacles ahead.
[0182] 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.10 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.
[0183] The communication interface 1120 is used for communication between the above electronic device and other devices.
[0184] 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.
[0185] 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.
[0186] In another embodiment of the present application, a computer-readable storage medium is provided, on which a program of the 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.
[0187] 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.
[0188] 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: Acquiring first collision point information collected from a surrounding environment of the vehicle when the vehicle is parked out according to a first parking-out path, wherein the first parking-out path is determined based on parking environment information collected from the surrounding environment after the vehicle is parked; determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path; If the first obstacle is located on the first parking exit path, determining a second parking exit path based on the first collision point information; The vehicle is unparked based on the second unparking path.
2. The vehicle parking method according to claim 1, characterized in that: Determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path includes: determining second collision point information according to the parking environment information; Determining position jump information of the first obstacle relative to a second obstacle corresponding to the second collision point information; If the position jump information is within a preset range, it is determined that the first obstacle is located on the first parking exit path.
3. The vehicle parking method according to claim 1, characterized in that: Determining a second exit path based on the first collision point information includes: determining a length of the first obstacle based on the first collision point information; The second parking-out path is determined based on a path determination strategy corresponding to the length of the first obstacle.
4. The vehicle parking method according to claim 3, characterized in that: Determining the second exit path based on a path determination strategy corresponding to the length of the first obstacle includes: If the length of the first obstacle is less than or equal to a preset length threshold, determining a second parking path based on an initial heading angle of the vehicle before parking; If the length of the first obstacle is greater than a preset threshold, a second exit path is determined based on the heading angle of the first obstacle.
5. The vehicle parking method according to claim 4, characterized in that: Determining a second exit path based on the heading angle of the first obstacle includes: If the heading angle of the first obstacle is parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the initial heading angle of the vehicle.
6. The vehicle parking method according to claim 5, characterized in that: Determining a second parking path based on the initial heading angle of the vehicle includes: determining a heading angle of the vehicle based on an initial heading angle of the vehicle; Obtaining a path end point corresponding to the first collision information; A second parking path is generated based on the heading angle of the vehicle and the path end point.
7. The vehicle parking method according to claim 4, characterized in that: Determining a second exit path based on the heading angle of the first obstacle includes: If the heading angle of the first obstacle is not parallel to the initial heading angle of the vehicle, a second parking exit path is determined based on the heading angle of the first obstacle.
8. The vehicle parking method according to claim 7, characterized in that: Determining a second exit path based on the heading angle of the first obstacle includes: Determining the heading angle of the first obstacle as the heading angle of the vehicle; Obtaining a path end point corresponding to the first collision information; A second parking path is generated based on the heading angle of the vehicle and the path end point.
9. The vehicle parking method according to claim 2, characterized in that: Determining whether a first obstacle corresponding to the first collision point information is located on the first parking exit path further includes: If the position jump information is outside the preset range, determining that the first obstacle is not located on the first parking exit path; The method further comprises: If the first obstacle is not located on the first parking exit path, the vehicle is parked out based on the first parking exit path.
10. A vehicle parking device, characterized in that: include: an information acquisition module, configured to acquire first collision point information collected from a surrounding environment when the vehicle is parked out according to a first parking-out path, wherein the first parking-out path is determined based on parking environment information collected from the surrounding environment after the vehicle is parked; A first determination module, configured to determine whether a first obstacle corresponding to the first collision point information is located on the first parking exit path; a second determining module, configured to determine a second parking path based on the first collision point information if the first obstacle is located on the first parking path; A vehicle parking module is used to park the vehicle based on the second parking path.
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 program of the vehicle parking method, and when the program of the vehicle parking method is executed by the processor, the steps of the vehicle parking method according to any one of claims 1 to 9 are implemented.
