Reversing commission method and device, vehicle and storage medium
By acquiring and analyzing vehicle position information in real time, combined with memory path and environmental information, the reversing courteous trajectory is optimized, which solves the problem of safety and flexibility of the reversing courteous path in narrow passages and achieves more efficient and safe traffic.
Patent Information
- Application Number
- CN202410840060.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology cannot ensure the safety and flexibility of the path when reversing in a narrow passage, resulting in traffic congestion and poor user experience.
By obtaining the position information of the first vehicle and the second vehicle in real time, it is determined whether the first vehicle is a courtesy vehicle, and the reversing courtesy trajectory is determined based on the memory path information and environmental information. The interaction behavior is considered to optimize the trajectory, and multiple interaction schemes are simulated and Quadratic planning to improve trajectory accuracy and safety.
It improves the efficiency and safety of the reversing courtesy process, reduces traffic congestion and waiting time, and ensures smooth passage of vehicles in narrow passages.
Smart Images

Figure CN118618378A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, in particular to the field of autonomous driving technology, and specifically to a method, device, vehicle and storage medium for yielding by reversing. Background Art
[0002] With the rapid development of autonomous driving technology, automatic parking assistance technologies such as memory parking have been widely used. The dynamic interaction scenarios in the memory parking process are the key and difficult points of technical research in this field, and are also key issues that affect user experience, such as: meeting scenes in narrow passages. At present, most memory parking functions usually use the method of braking and waiting for the takeover when the vehicle in front meets the vehicle in a narrow passage, which is easy to cause unnecessary traffic congestion and affect the driver's experience.
[0003] Unlike forward cruising path planning, reverse path planning when meeting other vehicles in narrow passages not only requires maintaining a safe distance from obstacles, but also requires making way for the vehicle in front as quickly as possible, so the trajectory needs to have a small turning radius. Most related technologies use geometric planning to achieve small turning radius planning, but the geometric planning method is designed based on fixed geometric rules and constraints. It lacks flexibility for complex and dynamically changing reverse scenarios, especially narrow spaces, and cannot guarantee the safety of the reverse courtesy path. Therefore, how to improve the safety and flexibility of the reverse courtesy trajectory is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a method, device, vehicle and storage medium for reversing courtesy, so as to at least solve the technical problems of ineffective reversing courtesy and low flexibility of reversing courtesy path in the related art. The technical solution of the present application is as follows:
[0005] According to a first aspect of the present application, a method for reversing and yielding is provided, the method comprising: continuously acquiring real-time position information and real-time environmental information of a first vehicle, and real-time position information of a second vehicle that is meeting the first vehicle in a narrow passage; judging whether the first vehicle is a courteous vehicle based on the real-time position information and real-time environmental information of the first vehicle, and the real-time position information of the second vehicle; if the first vehicle is a courteous vehicle, determining a reversing and yielding trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; and controlling the first vehicle to perform reversing and yielding according to the reversing and yielding trajectory.
[0006] According to the above technical means, based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle, it is determined whether the first vehicle is a courteous vehicle, so as to more accurately determine the courteous person, so as to improve the efficiency of the reversing courteous process. In addition, through the real-time position information of the first vehicle and the real-time position information of the second vehicle, when determining the reversing courteous trajectory of the first vehicle, the interactive behavior of the first vehicle and the second vehicle in the process of giving way and being given way is taken into account, making the reversing courteous trajectory more reasonable and ensuring the safety of the vehicle in the reversing courteous process.
[0007] In a possible implementation, based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, determining whether the first vehicle is a courteous vehicle includes: simulating multiple interaction schemes of the first vehicle and the second vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; the multiple interaction schemes are all driving schemes of the first vehicle and the second vehicle through a narrow passage; determining the interaction scheme with the highest traffic efficiency among the multiple interaction schemes as a target interaction scheme; and determining whether the first vehicle is a courteous vehicle based on the target interaction scheme.
[0008] According to the above technical means, by simulating multiple interaction schemes of the first vehicle and the second vehicle, the target interaction scheme with the highest traffic efficiency is determined, thereby determining the courteous vehicle, improving the traffic efficiency of narrow passages, and reducing traffic congestion and waiting time.
[0009] In another possible implementation, based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, multiple interaction schemes of the first vehicle and the second vehicle are simulated, including: based on the real-time environmental information of the first vehicle, determining multiple situations in which the first vehicle acts as a courtesy vehicle or the second vehicle acts as a courtesy vehicle; based on multiple situations, taking turns as courtesy vehicles for the first vehicle and the second vehicle; simulating driving schemes of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; and determining multiple interaction schemes of the first vehicle and the second vehicle according to the driving schemes of the first vehicle and the second vehicle.
[0010] According to the above technical means, by taking turns as the courtesy vehicles, all driving plans of the first vehicle and the second vehicle through a narrow passage are determined, thereby determining multiple interactive plans of the first vehicle and the second vehicle, so as to determine the driving plan with the highest traffic efficiency among all the driving plans used by the first vehicle and the second vehicle, thereby improving the traffic efficiency of the narrow passage.
[0011] In another possible implementation, determining an interaction scheme with the highest traffic efficiency among multiple interaction schemes as a target interaction scheme includes: for each interaction scheme among the multiple interaction schemes, determining the vehicle driving distance, vehicle steering wheel angle and vehicle right of way of each interaction scheme respectively; the vehicle right of way is used to characterize the proportion of driving trajectories of the first vehicle and the second vehicle that meet traffic rules in each interaction scheme; determining a score for each interaction scheme based on the weights of vehicle driving distance, vehicle steering wheel angle and vehicle right of way; determining the interaction scheme with the highest score among the multiple interaction schemes as the target interaction scheme.
[0012] According to the above technical means, multiple interaction schemes are scored and ranked according to the weights of vehicle driving distance, vehicle steering wheel angle and vehicle road rights, so as to determine the target interaction scheme that best suits the current scenario and is more in line with driving habits among the multiple interaction schemes, thereby maximizing the interests of the first vehicle and the second vehicle participating in the dynamic interaction, so as to improve the efficiency of reversing courtesy.
[0013] In another possible implementation, a reversing courtesy trajectory is determined based on the memory path information of the first vehicle and the real-time position information of the first vehicle, including: determining a reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; generating a grid map according to the reference trajectory; determining an initial reversing courtesy trajectory and left and right boundaries of the initial reversing courtesy trajectory in the grid map based on an A-star algorithm; and determining the reversing courtesy trajectory through quadratic programming based on the initial reversing courtesy trajectory and the left and right boundaries.
[0014] According to the above technical means, the accuracy and reliability of the reversing courtesy trajectory are improved by combining the real-time position information and the memory path information of the first vehicle. Secondary planning is performed based on the initial reversing courtesy trajectory and the left and right boundaries to determine the reversing courtesy trajectory, ensuring the real-time and stability of the reversing courtesy trajectory.
[0015] In another possible implementation, the reversing courtesy trajectory is determined through quadratic programming based on the initial reversing courtesy trajectory and the left and right boundaries, including: taking the initial reversing courtesy trajectory as the initial solution of the optimization problem of the quadratic programming, and the left and right boundaries as constraints of the quadratic programming, to construct a quadratic programming model; and inputting the real-time position information and the negative heading angle of the first vehicle into the quadratic programming model to determine the reversing courtesy trajectory.
[0016] According to the above technical means, the reversing courtesy trajectory is accurately adjusted through secondary planning to ensure that the first vehicle meets the real-time environmental conditions when reversing, and by adding constraints, a reversing courtesy trajectory that meets environmental requirements is generated to cope with complex reversing environments.
[0017] In another possible implementation, a grid map is generated based on a reference trajectory, including: generating an initial grid map of a preset distance according to a direction of the reference trajectory and a normal direction of the reference trajectory; and projecting obstacles in the real-time environment onto the initial grid map based on real-time environmental information to obtain a grid map.
[0018] According to the above technical means, the real-time environment of the vehicle and the location of obstacles are more accurately represented by the grid map, thereby providing accurate environmental information for reversing courtesy trajectory planning, which helps to generate a safer and more efficient reversing courtesy trajectory.
[0019] In another possible implementation, the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory are determined in a grid map based on the A-star algorithm, including: determining a starting point and a target row for the trajectory search; the starting point is the grid point in the grid map that is closest to the current position of the first vehicle; the target behavior reserves a distance of at least half the body width of the first vehicle at the boundary of the narrow passage; based on the starting point and the target row, the initial reversing courtesy trajectory is determined by searching through the A-star algorithm; in the grid map, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory are used as the left and right boundaries of the initial reversing courtesy trajectory.
[0020] According to the above technical means, the initial reversing courtesy trajectory is determined in the grid map by the A-star algorithm to ensure that the initial reversing courtesy trajectory is passable. And by determining the left and right boundaries of the initial reversing courtesy trajectory, the first vehicle is prevented from colliding with surrounding obstacles, thereby improving the safety of the first vehicle during the reversing courtesy process.
[0021] In another possible implementation, after determining the reversing courtesy trajectory through secondary planning based on the initial reversing courtesy trajectory and the left and right boundaries, the method further includes: in the process of the first vehicle driving based on the reversing courtesy trajectory, updating the grid map and the initial reversing courtesy trajectory in real time according to the real-time position information and real-time environmental information of the first vehicle; when the reversing courtesy trajectory meets the preset conditions, performing secondary planning re-planning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory, and updating the reversing courtesy trajectory; the preset conditions include any one or more of the following: there are inaccessible grids in the reversing courtesy trajectory in the updated grid map; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than the preset distance of the updated grid map; the distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than a second preset threshold.
[0022] According to the above technical means, during the driving of the first vehicle based on the reversing courtesy trajectory, the grid map and the initial reversing courtesy trajectory can also be updated, so that the reversing courtesy trajectory is detected based on the updated grid map, the updated initial courtesy trajectory and the real-time position information of the first vehicle. When the reversing courtesy trajectory does not meet the preset conditions, secondary planning and re-planning are performed to update the reversing courtesy trajectory, thereby ensuring the safety of the first vehicle during the reversing courtesy process.
[0023] According to the second aspect provided by the present application, a device for yielding by reversing is provided, and the device includes: a perception and positioning module, a decision module, a planning module, and a control module. The perception and positioning module is used to continuously obtain the real-time position information and real-time environmental information of the first vehicle, as well as the real-time position information of the second vehicle that is meeting the first vehicle in a narrow passage; the decision module is used to determine whether the first vehicle is a yielding vehicle based on the real-time position information and real-time environmental information of the first vehicle, as well as the real-time position information of the second vehicle; the planning module is used to determine the reversing yielding trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle when the first vehicle is a yielding vehicle; the control module is used to control the first vehicle to yield by reversing according to the reversing yielding trajectory.
[0024] In one possible implementation, the decision module is specifically used to simulate multiple interaction schemes between the first vehicle and the second vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; the multiple interaction schemes are all driving schemes of the first vehicle and the second vehicle through a narrow passage; the interaction scheme with the highest traffic efficiency among the multiple interaction schemes is determined as the target interaction scheme; based on the target interaction scheme, it is determined whether the first vehicle is a courteous vehicle.
[0025] In another possible implementation, the decision module is specifically used to, based on the real-time environmental information of the first vehicle, determine multiple situations in which the first vehicle acts as a courtesy vehicle or the second vehicle acts as a courtesy vehicle; based on multiple situations, use the first vehicle and the second vehicle as courtesy vehicles in turn; simulate driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; and determine multiple interaction plans of the first vehicle and the second vehicle according to the driving plans of the first vehicle and the second vehicle.
[0026] In another possible implementation, the decision module is specifically used to determine, for each interaction scheme among multiple interaction schemes, the vehicle driving distance, the vehicle steering wheel angle and the vehicle right of way for each interaction scheme respectively; the vehicle right of way is used to characterize the proportion of the driving trajectories of the first vehicle and the second vehicle that meet the traffic rules in each interaction scheme; based on the weights of the vehicle driving distance, the vehicle steering wheel angle and the vehicle right of way, determine the score of each interaction scheme; determine the interaction scheme with the highest score among the multiple interaction schemes as the target interaction scheme.
[0027] In another possible implementation, the planning module is specifically used to determine a reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; generate a grid map based on the reference trajectory; determine the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm; and determine the reversing courtesy trajectory through secondary planning based on the initial reversing courtesy trajectory and the left and right boundaries.
[0028] In another possible implementation, the planning module is specifically used to construct a quadratic programming model using the initial reversing and courtesy trajectory as the initial solution to the quadratic programming optimization problem and the left and right boundaries as constraints of the quadratic programming; the real-time position information and negative heading angle of the first vehicle are input into the quadratic programming model to determine the reversing and courtesy trajectory.
[0029] In another possible implementation, the planning module is specifically used to generate an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory; based on real-time environmental information, obstacles in the real-time environment are projected onto the initial grid map to obtain a grid map.
[0030] In another possible implementation, the planning module is specifically used to determine a starting point and a target row for the trajectory search; the starting point is a grid point in the grid map that is closest to the current position of the first vehicle; the target behavior reserves a distance of at least half the body width of the first vehicle at the boundary of the narrow passage; based on the starting point and the target row, an A-star algorithm is used to search and determine an initial reversing courtesy trajectory; in the grid map, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory are used as the left and right boundaries of the initial reversing courtesy trajectory.
[0031] In another possible implementation, the planning module is further used to, during the process of the first vehicle driving based on the reversing courtesy trajectory, update the grid map and the initial reversing courtesy trajectory in real time according to the real-time position information and real-time environmental information of the first vehicle; when the reversing courtesy trajectory meets the preset conditions, perform secondary planning and re-planning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory; the preset conditions include any one or more of the following: there are inaccessible grids in the reversing courtesy trajectory in the updated grid map; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than the preset distance of the updated grid map; the distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than a second preset threshold.
[0032] According to the third aspect provided by the present application, a vehicle is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0033] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of the vehicle, the vehicle is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0034] According to the fifth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on a vehicle, the vehicle executes the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0035] Therefore, the above technical features of the present application have the following beneficial effects:
[0036] (1) Based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle, it is determined whether the first vehicle is a courteous vehicle, so as to more accurately determine the courteous person, so as to improve the efficiency of the reversing courteous process. In addition, through the real-time position information of the first vehicle and the real-time position information of the second vehicle, when determining the reversing courteous trajectory of the first vehicle, the interactive behaviors of the first vehicle and the second vehicle in the process of giving way and being given way are taken into account, so that the reversing courteous trajectory is more reasonable and the safety of the vehicle in the reversing courteous process is ensured.
[0037] (2) By simulating multiple interaction schemes between the first vehicle and the second vehicle, the target interaction scheme with the highest traffic efficiency is determined, thereby determining the courteous vehicle, improving the traffic efficiency of narrow passages, and reducing traffic congestion and waiting time.
[0038] (3) By taking turns as the courtesy vehicles, all driving plans of the first vehicle and the second vehicle through the narrow passage are determined, thereby determining multiple interactive plans of the first vehicle and the second vehicle, so as to determine the driving plan with the highest traffic efficiency among all the driving plans used by the first vehicle and the second vehicle, thereby improving the traffic efficiency of the narrow passage.
[0039] (4) Scoring and ranking multiple interaction schemes based on vehicle driving distance, vehicle steering wheel angle, and vehicle road right weights to determine a target interaction scheme that best fits the current scenario and driving habits, thereby maximizing the benefits of the first vehicle and the second vehicle participating in the dynamic interaction and improving the efficiency of reversing courtesy.
[0040] (5) The accuracy and reliability of the reversing courtesy trajectory are improved by combining the real-time position information and the memory path information of the first vehicle. Secondary planning is performed based on the initial reversing courtesy trajectory and the left and right boundaries to determine the reversing courtesy trajectory, ensuring the real-time and stability of the reversing courtesy trajectory.
[0041] (6) The reversing courtesy trajectory is precisely adjusted through quadratic planning to ensure that the first vehicle meets the real-time environmental conditions when reversing. By adding constraints, a reversing courtesy trajectory that meets environmental requirements is generated to cope with complex reversing environments.
[0042] (7) The grid map more accurately represents the real-time environment of the vehicle and the location of obstacles, thereby providing accurate environmental information for reversing and yielding trajectory planning, which helps to generate safer and more efficient reversing and yielding trajectories.
[0043] (8) The initial reversing and yielding trajectory is determined in the grid map by the A-star algorithm to ensure that the initial reversing and yielding trajectory is passable. By determining the left and right boundaries of the initial reversing and yielding trajectory, the first vehicle is prevented from colliding with surrounding obstacles, thereby improving the safety of the first vehicle during the reversing and yielding process.
[0044] (9) While the first vehicle is driving based on the reversing courtesy trajectory, the grid map and the initial reversing courtesy trajectory can also be updated, so that the reversing courtesy trajectory can be detected based on the updated grid map, the updated initial courtesy trajectory and the real-time position information of the first vehicle. When the reversing courtesy trajectory does not meet the preset conditions, secondary planning and re-planning are performed to update the reversing courtesy trajectory, thereby ensuring the safety of the first vehicle during the reversing courtesy process.
[0045] It should be noted that the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.
[0046] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0048] Figure 1 is a flow chart of a method for yielding by reversing according to an exemplary embodiment;
[0049] Figure 2 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0050] Figure 3 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0051] Figure 4 is a schematic diagram showing a meeting scene of a first vehicle and a second vehicle according to an exemplary embodiment;
[0052] Figure 5 is a schematic diagram showing a simulation of a second vehicle driving scheme according to an exemplary embodiment;
[0053] Figure 6 is a schematic diagram showing a driving scheme of a first vehicle and a second vehicle according to an exemplary embodiment;
[0054] Figure 7 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0055] Figure 8 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0056] Fig. 9 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0057] Fig.10 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0058] Fig.11 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0059] Fig.12 is a flow chart showing another method for yielding by reversing according to an exemplary embodiment;
[0060] Fig.13 is a schematic diagram of a reversing courtesy decision process according to an exemplary embodiment;
[0061] Fig.14 is a flow chart showing a first vehicle executing a reversing courtesy trajectory according to an exemplary embodiment;
[0062] Fig.15 is a flow chart showing a reversing courtesy trajectory planning according to an exemplary embodiment;
[0063] Fig.16 is a block diagram of a reversing courtesy device according to an exemplary embodiment;
[0064] Fig.17 is a block diagram of a vehicle according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0066] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0067] With the rapid development of autonomous driving technology, automatic parking assistance technologies such as memory parking have been widely used. The dynamic interaction scenarios during memory parking are the key and difficult points of technical research in this field, and are also key issues that affect user experience, such as: meeting scenes in narrow passages. At present, most memory parking functions usually adopt the method of braking and waiting for takeover when the vehicle in front meets the vehicle in a narrow passage, which can easily cause unnecessary traffic congestion and affect the driver's experience. In related technologies, considering making parking space for the vehicle in front, the reversing path directly follows the simultaneous localization and mapping (SLAM) learning path, which cannot effectively make way for the vehicle in front. Or the dynamic interaction and game between the vehicle in front and the vehicle in front are not considered during the reversing process.
[0068] Unlike the path planning of forward cruising, the reverse path planning when meeting in a narrow channel not only needs to maintain a safe distance from obstacles, but also needs to make way for the vehicle in front as quickly as possible, so the trajectory needs to have a small turning radius. Most of the related technologies use geometric planning to achieve small turning radius planning, but the geometric planning method is designed based on fixed geometric rules and constraints. It lacks flexibility for complex and dynamically changing reversing scenarios, especially narrow spaces, and cannot guarantee the safety of the reversing courtesy path. Parking lots are low-speed unstructured roads with very complex road conditions. There may be scenes where two or more vehicles interact at the same time, and the behaviors of various traffic participants will affect each other. Therefore, the common method of making rule-based decisions based on target prediction intentions cannot flexibly cope with narrow channel meeting scenarios in parking lot environments. Therefore, how to improve the safety and flexibility of reversing courtesy trajectories is a technical problem that needs to be solved urgently.
[0069] In response to the above problems, the present application proposes a backing courtesy method that takes into account the dynamic interaction process between the vehicle and the vehicle in front. In this method, based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, it is determined whether the first vehicle is a courtesy vehicle, so as to more accurately determine the person who gives way, so as to improve the efficiency of the backing courtesy process. In addition, through the real-time position information of the first vehicle and the real-time position information of the second vehicle, when determining the backing courtesy trajectory of the first vehicle, the interactive behavior of the first vehicle and the second vehicle in the process of giving way and being given way is taken into account, so that the backing courtesy trajectory is more reasonable and the safety of the vehicle in the backing courtesy process is guaranteed.
[0070] For ease of understanding, the reversing courtesy method provided by the present application is specifically introduced below with reference to the accompanying drawings.
[0071] Figure 1 is a flow chart of a method for yielding by reversing according to an exemplary embodiment. Figure 1 As shown, the reversing courtesy method includes the following steps:
[0072] S101. Continuously acquire real-time position information and real-time environment information of a first vehicle, and real-time position information of a second vehicle that is meeting the first vehicle in a narrow passage.
[0073] As a possible implementation method, the courtesy device can continuously obtain the real-time position information and real-time environmental information of the first vehicle, as well as the real-time position information of the second vehicle that is meeting the first vehicle in a narrow passage, so as to judge the courteous person and the person being courted based on the real-time position information and real-time environmental information of the first vehicle, as well as the real-time position information of the second vehicle.
[0074] Exemplarily, the courtesy device can obtain real-time environmental information of the first vehicle, such as: passable space, spatial information of obstacles, lane guide lines, lane right of way information, etc., real-time position information of the first vehicle and real-time position information of the second vehicle, specifically including: positioning coordinates and vehicle orientation (x, y, heading).
[0075] S102: Based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle, determine whether the first vehicle is a courteous vehicle.
[0076] As a possible implementation method, after the courtesy device obtains the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, it can determine whether the first vehicle is a courtesy vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle.
[0077] Exemplarily, the courtesy device can simulate multiple interaction schemes between the first vehicle and the second vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, thereby selecting an interaction scheme with the highest traffic efficiency as the target interaction scheme from the multiple interaction schemes, and based on the target interaction scheme, determine whether the first vehicle is a courtesy vehicle.
[0078] S103: When the first vehicle is a courtesy vehicle, determine a reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle.
[0079] As a possible implementation method, the courtesy device determines whether the first vehicle is a courtesy vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle. If the first vehicle is a courtesy vehicle, the courtesy device can determine the reversing courtesy trajectory of the first vehicle based on the memory path information of the first vehicle and the real-time position information of the first vehicle.
[0080] Exemplarily, when the first vehicle is a courtesy vehicle, the courtesy device can determine the reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle, and generate a grid map based on the reference trajectory. Thus, the courtesy device can determine the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm, and determine the reversing courtesy trajectory through quadratic programming based on the initial reversing courtesy trajectory and the left and right boundaries. When the first vehicle is the courtesy vehicle, the courtesy device can control the first vehicle to stop and wait, and pass through the narrow passage after the second vehicle performs the reversing courtesy.
[0081] S104: Control the first vehicle to perform a backing and yielding operation according to the backing and yielding operation trajectory.
[0082] As a possible implementation manner, after the courtesy device determines the reversing courtesy trajectory, it can also control the first vehicle to perform reversing courtesy according to the reversing courtesy trajectory so that the first vehicle can pass through the narrow passage.
[0083] In some embodiments, the courtesy device can simulate multiple interaction schemes between the first vehicle and the second vehicle, thereby determining the target interaction scheme with the highest traffic efficiency from the multiple interaction schemes to determine whether the first vehicle is a courtesy vehicle. Figure 2 As shown, the above step S102, based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle, determines whether the first vehicle is a courteous vehicle, which can be specifically implemented as the following steps S1021-S1023:
[0084] S1021. Based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle, simulate multiple interaction schemes between the first vehicle and the second vehicle.
[0085] The multiple interactive schemes are all driving schemes for the first vehicle and the second vehicle to pass through the narrow passage.
[0086] As a possible implementation manner, the courtesy device may simulate multiple interaction scenarios between the first vehicle and the second vehicle based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle.
[0087] Exemplarily, the courtesy device can determine various situations in which the first vehicle acts as a courtesy vehicle or the second vehicle acts as a courtesy vehicle based on the real-time environmental information of the first vehicle, and based on the various situations, take turns using the first vehicle and the second vehicle as courtesy vehicles, and simulate the driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle, thereby determining multiple interaction plans of the first vehicle and the second vehicle according to the driving plans of the first vehicle and the second vehicle.
[0088] S1022: Determine an interaction scheme with the highest traffic efficiency among multiple interaction schemes as a target interaction scheme.
[0089] As a possible implementation method, after the courtesy device simulates multiple interaction schemes between the first vehicle and the second vehicle, it can determine the interaction scheme with the highest traffic efficiency among the multiple interaction schemes as the target interaction scheme, so as to judge whether the first vehicle is a courtesy vehicle based on the target interaction scheme.
[0090] Exemplarily, the courtesy device can determine the vehicle driving distance, vehicle steering wheel angle and vehicle right of way for each interaction scheme among multiple interaction schemes, and determine the score of each interaction scheme based on the weights of the vehicle driving distance, vehicle steering wheel angle and vehicle right of way, so as to determine the interaction scheme with the highest score among the multiple interaction schemes as the target interaction scheme.
[0091] S1023. Based on the target interaction solution, determine whether the first vehicle is a courteous vehicle.
[0092] As a possible implementation manner, after the courtesy device determines the target interaction scheme, it can determine whether the first vehicle is a courtesy vehicle based on the target interaction scheme.
[0093] Exemplarily, the courtesy device may determine the courtesy vehicle and the courtesy vehicle in the target interaction scheme, thereby determining whether the first vehicle is the courtesy vehicle.
[0094] In other embodiments, the courtesy device can determine multiple situations in which the first vehicle is a courtesy vehicle or the second vehicle is a courtesy vehicle, thereby simulating the driving plans of the first vehicle and the second vehicle based on multiple situations and determining multiple interaction plans of the first vehicle and the second vehicle. Figure 3 As shown, the above step S1021, based on the real-time location information and real-time environment information of the first vehicle, and the real-time location information of the second vehicle, simulates multiple interaction schemes of the first vehicle and the second vehicle, which can be specifically implemented as the following steps S1021a-S1021d:
[0095] S1021a. Based on the real-time environmental information of the first vehicle, determine various situations in which the first vehicle is a courtesy vehicle or the second vehicle is a courtesy vehicle.
[0096] As a possible implementation manner, the courtesy device may determine various situations in which the first vehicle is a courtesy vehicle or the second vehicle is a courtesy vehicle based on the real-time environmental information of the first vehicle.
[0097] For example, there are two situations when the first vehicle and the second vehicle pass through a narrow passage: the first situation is that the first vehicle is a courteous vehicle and the second vehicle is a courteous vehicle that keeps moving forward; the second situation is that the second vehicle is a courteous vehicle and the first vehicle is a courteous vehicle that keeps moving forward. And there are multiple possibilities for the driving trajectories of the first vehicle and the second vehicle through the narrow passage. Therefore, the courteous device can determine multiple situations in which the first vehicle is a courteous vehicle or the second vehicle is a courteous vehicle based on the real-time environmental information of the first vehicle.
[0098] S1021b. Based on various situations, the first vehicle and the second vehicle are used as the courtesy vehicles in turn.
[0099] As a possible implementation manner, after the courtesy device determines multiple situations in which the first vehicle is a courtesy vehicle or the second vehicle is a courtesy vehicle, the first vehicle and the second vehicle may be used as courtesy vehicles in turn based on the multiple situations.
[0100] S1021c. Simulate driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle.
[0101] As a possible implementation method, the courtesy device can use the first vehicle and the second vehicle as courtesy vehicles in turn, and then simulate the driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle.
[0102] Exemplarily, the courtesy device can simulate all driving scenarios of the first vehicle as a courtesy vehicle and the second vehicle as a courtesy vehicle through a narrow passage, respectively, based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle. For example, the courtesy device can sample the forward lateral behavior of the second vehicle within the passable space of the real-time environment, and for each forward lateral behavior of the second vehicle, sample the reverse lateral behavior of the first vehicle in the remaining passable space after excluding the passable area occupied by the forward behavior of the second vehicle. The lateral behaviors are divided into {LK, LCL, LCR}, and for the convenience of quantification, the lateral behaviors are matched using geometric curves to generate a coarse-grained trajectory with coarse resolution.
[0103] As an example, Figure 4 FIG. 1 is a schematic diagram of a scenario in which a first vehicle and a second vehicle meet each other according to an exemplary embodiment. In a scenario in which a first vehicle (ie, the ego) and a second vehicle (ie, the agent) meet and get stuck in a narrow passage. Figure 4 shown.
[0104] Figure 5 is a schematic diagram showing a simulation of a second vehicle driving plan according to an exemplary embodiment. The second vehicle is a courtesy vehicle. Without considering the space occupied by the first vehicle, based on the two lane reference lines contained in the local map, n continuous polynomial trajectories with a longitudinal length of s meters and c2 are sampled and generated, where c2 is the coefficient of the second-order term of the polynomial. Figure 5 As shown, ① and ② are two trajectory plans for the second vehicle.
[0105] Figure 6 is a schematic diagram showing a driving scheme of a first vehicle and a second vehicle according to an exemplary embodiment, such as Figure 6As shown, for the first vehicle that gives way, when simulating the driving plan of the first vehicle, it is necessary to consider reserving enough space for the second vehicle to complete the forward passage. Each driving plan of the first vehicle will correspond to a forward driving plan of the second vehicle, and the space ① swept by the forward trajectory of the second vehicle will be excluded from the passable space generated by the trajectory.
[0106] S1021d. Determine a plurality of interaction schemes of the first vehicle and the second vehicle according to the driving schemes of the first vehicle and the second vehicle.
[0107] As a possible implementation manner, after the courtesy device simulates the driving plans of the first vehicle and the second vehicle, it can determine multiple interaction plans of the first vehicle and the second vehicle according to all driving plans of the first vehicle as a courtesy vehicle and the second vehicle as a courtesy vehicle.
[0108] In other embodiments, the courtesy device may determine the vehicle driving distance, vehicle steering wheel angle, and vehicle right of way of each interaction solution, and determine the score of each interaction solution by the weight of the vehicle driving distance, vehicle steering wheel angle, and vehicle right of way, so as to determine the interaction solution with the highest score among the multiple interaction solutions as the target interaction solution. Figure 7 As shown, the above step S1022, determining the interaction scheme with the highest traffic efficiency among multiple interaction schemes as the target interaction scheme, can be specifically implemented as the following steps S1022a-S1022c:
[0109] S1022a. For each of the multiple interaction schemes, determine the vehicle driving distance, vehicle steering wheel angle, and vehicle right of way for each interaction scheme.
[0110] The vehicle right of way is used to characterize the proportion of the driving trajectories of the first vehicle and the second vehicle that meet the traffic rules in each interaction scheme.
[0111] As a possible implementation manner, for each of the multiple interaction schemes, the courtesy device may respectively determine the vehicle driving distance, the vehicle steering wheel angle, and the vehicle right of way for each interaction scheme.
[0112] S1022b: Determine a score for each interaction solution based on the vehicle's driving distance, the vehicle's steering wheel angle, and the weight of the vehicle's road right.
[0113] As a possible implementation method, after the courtesy device determines the vehicle driving distance, vehicle steering wheel angle and vehicle right of way of each interaction scheme, it can determine the score of each interaction scheme based on the weight of the vehicle driving distance, vehicle steering wheel angle and vehicle right of way. Among them, the weight of the vehicle driving distance, vehicle steering wheel angle and vehicle right of way is determined by relevant management personnel according to actual conditions, and the embodiments of this application do not limit this.
[0114] S1022c: Determine the interaction solution with the highest score among the multiple interaction solutions as the target interaction solution.
[0115] As a possible implementation manner, after determining the score of each interaction scheme, the courtesy device may determine the interaction scheme with the highest score among the multiple interaction schemes as the target interaction scheme.
[0116] Exemplarily, the courtesy device can determine an optimal courtesy interaction scheme (i.e., the first vehicle is the courtesy vehicle, and the second vehicle is the courtesy vehicle) and an optimal courtesy interaction scheme (the first vehicle is the courtesy vehicle, and the second vehicle is the courtesy vehicle) from multiple interaction schemes based on the score of each interaction scheme. Compare the score of the optimal courtesy interaction scheme and the score of the optimal courtesy interaction scheme, and give priority to the courtesy decision, otherwise control the first vehicle to wait and observe. Thus, the courtesy device can determine the interaction trajectory that best suits driving habits.
[0117] In other embodiments, the courtesy device may determine the initial courtesy reversing trajectory and left and right boundaries of the first vehicle, and then determine the courtesy reversing trajectory through quadratic programming based on the initial courtesy reversing trajectory and left and right boundaries. Figure 8 As shown, in the above step S103, when the first vehicle is a courtesy vehicle, based on the memory path information of the first vehicle and the real-time position information of the first vehicle, determining the reversing courtesy trajectory can be specifically implemented as the following steps S1031-S1034:
[0118] S1031. Determine a reference trajectory of a reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle.
[0119] As a possible implementation manner, the courtesy device may determine a reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle.
[0120] Exemplarily, the courtesy device can match the nearest point in the memory path of the first vehicle according to the real-time position information of the first vehicle, and intercept the memory path within a preset range behind the point as a reference line for reversing trajectory planning. Thus, the courtesy device can use the reference line as the s-axis of the Frenet coordinate system, and its normal as the l-axis. The reversing courtesy trajectory is searched and secondary planned in the Frenet coordinate system, and then the reversing courtesy trajectory is converted into Cartesian coordinates as the final reversing trajectory output.
[0121] It should be understood that the memory path information of the first vehicle is generated by the memory mapping module at the front end of the first vehicle, and the driving route from the starting point to the target parking space is generated after the driver controls the vehicle to learn the parking route. For the convenience of storage and transmission, the memory path is usually discretized into points with equal spacing. The memory path information includes the coordinates of the discrete points, the orientation angle, curvature, distance from the left road boundary, and distance from the right road boundary at the discrete points.
[0122] S1032: Generate a grid map according to the reference trajectory.
[0123] As a possible implementation manner, after the courtesy device determines the reference trajectory of the reversing courtesy trajectory, a grid map can be generated according to the reference trajectory.
[0124] Exemplarily, the courtesy device may generate an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory, and project obstacles in the real-time environment onto the initial grid map based on the real-time environment information to obtain a grid map.
[0125] S1033: Determine the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm.
[0126] As a possible implementation manner, after the courtesy device generates a grid map, the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory can be determined in the grid map based on the A-star algorithm.
[0127] Exemplarily, the courtesy device can determine the grid point closest to the current position of the first vehicle in the grid map as the starting point of the trajectory search, and determine a distance of at least half the body width of the first vehicle reserved at the boundary of the narrow channel as a target row, so as to determine the initial reversing courtesy trajectory based on the starting point and the target row, and in the grid map, use the first impassable grids on the left and right sides of the initial reversing courtesy trajectory as the left and right boundaries of the initial reversing courtesy trajectory.
[0128] It should be understood that after the courtesy device determines the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm, it can also determine whether there is a passage space behind the first vehicle based on the left and right boundaries, so as to determine the reversing courtesy trajectory when there is a passage space behind the first vehicle, and when there is no passage space behind the first vehicle, the courtesy device can control the first vehicle to stop and wait. For example, when all right boundary values of the first vehicle are greater than 0 and at least one right boundary value is greater than half the vehicle width, and the maximum absolute value of the left and right boundary difference is greater than the vehicle width plus the preset width value, and the minimum absolute value of the left and right boundary difference is greater than 0, the courtesy device can determine that there is enough passage space behind the first vehicle, otherwise, it is determined that there is not enough passage space behind the first vehicle.
[0129] S1034: Determine the reversing courtesy trajectory through secondary planning based on the initial reversing courtesy trajectory and the left and right boundaries.
[0130] As a possible implementation manner, after the courtesy device determines the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory, the reversing courtesy trajectory can be determined through quadratic programming based on the initial reversing courtesy trajectory and the left and right boundaries.
[0131] Exemplarily, the courtesy device can use the initial reversing courtesy trajectory as the initial solution to the quadratic programming optimization problem, and the left and right boundaries as the constraints of the quadratic programming to construct a quadratic programming model, thereby inputting the real-time position information and negative heading angle of the first vehicle into the quadratic programming model to determine the reversing courtesy trajectory.
[0132] In other embodiments, the courtesy device may construct a quadratic programming model based on the initial courtesy trajectory and the left and right boundaries to determine the courtesy trajectory. Fig. 9 As shown, the above step S1034, based on the initial reversing courtesy trajectory and the left and right boundaries, determines the reversing courtesy trajectory through secondary planning, which can be specifically implemented as the following steps S1034a-S1034b:
[0133] S1034a. Using the initial reversing courtesy trajectory as the initial solution to the quadratic programming optimization problem, and using the left and right boundaries as constraints for the quadratic programming, a quadratic programming model is constructed.
[0134] As a possible implementation method, the courtesy device can use the initial reversing courtesy trajectory as the initial solution to the quadratic programming optimization problem, and use the left and right boundaries as the constraints of the quadratic programming to construct a quadratic programming model.
[0135] Exemplarily, the courtesy device can use the lateral offset of the path point in the initial reversing courtesy trajectory relative to the reference line, i.e., the l coordinate, and its first and second order partial derivatives as the optimization variables of the quadratic programming problem. The objective function of the quadratic programming includes a smoothing cost and an offset cost relative to the target column. In order to increase computational efficiency and stability, the courtesy device uses the initial reversing courtesy trajectory as the optimization problem to be solved, and the left and right boundaries of the initial reversing courtesy trajectory are used as boundary constraints of the optimization problem. The real-time position information of the first vehicle and the negative heading angle constrain the starting point of the reversing trajectory, so that the reversing courtesy trajectory is more realistic and easier to track. Therefore, the constructed quadratic programming model is:
[0136]
[0137] Among them, Cost smooth is the trajectory smoothing cost. x is the optimization variable, x={l0,l1,…,l n-1 ,l′0,l′1,…,l′ n-1 , l″0, l″1,…, l″ n-1}. H is the quadratic coefficient matrix. f is the linear coefficient vector, A eq is the equality constraint coefficient matrix, b eq is the equality constraint constant vector. b is the lower bound of the optimization variable, u b is the upper boundary of the optimization variable. x0 is the initial value of the optimization variable, and its 1st to nth items (i.e. l0 to l n-1 ) are assigned as the l values of the initial reversing courtesy trajectory.
[0138] Furthermore, the offset cost relative to the target column is:
[0139]
[0140] Among them, w tarcol is the offset weight coefficient relative to the target column, l i is the horizontal coordinate of the ith path point in the Frenet coordinate system, l tarcol is the horizontal coordinate of the target row in the Frenet coordinate system.
[0141] The cost of trajectory smoothing is:
[0142]
[0143] Among them, w l′ is the first-order derivative weight coefficient, w l″ is the second-order derivative weight coefficient, w l″′ is the third-order derivative weight coefficient, l′ i , l″ i and l″′ i are the first, second and third order partial derivatives of the i-th path point respectively.
[0144] Based on the segmented jerk characteristics, the third-order derivative jerk of each local discrete path point is a constant, and the third-order partial derivative is:
[0145]
[0146] Among them, l″′ i→i+1 is the third-order partial derivative of the i+2th path point, l″ i+1 The second-order partial derivative of the i+2th path point, l″ i is the second-order partial derivative of the i+1th path point, Δs is the discrete spacing of the preset reference line, i=0,1,…,n-2,n-1, and n is the total number of reference path points.
[0147] The continuity equation constraint of the reversing courtesy trajectory is:
[0148]
[0149] l″ i+1 =l" i +l″′ i→i+1 Δs;
[0150] Based on the ego vehicle’s positioning point and its orientation, the following constraints are imposed on the starting point of the planned courtesy trajectory:
[0151] l0=l 0_curpos ;
[0152]
[0153] Among them, l0 is the horizontal coordinate of the starting point of the reversing courtesy trajectory in the Frenet coordinate system, l0′ is the first-order derivative of the starting point of the reversing courtesy trajectory in the Frenet coordinate system, and l 0_curpos is the lateral offset of the first vehicle positioning point relative to the starting point of the reference line, that is, the distance from the projection point P0 of the first vehicle position point on the normal line of the starting point of the reference line to the starting point of the reference line, l 1_curpos It is the lateral offset relative to the next discrete point of the reference line calculated based on P0 extended in the reverse direction of the first vehicle direction, that is, the distance between the intersection point P1 of the normal line of the second discrete point of the reference line and the line extending in the reverse direction of the first vehicle direction through point P0, and Δs is the preset discrete spacing of the reference line.
[0154] S1034b. Input the real-time position information and negative heading angle of the first vehicle into the quadratic programming model to determine a reversing courtesy trajectory.
[0155] As a possible implementation method, the courtesy device uses the initial reversing courtesy trajectory as the initial solution to the quadratic programming optimization problem, and the left and right boundaries as the constraints of the quadratic programming. After constructing the quadratic programming model, the real-time position information and negative heading angle of the first vehicle can also be input into the quadratic programming model to determine the reversing courtesy trajectory.
[0156] Exemplarily, the courtesy device can match the real-time position information of the first vehicle to the nearest point on the reversing courtesy trajectory successfully planned in the previous frame. If the distance between the two points is within a preset range, the point and all path points after the point are intercepted as the first segment of the reversing courtesy trajectory in the current frame. If the number of path points in the first segment of the reversing courtesy trajectory is less than the preset number of path points, the lateral offset of the last path point in the first segment is used to extend the corresponding number of points to obtain a complete reversing courtesy trajectory.
[0157] In other embodiments, the courtesy device may generate a grid map according to the direction of the reference trajectory and the normal direction of the reference trajectory. Fig.10 As shown, the above step S1032, generating a grid map according to the reference trajectory, can be specifically implemented as the following steps S1032a-S1032b:
[0158] S1032a, generating an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory.
[0159] As a possible implementation method, the courtesy device can generate an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory. The preset distance is set by relevant managers according to actual conditions, and the embodiment of the present application does not limit this.
[0160] S1032b. Based on the real-time environment information, obstacles in the real-time environment are projected onto the initial grid map to obtain a grid map.
[0161] As a possible implementation method, after the courtesy device generates an initial grid map of a preset distance, it can project obstacles in the real-time environment onto the initial grid map based on real-time environmental information to obtain a grid map.
[0162] Exemplarily, the courtesy device can project obstacles in the real-time environment into the grid map and expand it, filter the target boxes, freespace points and cluster points within the grid map range and within a preset range behind the first vehicle, project them into the grid map and expand them by half the vehicle width plus a preset value as an impassable grid.
[0163] In other embodiments, the courtesy device may determine the grid point closest to the current position of the first vehicle in the grid map as the starting point of the track search, and determine a distance of at least half the body width of the first vehicle reserved at the boundary of the narrow passage as the target line, thereby searching based on the starting point and the target line through the A-star algorithm to determine the initial reversing courtesy track, and in the grid map, the first impassable grid on the left and right sides of the initial reversing courtesy track are used as the left and right boundaries of the initial reversing courtesy track. Therefore, if Fig.11 As shown, the above step S1033, determining the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm, can be specifically implemented as the following steps S1033a-S1033c:
[0164] S1033a, determine the starting point and target line of the trajectory search.
[0165] The starting point is a grid point in the grid map that is closest to the current position of the first vehicle, and the target behavior reserves a distance of at least half the body width of the first vehicle at the boundary of the narrow passage.
[0166] As a possible implementation manner, the courtesy device may determine a starting point and a target line for the trajectory search, so as to perform the trajectory search based on the starting point and the target line and determine an initial reversing courtesy trajectory.
[0167] Exemplarily, the courtesy device may determine the grid point in the grid map closest to the current position of the first vehicle as the starting point of the trajectory search, and determine a distance of at least half the body width of the first vehicle reserved at the boundary of the narrow channel as the target row of the trajectory search.
[0168] S1033b: Based on the starting point and the target line, an A-star algorithm is used to search and determine an initial reversing courtesy trajectory.
[0169] As a possible implementation, after the courtesy device determines the starting point and target line of the trajectory search, it can search through the A-star algorithm based on the starting point and target line of the trajectory search to determine the initial reversing courtesy trajectory.
[0170] For example, in a grid map, if there is at least one column of grids that are all impassable, the courtesy device can assign the initial reversing courtesy trajectory to a preset initial value, and assign both the left and right boundaries to 0. Otherwise, the courtesy device can use the grid point closest to the first vehicle positioning point as the search starting point, push the smallest right road boundary inward by at least half a vehicle width as the target row for trajectory search, and perform a search based on the heuristic A-star algorithm to obtain the initial reversing courtesy trajectory.
[0171] S1033c. In the grid map, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory are used as left and right boundaries of the initial reversing courtesy trajectory.
[0172] As a possible implementation, after the courtesy device determines the initial reversing courtesy trajectory, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory can be used as left and right boundaries of the initial reversing courtesy trajectory in the grid map.
[0173] Exemplarily, in a grid map, the courtesy device can use the grid point closest to the first vehicle positioning point as the search starting point, and find the first impassable grid to the left of the initial path point in columns as the left boundary of the initial reversing courtesy trajectory, and its horizontal coordinate is the left boundary value of the initial reversing courtesy trajectory; and find the first impassable grid to the right of the initial path point in columns as the right boundary of the initial reversing courtesy trajectory, and its horizontal coordinate is the right boundary value of the initial reversing courtesy trajectory.
[0174] In other embodiments, during the process of the first vehicle driving based on the reversing courtesy trajectory, the courtesy device can also update the grid map and the initial reversing courtesy trajectory in real time according to the real-time position information and real-time environmental information of the first vehicle, so that when the reversing courtesy trajectory meets the preset conditions, the reversing courtesy trajectory is updated by performing secondary planning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory. Therefore, after S1034, the reversing courtesy trajectory is determined by secondary planning based on the initial reversing courtesy trajectory and the left and right boundaries, as shown in FIG. Fig.12 As shown, the reversing courtesy method provided in the embodiment of the present application further includes the following steps S1201-S1202:
[0175] S1201. When the first vehicle is driving based on the reversing and yielding trajectory, the grid map and the initial reversing and yielding trajectory are updated in real time according to the real-time position information and real-time environment information of the first vehicle.
[0176] As a possible implementation manner, during the driving of the first vehicle based on the reversing courtesy trajectory, the courtesy device may update the grid map and the initial reversing courtesy trajectory in real time according to the real-time position information and real-time environmental information of the first vehicle.
[0177] Exemplarily, the courtesy device can redetermine the memory path information of the first vehicle based on the real-time position information and real-time environmental information of the first vehicle, and update the reference line of the reversing courtesy trajectory based on the memory path information, thereby updating the grid map based on the updated reference line, and updating the initial reversing courtesy path in the updated grid map based on the A-star algorithm.
[0178] S1202: When the reversing courtesy trajectory meets preset conditions, secondary planning and re-planning are performed based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory.
[0179] Among them, the preset conditions include any one or more of the following: there are impassable grids in the reversing courtesy trajectory in the updated grid map, the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold, the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than a preset distance of the updated grid map, and the distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than a second preset threshold.
[0180] As a possible implementation method, after the courtesy device updates the grid map and the initial reversing courtesy trajectory, it can detect the current reversing courtesy trajectory based on the updated grid map and the updated initial reversing courtesy trajectory, so that when the reversing courtesy trajectory meets the preset conditions, secondary planning and re-planning can be performed based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory.
[0181] Exemplarily, the courtesy device may perform collision detection on the reversing courtesy trajectory based on the updated grid map, that is, detect whether there are impassable grids in the reversing courtesy trajectory in the updated grid map. The courtesy device may determine that there is a collision risk in the reversing courtesy trajectory based on whether there are more than a preset number of grid points in the reversing courtesy trajectory that pass through the impassable grids of the updated grid map. If there are more than a preset number of grid points in the reversing courtesy trajectory that pass through the impassable grids of the updated grid map, the reversing courtesy trajectory needs to be replanned and updated.
[0182] As another example, the courtesy device may also perform consistency detection on the reversing courtesy trajectory based on the updated initial reversing courtesy trajectory, that is, detect whether the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold, and whether the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than a preset distance of the updated grid map. The courtesy device may select at least one sampling point on the reversing courtesy trajectory and the updated initial reversing courtesy trajectory respectively according to the same rule. If the lateral offset of the sampling points of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same longitudinal distance is within the first preset threshold range, and the lateral offset of the last sampling point of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory is less than a lateral grid distance of the updated grid map, then it is determined that the reversing courtesy trajectory has good consistency with the updated initial reversing courtesy trajectory. Otherwise, it is determined that the reversing courtesy trajectory does not meet the consistency requirement, and the courtesy device can perform secondary planning and replanning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory. Among them, the first preset threshold is set by relevant management personnel according to actual conditions, and the embodiment of the present application does not limit this.
[0183] As another example, the courtesy device can also perform error detection on the reversing courtesy trajectory based on the real-time position information of the first vehicle, that is, determine whether the distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than the second preset threshold. The courtesy device can determine whether the distance between the current position of the first vehicle and the first path point of the reversing courtesy trajectory is greater than the second preset threshold. When the distance between the current position of the first vehicle and the first path point of the reversing courtesy trajectory is greater than the second preset threshold, the courtesy device can perform secondary planning and replanning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory, and update the reversing courtesy trajectory. When the distance between the current position of the first vehicle and the first path point of the reversing courtesy trajectory is less than or equal to the second preset threshold, the courtesy device can continue to control the first vehicle to perform reversing courtesy according to the reversing courtesy path. Among them, the second preset threshold is set by relevant management personnel according to actual conditions, and the embodiments of the present application do not limit this.
[0184] It should be understood that the reversing courtesy method of the present application mainly includes two parts: a reversing courtesy decision module and a reversing courtesy trajectory planning module. Among them, the reversing courtesy decision module generates multiple interaction schemes by obtaining the lateral behavior of the first vehicle and the second vehicle, and scores and sorts each interaction scheme to obtain the optimal interaction scheme, thereby judging whether to trigger the first vehicle to reverse and yield or to stop and wait for the second vehicle to yield. The reversing courtesy trajectory planning module performs reversing courtesy trajectory planning when receiving the reversing courtesy signal output by the reversing decision module. The reversing courtesy estimation planning module is constructed and solved in the Frenet coordinate system. First, the initial reversing courtesy trajectory is searched based on the A star algorithm, and the left and right boundaries of the initial reversing courtesy trajectory are obtained. The reversing courtesy trajectory is optimized by constructing a quadratic programming problem with multiple constraints and multiple objective functions. In addition, the reversing courtesy trajectory planning module also takes into account the real-time and stability of the reversing courtesy trajectory through a combination of dynamic programming and static trajectory. By real-time detection of the reversing courtesy trajectory of the previous frame, it is judged whether to execute the reversing courtesy trajectory maintenance or trigger replanning. After the planning is completed, the reversing courtesy trajectory in the Frenet coordinate system is converted into the Cartesian coordinate system and output to the control module of the first vehicle for tracking.
[0185] Fig.13 FIG. 1 is a schematic diagram of a reversing courtesy decision process according to an exemplary embodiment. Fig.13 As shown, the process includes the following steps: obtaining static environmental information (lane lines, passable space) and dynamic target information (self-vehicle, other interactive vehicles) (i.e., the real-time position information and real-time environmental information of the first vehicle mentioned above, and the real-time position information of the second vehicle), sampling interactive trajectories (i.e., the above-mentioned simulated driving plans of the first vehicle and the second vehicle), obtaining interactive trajectory families (i.e., the above-mentioned multiple interactive plans), scoring and sorting the interactive trajectories, optimal courtesy trajectory, optimal forward trajectory, behavioral decision (i.e., the above-mentioned determination of the interactive plan with the highest traffic efficiency among multiple interactive plans as the target interactive plan, judging whether the first vehicle is a courteous vehicle), and executing the result of the behavioral decision.
[0186] Fig.14 is a flow chart showing a first vehicle executing a reversing courtesy trajectory according to an exemplary embodiment. Fig.14As shown, the process includes the following steps: optimal courtesy trajectory, optimal forward trajectory, behavioral decision, judging whether it is a courtesy decision (i.e., judging whether the first vehicle is a courtesy vehicle as mentioned above), in the case of a courtesy decision, executing the optimal courtesy trajectory (i.e., the above-mentioned reversing courtesy trajectory), judging whether to execute the completed courtesy trajectory, in the case of executing the completed courtesy trajectory, judging whether the target vehicle (i.e., the above-mentioned second vehicle) has completed the departure within T1 seconds, and resuming the forward movement if the target vehicle has completed the departure within T1 seconds. If the target vehicle has not completed the departure within T1 seconds, exit and report to take over. If the completed courtesy trajectory has not been executed, exit and report to take over. If it is not a courtesy decision, observe and wait for the target vehicle to perform courtesy, judge whether the target vehicle reverses and yields within T2 seconds, and if the target vehicle reverses and yields within T2 seconds, judge whether the target vehicle's courtesy provides sufficient passage space, and resume the forward movement if the target vehicle's courtesy provides sufficient passage space. If the target vehicle's courtesy does not provide sufficient passage space, exit and report to take over. If the target vehicle does not reverse and yield within T2 seconds, exit and report takeover.
[0187] Fig.15 is a flowchart of a reversing courtesy trajectory planning according to an exemplary embodiment. Fig.15 As shown, the process includes the following steps: S1501, obtain the memory path and the positioning information of the vehicle. S1502, match and intercept the memory path according to the positioning of the vehicle, and obtain the reference line (equivalent to the above S1031, determine the reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle). S1503, generate a grid map based on the discrete points of the reference line (equivalent to the above S1032a, generate an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory). S1504, project the obstacle into the grid map and expand it (equivalent to the above S1032b, based on the real-time environment information, project the obstacles in the real-time environment into the initial grid map to obtain the grid map). S1505, search for the initial reversing path based on the grid map, and obtain the left and right boundaries of the passable area behind the vehicle (equivalent to the above S1033, determine the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm.). S1506. Determine whether the vehicle can reverse from behind. S1507. If the vehicle can reverse from behind, perform secondary planning of the reversing path or continue to use the path of the previous frame. S1508. Determine whether the planning is successful. S1509. If the vehicle cannot reverse from behind or the planning is unsuccessful, stop and wait and count down. If the accumulated timing exceeds the threshold, exit the reversing planning. S1510. If the planning is successful, output the reversing path for tracking (equivalent to the above S1034, based on the initial reversing courtesy trajectory and the left and right boundaries, determine the reversing courtesy trajectory through secondary planning).
[0188] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the reversing courtesy device or vehicle includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0189] The embodiment of the present application can exemplarily divide the functional modules of the reversing courtesy device or vehicle according to the above method. For example, the reversing courtesy device or vehicle can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0190] Fig.16 is a block diagram of a device for yielding traffic according to an exemplary embodiment. Fig.16 The reversing courtesy device 1600 includes: a perception and positioning module 1601, a decision module 1602, a planning module 1603 and a control module 1604. The perception and positioning module 1601 is used to continuously obtain the real-time position information and real-time environment information of the first vehicle, and the real-time position information of the second vehicle that is meeting the first vehicle in a narrow channel; the decision module 1602 is used to determine whether the first vehicle is a courtesy vehicle based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle; the planning module 1603 is used to determine the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle when the first vehicle is a courtesy vehicle; the control module 1604 is used to control the first vehicle to perform reversing courtesy according to the reversing courtesy trajectory.
[0191] In one possible implementation, the decision module 1602 is specifically used to simulate multiple interaction schemes between the first vehicle and the second vehicle based on the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; the multiple interaction schemes are all driving schemes of the first vehicle and the second vehicle through a narrow passage; the interaction scheme with the highest traffic efficiency among the multiple interaction schemes is determined as the target interaction scheme; based on the target interaction scheme, it is determined whether the first vehicle is a courteous vehicle.
[0192] In another possible implementation, the decision module 1602 is specifically used to, based on the real-time environmental information of the first vehicle, determine multiple situations in which the first vehicle acts as a courtesy vehicle or the second vehicle acts as a courtesy vehicle; based on multiple situations, use the first vehicle and the second vehicle as courtesy vehicles in turn; simulate the driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environmental information of the first vehicle and the real-time position information of the second vehicle; and determine multiple interaction plans of the first vehicle and the second vehicle according to the driving plans of the first vehicle and the second vehicle.
[0193] In another possible implementation, the decision module 1602 is specifically used to determine, for each interaction scheme among multiple interaction schemes, the vehicle driving distance, the vehicle steering wheel angle and the vehicle right of way for each interaction scheme respectively; the vehicle right of way is used to characterize the proportion of the driving trajectories of the first vehicle and the second vehicle that meet the traffic rules in each interaction scheme; based on the weights of the vehicle driving distance, the vehicle steering wheel angle and the vehicle right of way, determine the score of each interaction scheme; determine the interaction scheme with the highest score among the multiple interaction schemes as the target interaction scheme.
[0194] In another possible implementation, the planning module 1603 is specifically used to determine a reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; generate a grid map according to the reference trajectory; determine the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm; and determine the reversing courtesy trajectory through secondary planning based on the initial reversing courtesy trajectory and the left and right boundaries.
[0195] In another possible implementation, the planning module 1603 is specifically used to construct a quadratic programming model by taking the initial reversing and yielding trajectory as the initial solution to the optimization problem of the quadratic programming and the left and right boundaries as the constraints of the quadratic programming; and inputting the real-time position information and negative heading angle of the first vehicle into the quadratic programming model to determine the reversing and yielding trajectory.
[0196] In another possible implementation, the planning module 1603 is specifically used to generate an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory; based on the real-time environment information, the obstacles in the real-time environment are projected onto the initial grid map to obtain the grid map.
[0197] In another possible implementation, the planning module 1603 is specifically used to determine the starting point and target line of the trajectory search; the starting point is the grid point closest to the current position of the first vehicle in the grid map; the target behavior reserves a distance of at least half the body width of the first vehicle at the boundary of the narrow channel; based on the starting point and the target line, the A-star algorithm is used to search and determine the initial reversing courtesy trajectory; in the grid map, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory are used as the left and right boundaries of the initial reversing courtesy trajectory.
[0198] In another possible implementation, the planning module 1603 is further used to update the grid map and the initial reversing courtesy trajectory in real time according to the real-time position information and real-time environmental information of the first vehicle; when the reversing courtesy trajectory meets the preset conditions, secondary planning and re-planning are performed based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory; the preset conditions include any one or more of the following: there are inaccessible grids in the reversing courtesy trajectory in the updated grid map; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold; the lateral offset of the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than the preset distance of the updated grid map; the distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than a second preset threshold.
[0199] According to the above technical means, based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle, it is determined whether the first vehicle is a courteous vehicle, so as to more accurately determine the courteous person, so as to improve the efficiency of the reversing courteous process. In addition, through the real-time position information of the first vehicle and the real-time position information of the second vehicle, when determining the reversing courteous trajectory of the first vehicle, the interactive behavior of the first vehicle and the second vehicle in the process of giving way and being given way is taken into account, making the reversing courteous trajectory more reasonable and ensuring the safety of the vehicle in the reversing courteous process.
[0200] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0201] Fig.17 FIG. 1 is a block diagram of a vehicle according to an exemplary embodiment. Fig.17As shown, vehicle 1700 includes, but is not limited to, a processor 1701 and a memory 1702 .
[0202] The memory 1702 is used to store executable instructions of the processor 1701. It can be understood that the processor 1701 is configured to execute instructions to implement the reversing courtesy method in the above embodiment.
[0203] It should be noted that those skilled in the art can understand that Fig.17 The vehicle structure shown in the figure does not constitute a limitation on the vehicle, and the vehicle may include Fig.17 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0204] The processor 1701 is the control center of the vehicle, which uses various interfaces and lines to connect various parts of the entire vehicle, and executes various functions of the vehicle and processes data by running or executing software programs and / or modules stored in the memory 1702, and calling data stored in the memory 1702, so as to monitor the vehicle as a whole. The processor 1701 may include one or more processing units. Optionally, the processor 1701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1701.
[0205] The memory 1702 may be used to store software programs and various data. The memory 1702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 1702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0206] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1702 including instructions. The above instructions can be executed by the processor 1701 of the vehicle 1700 to implement the reversing courtesy method in the above embodiment.
[0207] In actual implementation, Fig.16 The functions of the perception and positioning module 1601, the decision module 1602, the planning module 1603 and the control module 1604 in the Fig.17 The processor 1701 in the embodiment calls the computer program stored in the memory 1702 to implement. The specific execution process can refer to the description of the method part in the above embodiment, which will not be repeated here.
[0208] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0209] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, which can be executed by the processor 1701 of the vehicle to complete the reversing courtesy method in the above embodiment.
[0210] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the vehicle's processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.
[0211] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0212] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0213] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0214] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0215] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.
[0216] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for yielding when reversing, characterized in that: The method comprises: Continuously acquiring real-time position information and real-time environment information of the first vehicle, and real-time position information of a second vehicle that is meeting the first vehicle in a narrow passage; Based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle, determining whether the first vehicle is a courteous vehicle; In the case where the first vehicle is a courteous vehicle, determining a reversing courteous trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; According to the reversing and yielding trajectory, the first vehicle is controlled to perform reversing and yielding.
2. The method according to claim 1, characterized in that: The determining whether the first vehicle is a courteous vehicle based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle includes: Based on the real-time position information and real-time environment information of the first vehicle, and the real-time position information of the second vehicle, multiple interaction schemes of the first vehicle and the second vehicle are simulated; the multiple interaction schemes are all driving schemes of the first vehicle and the second vehicle through the narrow passage; Determine the interaction scheme with the highest traffic efficiency among the multiple interaction schemes as the target interaction scheme; Based on the target interaction scheme, it is determined whether the first vehicle is a courteous vehicle.
3. The method according to claim 2, characterized in that The simulating multiple interaction schemes between the first vehicle and the second vehicle based on the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle includes: Based on the real-time environmental information of the first vehicle, determining a plurality of situations in which the first vehicle is a courtesy vehicle or the second vehicle is a courtesy vehicle; Based on the multiple situations, taking turns between the first vehicle and the second vehicle as the courtesy vehicle; Simulating driving plans of the first vehicle and the second vehicle respectively according to the real-time position information and real-time environment information of the first vehicle and the real-time position information of the second vehicle; According to the driving plans of the first vehicle and the second vehicle, a plurality of interaction plans of the first vehicle and the second vehicle are determined.
4. The method according to claim 2, characterized in that: The step of determining the interaction scheme with the highest traffic efficiency among the plurality of interaction schemes as the target interaction scheme comprises: For each of the multiple interaction schemes, respectively determine the vehicle driving distance, vehicle steering wheel angle, and vehicle right of way of each interaction scheme; the vehicle right of way is used to characterize the proportion of the driving trajectories of the first vehicle and the second vehicle that meet the traffic rules in each interaction scheme; Determining a score of each interaction solution based on the vehicle travel distance, the vehicle steering wheel angle, and the weight of the vehicle road right; An interaction solution with the highest score among the multiple interaction solutions is determined as the target interaction solution.
5. The method according to claim 1, characterized in that The determining of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle includes: Determining a reference trajectory of the reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle; Generate a grid map according to the reference trajectory; Determine an initial reversing courtesy trajectory and left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm; Based on the initial reversing courtesy trajectory and the left and right boundaries, the reversing courtesy trajectory is determined through quadratic programming.
6. The method according to claim 5, characterized in that The determining the reversing courtesy trajectory through secondary programming based on the initial reversing courtesy trajectory and the left and right boundaries includes: The initial reversing courtesy trajectory is used as the initial solution of the optimization problem of the quadratic programming, and the left and right boundaries are used as constraint conditions of the quadratic programming to construct a quadratic programming model; The real-time position information and negative heading angle of the first vehicle are input into the quadratic programming model to determine the reversing courtesy trajectory.
7. The method according to claim 5, characterized in that Generating a grid map according to the reference trajectory includes: Generating an initial grid map of a preset distance according to the direction of the reference trajectory and the normal direction of the reference trajectory; Based on the real-time environment information, obstacles in the real-time environment are projected onto the initial grid map to obtain the grid map.
8. The method according to claim 5, characterized in that The determining of the initial reversing courtesy trajectory and the left and right boundaries of the initial reversing courtesy trajectory in the grid map based on the A-star algorithm includes: Determine a starting point and a target line for trajectory search; the starting point is a grid point in the grid map that is closest to the current position of the first vehicle; the target line reserves a distance of at least half the body width of the first vehicle at the boundary of the narrow passage; Based on the starting point and the target line, searching by the A-star algorithm, determining the initial reversing courtesy trajectory; In the grid map, the first impassable grids on the left and right sides of the initial reversing courtesy trajectory are used as left and right boundaries of the initial reversing courtesy trajectory.
9. The method according to claim 5, characterized in that After determining the reversing courtesy trajectory through quadratic programming based on the initial reversing courtesy trajectory and the left and right boundaries, the method further includes: In the process of the first vehicle driving based on the reversing courtesy trajectory, the grid map and the initial reversing courtesy trajectory are updated in real time according to the real-time position information and real-time environment information of the first vehicle; When the reversing courtesy trajectory meets a preset condition, performing secondary planning and replanning based on the real-time position information of the first vehicle and the updated initial reversing courtesy trajectory to update the reversing courtesy trajectory; The preset conditions include any one or more of the following: In the updated grid map, there are inaccessible grids in the reversing courtesy track; The lateral offset between the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the same position is greater than a first preset threshold; The lateral offset between the reversing courtesy trajectory and the updated initial reversing courtesy trajectory at the last position is greater than the preset distance of the updated grid map; The distance between the real-time position information of the first vehicle and the first position of the reversing courtesy trajectory is greater than a second preset threshold.
10. A reversing courtesy device, characterized in that: The device comprises: a perception and positioning module, a decision module, a planning module and a control module; The sensing and positioning module is used to continuously obtain real-time position information and real-time environment information of the first vehicle, and real-time position information of a second vehicle that is meeting the first vehicle in a narrow passage; The decision module is used to determine whether the first vehicle is a courteous vehicle based on the real-time location information and real-time environment information of the first vehicle and the real-time location information of the second vehicle; The planning module is used to determine a reversing courtesy trajectory based on the memory path information of the first vehicle and the real-time position information of the first vehicle when the first vehicle is a courtesy vehicle; The control module is used to control the first vehicle to perform a backing and yielding operation according to the backing and yielding operation trajectory.
11. A vehicle, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method as claimed in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of a vehicle, the vehicle is capable of performing the method of any one of claims 1 to 9.
