Parking method, device, vehicle-mounted controller and target vehicle

By detecting and adjusting the heading angle of the parking space, the scratching problem caused by the not perpendicularity of the vehicle and the obstacle is solved, and the accuracy and safety of the parking space are improved.

CN118579066BActive Publication Date: 2024-11-15BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411067747.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-15
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

When detecting parking spaces, the existing parking methods cannot effectively deal with the situation where the vehicle and the obstacle are not perpendicular, resulting in easy scratching of obstacles when parking spaces.

Method used

By detecting the heading angle of the parking space and adjusting the heading angle according to the distance between the target vehicle and the obstacle, the vehicle and the obstacle are facing parallel to the direction when parking space, reducing the risk of scratches.

Benefits of technology

It improves the accuracy of parking space inspection and reduces the risk of vehicles scratching obstacles during parking spaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118579066B_ABST
    Figure CN118579066B_ABST
Patent Text Reader

Abstract

The present application relates to a parking method, device, vehicle-mounted controller and target vehicle. When a parking space is detected by a target vehicle, the target vehicle is controlled to park based on the parking space, and the heading angle of the parking space is obtained. In the process of controlling the target vehicle to park based on the parking space, at least one distance between the target vehicle and an obstacle at an adjacent position is obtained, and the adjacent position refers to a position adjacent to the parking space. According to the at least one distance, the heading angle of the parking space is adjusted to obtain an adjusted parking space. According to the heading angle of the adjusted parking space, the heading angle of the target vehicle is adjusted so that the target vehicle is parked in the adjusted parking space, thereby reducing the risk of the target vehicle scratching an obstacle during parking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a parking method, device, vehicle-mounted controller and target vehicle. Background Art

[0002] Automatic parking technology can help users park. In automatic parking, parking space detection technology is one of the key technologies. Whether the parking space detection result is accurate directly affects the final parking effect. In parking space detection technology, sensors can sense the external environment information of the vehicle to determine whether there is a parking space.

[0003] Among them, commonly used sensors include visual sensors and ultrasonic radar sensors. The process of performing parking space detection by ultrasonic radar sensors can be: detecting the distance between the vehicle and the obstacle by ultrasonic radar sensors, and determining whether there is a parking space according to the distance between the vehicle and the obstacle.

[0004] However, when the vehicle's driving direction is not perpendicular to the obstacle, the current method of determining whether there is a parking space based on the distance between the vehicle and the obstacle will cause the detected parking space to intersect with the obstacle, causing the vehicle to scratch the obstacle while parking in the parking space. Summary of the invention

[0005] The embodiments of the present application provide a parking method, device, vehicle-mounted controller, and target vehicle, which improve the accuracy of detecting available parking spaces and reduce the risk of the vehicle scratching obstacles when parking in available parking spaces, so as to at least partially solve the above-mentioned technical problems.

[0006] In order to achieve the above object, according to a first aspect of the present application, a parking method is provided, comprising:

[0007] When the target vehicle detects a parking space available, controlling the target vehicle to park based on the parking space available, and obtaining a heading angle of the parking space available;

[0008] In a process of controlling the target vehicle to park based on the available parking space, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position, wherein the adjacent position refers to a position adjacent to the available parking space;

[0009] According to the at least one distance, adjusting the heading angle of the parking space to obtain an adjusted parking space;

[0010] According to the adjusted heading angle of the parking space, the heading angle of the target vehicle is adjusted so that the target vehicle can be parked in the adjusted parking space.

[0011] Optionally, the parking method further includes:

[0012] When the target vehicle starts to detect a parking space for parking, obtaining an initial vehicle position of the target vehicle;

[0013] In the process of controlling the target vehicle to park based on the available parking space, the parking method further includes:

[0014] Obtaining a target vehicle position of the target vehicle compared to the initial vehicle position when collecting each of the distances;

[0015] The step of adjusting the heading angle of the available parking space according to the at least one distance to obtain the adjusted available parking space includes:

[0016] According to the at least one distance and the position of the target vehicle, the heading angle of the available parking space is adjusted to obtain an adjusted available parking space.

[0017] Optionally, adjusting the heading angle of the available parking space according to the at least one distance and the position of the target vehicle to obtain an adjusted available parking space includes:

[0018] Determining deviation information between a heading angle of the parking space and a heading angle of the obstacle according to the at least one distance and the position of the target vehicle;

[0019] According to the deviation information, the heading angle of the parking space is adjusted to obtain an adjusted parking space.

[0020] Optionally, the number of the distances is at least two, the number of the target vehicle positions is also at least two, and the determining, based on the at least one distance and the target vehicle positions, of the deviation information between the heading angle of the parking space and the heading angle of the obstacle includes:

[0021] Selecting at least one distance group from the above distances, wherein one distance group includes two of the above distances;

[0022] Based on the distance difference between two of the distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined.

[0023] Optionally, the target vehicle position is a first position coordinate, and after obtaining the initial vehicle position of the target vehicle, the method further includes:

[0024] Taking the initial vehicle position as the origin of the coordinate system, constructing a vehicle coordinate system according to the heading angle of the target vehicle at the initial position;

[0025] The step of obtaining the target vehicle position of the target vehicle when collecting each of the distances compared to the initial vehicle position includes:

[0026] The first position coordinates of the target vehicle in the vehicle coordinate system when collecting each of the distances are obtained.

[0027] Optionally, an obstacle coordinate system is established according to the heading angle of the obstacle;

[0028] The second position coordinate of the target vehicle in the obstacle coordinate system is set at the first position coordinate corresponding to each of the distances in the distance group, wherein the first coordinate value in the second position coordinate is the distance of the target vehicle at the first position coordinate;

[0029] Using the deviation information between the heading angle of the parking space and the heading angle of the obstacle as an unknown number, constructing a coordinate transformation relationship between the obstacle coordinate system and the vehicle coordinate system;

[0030] The method of determining the deviation information between the heading angle of the parking space and the heading angle of the obstacle based on the distance difference between the two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group includes:

[0031] Substituting a first position coordinate and a corresponding second position coordinate into the above coordinate transformation relationship to obtain a first coordinate transformation relationship;

[0032] Substituting another first position coordinate and the corresponding second position coordinate into the above coordinate transformation relationship to obtain a second coordinate transformation relationship;

[0033] Subtracting the first coordinate transformation relationship from the second coordinate transformation relationship to obtain a relationship between the distance difference, the position difference information, and the deviation information;

[0034] Solving the above relationship, we can obtain the above deviation information.

[0035] Optionally, the number of the distance groups includes at least two, and the determining of the deviation information between the heading angle of the parking space and the heading angle of the obstacle based on the distance difference between two of the distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group includes:

[0036] Determine candidate deviation information for the distance group between the heading angle of the parking space and the heading angle of the obstacle based on a distance difference between two of the distances in the distance group and position difference information between target vehicle positions corresponding to the two distances in the distance group;

[0037] The candidate deviation information for at least two of the distance groups is filtered to obtain deviation information between the heading angle of the parking space and the heading angle of the obstacle.

[0038] Optionally, the obstacles include at least two, the deviation information includes at least two, and the adjusting the heading angle of the parking space according to the deviation information to obtain the adjusted parking space includes:

[0039] The above deviation information is fused to obtain fused deviation information;

[0040] According to the fused deviation information, the heading angle of the parking space is adjusted to obtain an adjusted parking space.

[0041] Optionally, the above-mentioned performing fusion processing on the above-mentioned deviation information to obtain fused deviation information includes:

[0042] Get the weight corresponding to each of the above obstacles;

[0043] According to the weight, the above deviation information is adjusted to obtain adjusted deviation information;

[0044] The adjusted deviation information is added to obtain the fused deviation information.

[0045] Optionally, obtaining the weight corresponding to each of the obstacles includes:

[0046] The weight corresponding to each of the obstacles is determined according to the distance between the target vehicle and each of the obstacles when the target vehicle is at the same target vehicle position.

[0047] Optionally, the obtaining of at least one distance between the target vehicle and an obstacle at an adjacent position includes:

[0048] After detecting that the distance traveled by the target vehicle after starting to park satisfies a first preset distance condition, performing a first round of distance collection process to collect at least one distance between the target vehicle and an obstacle at an adjacent position;

[0049] After the first round of distance collection is completed, if the distance traveled by the target vehicle meets a second preset distance condition, a second round of distance collection is performed to collect at least one distance between the vehicle and an obstacle at an adjacent position.

[0050] Optionally, in the first round of distance collection process and the second round of distance collection process, the distance between the target vehicle positions corresponding to the adjacent collected distances is a first preset distance threshold;

[0051] Furthermore, the distance between the target vehicle position corresponding to the last distance in the first round of distance collection process and the first distance in the second round of distance collection process is a second preset distance threshold, and the second preset distance threshold is smaller than the first preset distance threshold.

[0052] According to a second aspect of the present application, a parking device is provided, comprising:

[0053] A first acquisition module, configured to control the target vehicle to park based on the available parking space when the target vehicle detects the available parking space, and to acquire the heading angle of the available parking space;

[0054] a second acquisition module, configured to acquire at least one distance between the target vehicle and an obstacle at an adjacent position during the process of controlling the target vehicle to park based on the available parking space, wherein the adjacent position refers to a position adjacent to the available parking space;

[0055] A first adjustment module, configured to adjust the heading angle of the parking space according to the at least one distance to obtain an adjusted parking space;

[0056] The second adjustment module is used to adjust the heading angle of the target vehicle according to the heading angle of the adjusted parking space, so that the target vehicle can be parked in the adjusted parking space.

[0057] According to the third aspect of the present application, a vehicle-mounted controller is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the parking method provided in an embodiment of the present application is implemented.

[0058] According to a fourth aspect of the present application, a target vehicle is also provided, the target vehicle comprising the vehicle-mounted controller provided in an embodiment of the present application.

[0059] In an embodiment of the present application, when a target vehicle detects a parking space, the target vehicle is controlled to park based on the parking space, and a heading angle of the parking space is obtained. In the process of controlling the target vehicle to park based on the parking space, at least one distance between the target vehicle and an obstacle at an adjacent position is obtained, and the adjacent position refers to a position adjacent to the parking space. According to the at least one distance, the heading angle of the parking space is adjusted to obtain an adjusted parking space. According to the heading angle of the adjusted parking space, the heading angle of the target vehicle is adjusted so that the target vehicle is parked in the adjusted parking space. In the process of controlling the target vehicle to park based on the parking space, the heading angle of the parking space is adjusted according to the distance between the obstacle and the target vehicle, so that the direction of the adjusted parking space is parallel to the direction of the obstacle, thereby improving the accuracy of the detected parking space and reducing the risk of the target vehicle scratching the obstacle when parking in the parking space.

[0060] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0062] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same figure numbers represent the same parts in the following description.

[0063] Figure 1 is a flowchart of a parking method provided in an exemplary embodiment of the present application;

[0064] Figure 2 is a schematic diagram of a target direction and a direction diagram of a parking space provided in an exemplary embodiment of the present application;

[0065] Figure 3 is a schematic diagram of a process for determining available parking spaces provided in an exemplary embodiment of the present application;

[0066] Figure 4 is a schematic diagram of a vehicle coordinate system provided in an exemplary embodiment of the present application;

[0067] Figure 5 is a schematic diagram of an obstacle coordinate system provided in an exemplary embodiment of the present application;

[0068] Figure 6 is a schematic diagram of distances provided in an exemplary embodiment of the present application;

[0069] Figure 7 is a schematic diagram of an obstacle provided in an exemplary embodiment of the present application;

[0070] Figure 8 is a schematic diagram of an adjusted parking space provided in an exemplary embodiment of the present application;

[0071] Fig. 9 is another schematic diagram of an adjusted parking space provided in an exemplary embodiment of the present application;

[0072] Fig.10 is a schematic diagram of a parking device provided in an exemplary embodiment of the present application;

[0073] Fig.11It is a schematic diagram of the structure of the vehicle-mounted controller provided in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0074] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0075] The embodiments of the present application provide a parking method. Figure 1 FIG. 1 is a flow chart showing a parking method provided by an exemplary embodiment of the present application. Figure 1 As shown, the parking method includes the following steps:

[0076] S101. When a target vehicle detects an available parking space, the target vehicle is controlled to park based on the available parking space, and a heading angle of the available parking space is obtained.

[0077] Among them, the parking space refers to a parking space that is not occupied by a vehicle. Controlling the target vehicle to park based on the parking space can be understood as controlling the target vehicle to drive to the location of the parking space. The heading angle of the parking space refers to the angle between the direction of the parking space and the target direction. The target direction is a preset direction, for example, the target direction can be the direction of the X axis in the ground coordinate system.

[0078] For example, the target direction and the orientation of the available parking space can be as follows Figure 2 As shown, at this time, the heading angle of the parking space is 90°.

[0079] The type of the target vehicle can be set according to actual conditions. For example, the target vehicle can be a fuel vehicle, a plug-in hybrid vehicle, or a new energy vehicle, etc., which is not specifically limited in the embodiments of the present application.

[0080] The target vehicle may include a distance measuring sensor, which is used to obtain the target distance between the target vehicle and the obstacle, and detect whether there is a parking space based on the target distance. The type of the distance measuring sensor can be set according to actual conditions, for example, the distance measuring sensor can be a radar sensor or an ultrasonic sensor, which is not limited in the embodiments of the present application.

[0081] In some embodiments, when the obstacle includes one, the process of detecting whether there is a parking space by using the target distance may be:

[0082] Receive a parking instruction, control the target vehicle to move according to the parking instruction, and collect the target distance between the target vehicle and the obstacle through a distance measuring sensor;

[0083] When the collected target distance is greater than the preset distance threshold for the first time, determining the starting position of the available parking space according to the position of the collected target distance;

[0084] After determining the starting position, continue to collect the target distance between the target vehicle and the obstacle;

[0085] If the target distances collected between the starting position and the candidate end position of the target vehicle are all greater than the preset distance threshold, the end position of the available parking space is determined according to the candidate end position to obtain the available parking space, and the distance between the candidate end position and the starting position is the preset distance.

[0086] The preset distance threshold is a preset value, which can be set according to the maximum distance that the distance measuring sensor can measure and the length of the target vehicle. The preset distance is a preset distance, which can be set according to the width of the target vehicle.

[0087] The position of collecting the target distance may refer to the position of the target vehicle when the target distance is collected. Optionally, the position of the target vehicle may be represented by at least one position coordinate, and when the position of the target vehicle is represented by multiple position coordinates, each position coordinate represents the position of a certain part of the target vehicle.

[0088] Determining the starting position of the available parking space according to the position of the collected target distance can be understood as determining the position of a certain part of the target vehicle when the target distance is collected as the starting position of the available parking space. Determining the end position of the available parking space according to the candidate end position can be understood as determining the candidate end position of a certain part of the target vehicle as the end position of the available parking space.

[0089] For example, the preset distance is S, the target distance is D, and the target vehicle receives a parking instruction at position L1. According to the parking instruction, the target vehicle is controlled to move and the target distance between the target vehicle and the obstacle is collected by the distance measuring sensor. The first target distance greater than the preset distance threshold is the target distance collected at position L2. At this time, the target position coordinates in position L2 are determined as the starting position of the parking space. Position L1 can be Figure 3 As shown in 301, the position L2 can be Figure 3 As shown in 302, the target vehicle continues to travel and continues to collect the target distance between the target vehicle and the obstacle. The distance between position L2 and position L3 is the preset distance, and position L3 is the candidate end position. If the target distances collected from position L2 to position L3 are all greater than the preset distance threshold, the target position coordinates in position L3 are determined to be the end position of the parking space, and the parking space is obtained. For example, Figure 3 As shown in 303.

[0090] In some embodiments, when there are two obstacles, the process of detecting whether there is a parking space by using the target distance may be:

[0091] Receive a parking instruction, control the target vehicle to move according to the parking instruction, and collect the target distance between the target vehicle and the obstacle through a distance measuring sensor;

[0092] When the collected target distance is greater than the preset distance threshold for the first time, determining the starting position of the available parking space according to the position of the collected target distance;

[0093] After determining the starting position, continue to collect the target distance between the target vehicle and the obstacle;

[0094] If the target distances collected between the starting position and the first candidate terminal position of the target vehicle are greater than the preset distance threshold and the target distances collected between the first candidate terminal position and the second candidate terminal position are less than the preset distance threshold, the terminal position of the available parking space is determined according to the first candidate terminal position to obtain the available parking space, and the distance between the first candidate terminal position and the starting position is the preset distance.

[0095] The distance between the first candidate terminal position and the second candidate terminal position may be a preset distance.

[0096] S102. In a process of controlling a target vehicle to park based on an available parking space, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position, where the adjacent position refers to a position adjacent to the available parking space.

[0097] The adjacent position may be a parking space, or may not be a parking space. The adjacent position may be located on the left side of a parking space, or may be located on the right side of a parking space. The adjacent position may include one or two, and when the adjacent position includes one, the obstacle includes one, and when the adjacent position includes two, the obstacles include two.

[0098] The target vehicle may collect at least one distance between the target vehicle and the obstacle through a distance measuring sensor. Optionally, the at least one distance between the target vehicle and the obstacle may be at least one distance between the distance measuring sensor and the obstacle.

[0099] When the at least one distance includes a plurality of distances, the distance between the target vehicle positions when collecting different distances may be a first preset distance threshold and / or a second preset distance threshold.

[0100] In some embodiments, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position includes:

[0101] After detecting that the distance traveled by the target vehicle after starting parking meets the first preset distance condition, a first round of distance collection process is performed to collect at least one distance between the target vehicle and an obstacle at an adjacent position.

[0102] In some embodiments, when the at least one distance includes a plurality of distances, in the process of controlling the target vehicle to park based on the available parking space, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position includes:

[0103] After detecting that the distance traveled by the target vehicle after starting parking satisfies a first preset distance condition, performing a first round of distance collection process to collect at least one distance between the target vehicle and an obstacle at an adjacent position;

[0104] After the first round of distance collection is completed, if the distance traveled by the target vehicle meets the second preset distance condition, a second round of distance collection process is performed to collect at least one distance between the vehicle and an obstacle at an adjacent position.

[0105] Among them, the first preset distance condition can be a pre-set condition. For example, when it is detected that the distance traveled by the target vehicle after starting parking is equal to or greater than the preset driving distance, it can be determined that the distance traveled by the target vehicle after starting parking meets the first preset distance condition.

[0106] The second preset distance condition may be a pre-set condition. For example, when it is detected that the distance traveled by the target vehicle after the first round of distance collection is equal to or greater than the second preset distance threshold, it is determined that the distance traveled by the target vehicle after the first round of distance collection meets the second preset distance condition. The second preset distance threshold and the preset travel distance may be different or the same.

[0107] For the convenience of description, at least one distance collected in the first round of distance collection is referred to as at least one first distance, and at least one distance collected in the second round of distance collection is referred to as at least one second distance. When the first distance includes one and the second distance includes one, the distance traveled by the target vehicle after the first round of distance collection is completed is the distance between the target vehicle position when the first distance is collected and the target vehicle position when the second distance is collected.

[0108] When the first distance includes multiple and the second distance includes multiple, the distance traveled by the target vehicle after the first round of distance collection process is completed is the distance between the target vehicle position when the last first distance is collected and the target vehicle position when the first second distance is collected.

[0109] Optionally, when the first distance includes multiple and the second distance includes multiple, in the first round of distance collection process, and in the second round of distance collection process, the distance between the target vehicle positions corresponding to adjacent collected distances is a first preset distance threshold, and the distance between the target vehicle positions corresponding to the last distance in the first round of distance collection process and the first distance in the second round of distance collection process is a second preset distance threshold, and the second preset distance threshold is less than the first preset distance threshold.

[0110] That is, the distance between the target vehicle positions when collecting each first distance is the first preset distance threshold, the distance between the target vehicle positions when collecting each second distance is also the first preset distance threshold, and the distance between the target vehicle position when collecting the last first distance and the target vehicle position when collecting the first second distance is the second preset distance threshold. Since the second preset distance threshold is smaller than the first preset distance threshold, the difference between the collected first first distance and the collected first second distance can be caused by the deviation of the heading angle of the parking space, rather than the distance measurement error of the distance measurement sensor.

[0111] The first preset distance threshold and the second preset distance threshold can be set according to actual conditions. For example, the first preset distance threshold can be a value between 1-1.5 meters, and the second preset distance threshold can be a value of about 10 centimeters.

[0112] The second preset distance threshold is smaller than the first preset distance threshold. For example, the first preset distance threshold is , the second preset distance threshold is , Greater than .

[0113] Optionally, when the first distance includes a plurality of numbers and the second distance includes a plurality of numbers, the number of the first distance and the number of the second distance can be set according to actual conditions. For example, when the first distance and the second distance both include 5 numbers, the first distance can be D 11 , D 12 , D 13 , D 14 and D 15 , the second distance can be D 21 , D 22 , D 23 , D 24 and D 25 , when the first distance and the second distance include 4, the first distance can be D 11 , D 12 , D 13 and D 14 , the second distance can be D 21 , D 22 , D23 and D 24 .

[0114] S103: Adjust the heading angle of the available parking space according to the at least one distance to obtain an adjusted available parking space.

[0115] In an embodiment of the present application, the heading angle of the parking space is adjusted according to at least one distance so that the parking space direction indicated by the adjusted heading angle of the parking space is parallel to the obstacle direction, thereby reducing the risk of the target vehicle scratching the obstacle when parking in the adjusted parking space.

[0116] For example, the target direction is 0°, the heading angle of the parking space is 45°, the orientation of the parking space is 45°, the heading angle of the obstacle is 90°, and the orientation of the obstacle is 90°. At this time, the orientation of the parking space and the orientation of the obstacle are not parallel. The heading angle of the parking space is adjusted from 45° to 90° to obtain the adjusted parking space. The heading angle of the adjusted parking space is 90°, and the orientation of the adjusted parking space is 90°, which is parallel to the orientation of the obstacle.

[0117] In some embodiments, the heading angle of the available parking space is adjusted according to at least one distance, and the process of obtaining the adjusted available parking space may be:

[0118] Performing mapping processing on at least one distance to obtain a heading angle corresponding to the at least one distance;

[0119] The heading angle of the available parking space is adjusted to a heading angle corresponding to at least one distance, so as to obtain an adjusted available parking space.

[0120] In some embodiments, when the target vehicle begins to detect a parking space for parking, obtaining an initial vehicle position of the target vehicle;

[0121] In the process of controlling the target vehicle to park based on the available parking space, the parking method further includes:

[0122] Obtain the target vehicle position of the target vehicle compared to the initial vehicle position at each collected distance;

[0123] Adjusting the heading angle of the parking space according to at least one distance to obtain an adjusted parking space includes:

[0124] According to at least one distance and the position of the target vehicle, the heading angle of the parking space is adjusted to obtain an adjusted parking space.

[0125] When the target vehicle receives the parking instruction, it starts to detect the parking space for parking, and the initial vehicle position is the position of the target vehicle when the parking instruction is received. Optionally, the initial vehicle position can be the position of the distance measuring sensor when the parking instruction is received.

[0126] A coordinate system can be constructed in advance for the target vehicle, and then the initial vehicle position of the target vehicle in the coordinate system and the candidate vehicle positions of the target vehicle at each collection distance are obtained, and then the target vehicle position is determined based on the initial vehicle position and the candidate vehicle positions.

[0127] Alternatively, the target vehicle may also construct a vehicle coordinate system with a certain position coordinate in the initial vehicle position as the origin of the coordinate system, and then obtain the first position coordinate of the target vehicle in the vehicle coordinate system when collecting each distance. Since the vehicle coordinate system is a coordinate system constructed with a certain position coordinate in the initial vehicle position as the origin of the coordinate system, the first position coordinate of the target vehicle in the vehicle coordinate system when collecting each distance is the target vehicle position relative to the initial vehicle position.

[0128] It should be understood that when constructing a vehicle coordinate system with a certain position coordinate in the initial vehicle position as the origin of the coordinate system, the vehicle coordinate system can be constructed by taking a certain position coordinate in the initial vehicle position as the origin of the coordinate system and determining the direction of the coordinate axis according to the heading angle of the target vehicle at the initial vehicle position.

[0129] Determining the direction of the coordinate axis according to the heading angle of the target vehicle at the initial vehicle position can be understood as determining the direction indicated by the heading angle of the target vehicle at the initial vehicle position as the direction of the coordinate axis. The direction indicated by the heading angle of the target vehicle at the initial vehicle position refers to the direction of the target vehicle at the initial vehicle position.

[0130] For example, a certain position coordinate in the initial vehicle position of the target vehicle may be the position coordinate of the ranging sensor, and the ranging sensor may be Figure 4 As shown in 401, the vehicle coordinate system constructed with the orientation of the target vehicle at the initial vehicle position as the X-axis direction and the position coordinates of the ranging sensor as the origin of the coordinate system can be as follows Figure 4 As shown in 402.

[0131] In the process of detecting the available parking space, if the orientation of the target vehicle at the initial vehicle position and the orientation of the obstacle are perpendicular to each other, then the orientation of the available parking space and the orientation of the obstacle are parallel, that is, at this time, there is no need to adjust the heading angle of the available parking space; if the orientation of the target vehicle at the initial vehicle position and the orientation of the obstacle are not perpendicular, the orientation of the available parking space and the orientation of the obstacle will not be parallel, and at this time, the heading angle of the available parking space needs to be adjusted. Therefore, in an embodiment of the present application, the target vehicle position compared with the initial vehicle position when collecting each distance is obtained, and the heading angle of the available parking space is adjusted according to at least one distance and the target vehicle position to obtain the adjusted available parking space, so as to adjust the heading angle of the available parking space according to the distance between the target vehicle and the obstacle and the relative position change of the target vehicle to obtain the adjusted available parking space, thereby further improving the accuracy of the adjusted available parking space.

[0132] In some embodiments, adjusting the heading angle of the available parking space according to at least one distance and the position of the target vehicle to obtain an adjusted available parking space includes:

[0133] Determining deviation information between a heading angle of the parking space and a heading angle of the obstacle based on at least one distance and a target vehicle position;

[0134] According to the deviation information, the heading angle of the parking space is adjusted to obtain the adjusted parking space.

[0135] The deviation information may refer to the difference between the heading angle of the parking space and the heading angle of the obstacle. The difference between the heading angle of the parking space and the heading angle of the obstacle is the angle between the orientation of the parking space and the orientation of the obstacle.

[0136] For example, the target direction is 0°, the heading angle of the available parking space is 45°, the orientation of the available parking space is 45°, the heading angle of the obstacle is 90°, and the orientation of the obstacle is 90°. At this time, the difference between the heading angle of the available parking space and the heading angle of the obstacle is 45°, and the angle between the orientation of the available parking space and the orientation of the obstacle is also 45°, that is, the deviation information is 45°.

[0137] In an embodiment of the present application, deviation information between a heading angle of a parking space and a heading angle of an obstacle is determined based on at least one distance and a target vehicle position, and the heading angle of the parking space is adjusted based on the deviation information to obtain an adjusted parking space, so that the heading angle of the adjusted parking space is the same as the heading angle of the obstacle, and the orientation of the adjusted parking space is parallel to the orientation of the obstacle.

[0138] In some embodiments, the process of determining the deviation information between the heading angle of the parking space and the heading angle of the obstacle according to the at least one distance and the position of the target vehicle may be:

[0139] Mapping is performed on at least one distance and the position of the target vehicle to obtain deviation information between the heading angle of the parking space and the heading angle of the obstacle.

[0140] In some embodiments, the number of distances is at least two, the number of target vehicle positions is also at least two, and determining the deviation information between the heading angle of the parking space and the heading angle of the obstacle according to at least one distance and the target vehicle position includes:

[0141] Selecting at least one distance group from the distances, wherein a distance group includes two distances;

[0142] Based on the distance difference between two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined.

[0143] When the distance includes at least two first distances, one distance group may include two first distances; when the distance includes at least one first distance and at least one second distance, one distance group may include one first distance and one second distance.

[0144] When a distance group includes a first distance and a second distance and both the first distance and the second distance include multiple ones, the distance group may include multiple ones, and the first distance and the second distance in each distance group have a corresponding acquisition order relationship.

[0145] For example, when the first distance is D 11 , D 12 , D 13 , D 14 and D15 , the second distance is D 21 , D 22 , D 23 , D 24 and D 25 When , the distance groups include 5, namely, distance group 1, distance group 2, distance group 3, distance group 4 and distance group 5. Distance group 1 can include D 11 and D 21 , distance group 2 can include D 12 and D 22 , distance group 3 can include D 13 and D 23 , distance group 4 can include D 14 and D 24 , distance group 5 can include D 15 and D 25 .

[0146] The target vehicle position corresponding to the distance is the target vehicle position of the target vehicle when the distance is collected. When the target vehicle position is represented by the first position coordinate, the position difference information between the target vehicle positions corresponding to the two distances in the distance group can refer to the coordinate difference between the two first position coordinates. For example, the two first position coordinates are (x1, y1) and (x2, y2), and the position difference information is (x2-x1, y2-y1).

[0147] In an embodiment of the present application, at least one distance group is selected from at least two distances, the distance group includes two distances, and based on the distance difference between the two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined, so that the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined by the distance change and the position change during the process of parking in the parking space.

[0148] In some embodiments, the target vehicle position is a first position coordinate, and after obtaining the initial vehicle position of the target vehicle, the method further includes:

[0149] Taking the initial vehicle position as the origin of the coordinate system, construct the vehicle coordinate system according to the heading angle of the target vehicle at the initial vehicle position;

[0150] Obtain the target vehicle position at each collected distance compared to the initial vehicle position, including:

[0151] The first position coordinates of the target vehicle in the vehicle coordinate system when collecting each distance are obtained.

[0152] Among them, each distance is each distance in at least one distance. Taking the initial vehicle position as the origin of the coordinate system, constructing the vehicle coordinate system according to the heading angle of the target vehicle at the initial vehicle position can be understood as taking a certain position coordinate in the initial vehicle position as the origin of the coordinate system, and taking the direction indicated by the heading angle of the target vehicle at the initial vehicle position as the coordinate axis direction to construct the vehicle coordinate system.

[0153] For example, a certain position coordinate in the initial vehicle position of the target vehicle may be the position coordinate of the ranging sensor, and the ranging sensor may be Figure 4 As shown in 401, the vehicle coordinate system constructed with the orientation of the target vehicle at the initial vehicle position as the X-axis direction and the position coordinates of the ranging sensor as the origin of the coordinate system can be as follows Figure 4 As shown in 402.

[0154] In some embodiments, the parking method provided by the embodiments of the present application further includes:

[0155] According to the heading angle of the obstacle, an obstacle coordinate system is established;

[0156] Set the second position coordinate of the target vehicle in the obstacle coordinate system under the first position coordinate corresponding to each distance in the distance group, wherein the first coordinate value in the second position coordinate is the distance of the target vehicle under the first position coordinate;

[0157] Taking the deviation information between the heading angle of the parking space and the heading angle of the obstacle as the unknown number, a coordinate transformation relationship between the obstacle coordinate system and the vehicle coordinate system is constructed;

[0158] Determining deviation information between a heading angle of a parking space and a heading angle of an obstacle based on a distance difference between two distances in the distance group and position difference information between target vehicle positions corresponding to the two distances in the distance group includes:

[0159] Substituting the first position coordinate and the second position coordinate corresponding to a distance in the distance group into the coordinate transformation relational expression to obtain a first coordinate transformation relational expression;

[0160] Substituting the first position coordinate and the second position coordinate corresponding to another distance in the distance group into the coordinate transformation relational expression to obtain a second coordinate transformation relational expression;

[0161] Perform a subtraction operation on the first coordinate transformation relationship and the second coordinate transformation relationship to obtain a relationship between the distance difference, the position difference information and the deviation information;

[0162] Solve the relationship and obtain the deviation information.

[0163] Among them, the obstacle coordinate system is established according to the heading angle of the obstacle. It can be understood that the obstacle coordinate system is constructed with a certain part of the obstacle close to the target vehicle as the origin of the coordinate system and the direction of the obstacle as the direction of the coordinate axis.

[0164] For example, when the obstacle is facing Figure 5 As shown in 501 or Figure 5 As shown in 502, the direction of the obstacle is taken as the y-axis direction, and the obstacle coordinate system constructed can be as follows Figure 5 As shown in 501 or Figure 5 As shown in 502.

[0165] The second position coordinate of the target vehicle in the obstacle coordinate system set at the first position coordinate corresponding to each distance in the distance group can be called the second position coordinate corresponding to the first position coordinate, which can be understood as the first position coordinate and the second position coordinate of the target vehicle in the vehicle coordinate system when the distance is collected.

[0166] For example, the target vehicle collects the distance D 11When , the position coordinates of the target vehicle in the vehicle coordinate system are the first position coordinates, and the position coordinates of the target vehicle in the obstacle coordinate system are the second position coordinates.

[0167] The distance at the first position coordinate, for example, can be D 11 When , the first position coordinate is (x11, y11) , when the first position coordinate is (x11, y11) When , the distance in the first position coordinate is D 11 .

[0168] It should be noted that the second position coordinate is an unknown position coordinate. Since the distance of the target vehicle at the first position coordinate is the first coordinate value in the second position coordinate, the distance at the first position coordinate can be assigned to the first coordinate value in the second position coordinate corresponding to the first position coordinate.

[0169] For example, the first coordinate value is the x-axis coordinate value, and the collected distance is the distance D 11 and distance D 12 ,distance D 11 and distance D 12 You can Figure 6 As shown, from Figure 6 It can be seen that the distance D 11 and distance D 12 That is, the x-axis coordinate value in the obstacle coordinate system. Assuming that the distance D is collected 11 When , the first position coordinate is (x11, y11) , the second position coordinates are (x11', y11') , after assigning the distance at the first position coordinate to the first coordinate value in the second position coordinate corresponding to the first position coordinate, the second position coordinate is (D 11 ,y11’) , after collecting the distance D 12 When , the first position coordinate is (x12, y12) , the second position coordinates are (x12’, y12’) , after assigning the distance at the first position coordinate to the first coordinate value in the second position coordinate corresponding to the first position coordinate, the second position coordinate is (D 12 ,y12’) .

[0170] Taking the deviation information between the heading angle of the parking space and the heading angle of the obstacle as an unknown number, constructing the coordinate conversion relationship between the obstacle coordinate system and the vehicle coordinate system can be understood as: taking the deviation information between the heading angle of the parking space and the heading angle of the obstacle as an unknown number, constructing the coordinate conversion relationship between the first position coordinate and the second position coordinate. For example, the coordinate conversion relationship can be as follows:

[0171]

[0172] in,( x,y ) represents the first position coordinate, ( x', y' ) represents the second position coordinate, Indicates the deviation information between the heading angle of the parking space and the heading angle of the obstacle, ( x 0 ,y 0) represents the position coordinates of the origin of the obstacle coordinate system in the vehicle coordinate system.

[0173] After obtaining the coordinate conversion relationship, the first position coordinate and the second position coordinate corresponding to a distance in the distance group are substituted into the coordinate conversion relationship to obtain the first coordinate conversion relationship, and the first position coordinate and the second position coordinate corresponding to another distance in the distance group are substituted into the coordinate conversion relationship to obtain the second coordinate conversion relationship. Subtraction operation is performed on the first coordinate conversion relationship and the second coordinate conversion relationship to obtain the relationship between the distance difference, the position difference information and the deviation information, and the relationship is solved to obtain the deviation information.

[0174] For example, the distance group includes distance D 11 and distance D 21 , assuming that the distance D 11 When , the first position coordinate is (x11, y11) , the second position coordinates are (x11', y11') , after assigning the distance at the first position coordinate to the first coordinate value in the second position coordinate corresponding to the first position coordinate, the second position coordinate is (D 11 ,y11’) , after collecting the distance D 21 When , the first position coordinate is (x21, y21) , the second position coordinates are (x21', y21') , after assigning the distance at the first position coordinate to the first coordinate value in the second position coordinate corresponding to the first position coordinate, the second position coordinate is (D 21 ,y21’) ,Will (x11, y11) and (D11 ,y11’) Substituting into the coordinate transformation relation, the first coordinate transformation relation can be obtained as:

[0175]

[0176] Will (x21, y21) and (D 21 ,y21’) Substituting into the coordinate transformation relation, the second coordinate transformation relation can be obtained as:

[0177]

[0178] Subtract the first coordinate transformation relationship from the second coordinate transformation relationship, and the resulting relationship is as follows:

[0179]

[0180] in, (x21-x11, y21-y11) Represents position difference information, ( D 21 -D 11 ) Represents the distance difference. (x21- x11, y21-y11) and( D 21 -D 11 ) It is known that, therefore, we can solve The value of The value of is the deviation information.

[0181] In some embodiments, the number of distance groups is at least two, and based on the distance difference between two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, determining the deviation information between the heading angle of the parking space and the heading angle of the obstacle includes:

[0182] Determine candidate deviation information for the distance group between the heading angle of the parking space and the heading angle of the obstacle based on the distance difference between the two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group;

[0183] The candidate deviation information for at least two distance groups is filtered to obtain deviation information between the heading angle of the parking space and the heading angle of the obstacle.

[0184] Among them, the type of filtering processing can be set according to actual conditions. For example, the filtering processing can include mean filtering processing or median filtering processing, which is not limited in the embodiments of the present application.

[0185] In an embodiment of the present application, the distance group includes at least two, and based on the distance difference between the two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, candidate deviation information for the distance group between the heading angle of the parking space and the heading angle of the obstacle is determined, and the candidate deviation information for at least two distance groups is filtered to obtain the deviation information between the heading angle of the parking space and the heading angle of the obstacle, thereby eliminating the influence of abnormal distances in the distance group on the deviation information.

[0186] For example, the distance group includes distance group 1, distance group 2, distance group 3, distance group 4 and distance group 5. According to the distance difference between two distances in distance group 1 and the position difference information between the target vehicle positions corresponding to the two distances, the candidate deviation information for distance group 1 is determined as According to the distance difference between the two distances in distance group 2 and the position difference information between the target vehicle positions corresponding to the two distances, the candidate deviation information for distance group 2 is determined as According to the distance difference between the two distances in distance group 3 and the position difference information between the target vehicle positions corresponding to the two distances, the candidate deviation information for distance group 3 is determined as According to the distance difference between the two distances in distance group 4 and the position difference information between the target vehicle positions corresponding to the two distances, the candidate deviation information for distance group 4 is determined as According to the distance difference between the two distances in distance group 5 and the position difference information between the target vehicle positions corresponding to the two distances, the candidate deviation information for distance group 5 is determined as ,right , , , and Perform filtering to obtain deviation information .

[0187] After obtaining the deviation information, the target vehicle adjusts the heading angle of the available parking space according to the deviation information to obtain the adjusted available parking space.

[0188] In some embodiments, when the obstacle includes one, the heading angle and the deviation information of the available parking space are added to obtain an adjusted available parking space, and the heading angle of the adjusted available parking space is the sum of the heading angle and the deviation information of the available parking space.

[0189] For example, the deviation information is , Indicates a certain angle. A certain angle includes positive and negative signs. The positive sign indicates a clockwise rotation of a certain angle, and the negative sign indicates a counterclockwise rotation of a certain angle. Add them together to get the adjusted parking space.

[0190] In some embodiments, the obstacles include at least two, the deviation information includes at least two, and the heading angle of the parking space is adjusted according to the deviation information to obtain the adjusted parking space, including:

[0191] The deviation information is fused to obtain fused deviation information;

[0192] According to the fused deviation information, the heading angle of the parking space is adjusted to obtain the adjusted parking space.

[0193] When there are two obstacles, the two obstacles can be, for example, Figure 7 Obstacle 1 and Obstacle 2 are shown.

[0194] The type of fusion processing can be set according to actual conditions. For example, the fusion processing can be average fusion processing or weighted fusion processing, which is not limited in the embodiments of the present application.

[0195] When the fusion process is average fusion process, the process of fusion processing the deviation information to obtain the fused deviation information can be:

[0196] Add the deviation information to obtain added deviation information;

[0197] Divide the added deviation information by 2 to obtain the fused deviation information.

[0198] For example, the obstacles include obstacle 1 and obstacle 2, and the deviation information between the heading angle of the parking space and the heading angle of obstacle 1 is , the deviation information between the heading angle of the parking space and the heading angle of obstacle 2 is , the deviation information after fusion is .

[0199] When the fusion process is weighted fusion process, the process of performing fusion process on the deviation information to obtain the fused deviation information can be:

[0200] Get the weight corresponding to each obstacle;

[0201] According to the weight, the deviation information is adjusted to obtain the adjusted deviation information;

[0202] The adjusted deviation information is added to obtain the fused deviation information.

[0203] Among them, adjusting the deviation information according to the weight can be understood as multiplying the weight by the deviation information.

[0204] For example, the obstacles include obstacle 1 and obstacle 2, and the deviation information between the heading angle of the parking space and the heading angle of obstacle 1 is , the weight corresponding to obstacle 1 is , the deviation information between the heading angle of the parking space and the heading angle of obstacle 2 is , the weight corresponding to obstacle 2 is ,right After adjustment, the adjusted deviation information is ,right After adjustment, the adjusted deviation information is , the deviation information after fusion is .

[0205] In some embodiments, the weight corresponding to each obstacle may be a preset fixed weight, or the weight corresponding to each obstacle may also be a dynamically adjusted weight. When the weight corresponding to each obstacle is a dynamically adjusted weight, obtaining the weight corresponding to each obstacle includes:

[0206] The weight corresponding to each obstacle is determined according to the distance between the target vehicle and each obstacle when the target vehicle is at the same target vehicle position.

[0207] The distance between the target vehicle and each obstacle when the target vehicle is at the same target vehicle position is at least one distance between the target vehicle and the obstacle at an adjacent position.

[0208] For example, the obstacles include obstacle 1 and obstacle 2, and at least one distance between the target vehicle and obstacle 1 includes , at least one distance between the target vehicle and obstacle 2 includes , the target vehicle is at the first position coordinate (x11, y11) When and ,according to and Determine the weight corresponding to obstacle 1. Since the sum of the weight corresponding to obstacle 1 and the weight corresponding to obstacle 2 is 1, after obtaining the weight corresponding to obstacle 1, the weight corresponding to obstacle 2 can be determined based on the weight corresponding to obstacle 1.

[0209] Optionally, when at least one distance between the target vehicle and the obstacle includes multiple distances, the average value of the multiple distances can be determined first, and then the weight corresponding to the obstacle can be determined based on the average value. Alternatively, the weight corresponding to the obstacle can be determined based on a certain distance between the target vehicle and each obstacle when the target vehicle is at the target vehicle position.

[0210] For example, the obstacles include obstacle 1 and obstacle 2, and at least one distance between the target vehicle and obstacle 1 includes , , , and , at least one distance between the target vehicle and obstacle 2 includes , , , and , the target vehicle is at the first position coordinate (x11, y11) When and , the target vehicle is at the first position coordinate (x12, y12) When and , the target vehicle is at the first position coordinate (x13, y13) When and , the target vehicle is at the first position coordinate (x14, y14) When and , the target vehicle is at the first position coordinate (x15, y15) When and , when the weight corresponding to the obstacle is determined according to a certain distance between the target vehicle and each obstacle when the target vehicle is at the target vehicle position, the weight corresponding to the obstacle can be determined according to and Determine the weight corresponding to obstacle 1, or, according to and Determine the weight corresponding to obstacle 1, or, according to and Determine the weight corresponding to obstacle 1, or, according to and Determine the weight corresponding to obstacle 1, or, according to and Determine the weight corresponding to obstacle 1. When the average value of multiple distances is determined, and then the weight corresponding to the obstacle is determined based on the average value, it can be determined , , , and The average value of D L ,Sure , , , and The average value of D R ,according toD L and D R Determine the weight corresponding to obstacle 1.

[0211] Optionally, when there are two obstacles, the distance between the target vehicle and each obstacle or the average value of multiple distances when the target vehicle is at the same target vehicle position can be substituted into the following formula to obtain the weight corresponding to a certain obstacle:

[0212]

[0213] in, K R and K L represents the distance between the target vehicle and each obstacle at the same target vehicle position, or, K R and K L Represents the average value of the distance between the target vehicle and each obstacle when the target vehicle is at the same target vehicle position.

[0214] It should be noted that when the first round of distance collection process and the second round of distance collection process are performed, the average value of multiple distances may refer to the average value of multiple distances collected in the first round of distance collection process, or may refer to the average value of multiple distances obtained in the second round of distance collection process, or may be the average value of multiple distances collected in the first round of distance collection process and multiple distances obtained in the second round of distance collection process.

[0215] S104. Adjust the heading angle of the target vehicle according to the adjusted heading angle of the parking space, so that the target vehicle can be parked in the adjusted parking space.

[0216] After the target vehicle obtains the adjusted parking space, the heading angle of the target vehicle can be adjusted so that the target vehicle can be parked in the adjusted parking space.

[0217] For example, when the obstacle includes 1, the parking space can be Figure 8 As shown in 801, the parking spaces can be adjusted Figure 8 As shown in 802, when there are two obstacles, the parking space can be Fig. 9 As shown in 901, the parking spaces after adjustment can be Fig. 9 As shown in 902.

[0218] In an embodiment of the present application, when a target vehicle detects a parking space, the target vehicle is controlled to park based on the parking space, and a heading angle of the parking space is obtained. In the process of controlling the target vehicle to park based on the parking space, at least one distance between the target vehicle and an obstacle at an adjacent position is obtained, and the adjacent position refers to a position adjacent to the parking space. According to the at least one distance, the heading angle of the parking space is adjusted to obtain an adjusted parking space. According to the heading angle of the adjusted parking space, the heading angle of the target vehicle is adjusted so that the target vehicle is parked in the adjusted parking space. In the process of controlling the target vehicle to park based on the parking space, the heading angle of the parking space is adjusted according to the distance between the obstacle and the target vehicle, so that the direction of the adjusted parking space is parallel to the direction of the obstacle, thereby improving the accuracy of the detected parking space and reducing the risk of the target vehicle scratching the obstacle when parking in the parking space.

[0219] In order to better implement the parking method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above parking method. The meanings of the terms are the same as those in the above parking method, and the specific implementation details can refer to the description in the method embodiment.

[0220] For example, Fig.10 As shown, the parking device may include:

[0221] The first acquisition module 1001 is used for controlling the target vehicle to park based on the available parking space when the target vehicle detects an available parking space, and acquiring the heading angle of the available parking space.

[0222] The second acquisition module 1002 is used to acquire at least one distance between the target vehicle and an obstacle at an adjacent position during the process of controlling the target vehicle to park based on the available parking space, where the adjacent position refers to a position adjacent to the available parking space.

[0223] The first adjustment module 1003 is configured to adjust the heading angle of the available parking space according to at least one distance to obtain an adjusted available parking space.

[0224] The second adjustment module 1004 is used to adjust the heading angle of the target vehicle according to the heading angle of the adjusted parking space, so that the target vehicle can be parked in the adjusted parking space.

[0225] Optionally, the first acquisition module 1001 is further configured to execute:

[0226] When the target vehicle starts to detect a parking space for parking, obtaining an initial vehicle position of the target vehicle;

[0227] In a process of controlling the target vehicle to park based on the available parking space, obtaining a target vehicle position of the target vehicle compared to an initial vehicle position when collecting each distance;

[0228] The first adjustment module 1003 is specifically used to perform:

[0229] According to at least one distance and the position of the target vehicle, the heading angle of the parking space is adjusted to obtain an adjusted parking space.

[0230] Optionally, the first adjustment module 1003 is specifically configured to execute:

[0231] Determining deviation information between a heading angle of the parking space and a heading angle of the obstacle based on at least one distance and a target vehicle position;

[0232] According to the deviation information, the heading angle of the parking space is adjusted to obtain the adjusted parking space.

[0233] Optionally, the number of distances is at least two, the number of target vehicle positions is also at least two, and the first adjustment module 1003 is specifically configured to execute:

[0234] Selecting at least one distance group from the distances, wherein a distance group includes two distances;

[0235] Based on the distance difference between two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined.

[0236] Optionally, the target vehicle position is a first position coordinate. After acquiring the initial vehicle position of the target vehicle, the first acquisition module 1001 is further used to execute:

[0237] Taking the initial vehicle position as the origin of the coordinate system, construct the vehicle coordinate system according to the heading angle of the target vehicle at the initial vehicle position;

[0238] The first position coordinates of the target vehicle in the vehicle coordinate system when collecting each distance are obtained.

[0239] Optionally, the first acquisition module 1001 is further configured to execute:

[0240] According to the heading angle of the obstacle, an obstacle coordinate system is established;

[0241] Set the second position coordinate of the target vehicle in the obstacle coordinate system under the first position coordinate corresponding to each distance in the distance group, wherein the first coordinate value in the second position coordinate is the distance of the target vehicle under the first position coordinate;

[0242] The deviation information between the heading angle of the parking space and the heading angle of the obstacle is taken as the unknown number, and the coordinate transformation relationship between the obstacle coordinate system and the vehicle coordinate system is constructed.

[0243] The first adjustment module 1003 is specifically used to perform:

[0244] Substituting the first position coordinate and the second position coordinate corresponding to a distance in the distance group into the coordinate transformation relational expression to obtain a first coordinate transformation relational expression;

[0245] Substituting the first position coordinate and the second position coordinate corresponding to another distance in the distance group into the coordinate transformation relational expression to obtain a second coordinate transformation relational expression;

[0246] Perform a subtraction operation on the first coordinate transformation relationship and the second coordinate transformation relationship to obtain a relationship between the distance difference, the position difference information and the deviation information;

[0247] Solve the relationship and obtain the deviation information.

[0248] Optionally, the number of distance groups is at least two, and the first adjustment module 1003 is specifically configured to execute:

[0249] Determine candidate deviation information for the distance group between the heading angle of the parking space and the heading angle of the obstacle based on the distance difference between the two distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group;

[0250] The candidate deviation information for at least two distance groups is filtered to obtain deviation information between the heading angle of the parking space and the heading angle of the obstacle.

[0251] Optionally, the obstacles include at least two, the deviation information includes at least two, and the first adjustment module 1003 is specifically used to execute:

[0252] The deviation information is fused to obtain fused deviation information;

[0253] According to the fused deviation information, the heading angle of the parking space is adjusted to obtain the adjusted parking space.

[0254] Optionally, the first adjustment module 1003 is specifically configured to execute:

[0255] Get the weight corresponding to each obstacle;

[0256] According to the weight, the deviation information is adjusted to obtain the adjusted deviation information;

[0257] The adjusted deviation information is added to obtain the fused deviation information.

[0258] Optionally, the first adjustment module 1003 is specifically configured to execute:

[0259] The weight corresponding to each obstacle is determined according to the distance between the target vehicle and each obstacle when the target vehicle is at the same target vehicle position.

[0260] Optionally, the first acquisition module 1001 is specifically configured to execute:

[0261] After detecting that the distance traveled by the target vehicle after starting parking satisfies a first preset distance condition, performing a first round of distance collection process to collect at least one distance between the target vehicle and an obstacle at an adjacent position;

[0262] After the first round of distance collection process is completed, if the distance traveled by the target vehicle meets the second preset distance condition, a second round of distance collection process is performed to collect at least one distance between the vehicle and an obstacle at an adjacent position.

[0263] Optionally, in the first round of distance collection process and the second round of distance collection process, the distance between the target vehicle positions corresponding to adjacent collected distances is a first preset distance threshold, and the distance between the target vehicle positions corresponding to the last distance in the first round of distance collection process and the first distance in the second round of distance collection process is a second preset distance threshold, and the second preset distance threshold is less than the first preset distance threshold.

[0264] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0265] The embodiment of the present application also provides a vehicle-mounted controller, Fig.11 The schematic diagram of the structure of the vehicle controller is shown, specifically:

[0266] The vehicle controller includes a memory 1101, a processor 1102, and a computer program stored in the memory and executable on the processor 1102. Those skilled in the art will appreciate that Fig.11 The vehicle-mounted controller structure shown in the figure does not constitute a limitation on the vehicle-mounted controller, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0267] The processor 1102 is the control center of the vehicle controller, and uses various interfaces and lines to connect various parts of the entire vehicle controller. By running or executing computer programs and / or modules stored in the memory 1101, and calling data stored in the memory 1101, the processor 1102 performs various functions of the vehicle controller and processes data. Optionally, the processor 1102 may include one or more processing cores; preferably, the processor 1102 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1102.

[0268] The memory 1101 can be used to store computer programs and modules. The processor 1102 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1101. The memory 1102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the on-board controller, etc. In addition, the memory 1101 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1101 may also include a memory controller to provide the processor 1102 with access to the memory 1101.

[0269] Specifically in this embodiment, the processor 1102 in the vehicle controller will load the executable files corresponding to the processes of one or more computer programs into the memory 1101 according to the following instructions, and the processor 1102 will run the computer program stored in the memory 1101, so as to implement the parking method provided in the embodiment of the present application, for example:

[0270] When the target vehicle detects a parking space available, controlling the target vehicle to park based on the parking space available, and obtaining a heading angle of the parking space available;

[0271] In a process of controlling the target vehicle to park based on the available parking space, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position, where the adjacent position refers to a position adjacent to the available parking space;

[0272] Adjusting the heading angle of the available parking space according to at least one distance to obtain an adjusted available parking space;

[0273] According to the heading angle of the adjusted parking space, the heading angle of the target vehicle is adjusted so that the target vehicle is parked in the adjusted parking space.

[0274] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the parking method above, which will not be elaborated here.

[0275] In some embodiments, the present application further provides a target vehicle, the target vehicle includes an on-board controller, and the target vehicle implements the parking method provided in the embodiments of the present application through the on-board controller.

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

[0277] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0278] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.

[0279] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the descriptions of various embodiments in the embodiments of the present application have different focuses, for parts not described in detail in a certain embodiment, reference can be made to the relevant embodiments of other embodiments. However, any modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A parking method, characterized in that: include: When the target vehicle starts to detect a parking space for parking, obtaining an initial vehicle position of the target vehicle; When the target vehicle detects a parking space available, controlling the target vehicle to park based on the parking space available, and acquiring a heading angle of the parking space available; In a process of controlling the target vehicle to park based on the available parking space, obtaining at least one distance between the target vehicle and an obstacle at an adjacent position and obtaining a target vehicle position of the target vehicle compared to the initial vehicle position when each of the distances is collected, wherein the adjacent position refers to a position adjacent to the available parking space; According to the at least one distance and the position of the target vehicle, adjusting the heading angle of the available parking space to obtain an adjusted available parking space; According to the heading angle of the adjusted parking space, the heading angle of the target vehicle is adjusted so that the target vehicle is parked in the adjusted parking space.

2. The parking method according to claim 1, characterized in that: The adjusting the heading angle of the available parking space according to the at least one distance and the position of the target vehicle to obtain an adjusted available parking space includes: Determining deviation information between a heading angle of the parking space and a heading angle of the obstacle according to the at least one distance and the position of the target vehicle; The heading angle of the available parking space is adjusted according to the deviation information to obtain an adjusted available parking space.

3. The parking method according to claim 2, characterized in that: The number of the distances is at least two, and the number of the target vehicle positions is also at least two; The step of determining the deviation information between the heading angle of the parking space and the heading angle of the obstacle according to the at least one distance and the position of the target vehicle includes: Selecting at least one distance group from the distances, wherein one distance group includes two distances; Based on the distance difference between two of the distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle is determined.

4. The parking method according to claim 3, characterized in that: The target vehicle position is a first position coordinate, and after obtaining the initial vehicle position of the target vehicle, the method further includes: Taking the initial vehicle position as the origin of the coordinate system, constructing a vehicle coordinate system according to the heading angle of the target vehicle at the initial vehicle position; The obtaining of the target vehicle position of the target vehicle compared to the initial vehicle position when collecting each of the distances comprises: The first position coordinates of the target vehicle in the vehicle coordinate system when collecting each of the distances are obtained.

5. The parking method according to claim 4, characterized in that: The parking method further comprises: Establishing an obstacle coordinate system according to the heading angle of the obstacle; Set the second position coordinate of the target vehicle in the obstacle coordinate system at the first position coordinate corresponding to each distance in the distance group, wherein the first coordinate value in the second position coordinate is the distance of the target vehicle at the first position coordinate; Using the deviation information between the heading angle of the parking space and the heading angle of the obstacle as an unknown number, constructing a coordinate transformation relationship between the obstacle coordinate system and the vehicle coordinate system; The determining, based on the distance difference between two of the distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle comprises: Substituting the first position coordinate and the second position coordinate corresponding to a distance in the distance group into the coordinate transformation relationship to obtain a first coordinate transformation relationship; Substituting the first position coordinate and the second position coordinate corresponding to another distance in the distance group into the coordinate transformation relationship to obtain a second coordinate transformation relationship; Performing a subtraction operation on the first coordinate transformation relationship and the second coordinate transformation relationship to obtain a relationship between the distance difference, the position difference information, and the deviation information; The relationship is solved to obtain the deviation information.

6. The parking method according to claim 3, characterized in that: The number of the distance groups is at least two, and the determining, based on the distance difference between two of the distances in the distance group and the position difference information between the target vehicle positions corresponding to the two distances in the distance group, the deviation information between the heading angle of the parking space and the heading angle of the obstacle includes: Determine candidate deviation information for the distance group between the heading angle of the parking space and the heading angle of the obstacle based on a distance difference between two of the distances in the distance group and position difference information between target vehicle positions corresponding to the two distances in the distance group; Filtering is performed on candidate deviation information of at least two of the distance groups to obtain deviation information between the heading angle of the parking space and the heading angle of the obstacle.

7. The parking method according to claim 2, characterized in that: The obstacles include at least two, the deviation information includes at least two, and adjusting the heading angle of the parking space according to the deviation information to obtain an adjusted parking space includes: Performing fusion processing on the deviation information to obtain fused deviation information; The heading angle of the available parking space is adjusted according to the fused deviation information to obtain an adjusted available parking space.

8. The parking method according to claim 7, characterized in that: The step of fusing the deviation information to obtain fused deviation information includes: Obtaining a weight corresponding to each obstacle; According to the weight, the deviation information is adjusted to obtain adjusted deviation information; The adjusted deviation information is added to obtain the fused deviation information.

9. The parking method according to claim 8, characterized in that: The obtaining of the weight corresponding to each obstacle includes: The weight corresponding to each obstacle is determined according to the distance between the target vehicle and each obstacle when the target vehicle is at the same target vehicle position.

10. The parking method according to any one of claims 1 to 9, characterized in that: The obtaining of at least one distance between the target vehicle and an obstacle at an adjacent position includes: After detecting that the distance traveled by the target vehicle after starting to park satisfies a first preset distance condition, performing a first round of distance collection process to collect at least one distance between the target vehicle and an obstacle at an adjacent position; After the first round of distance collection process is completed, if the distance traveled by the target vehicle meets a second preset distance condition, a second round of distance collection process is performed to collect at least one distance between the vehicle and an obstacle at an adjacent position.

11. The parking method according to claim 10, characterized in that: In the first round of distance collection process and the second round of distance collection process, the distance between the target vehicle positions corresponding to the adjacent collected distances is a first preset distance threshold; And, the distance between the target vehicle position corresponding to the last distance in the first round of distance collection process and the first distance in the second round of distance collection process is a second preset distance threshold, and the second preset distance threshold is smaller than the first preset distance threshold.

12. A parking device, characterized in that: include: A first acquisition module, configured to acquire an initial vehicle position of the target vehicle when the target vehicle starts to detect a parking space for parking; When the target vehicle detects a parking space available, controlling the target vehicle to park based on the parking space available, and acquiring a heading angle of the parking space available; a second acquisition module, configured to acquire at least one distance between the target vehicle and an obstacle at an adjacent position during the process of controlling the target vehicle to park based on the available parking space, wherein the adjacent position refers to a position adjacent to the available parking space; The first acquisition module is further used for acquiring the target vehicle position compared with the initial vehicle position when collecting each of the distances during the process of controlling the target vehicle to park based on the available parking space; A first adjustment module, configured to adjust the heading angle of the available parking space according to the at least one distance and the position of the target vehicle to obtain an adjusted available parking space; The second adjustment module is used to adjust the heading angle of the target vehicle according to the heading angle of the adjusted parking space, so that the target vehicle can be parked in the adjusted parking space.

13. A vehicle-mounted controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the parking method according to any one of claims 1 to 11 is implemented.

14. A target vehicle, characterized in that: Includes the vehicle-mounted controller as claimed in claim 13.