Parking path planning method, electronic equipment and storage medium
By obtaining the current posture and environmental information of the vehicle, determining the target parking mode and posture, and performing path search based on environmental scene understanding, the problem of difficult path search and low success rate in complex parking environments is solved, achieving a more efficient and Accurate path planning.
Patent Information
- Application Number
- CN202310293230.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
Path planning solutions in the prior art are difficult to search for paths in complex parking environments, resulting in a low parking success rate.
By obtaining the current posture and environmental information of the vehicle, the target parking mode and target parking posture are determined, and this information is used to perform path search based on environmental scene understanding to improve the efficiency and accuracy of path search.
It shortens path search time in complex scenarios, improves parking success rate, and solves the problems of difficult path search and low success rate.
Smart Images

Figure CN118665458A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of path planning, and specifically relates to a parking path planning method, electronic equipment and storage medium. Background Art
[0002] As urban congestion worsens, parking environments present features such as narrow driving space and complex obstacles, making parking increasingly difficult. Automatic parking can effectively solve the problem of difficult parking, but path planning, as a key part of automatic parking, requires the ability to cope with various complex parking environments.
[0003] However, the path planning solutions in the related art have the problems of great difficulty in path searching and low parking success rate. Summary of the invention
[0004] The embodiments of the present application provide a parking path planning method, an electronic device, and a storage medium to solve the problems of difficult path search and low parking success rate in path planning solutions in related technologies.
[0005] In a first aspect, an embodiment of the present application provides a parking path planning method, comprising:
[0006] Acquire the current position of the vehicle, the environment information within the preset range of the vehicle and the position information of the parking space to be parked;
[0007] Determining a target parking mode for the vehicle to arrive at the parking space and a target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environment information and the position information, wherein the target parking mode includes target points that the vehicle passes through to arrive at the parking space and an order of passing through the target points;
[0008] According to the current posture, the target parking posture and the target parking mode, a path to the parking space is searched to determine the target path to the parking space.
[0009] In a second aspect, an embodiment of the present application further provides a parking path planning device, comprising:
[0010] An acquisition module, used to acquire the current posture of the vehicle, environmental information within a preset range of the vehicle, and position information of the parking space to be parked;
[0011] a first determining module, configured to determine a target parking mode for the vehicle to arrive at the parking space and a target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environmental information and the position information, wherein the target parking mode includes target points that the vehicle passes through to arrive at the parking space and an order of passing through the target points;
[0012] The second determination module is used to search for a path to the parking space according to the current posture, the target parking posture and the target parking mode, and determine a target path to the parking space.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] The embodiment of the present application obtains the current posture of the vehicle, the environmental information within the preset range of the vehicle, and the position information of the parking space to be parked; determines the target parking mode for the vehicle to arrive at the parking space to be parked and the target parking posture corresponding to the target parking mode according to the current posture of the vehicle, the environmental information, and the position information, wherein the target parking mode includes the target points that the vehicle passes through to arrive at the parking space to be parked and the order of passing the target points; searches for the path to arrive at the parking space to be parked according to the current posture, the target parking posture, and the target parking mode, and determines the target path to arrive at the parking space to be parked; realizes the determination of the target parking mode by using the posture information of the vehicle itself and the environment in which it is located, that is, determines the target points that the vehicle passes through to arrive at the parking space to be parked and the order of passing the target points, and provides guidance for subsequent path search planning through the target parking mode, realizes path planning based on environmental scene understanding, improves path search efficiency and ensures the rationality of path search, can shorten path search time and improve search accuracy in complex scenes, improves parking success rate, and solves the problems of high path search difficulty and low parking success rate existing in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flowchart of the steps of the parking path planning method in an embodiment of the present application;
[0017] Figure 2 is a flowchart of steps for determining a target parking mode in an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of points to be selected in an embodiment of the present application;
[0019] Figure 4 is a schematic diagram of path planning in an embodiment of the present application;
[0020] Figure 5 is a module schematic diagram of a parking path planning device in an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] Specifically, in the related art, parking path planning is usually performed by using geometric methods or search methods. For example, in the geometric method, path planning is performed by using methods such as arc-straight line combination, Reeds-Shepp curve, Dubins curve, polynomial curve, spline curve, etc., but this method has high requirements on the parking environment and cannot adapt to all parking environments; for another example, search methods include A*, D*, Hybrid A*, etc., which can adapt to a variety of parking scenarios, but may take a long time to search due to insufficient heuristic information.
[0025] In the above-mentioned related technologies, due to insufficient understanding of the environment in which the vehicle is located, it is impossible to quickly give a reasonable parking path in a complex obstacle scene, resulting in parking failure. In view of this, the present embodiment first determines the target parking mode for the vehicle to reach the parking space and the target parking posture corresponding to the target parking mode according to the current posture, environmental information and position information of the vehicle, and then searches for the path to reach the parking space according to the current posture, the target parking posture and the target parking mode to determine the target path to reach the parking space, thereby realizing heuristic search based on environmental scene understanding, using the target parking mode of scene understanding as heuristic information to guide the search for the target path to reach the parking space, thereby improving the path search efficiency and ensuring the rationality of the path.
[0026] The parking path planning method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0027] Figure 1 A parking path planning method provided by an embodiment of the present invention is shown. The method can be executed by an electronic device, and the electronic device may include: a server and / or a terminal device. In other words, the method can be executed by software or hardware installed in the electronic device, and the method includes the following steps:
[0028] Step 101: Acquire the current posture of the vehicle, environmental information within a preset range of the vehicle, and position information of the parking space to be parked.
[0029] Specifically, the vehicle in this embodiment has sensors required for positioning (position and posture estimation), parking space recognition, and obstacle detection.
[0030] The current position of the vehicle can be obtained by processing the positioning sensor, and the current position can be expressed as (x, y, yaw), where x represents the position of the vehicle in the x-axis direction, y represents the position of the vehicle in the y-axis direction, and yaw represents the heading angle of the vehicle.
[0031] The location information of the parking space to be parked can be obtained by a vehicle-mounted visual device or an ultrasonic detection device, and the location information can be expressed as {(x1, y1), (x2, y2), (x3, y3), (x4, y4)}, where the elements in the above set represent the coordinates of the four rectangular corners of the parking space to be parked.
[0032] It should be noted that the preset range of the vehicle may include the parking space to be parked, so that environmental information within the range from the vehicle to the parking space to be parked can be obtained.
[0033] The environmental information within the preset range of the vehicle can be represented by a grid map within the preset range of the vehicle. Specifically, the grid map can be a two-dimensional map obtained after processing by the vehicle-mounted ultrasonic radar, or a two-dimensional map generated by other sensors such as laser radar. Among them, the grid map can be represented as Gmap(xi, yi) = state, where (xi, yi) is the index of the grid map, and state represents the state of the grid. For example, if the value of state is 1, it means that the grid corresponding to the index (xi, yi) is in an occupied state. If the value of state is -1, it means that the grid corresponding to the index (xi, yi) is in an idle state. If the value of state is 0, it means that the grid corresponding to the index (xi, yi) is in an unknown state.
[0034] Step 102: Determine a target parking mode for the vehicle to arrive at the parking space and a target parking posture corresponding to the target parking mode according to the current posture of the vehicle, the environmental information and the position information.
[0035] The target parking mode includes target points that the vehicle passes through to reach the parking space and the order in which the vehicle passes through the target points.
[0036] The target parking posture is the parking posture of the vehicle after parking with reference to the target parking mode.
[0037] Specifically, through the current posture of the vehicle, the environmental information and the position information, the target points that the vehicle passes through to reach the parking space and the order of passing the target points can be analyzed, thereby making full use of the environment in which the reference vehicle is located to obtain the target parking mode, and ensuring the rationality and accuracy of the determined target parking mode.
[0038] Step 103: searching for a path to the parking space according to the current position, the target parking position and the target parking mode, and determining a target path to the parking space.
[0039] Specifically, according to the current posture, the target parking posture and the target parking mode, the path to the parking space is searched, and the target path to the parking space is determined, thereby realizing path planning based on environmental scene understanding, improving the path search efficiency and ensuring the rationality of the path search, being able to shorten the path search time and improve the search accuracy in complex scenes, improving the parking success rate, and solving the problems of difficult path search and low parking success rate existing in related technologies.
[0040] In this way, this embodiment obtains the current posture of the vehicle, the environmental information within the preset range of the vehicle, and the position information of the parking space to be parked; determines the target parking mode for the vehicle to arrive at the parking space to be parked and the target parking posture corresponding to the target parking mode according to the current posture of the vehicle, the environmental information, and the position information, wherein the target parking mode includes the target points that the vehicle passes through to arrive at the parking space to be parked and the order of passing the target points; searches for the path to arrive at the parking space to be parked according to the current posture, the target parking posture, and the target parking mode, and determines the target path to arrive at the parking space to be parked; realizes the determination of the target parking mode by using the posture information of the vehicle itself and the environment in which it is located, that is, determines the target points that the vehicle passes through to arrive at the parking space to be parked and the order of passing the target points, and provides guidance for subsequent path search planning through the target parking mode, realizes path planning based on environmental scene understanding, improves path search efficiency and ensures the rationality of path search, can shorten path search time and improve search accuracy in complex scenes, improves parking success rate, and solves the problems of great path search difficulty and low parking success rate existing in related technologies.
[0041] In one embodiment, Figure 2 As shown, when determining the target parking mode for the vehicle to arrive at the parking space and the target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environment information and the position information, the following steps may be included:
[0042] Step 201: demarcate a target area with the vehicle as the center and determine the intersections of a plurality of preset driving trajectories of the vehicle and the boundary line of the target area as candidate points to obtain a candidate point set.
[0043] The target area includes the parking space to be parked, so that the vehicle can reach the parking space to be parked via the selected point.
[0044] Specifically, in this embodiment, the target area can be demarcated with the vehicle as the center and R as the radius, and the intersection points of multiple preset driving trajectories of the vehicle and the boundary line of the target area are determined as the points to be selected.
[0045] The multiple preset action trajectories of the vehicle may include forward left turn, forward straight ahead, forward right turn, backward left turn, backward straight ahead, and backward right turn. Figure 3 As shown, the candidate points 1-12 are generated by numbering them clockwise based on the candidate points for executing the forward straight action at the current posture of the vehicle.
[0046] Step 202: According to the environmental information, select the reachable points reachable by the vehicle from the set of candidate points to obtain a reachable point set.
[0047] Specifically, the environmental information includes the state of a grid in a grid map within a preset range of the vehicle, wherein the state includes an idle state and an occupied state;
[0048] According to the environmental information, reachable points reachable by the vehicle are selected from the set of candidate points. When the set of reachable points is obtained, for any candidate point, according to the state of the grid, when the line between the vehicle and the candidate point is scanned within a preset angle range and there is an occupied grid in the scanning area, the candidate point can be deleted from the set of candidate points to obtain the set of reachable points.
[0049] Specifically, due to the influence of obstacles in the parking environment, the vehicle cannot reach the selected point according to the predetermined trajectory. At this time, the unreachable node needs to be removed from the set of selected points. In order to quickly identify the unreachable point, this embodiment adopts the scanning line method, that is, a scanning line is formed by connecting the center point of the vehicle and the selected point, and the scanning line is rotated clockwise. If the hit state of the area covered by the scanning line within the preset angle range of the selected point is an occupied grid point (that is, a grid occupied by an obstacle), the selected point is considered unreachable, and then the point is removed from the set of selected points. In this way, the scanning line can be rotated once to determine whether all the selected points are reachable, and finally the reachable point set is output.
[0050] Step 203: Determine at least one parking mode according to the current posture, the position information and the preset parking condition.
[0051] Specifically, the parking mode includes the accessible points that the vehicle passes through to reach the parking space and the order in which the vehicle passes through the accessible points.
[0052] After determining the set of reachable points, this embodiment can determine the reachable points that the vehicle passes through to reach the parking space and the order of passing through the reachable points based on the current posture of the vehicle, the position information and the preset parking conditions, that is, determine at least one parking mode, thereby realizing the determination of the parking mode by reference to the environmental information.
[0053] In one embodiment, the preset parking conditions include: meeting preset parking specifications, and / or the number of accessible points passed through to reach the parking space is minimal;
[0054] The determining of at least one parking mode according to the current posture, the position information and the preset parking condition may include: determining, according to the current posture and the position information, at least one route passing through the reachable points in the process of the vehicle traveling to the parking space to be parked; selecting a route that meets the preset parking specification from the at least one route, and / or selecting a route with the least number of reachable points passed through to reach the parking space to be parked from the at least one route, to obtain the at least one parking mode, wherein each of the routes corresponds to one parking mode.
[0055] Specifically, the preset parking specifications may include parking with the front of the vehicle facing outward in a vertical parking space, parking along the direction of traffic flow in a horizontal parking space, etc.
[0056] In this step, at least one route through which the vehicle passes through a reachable point during the process of driving to the parking space to be parked can be determined based on the current posture and position information, for example, Figure 3 , assuming that the current position of the vehicle is the direction indicated by the arrow at node 0, and node 4 is the final parking position, the following partial route passing through reachable points can be obtained:
[0057] (1) 0-->12-->4;
[0058] (2) 0-->1-->4;
[0059] (3) 0-->7-->10-->0-->4;
[0060] Among them, under route (1), the vehicle turns left and drives forward for a distance to reach the area of node 12, then turns right and reverses to enter the parking space. This mode requires a small parking space, but a certain amount of space is required in the left turn area.
[0061] In route (2), the vehicle drives straight ahead for a distance to the area of node 1 where the vehicle can enter the parking space, then turns right and reverses to enter the parking space. This mode requires a large parking space in front. If there is an obstacle in front of the parking path, making node 1 unreachable, the possibility of this parking mode being decided is small.
[0062] In route (3), the vehicle first drives backward for a distance to reach the area of node 7, then turns left to adjust the front of the vehicle to be parallel to the parking space, and then reverses in a straight line to enter the parking space. This mode requires a larger parking space and the overall path is longer.
[0063] With reference to the accessible points passed by the above routes, a route that meets the preset parking specification can be selected from at least one route, and / or a route with the least number of accessible points passed by the at least one route to reach the parking space can be selected to obtain at least one parking mode. For example, if a route with the least number of accessible points passed by the at least one route to reach the parking space is selected from the at least one route, routes 1 and 2 can be selected as parking modes.
[0064] It should be noted that when determining at least one route through which the vehicle passes through the reachable point in the process of traveling to the parking space according to the current posture and the position information, the nodes that the vehicle cannot reach in the next action can be eliminated. Figure 3 If the current position of the vehicle is in the direction indicated by the arrow at node 0, the vehicle cannot reach nodes 3, 4, 5, 9, 10, and 11 in the next action. Therefore, links 0-->3, 0-->4, 0-->5, etc. are unreasonable jump links and need to be eliminated. Of course, the jump relationship between each node can be stored in the storage medium in the form of a relationship table, so that it can be screened out by looking up the table during calculation, thereby speeding up the execution time of the algorithm.
[0065] In addition, in another embodiment, based on the current posture and the position information, determining at least one route through which the vehicle passes through the reachable point in the process of traveling to the parking space, includes: determining an initial parking posture of the vehicle based on the position information; and determining at least one route through which the vehicle passes through the reachable point in the process of traveling to the parking space based on the current posture and the initial parking posture.
[0066] Specifically, the initial parking posture of the vehicle can be determined based on the position information, so that at least one route passing through reachable points during the process of the vehicle traveling to the parking space can be determined based on the current posture of the vehicle and the initial parking posture.
[0067] It should be noted that, in another embodiment, when at least one route through which the vehicle passes through the reachable point in the process of traveling to the parking space is determined based on the current posture and the position information, if the route cannot be determined based on the current posture and the initial parking posture, the initial parking posture can be adjusted, and the at least one route can be determined based on the current posture and the adjusted parking posture.
[0068] Specifically, if the route cannot be determined according to the current position and initial parking position of the vehicle, that is, the parking mode cannot be determined, the parking position can be adjusted to redefine the parking mode.
[0069] Step 204: Determine the target parking mode from the at least one parking mode, and determine a target parking posture corresponding to the target parking mode.
[0070] Specifically, after determining at least one parking mode, the target parking mode can be determined from the at least one parking mode. At this time, the target parking mode can be determined from the at least one parking mode in a manner such as minimizing the number of reachable points passed through the parking mode, minimizing the required parking space, or minimizing the overall path. This is not specifically limited herein.
[0071] In this way, a target area is delineated with the vehicle as the center and the intersections of multiple preset driving trajectories of the vehicle and the boundary line of the target area are determined as candidate points to obtain a set of candidate points, wherein the target area includes the parking space to be parked; according to the environmental information, reachable points that the vehicle can reach are selected from the set of candidate points to obtain a set of reachable points; according to the current posture, the position information and preset parking conditions, at least one parking mode is determined, and the parking mode includes the reachable points that the vehicle passes through to reach the parking space to be parked and the order of passing through the reachable points; the target parking mode is determined from the at least one parking mode, and the target parking posture corresponding to the target parking mode is determined; the vehicle surrounding environment is abstracted into a structural diagram in accordance with the vehicle kinematics, from which possible parking modes of the vehicle are extracted, providing guidance for subsequent path search planning.
[0072] In addition, in another embodiment, searching for a path to the parking space according to the current posture, the target parking posture, and the target parking mode to determine the target path to the parking space may include:
[0073] According to the current posture, the target parking posture and the target parking mode, a preset search algorithm is used to try to search for a path between every two adjacent position points using an RS curve, wherein the position points include a starting position of the vehicle, the target point and the parking space to be parked;
[0074] In the case where it is detected that there is no obstacle in the attempted search path, determining the RS curve as the target path;
[0075] When it is detected that there is an obstacle in the path being searched, the search algorithm is used to search for a node with the minimum cost for expansion, and a target path to the parking space is determined based on the expanded node.
[0076] Specifically, in this embodiment, the connection path can be calculated using the RS curve, which is a combination of arcs and straight lines and can connect the start and end points.
[0077] In addition, this embodiment performs discrete sampling on the path being searched, and the grid coordinate range occupied by the vehicle model can be solved through the conversion relationship between the rear axle of the vehicle and the four corner points. If the grid occupied by the vehicle model coincides with the grid occupied by the obstacle, it is determined that the vehicle will collide with the obstacle if it travels along the path, that is, there is an obstacle in the path. If all the path sampling points will not collide with the obstacle, the RS curve is determined as the target path; if there is at least one sampling point that fails the collision detection, that is, it will collide with the obstacle, then the path is unavailable and the kinematic formula needs to be used to expand the node.
[0078] Specifically, this embodiment uses a kinematic formula to expand the optimal node and selects the node with the smallest cost for expansion. The kinematic model is described as follows:
[0079]
[0080] Among them, direction indicates the direction of exploring the node, forward is 1, backward is -1, step is the expansion step length (meters), WB indicates the wheelbase of the vehicle (meters), and steer is the vehicle turning angle (degrees).
[0081] In one embodiment, the cost of the node is expressed by the following formula:
[0082] f(n)=ω g *g(n)+ω h *h(n)+ω r *r(n);
[0083] Wherein, f(n) represents the cost of the node, g(n) represents the cost from the starting position of the vehicle to the node, h(n) represents the cost from the node to the parking space, r(n) represents the angle between the direction vector of the node and the position vector of the next position point of the node, ω g The weight value representing the cost from the starting position of the vehicle to the node, ω h represents the weight value of the cost from the node to the parking space, and r(n) represents the weight value of the angle between the direction vector of the node and the position vector of the next position point of the node.
[0084] It should be noted that when determining the target path to the parking space, it can also be determined whether the maximum planning time is exceeded. If the path planning time is too long, it will affect the user experience. If a feasible path is not found within the maximum planning time, the path search process will be directly exited. In addition, in this embodiment, if there is no node that can be expanded, it means that there is no feasible path; if there is, it will continue to expand; during the expansion period, the RS curve is used to try to calculate the connection path every exploration step = N times until the path to the target point is found, where the step can be dynamically adjusted according to the search progress.
[0085] The embodiments of the present application are described below through specific examples.
[0086] like Figure 4 The following is a schematic diagram of horizontal parking spaces provided. When a vehicle is parking in a horizontal parking space, the following is analyzed in conjunction with the parking scene diagram. If there is an obstacle in front of the vehicle and there is a vehicle occupying the adjacent parking space of the target parking space, refer to Figure 3 Therefore, nodes 1, 2, 3, 11, and 12 are all unreachable, and there is no navigable path. At this time, the decision needs to adjust the parking posture. After changing the parking direction, node 7 is reachable, and you can turn right from node 7 and reverse into the garage. Node 7 corresponds to key area 2 in the figure, and the posture is upward. A "U-turn" operation needs to be completed from the starting position (corresponding to node 0) to node 7. To adjust the posture from node 5 to the upward posture of node 4, you need to refer to parking mode 0-->7-->10 to reach key area 1. Therefore, the entire horizontal parking space parking scene can be divided into 3 sections. The first section is from the starting position to key area 1, the second section is from key area 1 to key area 2, and the third section is from key area 2 to the final parking posture. Graph search is performed according to the segmented strategy, which greatly reduces the search space, and you can quickly get the following. Figure 4 Parking route shown.
[0087] By analyzing environmental information, this embodiment can make path planning more reasonable compared to related technologies, and can plan a parking path that is both simple and easy to operate, and can greatly shorten the search time in complex obstacle scenes to obtain more reasonable path planning.
[0088] Figure 5 A parking path planning device provided by an embodiment of the present invention is shown, comprising:
[0089] An acquisition module 501 is used to acquire the current posture of the vehicle, the environmental information within a preset range of the vehicle, and the position information of the parking space to be parked;
[0090] A first determining module 502 is used to determine a target parking mode for the vehicle to arrive at the parking space and a target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environment information and the position information, wherein the target parking mode includes target points that the vehicle passes through to arrive at the parking space and an order of passing through the target points;
[0091] The second determining module 503 is used to search for a path to the parking space according to the current posture, the target parking posture and the target parking mode, and determine a target path to the parking space.
[0092] The parking path planning device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0093] It should be noted that the embodiments of the parking path planning device in this specification and the embodiments of the parking path planning method in this specification are based on the same inventive concept. Therefore, the specific implementation of the embodiments of the parking path planning device can refer to the implementation of the aforementioned corresponding embodiments of the parking path planning method, and the repeated parts will not be repeated.
[0094] The parking path planning device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0095] The parking path planning device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0096] Based on the same technical concept, an embodiment of the present application further provides an electronic device, which is used to execute the above-mentioned parking path planning method. Figure 6 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call a computer program stored in the memory 630 and executable on the processor 610 to perform the following steps:
[0097] Acquire the current position of the vehicle, the environment information within the preset range of the vehicle and the position information of the parking space to be parked;
[0098] Determining a target parking mode for the vehicle to arrive at the parking space and a target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environment information and the position information, wherein the target parking mode includes target points that the vehicle passes through to arrive at the parking space and an order of passing through the target points;
[0099] According to the current posture, the target parking posture and the target parking mode, a path to the parking space is searched to determine the target path to the parking space.
[0100] In one embodiment, determining a target parking mode for the vehicle to arrive at the parking space and a target parking position corresponding to the target parking mode according to the current position of the vehicle, the environment information and the position information includes:
[0101] Delimiting a target area with the vehicle as the center and determining intersections of a plurality of preset driving trajectories of the vehicle and a boundary line of the target area as candidate points to obtain a candidate point set, wherein the target area includes the parking space to be parked;
[0102] According to the environmental information, select a reachable point that is reachable by the vehicle from the set of candidate points to obtain a reachable point set;
[0103] Determining at least one parking mode according to the current position, the position information and the preset parking condition, the parking mode including the accessible points that the vehicle passes through to reach the parking space and the order of passing through the accessible points;
[0104] The target parking mode is determined from the at least one parking mode, and a target parking posture corresponding to the target parking mode is determined.
[0105] In one embodiment, the environmental information includes the state of a grid in a grid map within a preset range of the vehicle, wherein the state includes an idle state and an occupied state;
[0106] The step of selecting, according to the environmental information, a reachable point that is reachable by the vehicle from the set of candidate points to obtain a reachable point set includes:
[0107] For any candidate point, according to the state of the grid, when the line between the vehicle and the candidate point is scanned within a preset angle range and there is an occupied grid in the scanning area, the candidate point is deleted from the candidate point set to obtain the reachable point set.
[0108] In one embodiment, the preset parking conditions include: meeting preset parking specifications, and / or the number of accessible points passed through to reach the parking space is minimal;
[0109] The determining at least one parking mode according to the current posture, the position information and the preset parking condition includes:
[0110] Determining, according to the current position and the position information, at least one route that passes through the reachable point during the process of the vehicle traveling to the parking space;
[0111] A route that meets the preset parking specification is selected from the at least one route, and / or a route with the least number of accessible points passed through to reach the parking space is selected from the at least one route to obtain the at least one parking mode, wherein each of the routes corresponds to one parking mode.
[0112] In one embodiment, determining, based on the current position and the position information, at least one route passing through the reachable point during the process of the vehicle traveling to the parking space includes:
[0113] Determining an initial parking position of the vehicle according to the position information;
[0114] At least one route passing through the reachable point during the process of the vehicle traveling to the parking space is determined according to the current position and the initial parking position.
[0115] In one embodiment, determining, based on the current position and the position information, at least one route passing through the reachable point during the process of the vehicle traveling to the parking space includes:
[0116] In the case that the route cannot be determined according to the current posture and the initial parking posture, the initial parking posture is adjusted, and the at least one route is determined according to the current posture and the adjusted parking posture.
[0117] In one embodiment, searching for a path to the parking space according to the current posture, the target parking posture, and the target parking mode to determine the target path to the parking space includes:
[0118] According to the current posture, the target parking posture and the target parking mode, a preset search algorithm is used to try to search for a path between every two adjacent position points using an RS curve, wherein the position points include a starting position of the vehicle, the target point and the parking space to be parked;
[0119] In the case where it is detected that there is no obstacle in the attempted search path, determining the RS curve as the target path;
[0120] When it is detected that there is an obstacle in the path being searched, the search algorithm is used to search for a node with the minimum cost for expansion, and a target path to the parking space is determined based on the expanded node.
[0121] In one embodiment, the cost of the node is expressed by the following formula:
[0122] f(n)=ω g *g(n)+ω h *h(n)+ω r *r(n);
[0123] Wherein, f(n) represents the cost of the node, g(n) represents the cost from the starting position of the vehicle to the node, h(n) represents the cost from the node to the parking space, r(n) represents the angle between the direction vector of the node and the position vector of the next position point of the node, ω g The weight value representing the cost from the starting position of the vehicle to the node, ω h represents the weight value of the cost from the node to the parking space, and r(n) represents the weight value of the angle between the direction vector of the node and the position vector of the next position point of the node.
[0124] The specific execution steps can refer to the various steps of the above-mentioned parking path planning method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
[0125] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.
[0126] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0127] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).
[0128] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.
[0129] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned parking path planning method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0130] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0131] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0132] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0133] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0135] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A parking path planning method, characterized in that: include: Acquire the current position of the vehicle, the environment information within the preset range of the vehicle and the position information of the parking space to be parked; Determining a target parking mode for the vehicle to arrive at the parking space and a target parking mode corresponding to the target parking mode according to the current posture of the vehicle, the environment information and the position information, wherein the target parking mode includes target points that the vehicle passes through to arrive at the parking space and an order of passing through the target points; According to the current position, the target parking position and the target parking mode, a path to the parking space is searched to determine the target path to the parking space.
2. The parking path planning method according to claim 1, characterized in that: The determining, according to the current posture of the vehicle, the environment information and the position information, a target parking mode for the vehicle to arrive at the parking space and a target parking posture corresponding to the target parking mode includes: Delimiting a target area with the vehicle as the center and determining intersections of a plurality of preset driving trajectories of the vehicle and a boundary line of the target area as candidate points to obtain a candidate point set, wherein the target area includes the parking space to be parked; According to the environmental information, select a reachable point that is reachable by the vehicle from the set of candidate points to obtain a reachable point set; Determining at least one parking mode according to the current position, the position information and the preset parking condition, the parking mode including the accessible points that the vehicle passes through to reach the parking space and the order of passing through the accessible points; The target parking mode is determined from the at least one parking mode, and a target parking posture corresponding to the target parking mode is determined.
3. The parking path planning method according to claim 2, characterized in that: The environmental information includes the state of a grid in a grid map within a preset range of the vehicle, wherein the state includes an idle state and an occupied state; The step of selecting, according to the environmental information, a reachable point that is reachable by the vehicle from the set of candidate points to obtain a reachable point set includes: For any candidate point, according to the state of the grid, when the line between the vehicle and the candidate point is scanned within a preset angle range and there is an occupied grid in the scanning area, the candidate point is deleted from the candidate point set to obtain the reachable point set.
4. The parking path planning method according to claim 2, characterized in that: The preset parking conditions include: meeting preset parking specifications, and / or having a minimum number of accessible points to reach the parking space; The determining at least one parking mode according to the current posture, the position information and the preset parking condition includes: Determining, according to the current position and the position information, at least one route that passes through the reachable point during the process of the vehicle traveling to the parking space; A route that meets the preset parking specification is selected from the at least one route, and / or a route with the least number of accessible points passed through to reach the parking space is selected from the at least one route to obtain the at least one parking mode, wherein each of the routes corresponds to one parking mode.
5. The parking path planning method according to claim 4, characterized in that: The determining, based on the current position and the position information, at least one route that passes through the reachable point during the process of the vehicle traveling to the parking space includes: Determining an initial parking position of the vehicle according to the position information; At least one route passing through the reachable point during the process of the vehicle traveling to the parking space is determined according to the current position and the initial parking position.
6. The parking path planning method according to claim 5, characterized in that: The determining, based on the current position and the position information, at least one route that passes through the reachable point during the process of the vehicle traveling to the parking space includes: In the case that the route cannot be determined according to the current posture and the initial parking posture, the initial parking posture is adjusted, and the at least one route is determined according to the current posture and the adjusted parking posture.
7. The parking path planning method according to claim 1, characterized in that: The step of searching for a path to the parking space according to the current position, the target parking position and the target parking mode to determine the target path to the parking space includes: According to the current posture, the target parking posture and the target parking mode, a preset search algorithm is used to try to search for a path between every two adjacent position points using an RS curve, wherein the position points include a starting position of the vehicle, the target point and the parking space to be parked; In the case where it is detected that there is no obstacle in the attempted search path, determining the RS curve as the target path; When it is detected that there is an obstacle in the path being searched, the search algorithm is used to search for a node with the minimum cost for expansion, and a target path to the parking space is determined based on the expanded node.
8. The parking path planning method according to claim 7, characterized in that: The cost of the node is expressed by the following formula: f(n)=ω g *g(n)+ω h *h(n)+ω r *r(n); Wherein, f(n) represents the cost of the node, g(n) represents the cost from the starting position of the vehicle to the node, h(n) represents the cost from the node to the parking space, r(n) represents the angle between the direction vector of the node and the position vector of the next position point of the node, ω g The weight value representing the cost from the starting position of the vehicle to the node, ω h represents the weight value of the cost from the node to the parking space, and r(n) represents the weight value of the angle between the direction vector of the node and the position vector of the next position point of the node.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the parking path planning method as described in any one of claims 1 to 8.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the parking path planning method according to any one of claims 1 to 8 are implemented.
