Automatic valet parking method and device, vehicle, storage medium and program product
By building a road topology map and planning a cruise path, the traditional automatic valet parking system can independently detect and park in idle parking spaces in unfamiliar scenarios, solving the problem of parking difficulties and improving user experience and system resource utilization efficiency.
Patent Information
- Application Number
- CN202411270634.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-11-15
AI Technical Summary
It is difficult for traditional automatic valet parking systems to choose idle parking spaces independently in unfamiliar scenarios, resulting in users requiring complex system resource integration or clarifying the parking space occupation, which weakens the convenience and user experience of the system.
By obtaining the parking lot map and the initial location of the vehicle, a road topology map containing the relationship between the lane and the parking space is constructed, a target cruise path with the largest number of parking spaces and no lanes are repeated, and a free parking space is detected during the vehicle's driving process.
It improves the probability of detecting idle parking spaces in unfamiliar scenarios, solves the problem of difficulty in parking, improves the user's driving experience, and reduces the system resource requirements, achieving the convenience of automatic valet parking.
Smart Images

Figure CN118953341A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to an automatic valet parking method, device, vehicle, storage medium and program product. Background Art
[0002] The Automated Valet Parking (AVP) system aims to solve the user's pain point of "last mile road congestion and parking difficulties". It can save users' parking time, especially in unfamiliar scenes to meet users' car needs, greatly alleviating users' anxiety when parking and picking up cars. Therefore, automatic valet parking technology is currently a major development trend in the intelligent driving industry.
[0003] At present, the planning path involved in automatic valet parking requires the user to select the end point before it can be generated, that is, the global path needs to be planned under the premise of setting a fixed target location. Generally speaking, the more unfamiliar the scene, the more the user needs automatic valet parking. Therefore, it is necessary to let the automatic valet parking system choose the parking space by itself.
[0004] However, choosing a target location in an unfamiliar scenario is not an easy task. It may require the parking lot to cooperate in accessing the occupancy status of each parking space, which requires a more complex system and certain resource integration to achieve; or it may require the user to be able to clearly know which parking space is not occupied through other means, which will undoubtedly greatly weaken the convenience and experience brought by the AVP system. Summary of the invention
[0005] In view of this, the present invention provides an automatic valet parking method, apparatus, vehicle, storage medium and program product to solve the problem that the traditional automatic valet parking system itself has difficulty in selecting an empty parking space for the vehicle to be parked.
[0006] In a first aspect, the present invention provides an automatic valet parking method, the method comprising:
[0007] Get the parking lot map and the vehicle's current initial position and initial heading;
[0008] Based on the lane information and parking space information in the parking lot map, a road topology map including the association relationship between lanes and parking spaces is constructed;
[0009] Path planning is performed based on the initial position, initial heading, and road topology map to determine the target cruising path that passes through the largest number of parking spaces and has no duplicate lanes;
[0010] The vehicle is controlled to travel based on the target cruising path. If an empty parking space is detected during the vehicle's travel, the vehicle is controlled to park in the empty parking space.
[0011] Beneficial effect: By extracting lane information and parking space information from the parking lot map, a road topology map containing the relationship between lanes and parking spaces is constructed, so that path planning is carried out according to the initial position and heading of the vehicle to obtain the target cruising path, ensuring that in the process of controlling the vehicle's cruising according to the target cruising path, the largest number of parking spaces can be passed without duplication of lanes, thereby increasing the probability of detecting vacant parking spaces, thereby controlling the vehicle to park in vacant parking spaces, solving the problem of difficulty in parking at the end of driving, and improving the user's driving experience. It has low requirements on system resources and is easy to implement.
[0012] In an optional implementation, path planning is performed based on the initial position, the initial heading, and the road topology map to determine a target cruising path that passes through the largest number of parking spaces and has non-repetitive lanes, including:
[0013] Based on the initial position and the initial heading, the lanes in the road topology map are screened to obtain multiple starting candidate lanes, and the number of associated parking spaces for each lane in the road topology map is determined;
[0014] A path traversal search is performed based on the number of associated parking spaces and the road topology of each starting candidate lane to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes.
[0015] Beneficial effects: First, lane screening is performed based on the vehicle's current initial position and initial heading, and a suitable starting alternative lane is selected. Then, a path traversal search is performed based on the starting alternative lane and the road topology map to obtain the target cruising path, ensuring that in the process of controlling the vehicle's cruising according to the target cruising path, the vehicle can pass through the largest number of parking spaces without duplication of lanes and find a vacant parking space as soon as possible.
[0016] In an optional implementation, a path traversal search is performed based on the number of associated parking spaces of each starting candidate lane and the road topology map to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes, including:
[0017] Multiple starting candidate lanes are stored in an open list in descending order of the number of associated vehicles, and the number of associated parking spaces of the lanes in the road topology graph is used as the initial cost value of the lanes;
[0018] The starting candidate lane ranked first in the open list is used as the first path edge, the first path edge is removed from the open list, and the first path edge is stored in the closed list;
[0019] Performing a path search based on a road topology graph, taking a lane whose starting endpoint coincides with the ending endpoint of the first path edge as a second path edge, and calculating the sum of the cost value between the current cost value of the first path edge and the initial cost value of the second path edge;
[0020] If the current cost value of the second path edge is less than the sum of the cost values, the current cost value of the second path edge is updated to the sum of the cost values, and the first path edge is used as the parent node of the second path edge;
[0021] storing the second path edge into the closed list, taking the second path edge as the new first path edge, and returning to the step of performing path search based on the road topology graph;
[0022] When a lane whose starting endpoint coincides with the ending endpoint of the first path edge is not found in the road topology graph, return to the step of using the first starting candidate lane in the open list as the first path edge until the open list is empty, thereby obtaining a target closed list;
[0023] Based on the current cost value of each path edge in the target closed list and the parent node association relationship, the target cruising path that passes through the largest number of parking spaces and has no repeated lanes is obtained.
[0024] Beneficial effect: By performing path retrieval in the road topology map, a cruising path with each starting alternative lane as the starting edge of the path is found. At the same time, the number of parking spaces passed by each cruising path is accumulated and assigned to the current cost value of the last edge in the path, so as to facilitate the determination of the target cruising path that passes the largest number of parking spaces and has no repeated lanes.
[0025] In an optional implementation, after taking the first path edge as the parent node of the second path edge, the method further includes:
[0026] If the second path edge is not stored in the open list, the second path edge is stored in the open list and the closed list respectively.
[0027] Beneficial effect: When the first path edge is used as the parent node of the second path edge, the efficiency of subsequent path retrieval is improved by storing the second path edge in an open list and a closed list respectively.
[0028] In an optional implementation, based on the current cost value of each path edge in the target closed list and the parent node association relationship, a target cruising path that passes through the largest number of parking spaces and has no repeated lanes is obtained, including:
[0029] Compare the current cost values of each path edge in the target closed list and determine the target path edge with the largest cost value;
[0030] Take the target path edge as the child node and backtrack according to the parent node association relationship to obtain the target patrol path.
[0031] Beneficial effect: By determining the target path edge with the largest cost value in the target closed list, and backtracking the target path edge according to the parent node association relationship, a cruising path with the largest number of parking spaces and no repeated lanes is obtained, which facilitates finding vacant parking spaces as soon as possible during the process of controlling the vehicle's cruising.
[0032] In an optional implementation, based on the initial position and the initial heading, lanes in the road topology map are screened to obtain multiple starting candidate lanes, including:
[0033] Calculating the distance between each lane in the road topology map and the initial position, and obtaining a plurality of first lanes whose distances between the lanes and the initial position are not greater than a first preset distance;
[0034] Based on lane headings respectively corresponding to the plurality of first lanes, a second lane having a heading difference between the lane heading and the initial heading less than a preset angle is determined, and a plurality of starting candidate lanes are obtained.
[0035] Beneficial effect: The lanes in the road topology map are screened by the distance between the lane and the vehicle and the heading difference, so as to facilitate the determination of the appropriate first lane in the cruising path.
[0036] In an optional implementation, calculating the distance between each lane in the road topology map and the initial position includes:
[0037] Determine the projection point of the initial position on the center line segment of each lane, and calculate the projection ratio value between the projection line segment corresponding to the projection point and the center line segment;
[0038] For each lane, if the projection ratio value corresponding to the current lane is within the preset range, the distance between the current lane and the initial position is calculated based on the distance between the initial position and the projection point;
[0039] For each lane, if the projection ratio value corresponding to the current lane is not within the preset range, the distance between the current lane and the initial position is calculated based on the minimum distance between the initial position and the endpoint of the center line segment.
[0040] Beneficial effect: By determining the projection ratio value of the vehicle's initial position on the lane centerline, and selecting a corresponding method to calculate the distance between the lane and the initial position according to the range of the projection ratio value, the accuracy of lane distance screening is improved.
[0041] In an optional implementation, controlling the vehicle to travel based on the target cruising path includes:
[0042] The target cruising path is interpolated and filtered according to the second preset distance to obtain a plurality of discrete cruising path points, and the vehicle is controlled to travel to the plurality of discrete cruising path points in sequence.
[0043] Beneficial effects: By discretizing the target cruising path and controlling the vehicle to drive to multiple discrete cruising path points in sequence, it is possible to detect whether the surrounding parking spaces are occupied during the cruising process. When encountering an unoccupied parking space, it will jump to the parking stage to achieve automatic parking and enhance the user's driving experience.
[0044] In an optional implementation, obtaining a parking lot map includes:
[0045] Determine the parking lot code of the parking lot where the vehicle is located;
[0046] Request the cloud to download or update the parking lot map corresponding to the parking lot code.
[0047] Beneficial effect: By requesting the cloud to download or update parking lot map data, detailed lane information and parking space information of the parking lot where the vehicle is located can be obtained, which facilitates cruising route planning.
[0048] In a second aspect, the present invention provides an automatic valet parking device, the device comprising:
[0049] An acquisition module is used to obtain a parking lot map and the current initial position and initial heading of the vehicle;
[0050] A first processing module is used to construct a road topology map including associations between lanes and parking spaces based on lane information and parking space information in the parking lot map;
[0051] The second processing module is used to perform path planning based on the initial position, initial heading and road topology map to determine a target cruising path that passes through the largest number of parking spaces and has no repeated lanes;
[0052] The control module is used to control the vehicle to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, control the vehicle to park in the empty parking space.
[0053] In a third aspect, the present invention provides a vehicle, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the automatic valet parking method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the automatic valet parking method of the first aspect or any corresponding embodiment thereof.
[0055] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the automatic valet parking method of the first aspect or any corresponding embodiment thereof.
[0056] The beneficial effects of the present invention are:
[0057] By extracting lane information and parking space information from the parking lot map, a road topology map containing the relationship between lanes and parking spaces is constructed, so that path planning is performed according to the initial position and heading of the vehicle to obtain the target cruising path. This ensures that in the process of controlling the vehicle's cruising according to the target cruising path, the vehicle can pass through the largest number of parking spaces without duplication of lanes, thereby increasing the probability of detecting vacant parking spaces, thereby controlling the vehicle to park in vacant parking spaces, solving the problem of difficulty in parking at the end of driving, and improving the user's driving experience. It has low requirements on system resources and is easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 is a schematic flow chart of an automatic valet parking method according to an embodiment of the present invention;
[0060] Figure 2 is a schematic flow chart of another automatic valet parking method according to an embodiment of the present invention;
[0061] Figure 3 is a schematic diagram of the structure of a road topology graph according to an embodiment of the present invention;
[0062] Figure 4 is a flowchart of another automatic valet parking method according to an embodiment of the present invention;
[0063] Figure 5 is a structural block diagram of an automatic valet parking device according to an embodiment of the present invention;
[0064] Figure 6 Schematic diagram of the hardware structure of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0066] The Automated Valet Parking (AVP) system aims to solve the user's pain point in the "last mile" of car use. It can save users' parking time, especially meet users' car needs in unfamiliar scenarios, and greatly alleviate users' anxiety when parking and picking up cars.
[0067] At present, the planned paths involved in automatic valet parking require the user to select the end point before they can be generated. For example, the AVP global path planning system disclosed in patent CN113778102A and the global path planning method for valet parking disclosed in patent CN116337105A both plan global paths based on the premise of setting a fixed target location. Generally speaking, the more unfamiliar the scene, the more users need automatic valet parking.
[0068] However, it is not easy to select the target location in an unfamiliar scenario. The parking lot may need to cooperate with the occupancy status of each parking space, or the user can clearly know which parking space is not occupied through other means. The former requires a more complex system and certain resource integration to achieve, and the latter will greatly weaken the convenience and experience brought by AVP. Therefore, it is necessary to let the automatic valet parking system choose the parking space by itself.
[0069] Therefore, an embodiment of the present invention provides an automatic valet parking method to solve the problem that the traditional AVP system is difficult to select an appropriate target parking space in an unfamiliar environment, which limits the convenience of valet parking.
[0070] According to an embodiment of the present invention, an embodiment of an automatic valet parking method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0071] In this embodiment, an automatic valet parking method is provided, which can be used for vehicles that require automatic valet parking, such as an autonomous driving vehicle and its controller, etc. Figure 1 is a flow chart of an automatic valet parking method according to an embodiment of the present invention. Figure 1As shown, the process includes the following steps:
[0072] Step S101, obtaining a parking lot map and the current initial position and initial heading of the vehicle.
[0073] Specifically, the vehicle's current initial position and initial heading can be obtained through the latitude and longitude information and heading information of satellite positioning. In addition, by determining the parking lot code of the parking lot where the vehicle is located, a request is made to the cloud to download or update the parking lot map corresponding to the parking lot code.
[0074] For example, when a vehicle enters a parking lot from outside the parking lot, the latitude and longitude information of satellite positioning is obtained, and the parking lot ID and other information of the parking lot to which the vehicle belongs are determined by determining whether the latitude and longitude information is within the polygonal electronic fence of a parking lot. When the vehicle is already in the parking lot before starting, the ID of the parking lot to which the vehicle belongs is determined by the parking lot information recorded before the vehicle is powered off. It should be noted that the electronic fence of the parking lot is the parking lot boundary information collected when the high-precision map of the parking lot is collected. It is a polygon formed by several points that completely covers the parking lot and the roads within a certain range around it.
[0075] Furthermore, it is determined whether the vehicle stores high-precision map data corresponding to the above-mentioned parking lot ID. If there is no data, a request is made to download the high-precision map data corresponding to the parking lot ID from the cloud; if there is data, a request is made to update the high-precision map data corresponding to the ID from the cloud.
[0076] In this embodiment, by requesting the cloud to download or update parking lot map data, detailed lane information and parking space information of the parking lot where the vehicle is located are obtained to facilitate cruising route planning.
[0077] Step S102: construct a road topology map including associations between lanes and parking spaces based on lane information and parking space information in the parking lot map.
[0078] Specifically, all lane and parking space information in the high-precision parking map is extracted. Lane information mainly includes lane ID, lane floor ID, lane start endpoint ID, lane end endpoint ID, lane type, lane length, lane center point plane coordinate point list and other data; parking space information mainly includes parking space ID, parking space floor ID, parking space associated lane ID, parking space type, parking space four corner points plane coordinates and other data. The specific extracted information can be selected according to the actual application scenario.
[0079] Furthermore, lanes are abstracted as edges, and the starting and ending endpoints of lanes are abstracted as nodes, and a road topology graph of the road network is constructed, in which the ending endpoint of the previous lane is also the starting endpoint of the next lane. In addition, the number of associated parking spaces for each lane is counted and stored in the attributes of the edge as the second length of the lane (the first length is the length of the lane itself), so that the road topology graph contains the relationship between the number of lanes and associated parking spaces.
[0080] For example, a map type data formed by edges can be constructed, and the key value of the map data is the ID of the edge. The lane start endpoint ID and lane end endpoint ID are stored in the edge to facilitate matching and comparison operations in the subsequent path search process. For example, when searching for the next edge of the current edge, it is determined whether the start endpoint ID of other edges is the same as the end endpoint ID of the current edge.
[0081] In particular, the number of parking spaces associated with each lane is counted and stored in the edge of the map data as the second length of the lane. At the same time, the edge also has a cost attribute and a parent node attribute, which are used in the subsequent path search algorithm. The cost attribute is used to indicate the maximum number of parking spaces passed by the cruising path with the current edge as the last lane, and the parent node attribute is used to indicate the previous edge of the current edge.
[0082] Step S103, performing path planning based on the initial position, initial heading, and road topology map to determine a target cruising path that passes through the largest number of parking spaces and has no duplicate lanes.
[0083] Specifically, the distance between the current initial position of the vehicle and the center lines of all nearby lanes is calculated. When the distance between the initial position and the nearest lane center line exceeds the first preset distance D1, the cruising path planning is directly exited. Otherwise, the lanes whose distance from the initial position is less than or equal to D1 are selected, and one of these lanes is used as the first lane passed by the vehicle cruising path, and the lanes that the vehicle needs to pass through in the future are searched according to the road topology map until the target cruising path is obtained, ensuring that the vehicle passes through the most parking spaces without duplication of lanes during the cruising process, and increasing the probability of the vehicle detecting an empty parking space.
[0084] Step S104, controlling the vehicle to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, controlling the vehicle to park in the empty parking space.
[0085] Specifically, users can enable the automatic valet parking function through the automatic valet parking APP on the vehicle. If the user has not set or is unable to set the target parking point, the vehicle will be controlled to cruise according to the obtained target cruising path. During driving, the vehicle continuously detects whether there are vacant parking spaces in the surrounding area. If an vacant parking space is encountered, the vehicle will be controlled to park in.
[0086] In addition, users can also input or select a target parking space. If the target parking space selected by the user is occupied, that is, when the vehicle arrives near the target parking space and detects that the target parking space is occupied, the user can be asked through the APP whether to perform cruising route planning, so as to jump to the cruising route planning and subsequent automatic valet parking logic, solve the problem of difficulty in parking at the end of driving, and thus enhance the user's driving experience.
[0087] The automatic valet parking method provided in this embodiment constructs a road topology map including the association relationship between lanes and parking spaces by extracting lane information and parking space information from a parking lot map, thereby performing path planning according to the initial position and heading of the vehicle to obtain a target cruising path, thereby ensuring that in the process of controlling the cruising driving of the vehicle according to the target cruising path, the vehicle can pass through the largest number of parking spaces without duplication of lanes, thereby increasing the probability of detecting vacant parking spaces, thereby controlling the vehicle to park in vacant parking spaces, solving the problem of difficulty in parking at the end of driving, improving the user's driving experience, and having low requirements on system resources and being easy to implement.
[0088] In this embodiment, an automatic valet parking method is provided, which can be used for vehicles that require automatic valet parking, such as an autonomous driving vehicle and its controller, etc. Figure 2 is a flow chart of an automatic valet parking method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0089] Step S201, obtain the parking lot map and the current initial position and initial heading of the vehicle. For details, please refer to Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0090] Step S202: Based on the lane information and parking space information in the parking lot map, a road topology map including the association relationship between lanes and parking spaces is constructed. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0091] Step S203, performing path planning based on the initial position, initial heading, and road topology map to determine a target cruising path that passes through the largest number of parking spaces and has no duplicate lanes.
[0092] Specifically, the above step S203 includes:
[0093] Step S2031, based on the initial position and the initial heading, the lanes in the road topology map are screened to obtain a plurality of starting candidate lanes, and the number of associated parking spaces for each lane in the road topology map is determined.
[0094] In some optional implementations, the above step S2031 includes:
[0095] Step a1, calculating the distance between each lane in the road topology map and the initial position, and obtaining a plurality of first lanes whose distances between the lanes and the initial position are not greater than a first preset distance.
[0096] Specifically, determine the projection point of the initial position on the center line segment of each lane, and calculate the projection ratio value between the projection line segment corresponding to the projection point and the center line segment. It should be understood that the way map data represents the lane centerline is often a column of points. The straight part of a lane centerline is generally represented by two points, and the curved part has more points. Therefore, the distance between each lane and the initial position can be calculated based on the center line segment formed by the two adjacent points of the lane centerline closest to the current position of the vehicle.
[0097] Exemplarily, the projection point of the initial position on the center line segment of each lane and the projection line segment formed by the projection point on the center line segment are determined in turn, and the position ratio value of the projection line segment on the center line segment, that is, the projection ratio value, is calculated, wherein, if the projection point coincides with the starting point of the center line segment, the corresponding position ratio value is 0; if the projection point coincides with the end point of the center line segment, the corresponding position ratio value is 1; when the projection point exceeds the starting point of the center line segment, the position ratio value is a negative value, and when it exceeds the end point of the center line segment, it is a value greater than 1.
[0098] Furthermore, for each lane, if the projection ratio value corresponding to the current lane is within a preset range, the distance between the current lane and the initial position is calculated based on the distance between the initial position and the projection point. For example, if the above position ratio value is between 0 and 1, the distance from the initial position to the projection point is the distance between the lane and the initial position of the vehicle.
[0099] Furthermore, for each lane, if the projection ratio value corresponding to the current lane is not within a preset range, the distance between the current lane and the initial position is calculated based on the minimum distance between the initial position and the endpoint of the center line segment. Exemplarily, if the above position ratio value is not between 0 and 1, the minimum distance between the initial position and the endpoint of the center line segment is calculated as the distance between the lane and the initial position.
[0100] Specifically, for each lane whose distance from the initial position of the vehicle is less than the first preset distance D1, record the lane ID, such as L i , the shortest distance D between the lane and the initial position LiAnd the sequence number N of the starting endpoint of the center line segment that produces the shortest distance among all the points on the lane center line Li .
[0101] In this embodiment, by determining the projection ratio value of the vehicle's initial position on the lane centerline, and selecting a corresponding method to calculate the distance between the lane and the initial position according to the range of the projection ratio value, the accuracy of lane distance screening is improved.
[0102] Step a2, based on the lane headings corresponding to the plurality of first lanes respectively, determine a second lane whose heading difference between the lane heading and the initial heading is less than a preset angle, and obtain a plurality of starting candidate lanes.
[0103] For example, through lane centerline number N Li The point points to the sequence number N Li+1 The heading formed by the points is used to calculate the lane heading H Li For lane L i , calculate the vehicle's initial heading and lane heading H Li If the absolute value of the heading difference is less than the preset angle H1, the lane can be used as the starting alternative lane. It should be noted that when calculating the lane heading, the heading formed by the point closest to the vehicle's position and the next point is usually calculated, that is, a lane only counts one heading, which is the heading formed by the point closest to the vehicle's current position in the current lane.
[0104] In addition, all starting candidate lanes can be sorted by first sorting them from small to large in terms of heading difference, and then sorting them from small to large in terms of distance if the heading differences are the same.
[0105] In this embodiment, lanes in the road topology map are screened by the distance between the lane and the vehicle and the heading difference, so as to determine a suitable first lane in the cruising path.
[0106] Step S2032: perform a path traversal search based on the number of associated parking spaces of each starting candidate lane and the road topology map to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes.
[0107] In some optional implementations, the above step S2032 includes:
[0108] Step b1, storing multiple starting candidate lanes into an open list in descending order of the number of associated vehicles, and using the number of associated parking spaces of the lanes in the road topology as the initial cost of the lanes.
[0109] Specifically, create an open_list list and a close_list list, abstract the starting candidate lane as an initial edge and store it in the open_list, where each edge has a cost value, and the initial cost value of each edge is the number of associated parking spaces of the lane corresponding to this abstract edge. If the open_list is empty, the search ends, otherwise all the edges in the open_list are sorted in descending order according to the cost value.
[0110] It should be noted that open_list is a set of all alternative edges (the starting lanes that the vehicle can choose); close_list is a set of selected edges, but the attributes of the edges in close_list may be updated, mainly changing the cost value in the cost attribute, and the associations such as lane ID and number of associated parking spaces will not change.
[0111] For example, Figure 3 A road topology diagram provided by an embodiment of the present invention, such as Figure 3 As shown, after the lanes are screened in combination with the initial position and initial heading of the vehicle (indicated by the arrow), the starting candidate lanes that meet the conditional restrictions are determined to be edge1 and edge5, and edge1 and edge5 are sorted according to the initial cost value of the lane, that is, the number of associated parking spaces, and the sorted open_list is {edge5, edge1}.
[0112] Step b2: taking the first candidate starting lane in the open list as the first path edge, removing the first path edge from the open list, and storing the first path edge in the closed list.
[0113] Specifically, the first edge in the open_list is taken as the current first path edge E1, and the first path edge E1 is removed from the open_list. If this edge is not in the close_list, it is stored in the close_list. For example, refer again to Figure 3 , take out edge5 in open_list, let E1 = edge5, remove edge5 from open_list, and store it in close_list.
[0114] Step b3, performing a path search based on the road topology map, taking the lane whose starting endpoint coincides with the ending endpoint of the first path edge as the second path edge, and calculating the sum of the cost value between the current cost value of the first path edge and the initial cost value of the second path edge.
[0115] Specifically, all edges are traversed to find the second path edge E2 whose starting endpoint is the terminating endpoint of the first path edge E1. Figure 3, find the edge with the end point of edge5 as the starting point, get the second path edges edge3 and edge4, and calculate the sum of the cost values between the current cost value of edge5 and the initial cost values of edge3 and edge4 (that is, the number of associated parking spaces).
[0116] Step b4: if the current cost value of the second path edge is less than the sum of the cost values, the current cost value of the second path edge is updated to the sum of the cost values, and the first path edge is used as the parent node of the second path edge.
[0117] Specifically, the cost value of an edge represents the maximum number of parking spaces that a cruising path passes through with the current edge as the last lane. If the current cost value of E2 is less than the sum of the current cost value of E1 and the number of parking spaces associated with E2 (the initial cost value), the current cost value of E2 is updated to: the current cost value of edge E1 + the number of parking spaces associated with edge E2, and edge E1 is used as the parent node of edge E2.
[0118] For example, see again Figure 3 , taking the second path edge edge4 as an example, if the current cost value of edge4 is less than the sum of the current cost value of edge5 and the number of parking spaces associated with edge4, update the current cost value of edge4 to: the current cost value of edge5 + the number of parking spaces associated with edge4, and use edge5 as the parent node of edge4, and update the parent node attributes of edge4. Then, determine and update the cost attribute and parent node attribute of the second path edge edge3 according to the above steps.
[0119] For example, see again Figure 3 , after judging and updating the cost attribute and parent node attribute of the second path edge edge3 according to the above steps, that is, the current cost value of edge3 is the number of parking spaces passing through edge5 and edge3, if the path is subsequently retrieved with edge1 as the starting edge of the path, the path edge1->edge2->edge3 will be retrieved in the road topology map. At this time, it is necessary to judge the size of the cost value again, that is, to judge whether the number of parking spaces passed by the path edge5->edge3 < the number of parking spaces passed by the path edge1->edge2->edge3 is established. If so, it is necessary to update the cost attribute and parent node attribute of edge3 again, update the cost attribute of edge3 to the number of parking spaces passed by the path edge1->edge2->edge3, and update the parent node attribute of edge3 to edge2.
[0120] In some optional implementations, after the first path edge is used as the parent node of the second path edge, if the second path edge is not stored in the open list, the second path edge is stored in the open list and the closed list respectively. That is, if the second path edge E2 is not in the open_list, the second path edge E2 is stored in the open_list and the close_list respectively.
[0121] For example, see again Figure 3 If the second path edge edge4 is not in the open_list, it can be stored in the open_list and close_list. Since the parent node attribute of edge4 is already edge5, even if the open_list is not empty, the path search is performed with edge4 as the starting edge of the path. Subsequently, the path edge5->edge4 can be obtained according to the close_list and the parent node association relationship, which does not affect the completeness of the patrol path and can also improve the path search efficiency.
[0122] Step b5, store the second path edge into the closed list, use the second path edge as the new first path edge, and return to step b3.
[0123] Specifically, if edge E2 is already in close_list, let E1 = E2 and continue to look for the next edge adjacent to E1. Figure 3 , respectively take edge4 and edge3 as the new first path edge E1, and continue to search for edges adjacent to edge4 and edge3 respectively.
[0124] Step b6, when no lane whose starting endpoint coincides with the ending endpoint of the first path edge is found in the road topology map, return to step b2 until the open list is empty to obtain the target closed list.
[0125] For example, see again Figure 3 When the retrieval of the tour path with edge5 as the starting edge of the path is completed, all the tour paths with edge5 as the starting edge of the path in the road topology graph have been obtained. Return to step b2, take the first edge1 in the open_list as the first path edge E1, and continue to search until the open_list is empty, and get the target close_list at this time.
[0126] Step b7, based on the current cost value of each path edge in the target closed list and the parent node association relationship, obtain the target cruising path that passes through the largest number of parking spaces and has no repeated lanes.
[0127] Specifically, the current cost values of each path edge in the target closed list are compared, and the target path edge with the largest cost value is determined. The target path edge is taken as a child node, and backtracking is performed according to the parent node association relationship to obtain the target patrol path.
[0128] For example, after the search is completed, close_list is sorted in descending order of cost value, and the lane corresponding to the first edge E0 in close_list is the last lane of the target cruising path. Then, according to the previously stored parent node relationship, backtrack from E0 to find the edge until it is not found, and finally all the found edges are mapped to lanes. This series of lanes can form the target cruising path that passes the largest number of parking spaces starting from the initial position of the vehicle.
[0129] For example, see again Figure 3 , there are edges edge1 to edge6 in the close_list, edge6 has the largest cost value, its parent node is edge4, and edge4's parent node is edge5, so we start backtracking from edge6, find edge4 first according to the parent node relationship, then find edge5, and then backtrack, and then output the backtracking process in reverse order, that is, the final result is edge5->edge4->edge6, so that we can pass through the most parking spaces. By determining the target path edge with the largest cost value in the target closed list, we backtrack the target path edge according to the parent node association relationship, and obtain the cruising path that passes through the most parking spaces and has no repeated lanes, so that we can find free parking spaces as soon as possible in the process of controlling the cruising of vehicles.
[0130] This embodiment searches for a cruising path with each starting candidate lane as the starting edge of the path by performing a path search in a road topology graph, and at the same time accumulates the number of parking spaces passed by each cruising path and assigns it to the current cost value of the last edge in the path, so as to facilitate determining a target cruising path with the largest number of parking spaces and no repeated lanes.
[0131] In an embodiment of the present invention, lane screening is first performed based on the current initial position and initial heading of the vehicle, and a suitable starting alternative lane is selected. Then, a path traversal search is performed based on the starting alternative lane and the road topology map to obtain a target cruising path, thereby ensuring that in the process of controlling the cruising driving of the vehicle according to the target cruising path, the vehicle can pass through the largest number of parking spaces without duplication of lanes and find a vacant parking space as soon as possible.
[0132] Step S204, controlling the vehicle to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, controlling the vehicle to park in the empty parking space.
[0133] Specifically, the above step S204 includes:
[0134] Step S2041, interpolating and filtering the target cruising path according to the second preset distance to obtain a plurality of discrete cruising path points, and controlling the vehicle to travel to the plurality of discrete cruising path points in sequence.
[0135] Specifically, according to the correspondence between the edge ID and the lane ID (essentially the same), the series of edges obtained in step S203 are mapped to the lane center point sequence P1. The order of the points in P1 is consistent with the path, but the point spacing is uneven. According to the pre-set second preset distance D2, P1 is first interpolated according to the spacing of D2 / 10, and then filtered according to D2 to obtain the discretized real path point sequence P2. That is, after determining the current point P in the sequence P1, the subsequent point Q is judged cyclically, and the distances of adjacent points are accumulated at the same time. When the accumulated distance exceeds the second preset distance D2 for the first time, the loop ends. This point Q is the point that is at the second preset distance D2 from point P. The points between point P and point Q are discarded, and then the execution continues.
[0136] Step S2042: if an empty parking space is detected during the driving of the vehicle, the vehicle is controlled to park in the empty parking space.
[0137] Specifically, during cruising, the vehicle detects whether the surrounding parking spaces are occupied. When encountering an unoccupied parking space, it will jump to the parking stage to achieve automatic parking and enhance the user's driving experience.
[0138] The automatic valet parking method provided in this embodiment obtains parking lot information based on satellite positioning or vehicle storage information, downloads (updates) a high-precision map of the parking lot based on the parking lot ID, and then extracts lanes, parking spaces and other information in the high-precision map to construct a road topology map with a specific association relationship. Next, the initial position of the vehicle is used as the starting point, the initial heading is used as the starting heading, multiple lanes nearby are matched as starting candidate lanes according to preset rules, and the starting candidate lanes are used as the starting edge of the search path. The path is searched step by step to perform patrol path planning, and a patrol path that passes through the largest number of parking spaces and has non-duplicate lanes is generated, and converted into a real path point set to control the vehicle's patrol driving. During the patrol process, the vehicle detects whether the surrounding parking spaces are occupied. When encountering an empty parking space, it will jump to the parking stage and finally automatically park in the parking space.
[0139] The automatic valet parking method of the present invention is described in detail below with reference to a specific application example. Figure 4 As shown, this specific application example includes the following steps:
[0140] Step S401, obtain parking lot information based on satellite positioning or vehicle storage information, and download (update) a high-precision map of the parking lot based on the parking lot ID.
[0141] Specifically, when a vehicle enters a parking lot from outside the parking lot, the latitude and longitude information of satellite positioning is obtained, and the parking lot ID and other information of the parking lot to which the vehicle belongs are determined by determining whether the latitude and longitude information is within the polygonal electronic fence of a parking lot. If the vehicle is already in the parking lot before starting, the parking lot ID of the parking lot to which the vehicle belongs is determined by the parking lot information recorded before the vehicle is powered off.
[0142] Furthermore, it is determined whether the vehicle stores high-precision map data corresponding to the above-mentioned parking lot ID. If there is no data, a request is made to download the high-precision map data corresponding to the parking lot ID from the cloud; if there is data, a request is made to update the high-precision map data corresponding to the ID from the cloud.
[0143] Step S402, extracting information such as floors, lanes, parking spaces, etc. from the high-precision map, and constructing a road topology map with a specific association relationship. In particular, according to the association relationship between parking spaces and lanes, the number of associated parking spaces for lanes is counted and stored.
[0144] Specifically, a map type data is constructed with edges as the main body. The key value of the map data is the ID of the edge. The edge stores the lane start endpoint ID and the lane end endpoint ID to facilitate matching and comparison operations in the subsequent path search process.
[0145] In particular, the number of parking spaces associated with each lane is counted and stored in the edge of the map data as the second length of the lane. At the same time, the edge also has a cost attribute and a parent node attribute, which are used in the subsequent path search algorithm. The cost attribute is used to indicate the maximum number of parking spaces passed by the cruising path with the current edge as the last lane, and the parent node attribute is used to indicate the previous edge of the current edge.
[0146] Step S403, taking the initial position of the vehicle as the starting point and the initial heading as the starting heading, multiple lanes nearby are matched as starting candidate lanes according to preset rules.
[0147] Specifically, the distance between the current initial position of the vehicle and the center lines of all nearby lanes is calculated. When the distance between the initial position and the nearest lane center line exceeds the first preset distance D1, the cruise path planning is directly exited. Otherwise, the lanes whose distance from the initial position is less than or equal to D1 are screened out, and the lanes whose heading difference between the lane heading and the initial heading is less than a preset angle are further determined to obtain the starting candidate lanes. All starting candidate lanes are sorted, first sorted from the smallest to the largest heading difference, and those with the same heading difference are sorted from the smallest to the largest distance.
[0148] Step S404 , taking the initial lane as the starting edge of the search path, searching the path step by step to perform cruising path planning, and generating a cruising path P1 that passes through the largest number of parking spaces.
[0149] Specifically, create an open_list list and a close_list list, abstract the starting candidate lane as an initial edge and store it in the open_list, where each edge has a cost value, and the initial cost value of each edge is the number of associated parking spaces of the lane corresponding to this abstract edge. If the open_list is empty, the search ends, otherwise all the edges in the open_list are sorted in descending order according to the cost value.
[0150] Take out the first edge in the open_list as the current first path edge E1, remove the first path edge E1 from the open_list, and if this edge is not in the close_list, store it in the close_list.
[0151] Traverse all edges to find the second path edge E2 whose starting endpoint is the ending endpoint of the first path edge E1, and calculate the sum of the cost value between the current cost value of E1 and the initial cost value of E2.
[0152] If the current cost value of E2 is less than the sum of the current cost value of E1 and the number of parking spaces associated with E2 (initial cost value), update the current cost value of E2 to: the current cost value of edge E1 + the number of parking spaces associated with edge E2, and set edge E1 as the parent node of edge E2.
[0153] Store edge E2 in close_list, set E1 = E2, and continue looking for the next edge adjacent to E1.
[0154] If the second path edge E2 is not in the open_list, the second path edge E2 is stored in the open_list and the close_list respectively.
[0155] After the search is completed, close_list is sorted in descending order according to the cost value. The lane corresponding to the first edge E0 in close_list is the last lane of the target cruising path. Then, according to the previously stored parent node relationship, backtrack from E0 to find the edge until it is not found. Finally, all the found edges are mapped to lanes. This series of lanes can form the target cruising path that passes the largest number of parking spaces starting from the initial position of the vehicle.
[0156] Step S405: convert the tour path P1 into a real path point set P2 through a high-precision map.
[0157] Specifically, according to the corresponding relationship between the edge ID and the lane ID (the same), the series of edges obtained in step S404 are mapped to the lane center point set, and the real path point set P2 can be obtained.
[0158] In this application example, a high-precision map of the parking lot to be entered is obtained based on satellite positioning, or a high-precision map of the current parking lot is obtained based on the parking lot information stored before the vehicle is powered off. When the user activates the function through the APP or the vehicle computer, in the step of setting the end position, if no specific settings are made, the planned path is a cruising path that passes through as many parking spaces as possible and the route is not repeated. After the user enables the automatic valet parking function through the APP, the vehicle detects whether the surrounding parking spaces are occupied during the cruising process. When an unoccupied parking space is encountered, it will jump to the parking stage and finally automatically park in the parking space. In addition, if the target parking space selected by the user is occupied, when the vehicle arrives near the target parking space and detects that the parking space is occupied, the user is asked through the APP whether to plan the cruising path, so that the logic of cruising path planning can be jumped to.
[0159] The present invention obtains longitude and latitude information through the positioning system, determines and updates the parking lot map, and ensures the adaptability of the entire system when used in different parking lots. By specifically analyzing and processing the initial position and initial heading of the vehicle, the corresponding matching rules are formulated to ensure the rationality of the vehicle matching path, identify and eliminate some abnormal scenarios, and automatically park without the user selecting the target parking space, which expands the user usage scenarios and greatly reduces the user usage costs.
[0160] In this embodiment, an automatic valet parking device is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0161] This embodiment provides an automatic valet parking device, such as Figure 5 As shown, including:
[0162] An acquisition module 501 is used to acquire a parking lot map and a current initial position and initial heading of the vehicle;
[0163] The first processing module 502 is used to construct a road topology map including associations between lanes and parking spaces based on lane information and parking space information in the parking lot map;
[0164] The second processing module 503 is used to perform path planning based on the initial position, the initial heading and the road topology map, and determine a target cruising path that passes through the largest number of parking spaces and has no repeated lanes;
[0165] The control module 504 is used to control the vehicle to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, control the vehicle to park in the empty parking space.
[0166] In some optional implementations, the acquisition module 501 is further used to:
[0167] Determine the parking lot code of the parking lot where the vehicle is located;
[0168] Request the cloud to download or update the parking lot map corresponding to the parking lot code.
[0169] In some optional implementations, the second processing module 503 is further configured to:
[0170] Based on the initial position and the initial heading, the lanes in the road topology map are screened to obtain multiple starting candidate lanes, and the number of associated parking spaces for each lane in the road topology map is determined;
[0171] A path traversal search is performed based on the number of associated parking spaces and the road topology of each starting candidate lane to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes.
[0172] In some optional implementations, the second processing module 503 is further configured to:
[0173] Calculating the distance between each lane in the road topology map and the initial position, and obtaining a plurality of first lanes whose distances between the lanes and the initial position are not greater than a first preset distance;
[0174] Based on lane headings respectively corresponding to the plurality of first lanes, a second lane having a heading difference between the lane heading and the initial heading less than a preset angle is determined, and a plurality of starting candidate lanes are obtained.
[0175] In some optional implementations, the second processing module 503 is further configured to:
[0176] Determine the projection point of the initial position on the center line segment of each lane, and calculate the projection ratio value between the projection line segment corresponding to the projection point and the center line segment;
[0177] For each lane, if the projection ratio value corresponding to the current lane is within the preset range, the distance between the current lane and the initial position is calculated based on the distance between the initial position and the projection point;
[0178] For each lane, if the projection ratio value corresponding to the current lane is not within the preset range, the distance between the current lane and the initial position is calculated based on the minimum distance between the initial position and the endpoint of the center line segment.
[0179] In some optional implementations, the second processing module 503 is further configured to:
[0180] Multiple starting candidate lanes are stored in an open list in descending order of the number of associated vehicles, and the number of associated parking spaces of the lanes in the road topology graph is used as the initial cost value of the lanes;
[0181] The starting candidate lane ranked first in the open list is used as the first path edge, the first path edge is removed from the open list, and the first path edge is stored in the closed list;
[0182] Performing a path search based on a road topology graph, taking a lane whose starting endpoint coincides with the ending endpoint of the first path edge as a second path edge, and calculating the sum of the cost value between the current cost value of the first path edge and the initial cost value of the second path edge;
[0183] If the current cost value of the second path edge is less than the sum of the cost values, the current cost value of the second path edge is updated to the sum of the cost values, and the first path edge is used as the parent node of the second path edge;
[0184] storing the second path edge into the closed list, taking the second path edge as the new first path edge, and returning to the step of performing path search based on the road topology graph;
[0185] When a lane whose starting endpoint coincides with the ending endpoint of the first path edge is not found in the road topology graph, return to the step of using the first starting candidate lane in the open list as the first path edge until the open list is empty, thereby obtaining a target closed list;
[0186] Based on the current cost value of each path edge in the target closed list and the parent node association relationship, the target cruising path that passes through the largest number of parking spaces and has no repeated lanes is obtained.
[0187] In some optional implementations, after taking the first path edge as the parent node of the second path edge, the second processing module 503 is further configured to:
[0188] If the second path edge is not stored in the open list, the second path edge is stored in the open list and the closed list respectively.
[0189] In some optional implementations, the second processing module 503 is further configured to:
[0190] Compare the current cost values of each path edge in the target closed list and determine the target path edge with the largest cost value;
[0191] Take the target path edge as the child node and backtrack according to the parent node association relationship to obtain the target patrol path.
[0192] In some optional implementations, the control module 504 is further configured to:
[0193] The target cruising path is interpolated and filtered according to the second preset distance to obtain a plurality of discrete cruising path points, and the vehicle is controlled to travel to the plurality of discrete cruising path points in sequence.
[0194] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0195] The automatic valet parking device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0196] The embodiment of the present invention further provides a vehicle having the above Figure 5 The automatic valet parking device shown.
[0197] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a vehicle provided by an optional embodiment of the present invention, such as Figure 6 As shown, the vehicle includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the vehicle, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0198] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0199] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0200] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the vehicle, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the vehicle via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0201] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0202] The vehicle further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0203] The input device 30 can receive input digital or character information and generate key signal input related to the user settings and function control of the vehicle, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0204] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0205] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0206] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An automatic valet parking method, characterized in that: The method comprises: Get the parking lot map and the vehicle's current initial position and initial heading; Based on the lane information and parking space information in the parking lot map, construct a road topology map including the association relationship between lanes and parking spaces; Performing path planning based on the initial position, the initial heading, and the road topology map to determine a target cruising path that passes through the largest number of parking spaces and has no repeated lanes; The vehicle is controlled to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, the vehicle is controlled to park in the empty parking space.
2. The method according to claim 1, characterized in that: The performing of path planning based on the initial position, the initial heading, and the road topology map to determine a target cruising path that passes through the largest number of parking spaces and has non-repeated lanes includes: Based on the initial position and the initial heading, the lanes in the road topology map are screened to obtain a plurality of starting candidate lanes, and the number of associated parking spaces for each lane in the road topology map is determined; A path traversal search is performed based on the number of associated parking spaces of each starting candidate lane and the road topology map to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes.
3. The method according to claim 2, characterized in that The path traversal search based on the number of associated parking spaces of each starting candidate lane and the road topology map to obtain a target cruising path that passes through the largest number of parking spaces and has no repeated lanes includes: storing the plurality of starting candidate lanes into an open list in descending order of the number of associated vehicles, and using the number of associated parking spaces of the lanes in the road topology as the initial cost value of the lanes; Taking the first candidate starting lane in the open list as the first path edge, removing the first path edge from the open list, and storing the first path edge in the closed list; Performing a path search based on the road topology graph, taking a lane whose starting endpoint coincides with the ending endpoint of the first path edge as a second path edge, and calculating a sum of a current cost value of the first path edge and an initial cost value of the second path edge; If the current cost value of the second path edge is less than the sum of the cost values, updating the current cost value of the second path edge to the sum of the cost values, and taking the first path edge as the parent node of the second path edge; storing the second path edge into the closed list, taking the second path edge as a new first path edge, and returning to the step of performing path search based on the road topology graph; When a lane whose starting endpoint coincides with the ending endpoint of the first path edge is not found in the road topology graph, returning to the step of using the first starting candidate lane in the open list as the first path edge, until the open list is empty, thereby obtaining a target closed list; Based on the current cost value of each path edge in the target closed list and the parent node association relationship, a target cruising path that passes through the largest number of parking spaces and has no repeated lanes is obtained.
4. The method according to claim 3, characterized in that After taking the first path edge as the parent node of the second path edge, the method further includes: If the second path edge is not stored in the open list, the second path edge is stored in the open list and the closed list respectively.
5. The method according to claim 3, characterized in that: The target cruising path that passes through the largest number of parking spaces and has no repeated lanes is obtained based on the current cost value of each path edge in the target closed list and the parent node association relationship, including: Compare the current cost values of each path edge in the target closed list to determine the target path edge with the largest cost value; The target path edge is taken as a child node, and backtracking is performed according to the parent node association relationship to obtain the target tour path.
6. The method according to claim 2, characterized in that The lanes in the road topology map are screened based on the initial position and the initial heading to obtain a plurality of starting candidate lanes, including: Calculating the distance between each lane in the road topology map and the initial position, and obtaining a plurality of first lanes whose distances between the lanes and the initial position are not greater than a first preset distance; Based on the lane headings respectively corresponding to the plurality of first lanes, a second lane having a lane heading difference with the initial heading less than a preset angle is determined, and a plurality of starting candidate lanes are obtained.
7. The method according to claim 6, characterized in that The calculating the distance between each lane in the road topology map and the initial position includes: Determine a projection point of the initial position on the center line segment of each lane, and calculate a projection ratio value between the projection line segment corresponding to the projection point and the center line segment; For each lane, if the projection ratio value corresponding to the current lane is within a preset range, the distance between the current lane and the initial position is calculated according to the distance between the initial position and the projection point; For each lane, if the projection ratio value corresponding to the current lane is not within a preset range, the distance between the current lane and the initial position is calculated based on the minimum distance between the initial position and the endpoints of the center line segment.
8. The method according to claim 1, characterized in that The controlling the vehicle driving based on the target cruising path includes: The target cruising path is interpolated and filtered according to a second preset distance to obtain a plurality of discrete cruising path points, and the vehicle is controlled to travel to the plurality of discrete cruising path points in sequence.
9. The method according to claim 1, characterized in that: The step of obtaining a parking lot map includes: Determine the parking lot code of the parking lot where the vehicle is located; A request is made to the cloud to download or update a parking lot map corresponding to the parking lot code.
10. An automatic valet parking device, characterized in that: The device comprises: An acquisition module is used to obtain a parking lot map and the current initial position and initial heading of the vehicle; A first processing module, configured to construct a road topology map including associations between lanes and parking spaces based on lane information and parking space information in the parking lot map; A second processing module is used to perform path planning based on the initial position, the initial heading and the road topology map to determine a target cruising path that passes through the largest number of parking spaces and has no repeated lanes; The control module is used to control the vehicle to travel based on the target cruising path, and if an empty parking space is detected during the vehicle's travel, control the vehicle to park in the empty parking space.
11. A vehicle, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the automatic valet parking method according to any one of claims 1 to 9 by executing the computer instructions.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the automatic valet parking method according to any one of claims 1 to 9.
13. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the automatic valet parking method according to any one of claims 1 to 9.
Citation Information
Cited By
Target path determination method based on data fusion, electronic equipment and medium
CN119666011A
A target path determination method based on data fusion, electronic device, and medium
CN119666011B
