Vehicle trajectory processing method and vehicle trajectory processing device
By acquiring and processing actual driving trajectories, automatic driving trajectories suitable for different vehicles are generated, which solves the problems of actual driving trajectory collection deviation and automatic driving planning in complex environments, and improves the safety and accuracy of automatic driving.
Patent Information
- Application Number
- CN202211620639.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-12-15
AI Technical Summary
In autonomous vehicles, there are deviations in the collection of actual driving trajectories and the autonomous driving process of tracking vehicles, leading to safety risks. Moreover, it is difficult to obtain high-precision map data in complex environments such as mining areas, and traditional autonomous driving planning methods fail.
By acquiring multiple actual driving trajectories, selecting and fitting the virtual driving trajectories, and performing median processing on the virtual sampling points to generate automatic driving trajectories suitable for different tracking vehicles, reducing the impact of redundant sampling points and improving the efficiency of trajectory processing. Accuracy and security.
It improves the accuracy of vehicle trajectory processing, makes autonomous driving trajectories suitable for different vehicles, and improves the safety of tracking vehicles during autonomous driving, especially in complex environments such as mining areas.
Smart Images

Figure CN116012972B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving, and in particular to a method for processing vehicle trajectories and a device for processing vehicle trajectories. Background Art
[0002] In recent years, with the continuous development of artificial intelligence technology, autonomous driving technology has been applied to more and more vehicles. In related technologies, one or more actual driving trajectories can be obtained from the starting point to the destination through actual driving, and then the tracking vehicle can be driven automatically along the actual driving trajectory. However, when the vehicle that performs actual driving and the subsequent tracking vehicle are different, the tracking vehicle may not completely follow the actual driving trajectory, and the actual driving vehicle may also produce certain deviations while collecting the actual driving trajectory, which may cause certain safety risks when the tracking vehicle drives along the actual driving trajectory. Summary of the invention
[0003] The embodiments of the present application provide a vehicle trajectory processing method and a vehicle trajectory processing device, which can obtain an automatic driving trajectory suitable for different tracking vehicles according to the actual driving trajectory.
[0004] On the one hand, an embodiment of the present application provides a method for processing a vehicle trajectory, including: obtaining multiple actual driving trajectories, each actual driving trajectory includes an actual sampling point set, and each actual sampling point set includes multiple actual sampling points arranged in sequence along the actual driving trajectory; selecting multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, each control point set includes multiple control points; fitting each control point set to obtain multiple virtual driving trajectories; sampling each virtual driving trajectory to obtain multiple virtual sampling point sets, each virtual sampling point set includes multiple virtual sampling points arranged in sequence along the corresponding virtual driving trajectory; medianing multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain a median point set, the median point set includes multiple median points; and obtaining an automatic driving trajectory according to the median point set.
[0005] In some embodiments, obtaining multiple actual driving trajectories includes obtaining each actual driving trajectory; obtaining each actual driving trajectory includes: regularly collecting vehicle position information during driving to obtain multiple vehicle position information including time stamps; obtaining multiple actual collection points arranged in sequence along the actual driving trajectory based on the multiple vehicle position information; obtaining the actual driving trajectory based on the multiple actual sampling points.
[0006] In some embodiments, each actual sampling point set includes N actual sampling points arranged in sequence along the actual driving trajectory; multiple actual sampling points in each actual sampling point set are selected to obtain multiple control point sets, including obtaining each control point set; obtaining each control point set includes: selecting the i-th actual sampling point in the multiple actual sampling points as the control point; calculating the distance between the i+1-th actual sampling point and the control point; comparing the distance with a first threshold; when the distance is greater than or equal to the first threshold, selecting the i+1-th actual sampling point as the control point; returning to calculate the distance between the i+1-th actual sampling point and the control point until i is equal to N-1.
[0007] In some embodiments, after comparing the distance with the first threshold, multiple actual sampling points in each actual sampling point set are selected to obtain multiple control point sets, further comprising: when the distance is less than the first threshold, deleting the i+1th actual sampling point to obtain an updated actual sampling point set; and returning to the step of calculating the distance between the i+1th actual sampling point and the control point until the distance is greater than or equal to the first threshold.
[0008] In some embodiments, fitting each set of control points to obtain multiple virtual driving trajectories includes obtaining each virtual driving trajectory; obtaining each virtual driving trajectory includes: performing B-spline interpolation on multiple control points to obtain the virtual driving trajectory.
[0009] In some embodiments, each virtual driving trajectory is sampled to obtain multiple virtual sampling point sets, including obtaining each virtual sampling point set; obtaining each virtual sampling point set includes: obtaining a preset speed and a first sampling time; obtaining a first sampling distance according to the preset speed and the first sampling time; and selecting multiple virtual sampling points at equal distances along the virtual driving trajectory according to the first sampling distance.
[0010] In some embodiments, obtaining each virtual sampling point set also includes: calculating the curvature parameter of the virtual driving trajectory at the virtual sampling point; when the curvature parameter is greater than or equal to a second threshold, sampling from the virtual sampling point to an adjacent virtual sampling point according to a second sampling distance to obtain two supplementary virtual sampling points; obtaining an updated virtual sampling point set according to the virtual sampling point and the two supplementary virtual sampling points; wherein the first sampling distance is greater than the second sampling distance.
[0011] In some embodiments, taking the median of multiple virtual sampling points of the same order in multiple virtual sampling point sets to obtain a median point set includes: taking the average value of the coordinates of multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain the median point set; or taking the middle value of the coordinates of multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain the median point set.
[0012] On the other hand, an embodiment of the present application provides a vehicle trajectory processing device, including: an acquisition module, used to acquire multiple actual driving trajectories, each actual driving trajectory includes an actual sampling point set, and each actual sampling point set includes multiple actual sampling points arranged in sequence along the actual driving trajectory; a selection module, used to select multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, each control point set includes multiple control points; a fitting module, used to fit each control point set to obtain multiple virtual driving trajectories; a sampling module, used to sample each virtual driving trajectory to obtain multiple virtual sampling point sets, each virtual sampling point set includes multiple virtual sampling points arranged in sequence along the corresponding virtual driving trajectory; a median module, used to median multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain a median point set, the median point set includes multiple median points; and a processing module, used to obtain an automatic driving trajectory according to the median point set.
[0013] On the other hand, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the vehicle trajectory processing method as described above is implemented.
[0014] On the other hand, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the vehicle trajectory processing method as described above is implemented.
[0015] The vehicle trajectory processing method provided in the embodiment of the present application obtains multiple actual driving trajectories, each of which includes an actual sampling point set, selects multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, fits each control point set to obtain multiple virtual driving trajectories, samples each virtual driving trajectory to obtain multiple virtual sampling point sets, medians multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain a median point set, the median point set includes multiple median points, and obtains an automatic driving trajectory according to the median point set. According to the embodiment of the present application, multiple actual sampling points are selected to obtain multiple control points that can reflect the direction of the actual driving trajectory, reducing the influence of redundant actual sampling points on the obtained virtual driving trajectory, and then by sampling multiple virtual driving trajectories and median multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain an automatic driving trajectory, the accuracy of vehicle trajectory processing can be improved, so that the automatic driving trajectory can be applied to different tracking vehicles, and the safety of the tracking vehicle during the automatic driving process is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 is a schematic diagram of the structure of a vehicle trajectory processing device provided according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of a vehicle trajectory processing method provided according to an embodiment of the present application;
[0019] Figure 3 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown;
[0020] Figure 4 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown;
[0021] Figure 5 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown;
[0022] Figure 6 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown;
[0023] Figure 7 Shows Figure 6 An exemplary schematic diagram of the flow diagram shown;
[0024] Figure 8 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown.
[0025] In the attached figure:
[0026] 100 - vehicle trajectory processing device; 1 - acquisition module; 2 - selection module; 3 - fitting module; 4 - sampling module; 5 - centering module; 6 - processing module. DETAILED DESCRIPTION
[0027] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0029] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the embodiments of the present application should have the common meanings understood by technicians in the field to which the embodiments of the present application belong.
[0030] In addition, the technical terms "first", "second", etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0031] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0032] Generally speaking, the autonomous driving of vehicles is achieved by obtaining high-precision map data and positioning data. However, in the case of autonomous driving in mining areas, due to the complex road environment in mining areas and the constant changes in the road environment, it is impossible to obtain high-precision map data of the driving area, or the timeliness of the obtained high-precision map data is poor, and the traditional autonomous driving planning method cannot be applied to the mining environment. Therefore, in the case of autonomous driving in mining areas, one or more actual driving trajectories can be obtained from the starting point to the destination through actual driving, and then the actual driving trajectories can be processed to obtain the autonomous driving trajectory.
[0033] In view of this, the embodiment of the present application provides a method for processing vehicle trajectories, by obtaining multiple actual driving trajectories, each actual driving trajectory includes an actual sampling point set, selecting multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, fitting each control point set to obtain multiple virtual driving trajectories, sampling each virtual driving trajectory to obtain multiple virtual sampling point sets, taking the middle of multiple virtual sampling points in the same order in the multiple virtual sampling point sets to obtain a median point set, the median point set includes multiple median points, and, according to the median point set, obtaining an automatic driving trajectory. According to the embodiment of the present application, multiple actual sampling points are selected to obtain multiple control points that can reflect the direction of the actual driving trajectory, reducing the influence of redundant actual sampling points on the obtained virtual driving trajectory, and then by sampling multiple virtual driving trajectories and taking the middle of multiple virtual sampling points in the same order in the multiple virtual sampling point sets to obtain an automatic driving trajectory, the accuracy of vehicle trajectory processing can be improved, so that the automatic driving trajectory can be applied to different tracking vehicles, and the safety of the tracking vehicle during the automatic driving process is improved.
[0034] Figure 1 FIG. 1 is a schematic diagram of a vehicle trajectory processing device 100 according to an embodiment of the present application. Figure 1 As shown, the embodiment of the present application further provides a vehicle trajectory processing device 100. The vehicle trajectory processing device 100 includes an acquisition module 1, a selection module 2, a fitting module 3, a sampling module 4, a centering module 5 and a processing module 6.
[0035] The acquisition module 1 is used to acquire multiple actual driving trajectories, each of which includes an actual sampling point set, and each actual sampling point set includes multiple actual sampling points arranged in sequence along the actual driving trajectory. The selection module 2 is used to select multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, and each control point set includes multiple control points. The fitting module 3 is used to fit each control point set to obtain multiple virtual driving trajectories. The sampling module 4 is used to sample each virtual driving trajectory to obtain multiple virtual sampling point sets, and each virtual sampling point set includes multiple virtual sampling points arranged in sequence along the corresponding virtual driving trajectory. The median module 5 is used to median multiple virtual sampling points of the same order in multiple virtual sampling point sets to obtain a median point set, and the median point set includes multiple median points. The processing module 6 is used to obtain an automatic driving trajectory based on the median point set.
[0036] Optionally, the vehicle trajectory processing device 100 can be installed on the tracking vehicle or set in a server, which is not limited in the embodiment of the present application.
[0037] Figure 2is a flow chart of a method for processing vehicle trajectories according to an embodiment of the present application. The method for processing vehicle trajectories according to the embodiment of the present application comprises: Figure 1 The vehicle trajectory processing device 100 shown in FIG. Figure 2 As shown, the vehicle trajectory processing method includes the following steps.
[0038] S100: Acquire multiple actual driving trajectories, each actual driving trajectory including an actual sampling point set.
[0039] S200: Select multiple actual sampling points in each actual sampling point set to obtain multiple control point sets.
[0040] S300: Fit each control point set to obtain multiple virtual driving trajectories.
[0041] S400: Sampling each virtual driving trajectory to obtain multiple virtual sampling point sets.
[0042] S500 , taking the median of multiple virtual sampling points in the same order in multiple virtual sampling point sets to obtain a median point set.
[0043] S600: Obtain an automatic driving trajectory according to the median point set.
[0044] In step S100, each actual sampling point set includes a plurality of actual sampling points arranged in sequence along the actual driving trajectory, which can be regarded as the actual driving trajectory obtained by sequentially connecting the plurality of actual sampling points.
[0045] Figure 3 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 2 As shown, in some embodiments of the present application, in step S100, multiple actual driving trajectories are obtained by obtaining each actual driving trajectory, and obtaining each actual driving trajectory includes the following steps.
[0046] Step S110: Collect vehicle position information at regular intervals during driving to obtain a plurality of vehicle position information including time stamps.
[0047] Step S120: obtaining a plurality of actual collection points sequentially arranged along the actual driving trajectory according to the plurality of vehicle position information.
[0048] Step S130: obtaining an actual driving trajectory according to a plurality of actual sampling points.
[0049] In step S110, when the acquisition module 1 is set to the actual driven vehicle, the acquisition module 1 can collect the actual driving vehicle position information. The vehicle position information can be the position coordinates of the vehicle at the level of the global positioning system (GPS, Global Positioning System), or it can be the position coordinates of the vehicle relative to the starting point and the end point. The position coordinates of the vehicle can be recorded at a certain frequency during the vehicle's driving along the actual driving trajectory, and the current time can be generated as a time mark, that is, during the actual driving of the vehicle, the time mark is used to indicate the position of the actual driving vehicle on the actual driving trajectory at different times. Optionally, the vehicle position information can be collected regularly at a frequency of 10Hz. It should be understood that the acquisition module 1 may have random positioning errors during the acquisition process. Therefore, the frequency of acquisition by the acquisition module 1 should be as high as possible to reduce the probability of inaccurate vehicle position information obtained.
[0050] In step S120, since multiple vehicle position information is obtained in step S110, the vehicle position information may include the position coordinates of the vehicle and the order or time of recording the position coordinates, and the vehicle position information may be represented in a coordinate system at the global positioning system level, or in a coordinate system relative to the starting point and the end point. For example, the position coordinates include a first coordinate in a first direction and a second coordinate in a second direction, and the first direction and the second direction intersect each other. According to the first coordinate and the second coordinate, the multiple vehicle position information are marked as points in the coordinate system, that is, multiple actual collection points can be obtained.
[0051] In step S130, the multiple actual collection points obtained in step S120 are connected in the order or time of vehicle position information recording. Since the frequency of obtaining multiple vehicle position information in step S110 is high, the arrangement of multiple actual collection points is relatively dense. In this case, connecting them can more accurately record the actual driving trajectory.
[0052] Optionally, step S110, step S120, and step S130 may be implemented by the acquisition module 1 of the vehicle trajectory processing device 100, and the vehicle trajectory processing device 100 may also acquire the actual driving trajectory from other devices or equipment through the acquisition module 1. For example, the actually driven vehicle includes a collection device, which collects vehicle position information at regular intervals during the process of driving from the starting point to the end point, and after reaching the end point, transmits the collected data, that is, the actual driving trajectory including the actual sampling point set, to the acquisition module 1 of the vehicle trajectory processing device 100. This embodiment of the application is not limited to this.
[0053] In step S200, each control point set includes multiple control points. The multiple control points are obtained by selecting multiple actual sampling points in the actual sampling point set obtained in step S100, and are coordinate points that can reflect the direction of the actual driving trajectory among the multiple actual sampling points. In other words, since the acquisition module 1 regularly collects vehicle position information at a high frequency, the multiple actual sampling points are arranged more densely, and not every actual sampling point plays a decisive role in the direction of the actual driving trajectory. Therefore, the selection module 2 selects multiple actual sampling points, that is, performs sparse processing on the multiple actual sampling points to remove redundant actual sampling points and obtain multiple control points.
[0054] Figure 4 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 4 As shown, in some embodiments of the present application, in step S200, multiple control point sets are obtained by obtaining each control point set, and obtaining each control point set includes the following steps.
[0055] S210: Select the i-th actual sampling point among multiple actual sampling points as a control point.
[0056] S220, calculating the distance between the (i+1)th actual sampling point and the control point.
[0057] S230: Compare the distance with a first threshold.
[0058] S240: When the distance is greater than or equal to the first threshold, select the (i+1)th actual sampling point as the control point.
[0059] In step S210, the ith actual sampling point among the multiple actual sampling points is selected as the control point. For example, in the first cycle, the first actual sampling point among the multiple actual sampling points may be selected as the control point.
[0060] In step S220, the distance between the i+1th actual sampling point and the control point is calculated. For example, in the first cycle, the distance between the second actual sampling point and the control point selected in step S210 can be calculated, that is, the distance between the second actual sampling point and the first actual sampling point is calculated based on the position coordinates of the actual sampling point in the coordinate system at the global positioning system level or in the coordinate system relative to the starting point and the end point. In this way, it is possible to judge whether the actual sampling points adjacent to the selected control point can reflect the direction of the actual driving trajectory through the distances between multiple actual sampling points.
[0061] In step S230, the distance between the control point obtained in step S220 and the (i+1)th actual sampling point is compared with a first threshold. Optionally, the first threshold may be related to the body length of the actual driving vehicle.
[0062] In step S240, when the distance between the control point and the i+1th actual sampling point is greater than or equal to the first threshold, the i+1th actual sampling point is used as the next control point. For example, in the first cycle, the first actual sampling point is the control point, and when the first threshold is the vehicle body length, the second actual sampling point is not within the range that can be reached by a vehicle body length. Therefore, the second actual sampling point can play a decisive role in the direction of the driving trajectory, and the second actual sampling point is used as the control point.
[0063] Each set of actual sampling points can be regarded as including N actual sampling points arranged in sequence along the actual driving trajectory. After step S240, return to step S220 until i equals N-1. That is to say, after the first control point is obtained in step S210, in one case, steps S220, S230 and S240 are a loop, and the distance between the first actual sampling point and the second actual sampling point, the distance between the second actual sampling point and the third actual sampling point...the distance between the N-1th actual sampling point and the Nth actual sampling point are compared with the first threshold to obtain multiple control points.
[0064] In some embodiments of the present application, after step S230, in step S200, the following steps are further performed on each actual sampling point set.
[0065] S240': When the distance is less than the first threshold, delete the (i+1)th actual sampling point to obtain an updated set of actual sampling points.
[0066] In step S240', when the distance between the control point and the i+1th actual sampling point is less than the first threshold, the i+1th actual sampling point is taken as a redundant point, thereby deleting the i+1th actual sampling point, so that the updated actual sampling point set includes N-1 actual sampling points. For example, in the first cycle, the first actual sampling point is the control point, and when the first threshold is the vehicle body length, if the second actual sampling point is within the range that can be reached by a vehicle body length, the second actual sampling point fails to play a decisive role in the direction of the actual driving trajectory, and the second actual sampling point can be regarded as a redundant point and can be deleted.
[0067] After step S240', return to step S220 until the distance between the control point and the i+1th actual sampling point is greater than or equal to the first threshold. For example, after deleting the second actual sampling point, an updated set of actual sampling points is obtained. At this time, the second actual sampling point in the updated set of actual sampling points is also the third actual sampling point in the original set of actual sampling points. After that, return to step S220, calculate the distance between the first actual sampling point and the second actual sampling point again, and use this as a loop to obtain the next control point that can play a decisive role in the direction of the driving trajectory. That is to say, after obtaining the first control point in step S210, in another case, steps S220, S230 and S240' are made into a loop.
[0068] In step S300, fitting is a method of connecting a series of points on a plane with a smooth curve. The fitting module 3 fits the control point set to obtain a virtual driving trajectory.
[0069] Figure 5 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 5 As shown, in some embodiments of the present application, in step S300, multiple virtual driving trajectories are obtained by obtaining each virtual driving trajectory, and obtaining each virtual driving trajectory includes the following steps.
[0070] S310 , performing B-spline interpolation on multiple control points to obtain a virtual driving trajectory.
[0071] In step S310, in this embodiment, the obtained multiple control points are connected with a smooth curve by a B-spline interpolation method to obtain a virtual driving trajectory. B-spline interpolation is a method of recursively obtaining a smooth curve by weighting multiple points, and the embodiment of this application is not described in detail here.
[0072] In step S400 , the virtual driving trajectory is sampled by the sampling module 4 , so that each virtual sampling point set includes a plurality of virtual sampling points sequentially arranged along the corresponding virtual driving trajectory.
[0073] Figure 6 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 6 As shown, in some embodiments of the present application, in step S400, multiple virtual sampling point sets are obtained by obtaining each virtual sampling point set, and obtaining each virtual sampling point set includes the following steps.
[0074] S410: Obtain a preset speed and a first sampling time.
[0075] S420: Obtain a first sampling distance according to a preset speed and a first sampling time.
[0076] S430: Select multiple virtual sampling points at equal distances along the virtual driving trajectory according to the first sampling distance.
[0077] In step S410, a preset speed and a first sampling time may be preset. The preset speed may be a prescribed speed for the autonomous driving vehicle in the subsequent autonomous driving process. In addition, the process of the autonomous driving vehicle driving along the virtual driving trajectory may be simulated, and the virtual driving trajectory may be sampled at intervals of the first sampling time, similar to the sampling of the actual driving trajectory by the acquisition device. Optionally, the first sampling time may be greater than the time for the acquisition device to sample the actual driving trajectory.
[0078] In step S420, a first sampling distance is obtained according to the preset speed and the first sampling time. The first sampling distance is obtained by multiplying the preset speed and the first sampling time.
[0079] In step S430, multiple virtual sampling points are selected at equal distances on the virtual driving trajectory according to the first sampling distance. Optionally, the virtual sampling points may also include virtual position coordinates of the simulated vehicle in a coordinate system at the global positioning system level or in a coordinate system relative to the starting point and the end point, and a sampling order along the virtual driving trajectory.
[0080] In some optional embodiments, since the virtual driving trajectory is sampled at equal distances, it may not be possible to completely cover all control points that are decisive for the virtual driving trajectory. In order to make the virtual driving trajectory fit the actual driving trajectory as closely as possible, the selected multiple virtual sampling points may be further sampled.
[0081] Figure 7 Shows Figure 6 An exemplary schematic diagram of the flow diagram shown in FIG. Figure 7 As shown, in step S400, obtaining each virtual sampling point set may further include the following steps.
[0082] S440: Calculate the curvature parameter of the virtual driving trajectory at the virtual sampling point.
[0083] S450: When the curvature parameter is greater than or equal to the second threshold, sampling is performed from the virtual sampling point to an adjacent virtual sampling point according to the second sampling distance to obtain two supplementary virtual sampling points.
[0084] S460: Obtain an updated virtual sampling point set according to the virtual sampling point and the two supplementary virtual sampling points.
[0085] The first sampling distance is greater than the second sampling distance.
[0086] In step S440 , the curvature parameter of the virtual driving track at the point is calculated based on the position coordinates of the virtual sampling point and the shape of the virtual driving track in the coordinate system at the global positioning system level or the coordinate system relative to the starting point and the end point.
[0087] In step S450, when the curvature parameter is greater than or equal to the second threshold, it means that the virtual driving track where the current virtual sampling point is located is relatively tortuous, resulting in that the single virtual sampling point cannot play a decisive role in the virtual driving track. Therefore, sampling can be performed from both sides of the virtual sampling point according to the second sampling distance to obtain a supplementary virtual sampling point. Optionally, making the second sampling distance smaller than the first sampling distance can ensure that the supplementary virtual sampling point is located between the current virtual sampling point and the adjacent virtual sampling point to determine the direction of the virtual driving track on both sides of the current virtual sampling point.
[0088] In step S460, after the supplementary virtual sampling points are obtained, the multiple virtual sampling points and the two supplementary virtual sampling points are used together as multiple virtual sampling points in the virtual sampling point set to update the virtual sampling points.
[0089] Optionally, after step S460, the curvature parameters of the virtual driving trajectory at multiple supplementary virtual sampling points may be further calculated, and when the curvature parameters are still greater than or equal to the second threshold, sampling may be performed again from the supplementary virtual sampling points to both sides until the obtained virtual sampling points and the supplementary virtual sampling points are able to determine the direction of the virtual driving trajectory.
[0090] In step S500, since each virtual sampling point set includes multiple virtual sampling points arranged in sequence along the corresponding virtual driving trajectory, in the case of including multiple virtual sampling point sets, the multiple virtual sampling points in the same order in each virtual sampling point set are centered by the centering module 5 to obtain a median point set, and the median point set includes multiple median points.
[0091] Figure 8 Shows Figure 2 An exemplary schematic diagram of some steps in the flowchart shown in FIG. Figure 8 As shown, in some optional embodiments, step S500 includes the following steps.
[0092] S510 , taking an average value of coordinates of multiple virtual sampling points in the same order in multiple virtual sampling point sets to obtain a median point set.
[0093] In step S510, since the multiple virtual driving routes all extend from the starting point to the end point, and the sampling rules of the multiple virtual sampling points are the same, the multiple virtual sampling points of the same order in the multiple virtual sampling point sets should be close to each other. By taking the average of the virtual position coordinates of the multiple virtual sampling points of the same order, a median point can be obtained. In the case where the virtual sampling point set includes multiple virtual sampling points arranged in sequence along the corresponding virtual driving trajectory, multiple median points, that is, a median point set, can be obtained.
[0094] In some other optional embodiments, step S500 includes the following steps.
[0095] S510', taking the middle value of the coordinates of multiple virtual sampling points of the same order in multiple virtual sampling point sets to obtain a median point set.
[0096] In step S510 ′, similar to step S510 , the virtual position coordinates of multiple virtual sampling points in the same order are taken as the middle value, so that multiple median points can be obtained.
[0097] In step S600, the processing module 6 connects or fits the multiple median points to obtain the automatic driving trajectory. After the above steps, the automatic driving trajectory suitable for different tracking vehicles can be obtained according to the actual driving trajectory, thereby improving the accuracy of the automatic driving trajectory and the safety of the automatic driving process.
[0098] Based on the above description, an embodiment of the present application further provides an electronic device, the electronic device comprising a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, the above vehicle trajectory processing method is implemented.
[0099] The processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0100] The memory may include a large capacity memory for data or instructions. For example, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of the above. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory is a non-volatile solid-state memory.
[0101] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of an embodiment of the present application.
[0102] In addition, in combination with the above description, the embodiment of the present application further provides a computer storage medium. The computer readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the above vehicle trajectory processing method can be implemented.
[0103] In summary, the vehicle trajectory processing method provided by the embodiment of the present application obtains multiple actual driving trajectories, each of which includes an actual sampling point set, selects multiple actual sampling points in each actual sampling point set to obtain multiple control point sets, fits each control point set to obtain multiple virtual driving trajectories, samples each virtual driving trajectory to obtain multiple virtual sampling point sets, medians multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain a median point set, the median point set includes multiple median points, and, according to the median point set, obtains an automatic driving trajectory. According to the embodiment of the present application, multiple actual sampling points are selected to obtain multiple control points that can reflect the direction of the actual driving trajectory, reducing the influence of redundant actual sampling points on the obtained virtual driving trajectory, and then by sampling multiple virtual driving trajectories and median multiple virtual sampling points of the same order in the multiple virtual sampling point sets to obtain an automatic driving trajectory, the accuracy of vehicle trajectory processing can be improved, so that the automatic driving trajectory can be applied to different tracking vehicles, and the safety of the tracking vehicle during the automatic driving process is improved.
[0104] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for processing vehicle trajectories, characterized in that: include: Acquire multiple actual driving trajectories, each of the actual driving trajectories includes an actual sampling point set, and each of the actual sampling point sets includes multiple actual sampling points arranged in sequence along the actual driving trajectory; Selecting a plurality of the actual sampling points in each of the actual sampling point sets to obtain a plurality of control point sets, each of the control point sets including a plurality of control points; Fitting each of the control point sets to obtain multiple virtual driving trajectories; Sampling each of the virtual driving trajectories to obtain a plurality of virtual sampling point sets, each of the virtual sampling point sets comprising a plurality of virtual sampling points sequentially arranged along the corresponding virtual driving trajectory; Taking the median of the plurality of virtual sampling points in the same order in the plurality of virtual sampling point sets to obtain a median point set, wherein the median point set includes a plurality of median points; According to the median point set, the automatic driving trajectory is obtained.
2. The vehicle trajectory processing method according to claim 1, characterized in that: The obtaining of the plurality of actual driving trajectories comprises obtaining each of the actual driving trajectories; The obtaining of each actual driving trajectory comprises: Collecting vehicle position information at regular intervals during driving to obtain a plurality of vehicle position information including time stamps; Obtaining a plurality of actual sampling points sequentially arranged along the actual driving trajectory according to the plurality of vehicle position information; The actual driving trajectory is obtained according to the multiple actual sampling points.
3. The vehicle trajectory processing method according to claim 2, characterized in that: Each of the actual sampling point sets includes N actual sampling points arranged in sequence along the actual driving trajectory; The selecting a plurality of the actual sampling points in each of the actual sampling point sets to obtain a plurality of control point sets includes acquiring each of the control point sets; The obtaining of each control point set comprises: Selecting the i-th actual sampling point among the plurality of actual sampling points as a control point; Calculate the distance between the i+1th actual sampling point and the control point; comparing the distance to a first threshold; When the distance is greater than or equal to the first threshold, selecting the (i+1)th actual sampling point as the control point; Return the calculated distance between the i+1th actual sampling point and the control point until i equals N-1.
4. The vehicle trajectory processing method according to claim 3, characterized in that: After comparing the distance with the first threshold, selecting a plurality of the actual sampling points in each of the actual sampling point sets to obtain a plurality of control point sets further includes: When the distance is less than the first threshold, deleting the (i+1)th actual sampling point to obtain an updated set of actual sampling points; Return to step 16 to calculate the distance between the (i+1)th actual sampling point and the control point until the distance is greater than or equal to the first threshold.
5. The vehicle trajectory processing method according to claim 1, characterized in that: The fitting of each of the control point sets to obtain a plurality of virtual driving trajectories includes obtaining each of the virtual driving trajectories; The obtaining of each virtual driving trajectory comprises: B-spline interpolation is performed on the multiple control points to obtain the virtual driving trajectory.
6. The vehicle trajectory processing method according to claim 1, characterized in that: The step of sampling each of the virtual driving trajectories to obtain a plurality of virtual sampling point sets includes obtaining each of the virtual sampling point sets; The step of obtaining each of the virtual sampling point sets comprises: Get the preset speed and the first sampling time; Obtaining a first sampling distance according to the preset speed and the first sampling time; According to the first sampling distance, a plurality of virtual sampling points are selected at equal distances along the virtual driving trajectory.
7. The vehicle trajectory processing method according to claim 6, characterized in that: The step of obtaining each of the virtual sampling point sets further includes: Calculating the curvature parameter of the virtual driving trajectory at the virtual sampling point; When the curvature parameter is greater than or equal to a second threshold, sampling is performed from the virtual sampling point to an adjacent virtual sampling point according to a second sampling distance to obtain two supplementary virtual sampling points; According to the virtual sampling point and the two supplementary virtual sampling points, an updated virtual sampling point set is obtained; The first sampling distance is greater than the second sampling distance.
8. The vehicle trajectory processing method according to claim 7, characterized in that: The step of taking the median of the plurality of virtual sampling points of the same order in the plurality of virtual sampling point sets to obtain a median point set comprises: Taking an average value of coordinates of a plurality of virtual sampling points in the same order in a plurality of virtual sampling point sets to obtain the median point set; or The middle value of the coordinates of the plurality of virtual sampling points in the same order in the plurality of virtual sampling point sets is taken to obtain the median point set.
9. A vehicle trajectory processing device, characterized in that: include: An acquisition module, configured to acquire a plurality of actual driving trajectories, each of the actual driving trajectories comprising an actual sampling point set, each of the actual sampling point sets comprising a plurality of actual sampling points sequentially arranged along the actual driving trajectory; A selection module, configured to select a plurality of actual sampling points in each of the actual sampling point sets to obtain a plurality of control point sets, each of the control point sets comprising a plurality of control points; A fitting module, used for fitting each of the control point sets to obtain multiple virtual driving trajectories; A sampling module, used for sampling each of the virtual driving trajectories to obtain a plurality of virtual sampling point sets, each of the virtual sampling point sets comprising a plurality of virtual sampling points sequentially arranged along the corresponding virtual driving trajectory; A median module, used for medianing a plurality of virtual sampling points of the same order in a plurality of virtual sampling point sets to obtain a median point set, wherein the median point set includes a plurality of median points; as well as The processing module is used to obtain the automatic driving trajectory according to the median point set.
10. An electronic device, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the vehicle trajectory processing method as described in any one of claims 1-8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the vehicle trajectory processing method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Underground mine articulated vehicle unmanned control method and device
CN107346134A
Generating Accurate and Diverse Simulations for Evaluation of Autonomous-Driving Systems
US20220198096A1
