A method for processing trajectory planning boundaries
By constructing a trajectory planning area with inner and outer boundaries, the problem of waste of computing resources under the traditional rectangular boundary construction method is solved, the accuracy and efficiency of trajectory planning are improved, and the stability and security of the planning are ensured.
Patent Information
- Application Number
- CN202210897010.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-07-28
AI Technical Summary
The traditional rectangular boundary construction method causes a waste of computing resources in trajectory planning, reduces planning efficiency, and most areas do not contribute to planning.
Based on the posture of the own vehicle, the predicted trajectories of surrounding vehicles and the map boundaries of the target lane, a trajectory planning area with inner and outer boundaries is constructed. The inner area is used as the optimal trajectory planning area. The boundaries are clipped and adjusted to improve planning accuracy and efficiency.
It improves the planning accuracy of the trajectory planning area, saves computing resources, improves planning efficiency, and ensures the stability and security of trajectory planning.
Smart Images

Figure CN115158356B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method for processing trajectory planning boundaries. Background Art
[0002] Before performing trajectory planning, the planning module of the autonomous driving system needs to set a planning boundary in advance and perform trajectory planning based on the area demarcated by the boundary. Under normal circumstances, the planning module will demarcate a larger rectangular range with the vehicle as the center as the trajectory planning area, and perform trajectory planning based on the search algorithm in this area. In fact, most positions in this rectangular area do not contribute to planning. This traditional rectangular boundary construction method will cause a large waste of computing resources and reduce planning efficiency. Summary of the invention
[0003] The purpose of the present invention is to provide a method for processing trajectory planning boundaries, an electronic device, and a computer-readable storage medium to address the defects of the prior art; the planning boundaries are constructed according to the position of the vehicle, the predicted trajectory of the surrounding vehicles, and the map boundary of the target lane, and a trajectory planning area with inner and outer boundaries is output, and the inner area is used as the optimal trajectory planning area. Through the present invention, the planning accuracy of the trajectory planning area can be improved, computing resources can be saved, and planning efficiency can be improved.
[0004] To achieve the above object, a first aspect of an embodiment of the present invention provides a method for processing a trajectory planning boundary, the method comprising:
[0005] The target lane at the current moment is obtained as the corresponding first lane; and the current vehicle posture is obtained as the corresponding first posture; and the vehicle width and vehicle predicted trajectory of any other vehicle around at the current moment are obtained to generate the corresponding first vehicle width and first predicted trajectory; the first posture includes a first position coordinate and a first velocity vector;
[0006] Draw a perpendicular line through the first position coordinate to the center line of the first lane and use the intersection of the perpendicular line and the center line as a first starting point; and start from the first starting point to clip the first lane according to a preset lane length threshold; and use the two lane lines and the lane center line of the clipped first lane as the corresponding two first boundaries and the first center line;
[0007] Taking the first position coordinate as a second starting point and the first velocity vector as a starting velocity vector, predicting the motion trajectory from the second starting point to the first center line according to the constant lateral acceleration motion model to generate a corresponding first trajectory; and recording the intersection of the first trajectory and the first center line as a first ending point;
[0008] The first boundary is adjusted according to the width of the vehicle and the first trajectory; and a preset high-precision map is queried to use the two closest lane solid lines outside the first boundary as the two second boundaries corresponding to the first lane; and the boundary segment located after the first end point on the second boundary is translated inward to overlap with the first boundary; and the second boundary is adjusted according to each of the first vehicle widths and the first predicted trajectory;
[0009] The map area delimited by the two second boundaries is used as the trajectory planning area at the current moment, and the map area delimited by the two first boundaries in the trajectory planning area is used as the corresponding optimal trajectory planning area.
[0010] Preferably, the adjusting the first boundary according to the vehicle width and the first trajectory specifically includes:
[0011] The first track is laterally widened according to the vehicle width to generate a corresponding first track belt; the center line of the first track belt is the first track, and the width of the first track belt is the vehicle width;
[0012] The first boundary intersecting with the first track band is taken as the current first boundary; the intersection point of the first track band and the current first boundary is taken as the corresponding first intersection point; the starting point of the track band boundary on the first track band that is on the same side of the track band boundary as the first intersection point is taken as the third starting point; the track band boundary segment from the third starting point to the first intersection point is taken as the corresponding first boundary segment; and the boundary segment on the current first boundary from the starting point to the first intersection point is replaced by the first boundary segment.
[0013] Preferably, the adjusting the second boundary according to each of the first vehicle widths and the first predicted trajectory specifically includes:
[0014] Recording the first predicted trajectory entering between two second boundaries as a corresponding second predicted trajectory; and recording the trajectory segments of each second predicted trajectory between two second boundaries as a corresponding third predicted trajectory;
[0015] Based on the corresponding first vehicle width, each of the third predicted trajectories is laterally widened to generate a corresponding second trajectory band; the center line of the second trajectory band is the corresponding third predicted trajectory, and the width of the second trajectory band is the corresponding first vehicle width;
[0016] The second boundary closest to each second track band is taken as the corresponding current second boundary; the boundary segment on the current second boundary that intersects with the current second track band is taken as the corresponding second boundary segment; the second boundary segment is translated inward until the second boundary segment does not intersect with the current second track band; after the translation is completed, it is confirmed whether the second boundary segment has entered between the two first boundaries, and if so, the boundary segment of the first boundary corresponding to the second boundary segment is translated to overlap with the second boundary segment.
[0017] A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
[0018] The processor is used to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;
[0019] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
[0020] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.
[0021] The embodiment of the present invention provides a method for processing trajectory planning boundaries, an electronic device, and a computer-readable storage medium; the planning boundary is constructed according to the position of the vehicle, the predicted trajectory of the surrounding vehicles, and the map boundary of the target lane, and a trajectory planning area with inner and outer boundaries is outputted, and the inner area is used as the optimal trajectory planning area. Through the present invention, the planning accuracy of the trajectory planning area is improved, computing resources are saved, and planning efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of a method for processing trajectory planning boundaries provided in Embodiment 1 of the present invention;
[0023] Figure 2a A schematic diagram of a first lane provided in Embodiment 1 of the present invention;
[0024] Figure 2b A first trajectory schematic diagram provided in Example 1 of the present invention;
[0025] Figure 2c A schematic diagram of a first track band, a first intersection point, and a third starting point provided in Embodiment 1 of the present invention;
[0026] Figure 2dA first boundary schematic diagram provided in Embodiment 1 of the present invention;
[0027] Figure 2e A schematic diagram of the first and second boundaries before and after translation provided in the first embodiment of the present invention;
[0028] Figure 2f A schematic diagram of the second and third predicted trajectories entering between two second boundaries provided in the first embodiment of the present invention;
[0029] Figure 2g A schematic diagram of a second track band provided in Embodiment 1 of the present invention;
[0030] Figure 2h A schematic diagram of a second boundary after translation provided in the first embodiment of the present invention;
[0031] Figure 2i Schematic diagram of trajectory planning area and optimal trajectory planning area provided in the first embodiment of the present invention;
[0032] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Embodiment 1 of the present invention provides a method for processing trajectory planning boundaries. Figure 1 A schematic diagram of a method for processing trajectory planning boundaries provided in the first embodiment of the present invention is shown in FIG. Figure 1 As shown, this method mainly includes the following steps:
[0035] Step 1, obtaining the target lane at the current moment as the corresponding first lane; obtaining the current vehicle posture as the corresponding first posture; and obtaining the vehicle width and vehicle predicted trajectory of any other vehicle around at the current moment to generate the corresponding first vehicle width and first predicted trajectory;
[0036] The first posture includes a first position coordinate and a first velocity vector.
[0037] Here, the target lane is the lane where the vehicle is located or other lanes. If it is the lane where the vehicle is located, it means that the future driving state of the vehicle will be a straight state. If it is other lanes, it means that the future driving state of the vehicle will be a driving state that requires lane changing / borrowing lanes, etc.; the planning module can obtain the position of the vehicle at the current moment, that is, the first position, from other modules of the automatic driving system (such as the positioning module). The first position includes the positioning information of the vehicle at the current moment, that is, the first position coordinates and motion information, that is, the first velocity vector; the planning module can obtain the predicted trajectory of any other vehicle around the vehicle at the current moment from other modules of the automatic driving system (such as the prediction module), that is, the first predicted trajectory, and can also obtain the corresponding vehicle width information, that is, the first vehicle width, from other modules of the automatic driving system (such as the perception module) according to the target identifier of the vehicle corresponding to the first predicted trajectory.
[0038] Step 2: draw a perpendicular line through the first position coordinate to the center line of the first lane and use the intersection of the perpendicular line and the center line as the first starting point; and start from the first starting point to crop the first lane according to a preset lane length threshold; and use the two lane lines and the lane center line of the cropped first lane as the corresponding two first boundaries and the first center line.
[0039] Here, the first lane on the high-precision map will cover a large map range. In order to reduce the range, the embodiment of the present invention clips it. When clipping, the lane length threshold is a preset empirical value, which can be dynamically adjusted according to actual needs. Taking the target lane as other lanes as an example, the clipped first lane is as follows Figure 2a This is a schematic diagram of the first lane provided in Example 1 of the present invention.
[0040] Step 3, taking the first position coordinate as the second starting point and the first velocity vector as the starting velocity vector, predicting the motion trajectory from the second starting point to the first center line according to the constant lateral acceleration motion model to generate a corresponding first trajectory; and recording the intersection of the first trajectory and the first center line as the first end point.
[0041] Here, Figure 2a For example, the first trajectory is the lane change trajectory from the lane where the vehicle is located to other lanes; the first trajectory is Figure 2b This is a schematic diagram of a first trajectory provided in Embodiment 1 of the present invention.
[0042] Step 4: adjust the first boundary according to the vehicle width and the first trajectory; query the preset high-precision map, and use the closest lane solid lines outside the two first boundaries as the two second boundaries corresponding to the first lane; overlap the boundary segments after the first end point on the first and second boundaries; and adjust the second boundary according to each first vehicle width and the first predicted trajectory;
[0043] Specifically, it includes: step 41, adjusting the first boundary according to the vehicle width and the first trajectory;
[0044] Specifically, it includes: step 411, widening the first track laterally according to the width of the vehicle to generate a corresponding first track band;
[0045] The center line of the first track is the first track, and the width of the first track is the width of the vehicle.
[0046] Here, Figure 2b Taking the first track as an example, the first track belt is actually a strip area obtained by translating the first track to the left and right by half the width of the vehicle with the first track as the center; Figure 2c The first track band, the first intersection point, and the third starting point are shown in the schematic diagram of the first embodiment of the present invention;
[0047] Step 412, taking the first boundary intersecting with the first track belt as the current first boundary; taking the intersection point of the first track belt and the current first boundary as the corresponding first intersection point; taking the track belt boundary starting point on the first track belt that is on the same side of the track belt boundary as the first intersection point as the third starting point; taking the track belt boundary segment from the third starting point to the first intersection point as the corresponding first boundary segment; and replacing the boundary segment on the current first boundary from the starting point to the first intersection point with the first boundary segment;
[0048] Here, taking the target lane as other lanes as an example, the first intersection point and the third starting point are as follows Figure 2c shown in Figure 2c The first trajectory is given by the first boundary after the replacement is completed based on Figure 2d This is a schematic diagram of a first boundary provided by the first embodiment of the present invention; after completing the replacement of the boundary segment, the embodiment of the present invention further performs smoothing processing on the replaced first boundary;
[0049] Step 42, querying a preset high-precision map, taking the closest lane solid lines outside the two first boundaries as the two second boundaries corresponding to the first lane; and translating the boundary segment on the second boundary after the first end point inward to overlap with the first boundary;
[0050] Here, Figure 2d Taking the two first boundaries as an example, Figure 2d The two second boundaries adapted by the two first boundaries are Figure 2e The schematic diagram of the first and second boundaries before and after translation provided in the first embodiment of the present invention shows the second boundary before translation; the first boundary remains unchanged after translation, but the second boundary changes as shown in FIG. Figure 2e The second boundary after translation shown in ;
[0051] Step 43, adjusting the second boundary according to each first vehicle width and the first predicted trajectory;
[0052] Specifically, it includes: step 431, recording the first predicted trajectory entering between the two second boundaries as the corresponding second predicted trajectory; and recording the trajectory segments of each second predicted trajectory between the two second boundaries as the corresponding third predicted trajectory;
[0053] Here, not every first predicted trajectory of other vehicles will fall between the two second boundaries. In the embodiment of the present invention, when doing boundary planning, only the first predicted trajectory entering between the two second boundaries is focused on and marked as the second predicted trajectory, and the trajectory segment of the second predicted trajectory truncated by the second boundary is the third predicted trajectory.
[0054] by Figure 2f Taking the second and third predicted trajectories between two second boundaries provided in the first embodiment of the present invention as an example, it is assumed that Figure 2e If there is a first predicted trajectory of another vehicle outside the first and second boundaries and enters between the two second boundaries, the first predicted trajectory of the vehicle is recorded as the corresponding second predicted trajectory as shown in Figure 2f As shown, the trajectory segment of the second predicted trajectory between the two second boundaries is the third predicted trajectory. Figure 2f As shown;
[0055] Step 432, based on the corresponding first vehicle width, each third predicted track is laterally widened to generate a corresponding second track band;
[0056] Wherein, the center line of the second track zone is the corresponding third predicted track, and the width of the second track zone is the corresponding first vehicle width;
[0057] Here, Figure 2f As an example, the first vehicle width of the other vehicles corresponding to the third predicted trajectory is w, and the second trajectory band is the strip area obtained by translating w / 2 to the left and right with the third predicted trajectory as the center, as shown in Figure 2g This is a schematic diagram of a second track band provided in the first embodiment of the present invention;
[0058] Step 433, taking the second boundary closest to each second track band as the corresponding current second boundary; taking the boundary segment on the current second boundary that intersects with the current second track band as the corresponding second boundary segment; and translating the second boundary segment inward until the second boundary segment does not intersect with the current second track band; after completing the translation, confirming whether the second boundary segment has entered between the two first boundaries, if so, translating the boundary segment of the first boundary corresponding to the second boundary segment to make it overlap with the second boundary segment.
[0059] Here, Figure 2g As an example, the second track band after translation is Figure 2h This is a schematic diagram of the second boundary after translation provided by the first embodiment of the present invention; Figure 2h The second boundary after the translation has not yet entered the two first boundaries, so the two first boundaries remain unchanged.
[0060] Step 5: The map area delimited by the two second boundaries is used as the trajectory planning area at the current moment, and the map area delimited by the two first boundaries in the trajectory planning area is used as the corresponding optimal trajectory planning area.
[0061] Here, Figure 2h Taking the first boundary and the second boundary in as an example, the shapes of the trajectory planning area and the optimal trajectory planning area finally extracted from the map are as follows Figure 2i This is a schematic diagram of the trajectory planning area and the optimal trajectory planning area provided in the first embodiment of the present invention.
[0062] It should be noted that after the planning module obtains the trajectory planning area and the optimal trajectory planning area through the above steps 1-5, it will first use the optimal trajectory planning area delineated by the first boundary as a reference for trajectory planning. If the planning fails, the planning area will be expanded to use the trajectory planning area delineated by the second boundary as a reference for trajectory planning. Moreover, these two areas are not standard rectangular areas. Path planning based on these two planning areas can save a lot of redundant calculations. In addition, from the above steps 1-5, we can also know that when delineating the trajectory planning area and the optimal trajectory planning area, the predicted trajectories of other vehicles have been excluded, that is, the trajectories planned based on these two planning areas will have higher stability, comfort and safety.
[0063] Figure 3 This is a schematic diagram of the structure of an electronic device provided in the second embodiment of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. Figure 3 As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned method embodiment. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.
[0064] exist Figure 3 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The term "communication interface" is represented by only one thick line, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk storage.
[0065] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a graphics processing unit (GPU), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0066] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method and processing process provided in the above embodiments.
[0067] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.
[0068] The embodiment of the present invention provides a method for processing trajectory planning boundaries, an electronic device, and a computer-readable storage medium; the planning boundary is constructed according to the position of the vehicle, the predicted trajectory of the surrounding vehicles, and the map boundary of the target lane, and a trajectory planning area with inner and outer boundaries is outputted, and the inner area is used as the optimal trajectory planning area. Through the present invention, the planning accuracy of the trajectory planning area is improved, computing resources are saved, and planning efficiency is improved.
[0069] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0070] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0071] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for processing trajectory planning boundaries, characterized in that: The method comprises: The target lane at the current moment is obtained as the corresponding first lane; and the current vehicle posture is obtained as the corresponding first posture; and the vehicle width and vehicle predicted trajectory of any other vehicle around at the current moment are obtained to generate the corresponding first vehicle width and first predicted trajectory; the first posture includes a first position coordinate and a first velocity vector; Draw a perpendicular line through the first position coordinate to the center line of the first lane and use the intersection of the perpendicular line and the center line as a first starting point; and start from the first starting point to clip the first lane according to a preset lane length threshold; and use the two lane lines and the lane center line of the clipped first lane as the corresponding two first boundaries and the first center line; Taking the first position coordinate as a second starting point and the first velocity vector as a starting velocity vector, predicting the motion trajectory from the second starting point to the first center line according to the constant lateral acceleration motion model to generate a corresponding first trajectory; and recording the intersection of the first trajectory and the first center line as a first ending point; The first boundary is adjusted according to the width of the vehicle and the first trajectory; and a preset high-precision map is queried to use the two closest lane solid lines outside the first boundary as the two second boundaries corresponding to the first lane; and the boundary segment located after the first end point on the second boundary is translated inward to overlap with the first boundary; and the second boundary is adjusted according to each of the first vehicle widths and the first predicted trajectory; The map area delimited by the two second boundaries is used as the trajectory planning area at the current moment, and the map area delimited by the two first boundaries in the trajectory planning area is used as the corresponding optimal trajectory planning area.
2. The method for processing trajectory planning boundaries according to claim 1, characterized in that: The adjusting the first boundary according to the vehicle width and the first trajectory specifically includes: The first track is laterally widened according to the vehicle width to generate a corresponding first track belt; the center line of the first track belt is the first track, and the width of the first track belt is the vehicle width; The first boundary intersecting with the first track band is taken as the current first boundary; the intersection point of the first track band and the current first boundary is taken as the corresponding first intersection point; the starting point of the track band boundary on the first track band that is on the same side of the track band boundary as the first intersection point is taken as the third starting point; the track band boundary segment from the third starting point to the first intersection point is taken as the corresponding first boundary segment; and the boundary segment on the current first boundary from the starting point to the first intersection point is replaced by the first boundary segment.
3. The method for processing trajectory planning boundaries according to claim 1, characterized in that: The adjusting the second boundary according to each of the first vehicle widths and the first predicted trajectory specifically includes: Recording the first predicted trajectory entering between two second boundaries as a corresponding second predicted trajectory; and recording the trajectory segments of each second predicted trajectory between two second boundaries as a corresponding third predicted trajectory; Based on the corresponding first vehicle width, each of the third predicted trajectories is laterally widened to generate a corresponding second trajectory band; the center line of the second trajectory band is the corresponding third predicted trajectory, and the width of the second trajectory band is the corresponding first vehicle width; The second boundary closest to each second track band is taken as the corresponding current second boundary; the boundary segment on the current second boundary that intersects with the current second track band is taken as the corresponding second boundary segment; the second boundary segment is translated inward until the second boundary segment does not intersect with the current second track band; after the translation is completed, it is confirmed whether the second boundary segment has entered between the two first boundaries, and if so, the boundary segment of the first boundary corresponding to the second boundary segment is translated to overlap with the second boundary segment.
4. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method steps described in any one of claims 1 to 3; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a computer, enable the computer to execute the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Driving track planning method and device thereof, computer equipment and medium
CN113479219A
Method for automatically driving vehicle to control vehicle driving based on wireless road data
CN113665588A
Vehicle lane changing control method and device and electronic equipment
CN114516331A
Method, device and system for controlling vehicle passing through intersection
US20190129437A1
Obstacle avoidance method and apparatus
US20210262808A1
