Vehicle control method, device, equipment and medium
By obtaining and optimizing the historical trajectory information of vehicles passing through intersections, the optimized separation and merging points and number of moving steps are calculated, which solves the problem of mismatch between strategies and environments when vehicles pass through intersections, and improves the smoothness and safety of driving.
Patent Information
- Application Number
- CN202410190732.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-02-20
AI Technical Summary
When a vehicle passes through an intersection, it is difficult for the existing technology to accurately match the driving strategy and the road environment, causing the steering wheel to jerk when turning, affecting the driving experience and safety.
By obtaining the historical trajectory information of vehicles passing through intersections, the initial separation and merging points are determined, and based on this information, single-lane and multi-lane directions are optimized, and the optimized separation and merging points and the number of moving steps are calculated to match the vehicle driving strategy and the actual environment. .
It improves the stability and fluency of the vehicle when passing through intersections, reduces the steering wheel jerks, enhances driving safety and stability, and ensures the timeliness and effectiveness of the driving strategy.
Smart Images

Figure CN117831330B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a vehicle control method, device, equipment and medium. Background Art
[0002] With the continuous development of society, the degree of urban motorization is getting higher and higher. In order to improve driving convenience, driving strategies can be provided to autonomous vehicles in real time based on maps to meet the movement and dynamic constraints of the car, while providing safe and comfortable driving guidance for drivers and passengers. Due to the high cost of collecting and maintaining high-precision maps, light maps are increasingly being used. Compared with high-precision maps, light maps contain less instruction information and can be built through crowdsourcing. Mapping operations can be completed by users rather than map collection vehicles, greatly reducing the cost of mapping.
[0003] During vehicle driving, in addition to straight sections, vehicles often encounter intersections where they need to turn. For intersections where they need to turn, most vehicles only plan driving strategies based on the instructions in the map. This may result in the planned driving strategy not matching the actual road environment, and the steering wheel may be swerved when turning, affecting the driving experience of passengers. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a vehicle control method, device, equipment and medium.
[0005] The present disclosure provides a vehicle control method, the method comprising:
[0006] Obtain the historical trajectory information of each vehicle when it passes through the target intersection;
[0007] Determine the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane;
[0008] For each of the initial separation and merging points, taking the initial separation and merging point as a dividing point, determining first trajectory information located in a single lane direction and second trajectory information located in a multi-lane direction in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point;
[0009] Determine a first optimized separating and merging point in a single-lane direction of the initial separating and merging point based on the first trajectory information, and a first moving step number from the initial separating and merging point to the first optimized separating and merging point; and determine a second optimized separating and merging point in a multi-lane direction of the initial separating and merging point based on the second trajectory information, and a second moving step number from the initial separating and merging point to the second optimized separating and merging point; the moving step number is represented by the number of trajectory points at intervals;
[0010] Based on the first optimized splitting and merging point and the first moving step number, and the second optimized splitting and merging point and the second moving step number, a target optimized splitting and merging point for controlling the vehicle to pass through the target intersection is determined.
[0011] In the disclosed embodiment, taking into account the driving experience of the vehicle when passing through the intersection, each initial separation and merging point determined by the real historical trajectory information when the vehicle passes through the target intersection is optimized in the single-lane direction and the multi-lane direction respectively, so as to obtain the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving steps from the initial separation and merging point to the first optimized separation and merging point, and the second optimized separation and merging point of the initial separation and merging point in the multi-lane direction, and the second moving steps from the initial separation and merging point to the second optimized separation and merging point, so as to determine the target optimized separation and merging point for controlling the vehicle to pass through the target intersection. In this way, the initial separation and merging point can be optimized to obtain the corresponding target optimized separation and merging point. In this way, the turning driving of the vehicle at the target intersection can be controlled based on the target optimized separation and merging point, which helps to obtain a driving strategy that is more suitable for the vehicle when passing through the target intersection, so that the target optimized separation and merging point is more matched with the actual environment of the target intersection, and the stability and smoothness of the vehicle driving are effectively improved.
[0012] Furthermore, optimization for the single-lane direction can help to decide on the vehicle's driving strategy earlier when passing the target intersection, reduce the occurrence of sudden steering wheel movements during hasty turns, and effectively improve vehicle driving safety; optimization for the multi-lane direction can help determine an intersection passing strategy that better matches the actual environment of the target intersection, avoid collisions with other objects at the target intersection (such as traffic islands) during the turn, help ensure vehicle driving stability, and improve the driving experience of passengers.
[0013] Furthermore, the only data required by this method is the historical trajectory information of each vehicle when it passes the target intersection. The required computing power is small, and the separation and merging points can be determined in real time during the vehicle's driving process after target optimization, which helps to ensure the timeliness and effectiveness of the driving strategy when the vehicle passes the target intersection.
[0014] In an optional implementation, the fitting trajectory line information corresponding to any of the initial separation and merging points includes a first fitting trajectory line information in a single lane direction and a plurality of second fitting trajectory line information in a multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes a plurality of first historical trajectory information in a single lane direction;
[0015] The first trajectory information includes the plurality of first historical trajectory information and the first fitting trajectory line information; the second trajectory information includes the plurality of second fitting trajectory line information.
[0016] In the disclosed embodiment, for each initial separation and merging point, the first trajectory information of the point located in the single-lane direction includes a plurality of first historical trajectory information and a first fitting trajectory line information, and the second trajectory information located in the multi-lane direction includes a plurality of second fitting trajectory line information. In this way, for the optimization in the multi-lane direction, only a plurality of second fitting trajectory line information need to be used, which helps to simplify the amount of data processing and improve the efficiency of subsequently determining the second optimized separation and merging point and the second number of moving steps. For the optimization in the single-lane direction, since the single-lane direction only includes a first fitting trajectory line information, the combination of a plurality of first historical trajectory information on the basis of a first fitting trajectory line information helps to ensure the accuracy of subsequently determining the first optimized separation and merging point and the first number of moving steps.
[0017] In an optional implementation, determining a first optimized separation and merging point and a first moving step number of the initial separation and merging point in a single lane direction based on the first trajectory information includes:
[0018] For each piece of first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to a first direction, until it is determined that the distance corresponding to the target historical trajectory point exists, and the difference between the distance corresponding to the previous historical trajectory point in the first direction and the distance is less than a first threshold; the first direction is the opposite direction of separation, or the direction of merging;
[0019] Based on the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, determine the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving number of the vehicle from the initial separation and merging point to the first optimized separation and merging point in the first direction.
[0020] In the disclosed embodiment, for the single-lane direction, the target historical trajectory point can be determined from each first historical trajectory information according to the distance from each historical trajectory point to the first fitting trajectory line in the first direction, and then the first optimized separation and merging point and the first moving step number are determined according to the position information of the target historical trajectory points corresponding to the multiple first historical trajectory information and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, which helps to ensure the practicality and effectiveness of the optimization for the single-lane direction.
[0021] In an optional implementation manner, the number of movement steps of the vehicle from the initial separation and merging point to the plurality of target historical trajectory points in the first direction is determined according to the following steps:
[0022] For each of the target historical trajectory points, determining the foot position of a perpendicular line from the target historical trajectory point to the first fitting trajectory line;
[0023] Determine a target fitting trajectory point in the first fitting trajectory line that is closest to the perpendicular foot position;
[0024] The number of movement steps of the vehicle from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line is determined.
[0025] In the disclosed embodiment, the foot position of the perpendicular line from each target historical trajectory point to the first fitting trajectory line can be determined, and then the target fitting trajectory point closest to the foot position can be determined from the first fitting trajectory line, so as to determine the number of moving steps of the vehicle from the initial separation and merging point to the target fitting trajectory point through the first fitting trajectory line. For the single-lane direction, the number of moving steps of the vehicle from the initial separation and merging point to the target fitting trajectory point is determined through the first fitting line rather than the first historical trajectory. This and the subsequent determination of the second number of moving steps through the second fitting trajectory line for the multi-lane direction are both determined through the fitting trajectory line, which helps to reduce the deviation between the number of moving steps determined in the single-lane direction and the multi-lane direction, and ensure the accuracy of the subsequent determination of the separation and merging point after target optimization.
[0026] In an optional implementation, determining a first optimized separating and merging point of the initial separating and merging point in a single lane direction, and a first moving step number of the vehicle moving from the initial separating and merging point to the first optimized separating and merging point in the first direction includes:
[0027] taking the average value of the position information of the target historical trajectory point corresponding to the plurality of first historical trajectory information as the position information of the first optimized separation and merging point; and
[0028] The average of the number of movement steps of the vehicle moving from the initial separation and merging point to the plurality of target historical trajectory points in the first direction is taken as the first number of movement steps.
[0029] In the disclosed embodiment, the average value of the position information of multiple target historical trajectory points can be used as the position information of the first optimized separation and merging point, and the average value of the number of moving steps from the initial separation and merging point to the multiple target historical trajectory points can be used as the first moving step number, which helps to ensure the accuracy of the first optimized separation and merging point and the first moving step number.
[0030] In an optional implementation, determining a second optimized separation and merging point and a second number of moving steps of the initial separation and merging point in a multi-lane direction based on the second trajectory information includes:
[0031] According to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; the second direction is the separation direction, or the opposite direction of the merging direction;
[0032] For each piece of second fitting trajectory line information, determining whether the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines is greater than a second threshold;
[0033] If there is any second fitting trajectory line information, and the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps from the initial separation and merging point to the second optimized separation and merging point.
[0034] In the disclosed embodiment, for the multi-lane direction, according to the second direction, based on the minimum distance between the current second fitting trajectory point on each second fitting trajectory line and each other second fitting trajectory line, when the minimum distance corresponding to the current second fitting trajectory point of any second fitting trajectory line information is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps, which helps to ensure the practicality and effectiveness of the optimization for the multi-lane direction.
[0035] In an optional implementation, determining a target optimized separation and merging point for controlling the vehicle to pass through the target intersection based on the first optimized separation and merging point and the first moving step number, and the second optimized separation and merging point and the second moving step number, includes:
[0036] When the first moving step number is greater than a third threshold, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0037] In a case where the first moving step number is less than or equal to the third threshold, the target post-optimization separation and merging point is determined based on a comparison result between the first moving step number and the second moving step number.
[0038] In the disclosed embodiment, the first moving step number can be first compared with the third threshold value. If the first moving step number is greater than the third threshold value, the first optimized separation and merging point is used as the target optimized separation and merging point, and the first optimized separation and merging point obtained by optimizing the single lane direction is preferentially used as the target optimized separation and merging point, so that the target optimized separation and merging point is earlier than the initial separation and merging point, thereby facilitating earlier decision-making on the driving strategy when the vehicle passes the target intersection, reducing the situation of sudden steering wheel movements during hasty turns, and effectively improving the safety of vehicle driving. If the first moving step number is less than or equal to the third threshold value, the target optimized separation and merging point is determined based on the comparison result between the first moving step number and the second moving step number, which helps to ensure the accuracy and applicability of the target optimized separation and merging point.
[0039] In an optional implementation, the determining the target post-optimization separation and merging point based on a comparison result between the first number of moving steps and the second number of moving steps includes:
[0040] When the comparison result indicates that the first moving step number is greater than the second moving step number, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0041] When the comparison result indicates that the first moving step number is less than the second moving step number, taking the second optimized separation and merging point as the target optimized separation and merging point;
[0042] When the comparison result indicates that the first number of moving steps is equal to the second number of moving steps, the initial separation and merging point is used as the target optimized separation and merging point.
[0043] In the disclosed embodiment, the optimized separation and merging point corresponding to the larger one of the first moving step number and the second moving step number is used as the target optimized separation and merging point. When the first moving step number is equal to the second moving step number, the initial separation and merging point is used as the target optimized separation and merging point, which helps to ensure the accuracy and applicability of the target optimized separation and merging point.
[0044] In an optional implementation manner, determining the position information of each initial separation and merging point based on the historical trajectory information includes:
[0045] Based on the road network data, at least one route splitting and merging mode corresponding to the target intersection is determined; each route splitting and merging mode is used to indicate lane information before and after route splitting, or to indicate lane information before and after route merging;
[0046] For each route splitting and merging mode, based on the historical trajectory information matching the route splitting and merging mode, the position information of the initial splitting and merging point under the route splitting and merging mode is determined.
[0047] In the embodiment of the present disclosure, the historical trajectory information can be used to determine the location information of the initial separation and merging point in the corresponding route separation and merging mode according to whether the route is separated or merged, which helps to ensure the accuracy of determining the initial separation and merging point.
[0048] In an optional implementation manner, determining the fitting trajectory line information obtained by performing trajectory line fitting on the historical trajectory information includes:
[0049] For each initial separation and merging point, a plurality of historical trajectories on both sides of the initial separation and merging point are merged on each side to obtain a plurality of candidate fitting trajectories;
[0050] For each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory;
[0051] According to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points and position information of each of the fitting trajectory points are determined on the fitting trajectory line.
[0052] In the disclosed embodiment, multiple historical trajectories on both sides of the initial separation and merging point are first merged to obtain candidate fitting trajectories, and then fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line, and then multiple fitting trajectory points and the position information of each fitting trajectory point are determined on the fitting trajectory line. In this way, by fitting according to the position information of each candidate fitting trajectory point, it is helpful to reduce the error in the historical trajectory information collection caused by sensor drift, and multiple fitting trajectory points are determined on the fitting trajectory line according to a preset fitting trajectory point spacing. According to actual optimization needs, the number of fitting trajectory points can be increased compared with the number of historical trajectory points, which helps to reduce the problem of a small number of historical trajectory points caused by a long collection time interval when actually collecting historical trajectory points.
[0053] The present disclosure also provides a vehicle control device, the device comprising:
[0054] The trajectory acquisition module is used to obtain the historical trajectory information of each vehicle when it passes through the target intersection;
[0055] an information determination module, for determining the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane;
[0056] a trajectory classification module, for determining, for each of the initial separation and merging points, first trajectory information in a single-lane direction and second trajectory information in a multi-lane direction in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point, taking the initial separation and merging point as a dividing point;
[0057] a bidirectional optimization module, configured to determine a first optimized separating and merging point of the initial separating and merging point in a single-lane direction and a first number of moving steps from the initial separating and merging point to the first optimized separating and merging point based on the first trajectory information, and to determine a second optimized separating and merging point of the initial separating and merging point in a multi-lane direction and a second number of moving steps from the initial separating and merging point to the second optimized separating and merging point based on the second trajectory information; the number of moving steps is represented by the number of trajectory points at intervals;
[0058] The optimization determination module is used to determine a target optimized separation and merging point for controlling the vehicle to pass through the target intersection based on the first optimized separation and merging point and the first moving step number, and the second optimized separation and merging point and the second moving step number.
[0059] In an optional implementation, the fitting trajectory line information corresponding to any of the initial separation and merging points includes a first fitting trajectory line information in a single lane direction and a plurality of second fitting trajectory line information in a multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes a plurality of first historical trajectory information in a single lane direction;
[0060] The first trajectory information includes the plurality of first historical trajectory information and the first fitting trajectory line information; the second trajectory information includes the plurality of second fitting trajectory line information.
[0061] In an optional implementation manner, when the bidirectional optimization module is used to determine the first optimized separation and merging point and the first moving step number of the initial separation and merging point in the single lane direction based on the first trajectory information, it is specifically used to:
[0062] For each piece of first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to a first direction, until it is determined that the distance corresponding to the target historical trajectory point exists, and the difference between the distance corresponding to the previous historical trajectory point in the first direction and the distance is less than a first threshold; the first direction is the opposite direction of separation, or the direction of merging;
[0063] Based on the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, determine the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving number of the vehicle from the initial separation and merging point to the first optimized separation and merging point in the first direction.
[0064] In an optional implementation manner, the bidirectional optimization module is specifically used to determine the number of movement steps of the vehicle in the first direction from the initial separation and merging point to the plurality of target historical trajectory points respectively according to the following steps:
[0065] For each of the target historical trajectory points, determining the foot position of a perpendicular line from the target historical trajectory point to the first fitting trajectory line;
[0066] Determine a target fitting trajectory point in the first fitting trajectory line that is closest to the perpendicular foot position;
[0067] The number of movement steps of the vehicle from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line is determined.
[0068] In an optional implementation manner, the bidirectional optimization module, when used to determine the first optimized separating and merging point of the initial separating and merging point in the single-lane direction, and the first moving step number of the vehicle moving from the initial separating and merging point to the first optimized separating and merging point in the first direction, is specifically used to:
[0069] taking the average value of the position information of the target historical trajectory point corresponding to the plurality of first historical trajectory information as the position information of the first optimized separation and merging point; and
[0070] The average of the number of movement steps of the vehicle moving from the initial separation and merging point to the plurality of target historical trajectory points in the first direction is taken as the first number of movement steps.
[0071] In an optional implementation manner, when the bidirectional optimization module is used to determine the second optimized separation and merging point and the second moving step number of the initial separation and merging point in the multi-lane direction based on the second trajectory information, it is specifically used to:
[0072] According to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; the second direction is the separation direction, or the opposite direction of the merging direction;
[0073] For each piece of second fitting trajectory line information, determining whether the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines is greater than a second threshold;
[0074] If there is any second fitting trajectory line information, and the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps from the initial separation and merging point to the second optimized separation and merging point.
[0075] In an optional implementation manner, the optimization determination module is specifically used to:
[0076] When the first moving step number is greater than a third threshold, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0077] In a case where the first moving step number is less than or equal to the third threshold, the target post-optimization separation and merging point is determined based on a comparison result between the first moving step number and the second moving step number.
[0078] In an optional implementation manner, when the optimization determination module is used to determine the target optimized separation and merging point based on the comparison result between the first moving step number and the second moving step number, it is specifically used to:
[0079] When the comparison result indicates that the first moving step number is greater than the second moving step number, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0080] When the comparison result indicates that the first moving step number is less than the second moving step number, taking the second optimized separation and merging point as the target optimized separation and merging point;
[0081] When the comparison result indicates that the first number of moving steps is equal to the second number of moving steps, the initial separation and merging point is used as the target optimized separation and merging point.
[0082] In an optional implementation manner, when the information determination module is used to determine the position information of each initial separation and merging point based on the historical trajectory information, it is specifically used to:
[0083] Based on the road network data, at least one route splitting and merging mode corresponding to the target intersection is determined; each route splitting and merging mode is used to indicate lane information before and after route splitting, or to indicate lane information before and after route merging;
[0084] For each route splitting and merging mode, based on the historical trajectory information matching the route splitting and merging mode, the position information of the initial splitting and merging point under the route splitting and merging mode is determined.
[0085] In an optional implementation manner, when the information determination module is used to determine the fitting trajectory line information obtained by performing trajectory line fitting on the historical trajectory information, it is specifically used to:
[0086] For each initial separation and merging point, a plurality of historical trajectories on both sides of the initial separation and merging point are merged on each side to obtain a plurality of candidate fitting trajectories;
[0087] For each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory;
[0088] According to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points and position information of each of the fitting trajectory points are determined on the fitting trajectory line.
[0089] An embodiment of the present disclosure also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of any possible vehicle control method described above are performed.
[0090] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any possible vehicle control method described above are executed.
[0091] For a description of the effects of the above-mentioned vehicle control device, electronic device and computer-readable storage medium, please refer to the description of the above-mentioned vehicle control method, which will not be repeated here.
[0092] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure.
[0093] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0095] Figure 1 A flow chart of a vehicle control method provided by an embodiment of the present disclosure is shown;
[0096] Figure 2 A schematic diagram of a target intersection provided by an embodiment of the present disclosure is shown;
[0097] Figure 3 A schematic diagram showing a method of determining position information of an initial separation point provided by an embodiment of the present disclosure is shown;
[0098] Figure 4 A schematic diagram of determining location information of an initial merging point provided by an embodiment of the present disclosure is shown;
[0099] Figure 5a-Figure 5bA schematic diagram of a process for determining a fitting trajectory line corresponding to an initial separation point provided by an embodiment of the present disclosure is shown;
[0100] Figure 6a-Figure 6b A schematic diagram of a process of determining a fitting trajectory line corresponding to an initial merging point provided by an embodiment of the present disclosure is shown;
[0101] Figure 7 A schematic diagram of determining a first optimized separation and merging point and a first moving step number of an initial separation point provided by an embodiment of the present disclosure is shown;
[0102] Figure 8 A schematic diagram of determining a first optimized separation merging point and a first moving step number of an initial merging point provided by an embodiment of the present disclosure is shown;
[0103] Fig. 9 A schematic diagram of determining a second optimized separation and merging point and a second moving step number of an initial separation point provided by an embodiment of the present disclosure is shown;
[0104] Fig.10 A schematic diagram of determining a second optimized separation merging point and a second moving step number of an initial merging point provided by an embodiment of the present disclosure is shown;
[0105] Fig.11 A schematic diagram of a vehicle control device provided by an embodiment of the present disclosure is shown;
[0106] Fig.12 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0107] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0108] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0109] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0110] Research has found that in the process of driving, in addition to straight sections, vehicles often encounter intersections where they need to turn. For intersections where they need to turn, most of the time, driving strategies are planned based on the instructions in the map, which may result in the planned driving strategy not matching the actual road environment. If the turn is made too late, the steering wheel may be swerved, affecting the driving experience of the passengers. If the turn is made too early, the vehicle may collide with other objects at the target intersection (such as traffic islands) during the turn, affecting the safety of the vehicle.
[0111] Based on the above research, the present disclosure provides a vehicle control method, which takes into account the driving experience of the vehicle when passing through an intersection, and optimizes each initial separation and merging point determined by the real historical trajectory information when the vehicle passes through the target intersection in the single-lane direction and the multi-lane direction, respectively, to obtain the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving steps from the initial separation and merging point to the first optimized separation and merging point, as well as the second optimized separation and merging point of the initial separation and merging point in the multi-lane direction, and the second moving steps from the initial separation and merging point to the second optimized separation and merging point, thereby determining the target optimized separation and merging point for controlling the vehicle to pass through the target intersection. In this way, the initial separation and merging point can be optimized to obtain the corresponding target optimized separation and merging point. In this way, the turning driving of the vehicle at the target intersection can be controlled based on the target optimized separation and merging point, which helps to obtain a driving strategy that is more suitable for the vehicle when passing through the target intersection, so that the target optimized separation and merging point is more matched with the actual environment of the target intersection, effectively improving the stability and smoothness of vehicle driving.
[0112] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0113] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0114] Specifically, the disclosed embodiment includes obtaining the historical trajectory information of each vehicle when passing through the target intersection. Before performing the relevant operation, as an optional but non-limiting implementation method, in response to receiving the user's active request, the method of sending the prompt information to the user can be, for example, a pop-up window, and the pop-up window can present the prompt information in text. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0115] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0116] To facilitate understanding of this embodiment, a vehicle control method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the vehicle control method provided in the embodiment of the present disclosure is generally an electronic device with certain computing capabilities. In this embodiment, the electronic device can be a server. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms.
[0117] In other implementations, the electronic device may also be a terminal device or other processing device, and the terminal device may be a mobile device, a terminal, a vehicle-mounted device, a computing device, etc. Other processing devices may be devices including a processor and a memory, which are not limited here. In some possible implementations, the vehicle control method may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0118] A vehicle control method provided by an embodiment of the present disclosure is described below in conjunction with the accompanying drawings.
[0119] See also Figure 1 As shown, it is a flow chart of a vehicle control method provided by an embodiment of the present disclosure, such as Figure 1 As shown in , the vehicle control method provided by the embodiment of the present disclosure includes steps S101 to S105, wherein:
[0120] S101: Obtain historical trajectory information of each vehicle when passing through a target intersection.
[0121] The target intersection may specifically be an intersection, such as a T-junction, a crossroads, etc. After passing the target intersection, the vehicle may enter a lane with a different direction.
[0122] Here, the historical trajectory information may be actual historical trajectory information of each vehicle, or may be trajectory information obtained by clustering the actual historical trajectory information of each vehicle according to a preset clustering method.
[0123] Exemplarily, the preset clustering method may also be to cluster the actual historical trajectories of vehicles of the same type (such as trucks, cars, etc.) according to the type of vehicle. The preset clustering method may be determined according to actual clustering needs and is not limited here.
[0124] In practical applications, the vehicle is equipped with a sensor, and the position information of the vehicle at each collection time can be obtained through the sensor, and the position information of the vehicle at each collection time is used as the position information of the historical trajectory point in the historical trajectory information.
[0125] Exemplarily, the location information of the historical trajectory points included in the historical trajectory information is specifically traj i,k =(x i,k ,y i,k ), where traj i,k represents the kth trajectory point of the ith historical trajectory, which is represented by x i,k and i,k They represent the x-coordinate value and y-coordinate value of the historical trajectory point in the target coordinate system.
[0126] Optionally, since the area corresponding to the target intersection is relatively small, the target coordinate system may be a station center coordinate system, also known as an east-north-sky coordinate system ENU, which is based on the station center and has a relatively small amount of calculation.
[0127] Alternatively, when computing resources are sufficient, the target coordinate system may also be a geocentric inertial coordinate system, a geocentric earth-fixed coordinate system, or the like.
[0128] For example, please refer to Figure 2 , Figure 2 Schematic diagram of a target intersection provided by an embodiment of the present disclosure. Figure 2As shown in , a crossroad is used as an example for explanation. In this scenario, there are 8 lanes, namely lane 1, lane 2, lane 3, lane 4, lane 5, lane 6, lane 7 and lane 8. Lane 1 and lane 5 have the same direction, both from A to B; lane 2 and lane 6 have the same direction, both from B to A; lane 3 and lane 8 have the same direction, both from C to D; lane 4 and lane 7 have the same direction, both from D to C. The target intersection E is formed at the intersection of these 8 lanes.
[0129] S102: Determine the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane.
[0130] Here, the position information of the initial separation and merging point includes the coordinates of the initial separation and merging point in the target coordinate system.
[0131] Exemplarily, the location information of the initial separation point is specifically sep_pts_org i =(x i ,y i ), where sep_pts_org i Indicates the i-th initial separation point, the location information of the initial merging point is specifically mer_pts_org i =(x i ,y i ), where mer_pts_org i represents the i-th initial merging point.
[0132] The fitting trajectory line information includes the position information of the fitting trajectory line and the position information of each fitting trajectory point on the fitting trajectory line. The position information of the fitting trajectory point includes the coordinates of the fitting trajectory point in the target coordinate system.
[0133] Exemplarily, the position information of the fitting trajectory points included in the fitting trajectory line information is specifically traj_fused_smoothed i,k , where traj_fused_smoothed i,k Represents the kth trajectory point of the i-th fitting trajectory line.
[0134] With respect to the position information of each initial splitting and merging point determined based on the historical trajectory information, specifically, at least one route splitting and merging mode corresponding to the target intersection can be determined based on the road network data; each route splitting and merging mode is used to indicate lane information before and after route splitting, or to indicate lane information before and after route merging; with respect to each route splitting and merging mode, based on the historical trajectory information matching the route splitting and merging mode, the position information of the initial splitting and merging point under the route splitting and merging mode is determined.
[0135] In the above steps, the route separation and merging method corresponding to the target intersection can be determined based on the road network data, and then the historical trajectory information can be classified according to the route separation and merging method. Based on the historical trajectory information matching each route classification and merging method, the location information of the initial separation and merging point under each route classification and merging method can be determined.
[0136] The road network data includes the directions and positions of the lanes converging at the target intersection.
[0137] For example, please refer again Figure 2 , for the target intersection E, it corresponds to 8 route separation and merging methods, method 1 is used to indicate that the route is lane 2 before separation, and lane 4, lane 6 and lane 8 after separation; method 2 is used to indicate that the route is lane 5 before separation, and lane 4, lane 1 and lane 8 after separation; method 3 is used to indicate that the route is lane 3 before separation, and lane 1, lane 8 and lane 6 after separation; method 4 is used to indicate that the route is lane 7 before separation, and lane 1, lane 4 and lane 6 after separation; method 5 is used to indicate that the route is lane 3, lane 5 and lane 7 before merging, and lane 1 after merging; method 6 is used to indicate that the route is lane 3, lane 2 and lane 7 before merging, and lane 6 after merging; method 7 is used to indicate that the route is lane 2, lane 7 and lane 5 before merging, and lane 4 after merging; method 8 is used to indicate that the route is lane 2, lane 3 and lane 5 before merging, and lane 8 after merging.
[0138] Optionally, for each route separation and merging method, when determining the historical trajectory information that matches the route separation and merging method, the historical trajectories that match the route separation and merging method can be determined based on the intersection boundary of the target intersection, and the intersection points with the intersection boundary are respectively clustered to obtain the position information of the initial separation and merging point under the route separation and merging method.
[0139] In this way, the historical trajectory information can be used to determine the location information of the initial separation and merging point in the corresponding route separation and merging mode according to whether the route is separated or merged, which helps to ensure the accuracy of determining the initial separation and merging point.
[0140] For example, please refer to Figure 3 , Figure 3 A schematic diagram of determining the location information of the initial separation point provided by an embodiment of the present disclosure. Figure 3 As shown in , taking mode 1 as an example for explanation, since mode 1 is used to indicate that the route is lane 2 before separation and lane 4, lane 6 and lane 8 after separation, the historical trajectory 11 and historical trajectory 12 of driving from lane 2 into lane 4, the historical trajectory 13 of driving from lane 2 into lane 6, and the historical trajectory 14 and historical trajectory 15 of driving from lane 2 into lane 8 can be determined. Based on the intersection boundary of the target intersection E, the intersection points of the historical trajectories 11, 12, 13, 14 and 15 with the intersection boundary are determined respectively, and the intersection points are clustered to obtain the position information of the initial separation point F1 under mode 1.
[0141] In another example, you can also refer to Figure 4 , Figure 4 A schematic diagram of determining the location information of the initial merging point provided by an embodiment of the present disclosure. Figure 4 As shown in , mode 5 is taken as an example for explanation. Since mode 5 is used to indicate that the route before merging is lane 3, lane 5 and lane 7, and the route after merging is lane 1, the historical trajectory 21 and historical trajectory 22 from lane 3 to lane 1, the historical trajectory 23 from lane 5 to lane 1, and the historical trajectory 24 and historical trajectory 25 from lane 7 to lane 1 can be determined. Based on the intersection boundary of the target intersection E, the intersection points of historical trajectory 21, historical trajectory 22, historical trajectory 23, historical trajectory 24 and historical trajectory 25 with the intersection boundary are determined respectively, and each intersection point is clustered to obtain the position information of the initial merging point G1 under mode 5.
[0142] In some possible implementations, after determining the position information of each initial separation and merging point, fitting trajectory line information obtained by performing trajectory line fitting on the historical trajectory information may be determined, including:
[0143] For each initial separation and merging point, a plurality of historical trajectories on both sides of the initial separation and merging point are merged on each side to obtain a plurality of candidate fitting trajectories;
[0144] For each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory;
[0145] According to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points and position information of each of the fitting trajectory points are determined on the fitting trajectory line.
[0146] In the above steps, multiple historical tracks on both sides of the initial separation and merging point may be merged on each side to obtain multiple candidate fitting tracks. Specifically, at least two historical tracks with a distance less than a preset threshold may be merged.
[0147] Here, each piece of candidate fitting trajectory information includes position information of each candidate fitting trajectory point on the candidate fitting trajectory, and the position information of the candidate fitting trajectory point includes the coordinates of the candidate fitting trajectory point in the target coordinate system.
[0148] Exemplarily, the position information of the candidate fitting trajectory points included in the candidate fitting trajectory line information is specifically traj_fused i,k , where traj_fused i,k Represents the kth trajectory point of the i-th fitting trajectory line.
[0149] Then, for each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory.
[0150] Optionally, a curve fitting algorithm may be used to perform fitting according to position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory.
[0151] Exemplarily, a cubic B-spline algorithm may be used to select the position information of each candidate fitting trajectory point on the candidate fitting trajectory as a control point of the algorithm, and smoothing processing may be performed to obtain a fitting trajectory line corresponding to the candidate fitting trajectory.
[0152] In some possible implementations, when a fitting trajectory line is obtained by fitting, the fitting trajectory line may be sampled into a broken line in order to reduce the amount of subsequent calculations.
[0153] In some other possible implementations, when computing resources are sufficient, the fitting trajectory line may also be sampled into a curve.
[0154] After the fitting trajectory line is obtained, a plurality of fitting trajectory points and position information of each of the fitting trajectory points may be determined on the fitting trajectory line according to the direction of the fitting trajectory line and the preset fitting trajectory point spacing.
[0155] Optionally, the preset fitting trajectory point spacing may be smaller than the spacing between two trajectory points on the historical trajectory and the candidate fitting trajectory, thereby enriching the number of fitting trajectory points and helping to ensure the accuracy of subsequent determination of separation and merging points after target optimization.
[0156] In this way, the multiple historical trajectories on both sides of the initial separation and merging point are first merged to obtain candidate fitting trajectories, and then fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line, and then multiple fitting trajectory points and the position information of each fitting trajectory point are determined on the fitting trajectory line. In this way, by fitting according to the position information of each candidate fitting trajectory point, it is helpful to reduce the error in the historical trajectory information collection caused by sensor drift, and multiple fitting trajectory points are determined on the fitting trajectory line according to the preset fitting trajectory point spacing. According to actual optimization needs, the number of fitting trajectory points can be increased compared with the number of historical trajectory points, which helps to reduce the problem of a small number of historical trajectory points caused by a long collection time interval when actually collecting historical trajectory points.
[0157] For example, please also see Figure 5a-Figure 5b , Figure 5a-Figure 5b A schematic diagram of a process for determining a fitting trajectory line corresponding to an initial separation point provided by an embodiment of the present disclosure. Figure 5a As shown in Figure 3 In the example, for the initial separation point F1, there are historical tracks 111, 121, 131, 141 and 151 on one side. By merging historical tracks 111, 121, 131, 141 and 151, one candidate fitting track can be obtained. On the other side of the initial separation point F1, there are historical tracks 112, 122, 132, 142 and 152. By merging historical tracks 112, 122, 132, 142 and 152, three candidate fitting tracks can be obtained, such as Figure 5b As shown in , for each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain the fitting trajectory line corresponding to the candidate fitting trajectory, thereby obtaining fitting trajectory line 31, fitting trajectory line 32, fitting trajectory line 33 and fitting trajectory line 34, and then for each fitting trajectory line, according to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, multiple fitting trajectory points are determined on the fitting trajectory line, as well as the position information of each of the fitting trajectory points.
[0158] For another example, see also Figure 6a-Figure 6b , Figure 6a-Figure 6b A schematic diagram of a process for determining a fitting trajectory line corresponding to an initial merging point provided by an embodiment of the present disclosure. Figure 6a As shown in Figure 4In the example, for the initial merge point G1, there are historical tracks 211, 221, 231, 241 and 251 on one side. By merging historical tracks 211, 221, 231, 241 and 251, one candidate fitting track can be obtained. On the other side of the initial merge point G1, there are historical tracks 212, 222, 232, 242 and 252. By merging historical tracks 212, 222, 232, 242 and 252, three candidate fitting tracks can be obtained, such as Figure 6b As shown in , for each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory, thereby obtaining fitting trajectory line 41, fitting trajectory line 42, fitting trajectory line 43 and fitting trajectory line 44. Then, for each fitting trajectory line, according to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points are determined on the fitting trajectory line, as well as the position information of each of the fitting trajectory points.
[0159] S103: For each of the initial separation and merging points, taking the initial separation and merging point as a demarcation point, determining first trajectory information in a single-lane direction and second trajectory information in a multi-lane direction in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point.
[0160] In this step, for each of the initial separation and merging points, the initial separation and merging point can be used as a dividing point to determine the first trajectory information located in the single-lane direction and the second trajectory information located in the multi-lane direction from the historical trajectory information and the fitted trajectory line information located on both sides of the initial separation and merging point.
[0161] In some possible implementations, the fitting trajectory line information corresponding to any of the initial separation and merging points includes a first fitting trajectory line information in a single lane direction and a plurality of second fitting trajectory line information in a multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes a plurality of first historical trajectory information in a single lane direction;
[0162] The first trajectory information includes the plurality of first historical trajectory information and the first fitting trajectory line information; the second trajectory information includes the plurality of second fitting trajectory line information.
[0163] For example, see again Figure 5bFor the initial separation point F1, the first trajectory information located in the single-lane direction includes information of five first historical trajectories 111, 121, 131, 141, and 151, and information of a first fitting trajectory line 31, and the second trajectory information located in the multi-lane direction includes information of three second fitting trajectory lines 32, 33, and 34.
[0164] In another example, see again Figure 6b , the initial merging point G1, the first trajectory information located in the single-lane direction includes information on five first historical trajectories 211, 221, 231, 241, and 251, and information on a first fitting trajectory line 41, and the second trajectory information located in the multi-lane direction includes information on three second fitting trajectory lines 42, 43, and 44.
[0165] In this way, for each initial separation and merging point, the first trajectory information located in the single-lane direction includes multiple first historical trajectory information and one first fitting trajectory line information, and the second trajectory information located in the multi-lane direction includes multiple second fitting trajectory line information. In this way, for the optimization of the multi-lane direction, only multiple second fitting trajectory line information needs to be used, which helps to simplify the data processing amount and improve the efficiency of subsequent determination of the second optimized separation and merging point and the second moving step number; for the optimization of the single-lane direction, since the single-lane direction only includes one first fitting trajectory line information, therefore, on the basis of one first fitting trajectory line information, combined with multiple first historical trajectory information, it helps to ensure the accuracy of the subsequent determination of the first optimized separation and merging point and the first moving step number.
[0166] S104: Determine a first optimized separating and merging point of the initial separating and merging point in a single-lane direction and a first number of moving steps from the initial separating and merging point to the first optimized separating and merging point based on the first trajectory information; and determine a second optimized separating and merging point of the initial separating and merging point in a multi-lane direction and a second number of moving steps from the initial separating and merging point to the second optimized separating and merging point based on the second trajectory information; the number of moving steps is represented by the number of interval trajectory points.
[0167] In this step, based on the first trajectory information, the first optimized separating and merging point of the initial separating and merging point in the single-lane direction and the first number of moving steps from the initial separating and merging point to the first optimized separating and merging point can be determined, and based on the second trajectory information, the second optimized separating and merging point of the initial separating and merging point in the multi-lane direction and the second number of moving steps from the initial separating and merging point to the second optimized separating and merging point can be determined.
[0168] For the optimization of the single lane direction, in some possible implementations, for each first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to the first direction until it is determined that the distance corresponding to the target historical trajectory point exists, and the difference between the distance corresponding to the previous historical trajectory point in the first direction is less than a first threshold; the first direction is the opposite direction of separation, or the direction of merging; according to the position information of the target historical trajectory points corresponding to the multiple first historical trajectory information respectively, and the moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, the first optimized separation and merging point of the initial separation and merging point in the single lane direction, and the first moving steps of the vehicle from the initial separation and merging point to the first optimized separation and merging point in the first direction are determined.
[0169] In the above steps, for each piece of first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to the first direction, until it is determined that there is a target historical trajectory point corresponding to the distance, and the difference between the distance and the distance corresponding to the previous historical trajectory point in the first direction is less than the first threshold, at which time the distance from the next historical trajectory point of the target historical trajectory point in the first direction to the first fitting trajectory line is stopped. In this way, the target historical trajectory point on each piece of first historical trajectory information and the number of movement steps of the vehicle from the initial separation and merging point to each target historical trajectory point in the first direction are obtained, and then the first optimized separation and merging point and the first number of movement steps are determined.
[0170] In this way, for the single-lane direction, the target historical trajectory point can be determined from each first historical trajectory information according to the distance from each historical trajectory point to the first fitting trajectory line in the first direction, and then the first optimized separation and merging point and the first moving step number are determined according to the position information of the target historical trajectory points corresponding to the multiple first historical trajectory information and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, which helps to ensure the practicality and effectiveness of the single-lane direction optimization.
[0171] In some possible implementations, when determining the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line in sequence, a perpendicular line can be drawn from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line in sequence, and the length of the perpendicular line is determined as the distance from the historical trajectory point to the first fitting trajectory line.
[0172] Exemplarily, for each piece of first historical trajectory information, each historical trajectory point traj in the first historical trajectory information is determined in sequence according to the first direction. i,k The distance to the first fitting trajectory line is dis i,k Until it is determined that there is a dis i,k >dis i,k-1 -thre 1 , here, dis i,k-1 represents the distance corresponding to the previous historical trajectory point in the first direction, thre 1 represents the first threshold, and the dis i,k The location information of the corresponding historical track point is determined as the location information of the target historical track point opt_single i .
[0173] After determining the target historical trajectory point, in some possible implementations, the number of movement steps of the vehicle from the initial separation and merging point to each of the plurality of target historical trajectory points in the first direction is determined according to the following steps:
[0174] For each of the target historical trajectory points, determining the foot position of a perpendicular line from the target historical trajectory point to the first fitting trajectory line;
[0175] Determine a target fitting trajectory point in the first fitting trajectory line that is closest to the perpendicular foot position;
[0176] The number of movement steps of the vehicle from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line is determined.
[0177] Optionally, if the perpendicular foot position is located in the middle of two fitting trajectory points in the first fitting trajectory line, the fitting trajectory point of the two fitting trajectory points that is closer to the first direction is determined as the target fitting trajectory point.
[0178] For example, after determining the target fitting trajectory point, the number of steps that the vehicle moves from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line can be determined. i .
[0179] In this embodiment, the number of moving steps is determined instead of directly determining the distance between two points because a vehicle generally does not travel straight in actual driving. There may be a situation where the distance between two points is small, but the vehicle has actually traveled a very long trajectory, which helps to improve the accuracy of optimizing the initial separation and merging points.
[0180] In this way, the foot position of the perpendicular line from each target historical trajectory point to the first fitting trajectory line can be determined, and then the target fitting trajectory point closest to the foot position can be determined from the first fitting trajectory line, so as to determine the number of moving steps of the vehicle from the initial separation and merging point to the target fitting trajectory point through the first fitting trajectory line. For the single-lane direction, the number of moving steps of the vehicle from the initial separation and merging point to the target fitting trajectory point is determined through the first fitting line rather than the first historical trajectory. This and the subsequent determination of the second moving step through the second fitting trajectory line for the multi-lane direction are both determined through the fitting trajectory line, which helps to reduce the deviation between the moving step numbers determined in the single-lane direction and the multi-lane direction, and ensure the accuracy of the subsequent determination of the separation and merging point after the target optimization.
[0181] In some possible implementations, in order to determine the first optimized separation and merging point and the first number of moving steps, the average value of the position information of the target historical trajectory points corresponding to the multiple first historical trajectory information can be used as the position information of the first optimized separation and merging point; and the average value of the number of moving steps of the vehicle moving from the initial separation and merging point to the multiple target historical trajectory points in the first direction can be used as the first number of moving steps.
[0182] Exemplarily, the location information of the target historical trajectory point corresponding to each of the plurality of first historical trajectory information opt_single i Take the average to obtain the position information of the separation and merging points after the first optimization The number of steps step_single that the vehicle moves in the first direction from the initial separation and merging point to the multiple target historical trajectory points i Taking the average, we get
[0183] In this way, the average value of the position information of multiple target historical trajectory points can be used as the position information of the first optimized separation and merging point, and the average value of the number of moving steps from the initial separation and merging point to multiple target historical trajectory points can be used as the first moving step number, which helps to ensure the accuracy of the first optimized separation and merging point and the first moving step number.
[0184] For example, please also see Figure 7 , Figure 7 A schematic diagram of determining the first optimized separation and merging point and the first moving step number of the initial separation point provided by the embodiment of the present disclosure. Figure 7 As shown in Figure 5bIn the example, for the initial separation point F1, the first trajectory information located in the single lane direction includes five first historical trajectory information 111, 121, 131, 141, and 151, and one first fitting trajectory line 31. For each first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line 31 is determined in sequence according to the first direction from B to A until it is determined that there is a distance corresponding to a target historical trajectory point, and the difference between the distance corresponding to the previous historical trajectory point in the first direction is less than a first threshold; according to the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the moving steps of the vehicle in the first direction from the initial separation point F1 to the multiple target historical trajectory points, the first optimized separation point F2 of the initial separation point F1 in the single lane direction and the first moving steps of the vehicle in the first direction from the initial separation point F1 to the first optimized separation point F2 are determined.
[0185] For another example, see also Figure 8 , Figure 8 A schematic diagram of determining a first optimized separation merging point and a first moving step number of an initial merging point provided by an embodiment of the present disclosure. Figure 8 As shown in Figure 6b In the example, for the initial merging point G1, the first trajectory information located in the single lane direction includes five first historical trajectory information 211, 221, 231, 241, and 251, and one first fitting trajectory line 41. For each first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line 41 is determined in sequence according to the first direction from B to A until it is determined that there is a distance corresponding to a target historical trajectory point, and the difference between the distance corresponding to the previous historical trajectory point in the first direction is less than a first threshold value; according to the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the moving steps of the vehicle moving from the initial merging point G1 to the multiple target historical trajectory points in the first direction, the first optimized merging point G2 of the initial merging point G1 in the single lane direction and the first moving steps of the vehicle moving from the initial merging point G1 to the first optimized merging point G2 in the first direction are determined.
[0186] For the optimization of multi-lane directions, in some possible implementations, according to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; the second direction is the direction of separation, or the opposite direction of merging; for each second fitting trajectory line information, it is determined whether the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines is greater than a second threshold; if there is any second fitting trajectory line information, and the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, then according to the position information of the current second fitting trajectory point on each second fitting trajectory line, the second optimized separation and merging point is determined, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps from the initial separation and merging point to the second optimized separation and merging point.
[0187] In the above steps, according to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; for each second fitting trajectory line information, it is determined whether the minimum distance between the current second fitting trajectory point and each of the other second fitting trajectory lines on each of the second fitting trajectory lines is greater than the second threshold; if there is any second fitting trajectory line information, the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, and then the determination of the minimum distance between the next second fitting trajectory point of the current second fitting trajectory point in the second direction and each of the other second fitting trajectory lines is stopped. Thus, according to the position information of the current second fitting trajectory point on each of the second fitting trajectory lines, the second optimized separation and merging point is determined, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second moving step number.
[0188] In some possible implementations, when determining the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines, a perpendicular line can be drawn from the current second fitting trajectory point on the second fitting trajectory line to each of the other second fitting trajectory lines, and the length of the perpendicular line is determined as the distance between the current second fitting trajectory point on the second fitting trajectory line and each of the other second fitting trajectory lines, and then the minimum distance is determined from each distance.
[0189] Optionally, when determining the second optimized separation and merging point based on the position information of the current second fitting trajectory point on each second fitting trajectory line, the average value of the position information of the current second fitting trajectory point on multiple second fitting trajectory lines can be used as the position information of the second optimized separation and merging point.
[0190] For example, for the current step_multi i , determine the current second fitting trajectory point traj_fused_smoothed on each of the second fitting trajectory lines i,k With each other second fitted trajectory line traj_fused_smoothed j,k , j≠i, the distance between them is dis i,k,j , thereby determining the current second fitting trajectory point traj_fused_smoothed i,k The corresponding minimum distance min(dis i,k,j ) until it is determined that there is a min(dis i,k,j )>thre 2 , here, thre 2 represents the second threshold, and the position information of the current second fitting trajectory point on each second fitting trajectory line at this time is traj_fused_smoothed i,k Take the average to get the position information of the separation and merging points after the second optimization And the current second fitting trajectory point traj_fused_smoothed i,k The number of trajectory points between the initial separation and merging points is determined as the second moving step number step_multi i .
[0191] In this way, for the multi-lane direction, according to the second direction, based on the minimum distance between the current second fitting trajectory point on each second fitting trajectory line and each other second fitting trajectory line, when the minimum distance corresponding to the current second fitting trajectory point of any second fitting trajectory line information is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps, which helps to ensure the practicality and effectiveness of the optimization for the multi-lane direction.
[0192] For example, please also see Fig. 9 , Fig. 9 A schematic diagram of determining a second optimized separation and merging point and a second moving step number of an initial separation point provided by an embodiment of the present disclosure. Fig. 9 As shown in Figure 5bIn the example, for the initial separation point F1, the second trajectory information in the multi-lane direction includes information of three second fitting trajectory lines 32, 33, and 34. According to the preset fitting trajectory point spacing and the second direction from A to B, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in sequence. Specifically, the second fitting trajectory points 321, 322, etc. are determined on the second fitting trajectory line 32, the second fitting trajectory points 331, 332, etc. are determined on the second fitting trajectory line 33, and the second fitting trajectory points 341, 342, etc. are determined on the second fitting trajectory line 34. For each second fitting trajectory line information, determine whether the minimum distance between the current second fitting trajectory point on each second fitting trajectory line and each other second fitting trajectory line is greater than the second threshold; if there is any second fitting trajectory line 32 information, and the minimum distance corresponding to the current second fitting trajectory point 322 is greater than the second threshold, then according to the position information of the current second fitting trajectory point 322 on the second fitting trajectory line 32, the position information of the current second fitting trajectory point 332 on the second fitting trajectory line 33, and the position information of the current second fitting trajectory point 342 on the second fitting trajectory line 34, determine the second optimized separation point F3, and the number of trajectory points 2 between the current second fitting trajectory points 322, 332, 342 and the initial separation point F1 is determined as the second number of moving steps.
[0193] For another example, see also Fig.10 , Fig.10 A schematic diagram of determining a second optimized separation merging point and a second moving step number of an initial merging point provided by an embodiment of the present disclosure. Fig.10 As shown in Figure 6bIn the example, for the initial merging point G1, the second trajectory information in the multi-lane direction includes information of three second fitting trajectory lines 42, 43, and 44. According to the preset fitting trajectory point spacing and the second direction from A to B, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in sequence. Specifically, the second fitting trajectory points 321, 422, etc. are determined on the second fitting trajectory line 42, the second fitting trajectory points 431, 432, etc. are determined on the second fitting trajectory line 43, and the second fitting trajectory points 441, 442, etc. are determined on the second fitting trajectory line 44. For each second fitting trajectory line information, determine whether the minimum distance between the current second fitting trajectory point on each second fitting trajectory line and each other second fitting trajectory line is greater than the second threshold; if there is any second fitting trajectory line 42 information, and the minimum distance corresponding to the current second fitting trajectory point 423 is greater than the second threshold, then according to the position information of the current second fitting trajectory point 423 on the second fitting trajectory line 42, the position information of the current second fitting trajectory point 433 on the second fitting trajectory line 43, and the position information of the current second fitting trajectory point 443 on the second fitting trajectory line 44, determine the second optimized merge point G3, and the number of trajectory points 3 between the current second fitting trajectory points 423, 433, 443 and the initial merge point G1 is determined as the second number of moving steps.
[0194] S105: Determine a target optimized splitting and merging point for controlling the vehicle to pass through the target intersection based on the first optimized splitting and merging point and the first moving step number, and the second optimized splitting and merging point and the second moving step number.
[0195] In this step, the target optimized separation and merging point can be determined according to the first moving step number and the second moving step number, based on the first optimized separation and merging point and the second optimized separation and merging point and the second moving step number.
[0196] Specifically, when the first number of moving steps is greater than a third threshold, the first optimized separation and merger point is used as the target optimized separation and merger point; when the first number of moving steps is less than or equal to the third threshold, the target optimized separation and merger point is determined based on the comparison result between the first number of moving steps and the second number of moving steps.
[0197] For example, please refer to Figure 7 and Fig. 9 , when the first moving step number is greater than the third threshold, the first optimized separation point F2 is used as the target optimized separation point corresponding to the initial separation point F1. When the first moving step number is less than or equal to the third threshold, the target optimized separation point is determined based on the comparison result between the first moving step number and the second moving step number.
[0198] In another example, we can again refer to Figure 8 and Fig.10 , when the first moving step number is greater than the third threshold, the first optimized merged point G2 is used as the target optimized merged point corresponding to the initial merged point G1. When the first moving step number is less than or equal to the third threshold, the target optimized merged point is determined based on the comparison result between the first moving step number and the second moving step number.
[0199] In this way, the first moving step number can be compared with the third threshold value first. If the first moving step number is greater than the third threshold value, the first optimized separation and merging point is used as the target optimized separation and merging point, and the first optimized separation and merging point obtained by optimizing the single lane direction is preferentially used as the target optimized separation and merging point, so that the target optimized separation and merging point is earlier than the initial separation and merging point, thereby facilitating earlier decision-making on the driving strategy when the vehicle passes the target intersection, reducing the situation of sudden steering wheel movements during hasty turns, and effectively improving the safety of vehicle driving. If the first moving step number is less than or equal to the third threshold value, the target optimized separation and merging point is determined based on the comparison result between the first moving step number and the second moving step number, which helps to ensure the accuracy and applicability of the target optimized separation and merging point.
[0200] In some possible implementations, determining the target post-optimization separation and merging point based on a comparison result between the first number of moving steps and the second number of moving steps includes:
[0201] When the comparison result indicates that the first moving step number is greater than the second moving step number, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0202] When the comparison result indicates that the first moving step number is less than the second moving step number, taking the second optimized separation and merging point as the target optimized separation and merging point;
[0203] When the comparison result indicates that the first number of moving steps is equal to the second number of moving steps, the initial separation and merging point is used as the target optimized separation and merging point.
[0204] For example, please refer to Figure 7 and Fig. 9, when the comparison result indicates that the first moving step number is greater than the second moving step number, the first optimized separation point F2 is used as the target optimized separation point corresponding to the initial separation point F1; when the comparison result indicates that the first moving step number is less than the second moving step number, the second optimized separation point F3 is used as the target optimized separation point corresponding to the initial separation point F1; when the comparison result indicates that the first moving step number is equal to the second moving step number, the initial separation point F1 is used as its corresponding target optimized separation point.
[0205] In another example, we can again refer to Figure 8 and Fig.10 , when the comparison result indicates that the first moving step number is greater than the second moving step number, the first optimized merge point G2 is used as the target optimized separation point corresponding to the initial merge point G1; when the comparison result indicates that the first moving step number is less than the second moving step number, the second optimized merge point G3 is used as the target optimized separation point corresponding to the initial merge point G1; when the comparison result indicates that the first moving step number is equal to the second moving step number, the initial merge point G1 is used as its corresponding target optimized separation point.
[0206] In this way, the optimized separation and merging point corresponding to the larger of the first moving step number and the second moving step number is used as the target optimized separation and merging point. When the first moving step number is equal to the second moving step number, the initial separation and merging point is used as the target optimized separation and merging point, which helps to ensure the accuracy and applicability of the target optimized separation and merging point.
[0207] After determining the target optimized separation and merging point, when the vehicle passes through the target intersection, the current driving state of the vehicle can be obtained; based on the current driving state and the position information of the target optimized separation and merging point, a driving strategy for controlling the vehicle to pass through the target intersection is determined; and the vehicle is controlled to pass through the target intersection according to the driving strategy.
[0208] The vehicle control method provided by the embodiment of the present disclosure takes into account the driving experience of the vehicle when passing through an intersection. For each initial separation and merging point determined based on the real historical trajectory information when the vehicle passes through a target intersection, the method is optimized in the single-lane direction and the multi-lane direction respectively, so as to obtain a first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and a first moving step number from the initial separation and merging point to the first optimized separation and merging point, as well as a second optimized separation and merging point of the initial separation and merging point in the multi-lane direction, and a second moving step number from the initial separation and merging point to the second optimized separation and merging point, thereby determining a target optimized separation and merging point for controlling the vehicle to pass through the target intersection. In this way, the initial separation and merging point can be optimized to obtain the corresponding target optimized separation and merging point. In this way, the turning driving of the vehicle at the target intersection can be controlled based on the target optimized separation and merging point, which helps to obtain a driving strategy that is more suitable for the vehicle when passing through the target intersection, so that the target optimized separation and merging point is more matched with the actual environment of the target intersection, effectively improving the stability and smoothness of vehicle driving.
[0209] Furthermore, optimization for the single-lane direction can help to decide on the vehicle's driving strategy earlier when passing the target intersection, reduce the occurrence of sudden steering wheel movements during hasty turns, and effectively improve vehicle driving safety; optimization for the multi-lane direction can help determine an intersection passing strategy that better matches the actual environment of the target intersection, avoid collisions with other objects at the target intersection (such as traffic islands) during the turn, help ensure vehicle driving stability, and improve the driving experience of passengers.
[0210] Furthermore, the only data required by this method is the historical trajectory information of each vehicle when it passes the target intersection. The required computing power is small, and the separation and merging points can be determined in real time during the vehicle's driving process after target optimization, which helps to ensure the timeliness and effectiveness of the driving strategy when the vehicle passes the target intersection.
[0211] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0212] Based on the same inventive concept, a vehicle control device corresponding to the vehicle control method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the vehicle control device in the embodiment of the present disclosure is similar to the above-mentioned vehicle control method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0213] See also Fig.11 , Fig.11Schematic diagram of a vehicle control device provided by an embodiment of the present disclosure. Fig.11 As shown in , the vehicle control device 1100 provided in the embodiment of the present disclosure includes:
[0214] The trajectory acquisition module 1110 is used to acquire the historical trajectory information of each vehicle when passing through the target intersection;
[0215] The information determination module 1120 is used to determine the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane;
[0216] The trajectory classification module 1130 is used to determine, for each of the initial separation and merging points, first trajectory information located in a single lane direction and second trajectory information located in a multi-lane direction in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point, with the initial separation and merging point as a dividing point;
[0217] a bidirectional optimization module 1140, configured to determine a first optimized separating and merging point of the initial separating and merging point in a single-lane direction and a first moving step number from the initial separating and merging point to the first optimized separating and merging point based on the first trajectory information, and to determine a second optimized separating and merging point of the initial separating and merging point in a multi-lane direction and a second moving step number from the initial separating and merging point to the second optimized separating and merging point based on the second trajectory information; the moving step number is represented by the number of trajectory points at intervals;
[0218] The optimization determination module 1150 is used to determine a target optimized splitting and merging point for controlling the vehicle to pass through the target intersection based on the first optimized splitting and merging point and the first moving step number, and the second optimized splitting and merging point and the second moving step number.
[0219] In an optional implementation, the fitting trajectory line information corresponding to any of the initial separation and merging points includes a first fitting trajectory line information in a single lane direction and a plurality of second fitting trajectory line information in a multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes a plurality of first historical trajectory information in a single lane direction;
[0220] The first trajectory information includes the plurality of first historical trajectory information and the first fitting trajectory line information; the second trajectory information includes the plurality of second fitting trajectory line information.
[0221] In an optional implementation manner, when the bidirectional optimization module 1140 is used to determine the first optimized separation and merging point and the first moving step number of the initial separation and merging point in the single lane direction based on the first trajectory information, it is specifically used to:
[0222] For each piece of first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to a first direction, until it is determined that the distance corresponding to the target historical trajectory point exists, and the difference between the distance corresponding to the previous historical trajectory point in the first direction and the distance is less than a first threshold; the first direction is the opposite direction of separation, or the direction of merging;
[0223] Based on the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, determine the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving number of the vehicle from the initial separation and merging point to the first optimized separation and merging point in the first direction.
[0224] In an optional implementation manner, the bidirectional optimization module 1140 is specifically configured to determine the number of movement steps of the vehicle in the first direction from the initial separation and merging point to the plurality of target historical trajectory points respectively according to the following steps:
[0225] For each of the target historical trajectory points, determining the foot position of a perpendicular line from the target historical trajectory point to the first fitting trajectory line;
[0226] Determine a target fitting trajectory point in the first fitting trajectory line that is closest to the perpendicular foot position;
[0227] The number of movement steps of the vehicle from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line is determined.
[0228] In an optional implementation manner, the bidirectional optimization module 1140, when used to determine the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving step number of the vehicle moving from the initial separation and merging point to the first optimized separation and merging point in the first direction, is specifically used to:
[0229] taking the average value of the position information of the target historical trajectory point corresponding to the plurality of first historical trajectory information as the position information of the first optimized separation and merging point; and
[0230] The average of the number of movement steps of the vehicle moving from the initial separation and merging point to the plurality of target historical trajectory points in the first direction is taken as the first number of movement steps.
[0231] In an optional implementation manner, when the bidirectional optimization module 1140 is used to determine the second optimized separation and merging point and the second moving step number of the initial separation and merging point in the multi-lane direction based on the second trajectory information, it is specifically used to:
[0232] According to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; the second direction is the separation direction, or the opposite direction of the merging direction;
[0233] For each piece of second fitting trajectory line information, determining whether the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines is greater than a second threshold;
[0234] If there is any second fitting trajectory line information, and the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps from the initial separation and merging point to the second optimized separation and merging point.
[0235] In an optional implementation manner, the optimization determination module 1150 is specifically used to:
[0236] When the first moving step number is greater than a third threshold, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0237] In a case where the first moving step number is less than or equal to the third threshold, the target post-optimization separation and merging point is determined based on a comparison result between the first moving step number and the second moving step number.
[0238] In an optional implementation manner, when the optimization determination module 1150 is used to determine the target optimized separation and merging point based on the comparison result between the first moving step number and the second moving step number, it is specifically used to:
[0239] When the comparison result indicates that the first moving step number is greater than the second moving step number, taking the first optimized separation and merging point as the target optimized separation and merging point;
[0240] When the comparison result indicates that the first moving step number is less than the second moving step number, taking the second optimized separation and merging point as the target optimized separation and merging point;
[0241] When the comparison result indicates that the first number of moving steps is equal to the second number of moving steps, the initial separation and merging point is used as the target optimized separation and merging point.
[0242] In an optional implementation manner, when the information determination module 1120 is used to determine the position information of each initial separation and merging point based on the historical trajectory information, it is specifically used to:
[0243] Based on the road network data, at least one route splitting and merging mode corresponding to the target intersection is determined; each route splitting and merging mode is used to indicate lane information before and after route splitting, or to indicate lane information before and after route merging;
[0244] For each route splitting and merging mode, based on the historical trajectory information matching the route splitting and merging mode, the position information of the initial splitting and merging point under the route splitting and merging mode is determined.
[0245] In an optional implementation manner, when the information determination module 1120 is used to determine the fitting trajectory line information obtained by performing trajectory line fitting on the historical trajectory information, it is specifically used to:
[0246] For each initial separation and merging point, a plurality of historical trajectories on both sides of the initial separation and merging point are merged on each side to obtain a plurality of candidate fitting trajectories;
[0247] For each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory;
[0248] According to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points and position information of each of the fitting trajectory points are determined on the fitting trajectory line.
[0249] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0250] The vehicle control device provided by the embodiment of the present disclosure takes into account the driving experience of the vehicle when passing through an intersection, and optimizes each initial separation and merging point determined by the real historical trajectory information when the vehicle passes through the target intersection in the single-lane direction and the multi-lane direction, respectively, to obtain a first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and a first moving step from the initial separation and merging point to the first optimized separation and merging point, as well as a second optimized separation and merging point of the initial separation and merging point in the multi-lane direction, and a second moving step from the initial separation and merging point to the second optimized separation and merging point, thereby determining a target optimized separation and merging point for controlling the vehicle to pass through the target intersection. In this way, the initial separation and merging point can be optimized to obtain the corresponding target optimized separation and merging point. In this way, the turning driving of the vehicle at the target intersection can be controlled based on the target optimized separation and merging point, which helps to obtain a driving strategy that is more suitable for the vehicle when passing through the target intersection, so that the target optimized separation and merging point is more matched with the actual environment of the target intersection, effectively improving the stability and smoothness of vehicle driving.
[0251] Furthermore, optimization for the single-lane direction can help to decide on the vehicle's driving strategy earlier when passing the target intersection, reduce the occurrence of sudden steering wheel movements during hasty turns, and effectively improve vehicle driving safety; optimization for the multi-lane direction can help determine an intersection passing strategy that better matches the actual environment of the target intersection, avoid collisions with other objects at the target intersection (such as traffic islands) during the turn, help ensure vehicle driving stability, and improve the driving experience of passengers.
[0252] Furthermore, the only data required by this method is the historical trajectory information of each vehicle when it passes the target intersection. The required computing power is small, and the separation and merging points can be determined in real time during the vehicle's driving process after target optimization, which helps to ensure the timeliness and effectiveness of the driving strategy when the vehicle passes the target intersection.
[0253] Corresponds to Figure 1 The vehicle control method in the present disclosure also provides an electronic device 1200, such as Fig.12 As shown in FIG. 1 , it is a schematic diagram of the structure of an electronic device 1200 provided in an embodiment of the present disclosure, including:
[0254] Processor 1210, memory 1220, and bus 1230. The memory 1220 is used to store execution instructions, including internal memory 1221 and external memory 1222; the internal memory 1221 is also called internal memory, which is used to temporarily store the operation data in the processor 1210 and the data exchanged with the external memory 1222 such as a hard disk. The processor 1210 exchanges data with the external memory 1222 through the internal memory 1221.
[0255] In the embodiment of the present application, the memory 1220 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 1210. That is, when the electronic device 1200 is running, the processor 1210 communicates with the memory 1220 through the bus 1230, so that the processor 1210 executes the application code stored in the memory 1220, and then executes the steps of the vehicle control method described in any of the above embodiments.
[0256] The memory 1220 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EEPEPRROOMM), etc.
[0257] The processor 1210 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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 gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0258] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 1200. In other embodiments of the present application, the electronic device 1200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0259] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the vehicle control method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0260] The disclosed embodiment also provides a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, the steps of the vehicle control method described in the above method embodiment can be executed. For details, please refer to the above method embodiment, which will not be repeated here.
[0261] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0262] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment and devices can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, 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 communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0263] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0264] In addition, each functional unit in each embodiment of the present disclosure 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.
[0265] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0266] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A vehicle control method, characterized in that: The method comprises: Obtain the historical trajectory information of each vehicle when it passes through the target intersection; Determine the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane; For each of the initial separation and merging points, the first trajectory information in the single-lane direction and the second trajectory information in the multi-lane direction are determined in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point, taking the initial separation and merging point as a dividing point; the fitted trajectory line information corresponding to any of the initial separation and merging points includes one first fitted trajectory line information in the single-lane direction and multiple second fitted trajectory line information in the multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes multiple first historical trajectory information in the single-lane direction; the first trajectory information includes the multiple first historical trajectory information and the one first fitted trajectory line information; the second trajectory information includes the multiple second fitted trajectory line information; Determine a first optimized separating and merging point in a single-lane direction of the initial separating and merging point based on the first trajectory information, and a first moving step number from the initial separating and merging point to the first optimized separating and merging point; and determine a second optimized separating and merging point in a multi-lane direction of the initial separating and merging point based on the second trajectory information, and a second moving step number from the initial separating and merging point to the second optimized separating and merging point; the moving step number is represented by the number of trajectory points at intervals; Based on the first optimized splitting and merging point and the first moving step number, and the second optimized splitting and merging point and the second moving step number, a target optimized splitting and merging point for controlling the vehicle to pass through the target intersection is determined.
2. The method according to claim 1, characterized in that Determining a first optimized separation and merging point and a first moving step number of the initial separation and merging point in a single lane direction based on the first trajectory information includes: For each piece of first historical trajectory information, the distance from each historical trajectory point in the first historical trajectory information to the first fitting trajectory line is determined in sequence according to a first direction, until it is determined that the distance corresponding to the target historical trajectory point exists, and the difference between the distance corresponding to the previous historical trajectory point in the first direction and the distance is less than a first threshold; the first direction is the opposite direction of separation, or the direction of merging; Based on the position information of the target historical trajectory points respectively corresponding to the multiple first historical trajectory information, and the number of moving steps of the vehicle from the initial separation and merging point to the multiple target historical trajectory points in the first direction, determine the first optimized separation and merging point of the initial separation and merging point in the single-lane direction, and the first moving number of the vehicle from the initial separation and merging point to the first optimized separation and merging point in the first direction.
3. The method according to claim 2, characterized in that Determine the number of steps that the vehicle moves from the initial separation and merging point to the plurality of target historical trajectory points in the first direction according to the following steps: For each of the target historical trajectory points, determining the foot position of a perpendicular line from the target historical trajectory point to the first fitting trajectory line; Determine a target fitting trajectory point in the first fitting trajectory line that is closest to the perpendicular foot position; The number of movement steps of the vehicle from the initial separation and merging point to the target fitting trajectory point according to the first fitting trajectory line is determined.
4. The method according to claim 2, characterized in that: The determining of a first optimized separating and merging point of the initial separating and merging point in a single lane direction, and a first moving step number of the vehicle moving from the initial separating and merging point to the first optimized separating and merging point in the first direction, comprises: taking the average value of the position information of the target historical trajectory point corresponding to the plurality of first historical trajectory information as the position information of the first optimized separation and merging point; and The average of the number of movement steps of the vehicle moving from the initial separation and merging point to the plurality of target historical trajectory points in the first direction is taken as the first number of movement steps.
5. The method according to claim 1, characterized in that Determining a second optimized separation and merging point and a second moving step number of the initial separation and merging point in a multi-lane direction based on the second trajectory information includes: According to the preset fitting trajectory point spacing and the second direction, the current second fitting trajectory point is determined on each of the second fitting trajectory lines in turn; the second direction is the separation direction, or the opposite direction of the merging direction; For each piece of second fitting trajectory line information, determining whether the minimum distance between the current second fitting trajectory point on each of the second fitting trajectory lines and each of the other second fitting trajectory lines is greater than a second threshold; If there is any second fitting trajectory line information, and the minimum distance corresponding to the current second fitting trajectory point is greater than the second threshold, the second optimized separation and merging point is determined according to the position information of the current second fitting trajectory point on each second fitting trajectory line, and the number of trajectory points between the current second fitting trajectory point and the initial separation and merging point is determined as the second number of moving steps from the initial separation and merging point to the second optimized separation and merging point.
6. The method according to claim 1, characterized in that The step of determining a target optimized separation and merging point for controlling the vehicle to pass through the target intersection based on the first optimized separation and merging point and the first moving step number, and the second optimized separation and merging point and the second moving step number, comprises: When the first moving step number is greater than a third threshold, taking the first optimized separation and merging point as the target optimized separation and merging point; In a case where the first moving step number is less than or equal to the third threshold, the target post-optimization separation and merging point is determined based on a comparison result between the first moving step number and the second moving step number.
7. The method according to claim 6, characterized in that The step of determining the target post-optimization separation and merging point based on a comparison result between the first number of moving steps and the second number of moving steps includes: When the comparison result indicates that the first moving step number is greater than the second moving step number, taking the first optimized separation and merging point as the target optimized separation and merging point; When the comparison result indicates that the first moving step number is less than the second moving step number, taking the second optimized separation and merging point as the target optimized separation and merging point; When the comparison result indicates that the first number of moving steps is equal to the second number of moving steps, the initial separation and merging point is used as the target optimized separation and merging point.
8. The method according to claim 1, characterized in that The determining the position information of each initial separation and merging point based on the historical trajectory information includes: Based on the road network data, at least one route splitting and merging mode corresponding to the target intersection is determined; each route splitting and merging mode is used to indicate lane information before and after route splitting, or to indicate lane information before and after route merging; For each route splitting and merging mode, based on the historical trajectory information matching the route splitting and merging mode, the position information of the initial splitting and merging point under the route splitting and merging mode is determined.
9. The method according to claim 1, characterized in that: Determining fitting trajectory line information obtained by performing trajectory line fitting on the historical trajectory information includes: For each initial separation and merging point, a plurality of historical trajectories on both sides of the initial separation and merging point are merged on each side to obtain a plurality of candidate fitting trajectories; For each candidate fitting trajectory, fitting is performed according to the position information of each candidate fitting trajectory point on the candidate fitting trajectory to obtain a fitting trajectory line corresponding to the candidate fitting trajectory; According to the direction of the fitting trajectory line and the preset fitting trajectory point spacing, a plurality of fitting trajectory points and position information of each of the fitting trajectory points are determined on the fitting trajectory line.
10. A vehicle control device, characterized in that: The device comprises: The trajectory acquisition module is used to obtain the historical trajectory information of each vehicle when it passes through the target intersection; an information determination module, for determining the position information of each initial separation and merging point based on the historical trajectory information, and the fitting trajectory line information obtained by performing trajectory fitting on the historical trajectory information; the separation and merging point is a separation point or a merging point, the separation point refers to the separation position point when multiple vehicles separate from the same lane and drive to different lanes, and the merging point refers to the merging position point when multiple vehicles merge from different lanes and drive into the same lane; A trajectory classification module is used for determining, for each of the initial separation and merging points, the first trajectory information in the single-lane direction and the second trajectory information in the multi-lane direction in the historical trajectory information and the fitted trajectory line information corresponding to the initial separation and merging point, with the initial separation and merging point as a dividing point; the fitted trajectory line information corresponding to any of the initial separation and merging points includes one first fitted trajectory line information in the single-lane direction and multiple second fitted trajectory line information in the multi-lane direction; the historical trajectory information corresponding to any of the initial separation and merging points includes multiple first historical trajectory information in the single-lane direction; the first trajectory information includes the multiple first historical trajectory information and the one first fitted trajectory line information; the second trajectory information includes the multiple second fitted trajectory line information; a bidirectional optimization module, configured to determine a first optimized separating and merging point of the initial separating and merging point in a single-lane direction and a first number of moving steps from the initial separating and merging point to the first optimized separating and merging point based on the first trajectory information, and to determine a second optimized separating and merging point of the initial separating and merging point in a multi-lane direction and a second number of moving steps from the initial separating and merging point to the second optimized separating and merging point based on the second trajectory information; the number of moving steps is represented by the number of trajectory points at intervals; The optimization determination module is used to determine a target optimized separation and merging point for controlling the vehicle to pass through the target intersection based on the first optimized separation and merging point and the first moving step number, and the second optimized separation and merging point and the second moving step number.
11. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the vehicle control method as described in any one of claims 1 to 9 are performed.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the vehicle control method as claimed in any one of claims 1 to 9.
Citation Information
Patent Citations
Unstructured road operation vehicle path planning method based on empirical path fitting
CN114237229A
Intersection virtual lane line determination method and device, electronic equipment and storage medium
CN115050008A
