A method, device, equipment and medium for controlling vehicle driving
By obtaining and analyzing the jitter of map information, and setting thresholds to control vehicle driving, the problem of abnormal deflection or jitter of map points in navigation-assisted driving is solved, and the stability and safety of driving are improved.
Patent Information
- Application Number
- CN202410749975.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-12
AI Technical Summary
In navigation-assisted driving, abnormal deflection or jitter of map points affects the stability and safety of driving. Especially when the road data detected by a single camera is matched with a high-precision map, it may lead to errors caused by changes in lane width and environmental factors. .
By obtaining the current map information and historical map information, the current jump amount of the map point is determined, and a threshold is set according to the jump amount to control the vehicle driving. If the jump amount is greater than the threshold, the target map information is used to make adjustments to suppress the abnormal deflection of the map point. or jitter.
It effectively suppresses abnormal beating of map points, improves driving stability and safety, and ensures accurate vehicle control under navigation-assisted driving.
Smart Images

Figure CN118323141B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of navigation-assisted driving technology, and in particular to a method, device, equipment and medium for controlling vehicle travel. Background Art
[0002] The success rate of the exported scene plays an important role in the quality of the Navigate on Autopilot (NOA) function. Since the exported scene includes lane separation and bifurcation, it is difficult for a single camera to capture the trend of lane lines under all working conditions. In addition to the influence of environmental factors, it is still difficult to simply use a single camera to export (pure vision). At this time, high-precision maps are needed for some assistance. The actual road conditions detected by the smart camera are matched with the high-precision map to locate the vehicle's position.
[0003] However, the road data detected by the smart camera actually contains errors. These errors may be caused by weather reasons, lane line clarity, camera angle clarity and other issues. At the same time, the smart camera may misjudge certain scenes. When the actual road conditions detected by the smart camera are matched with the high-precision map, if the perception data is focused on, it may cause abnormal deflection or jitter of the map points; and the high-precision map points do not have a detailed description of the lanes with changing lane widths, but the smart camera can indeed detect the trend of lanes gradually widening. Therefore, for lanes with changing lane widths, there will also be abnormal deflection or jitter of the map points. Not only that, the road structure detected by the smart camera may not be consistent with the high-precision map points under all working conditions, and there will still be problems with the matching effect. Abnormal deflection or jitter of map points affects the stability and safety of driving.
[0004] It can be seen that when using map points to control a vehicle, how to handle abnormal jumps of map points to ensure driving stability and safety is a technical problem that people in this field need to solve urgently. Summary of the invention
[0005] The purpose of the present invention is to provide a method, device, equipment and medium for controlling vehicle driving, so as to solve the technical problem that abnormal deflection or jitter of map points affects the stability and safety of driving.
[0006] In order to solve the above technical problems, the present invention provides a method for controlling vehicle driving, comprising:
[0007] Acquire current map information and historical map information; wherein the current map information is information about a map point relative to a current position of the vehicle, and the historical map information is information about a map point relative to a historical position of the vehicle, and the map information includes at least one of angle information and lateral information, wherein the angle value in the angle information is a constant term of a first-order derivative of a model established according to the map point, and the lateral distance value in the lateral information is a constant term of the model;
[0008] Determine the current jitter of the map point according to the current map information and the historical map information; wherein the jitter includes at least one of the angular jitter and the lateral jitter;
[0009] In the case where it is detected that the current jitter amount is greater than the first jitter threshold, if the current positioning information of the vehicle is not received, then the target map information is obtained, and the vehicle is controlled to travel according to the target map information, wherein the target map information is obtained by changing the current map information by the second jitter threshold, and the first jitter threshold is greater than the second jitter threshold; if the current positioning information of the vehicle is received, then the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle is controlled to travel according to the map information;
[0010] When it is detected that the current jitter amount is less than or equal to the first jitter threshold, if current positioning information is received, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle driving is controlled according to the map information.
[0011] Preferably, determining the first beat threshold comprises:
[0012] When the vehicle changes lanes, multiple historical map information is obtained;
[0013] Get the difference of historical map information at each adjacent time;
[0014] Obtaining a maximum difference from all the differences and determining the first jitter threshold according to the maximum difference; wherein the first jitter threshold is greater than the maximum difference;
[0015] Determining the second beat threshold comprises:
[0016] When the vehicle changes lanes, multiple historical map information is obtained;
[0017] Get the difference of historical map information at each adjacent time;
[0018] An average value of all the differences is obtained and the second jitter threshold is determined according to the average value; wherein the second jitter threshold is greater than the average value.
[0019] Preferably, before controlling the vehicle to travel according to the target map information, the method further includes:
[0020] Get the current map point and the current lane line detected by the visual sensor;
[0021] Determine a first line according to the current map point and determine a second line according to the current lane line;
[0022] Determining whether a distance between the first line and the second line is less than half of the width of the vehicle along the vehicle's travel direction;
[0023] If so, the map point is determined to be abnormal;
[0024] If not, the map point is determined to be normal and the process ends.
[0025] Preferably, determining the model corresponding to the second line includes:
[0026] In the case where the visual sensor detects a left lane line, determining a model corresponding to the second line according to a model corresponding to the left lane line;
[0027] When the visual sensor detects the right lane, the model corresponding to the second line is determined according to the model corresponding to the right lane line.
[0028] Preferably, the determining whether the distance between the first line and the second line along the vehicle travel direction is less than half of the vehicle width comprises:
[0029] Acquire a plurality of first target points on the first line along the vehicle travel direction, and acquire a distance value from each of the first target points to the second line;
[0030] respectively determining whether the distance value from each of the first target points to the second line is less than half of the vehicle width;
[0031] If so, determining the first target point whose distance value is less than half of the vehicle width is an abnormal map point;
[0032] If not, the first target point whose distance value is greater than or equal to half of the vehicle width is determined to be a normal map point.
[0033] Preferably, the respectively determining whether the distance value from each of the first target points to the second line is less than half of the vehicle width comprises:
[0034] Obtain the road type of the road on which the vehicle is located; wherein the road type includes the acceleration and deceleration lane type and the deceleration lane type; the road width of the acceleration and deceleration lane is a fixed value, and the road of the deceleration lane is in a widened state;
[0035] If it is detected that the road type of the vehicle is an acceleration / deceleration lane type, determining whether the distance value from each of the first target points to the second line is less than half of the width of the vehicle;
[0036] If it is detected that the road type of the vehicle is a deceleration lane type, obtain the remaining first target points after eliminating the second target points from all the first target points; determine whether the distance value from each remaining first target point to the second line is less than half the width of the vehicle; wherein the second target point is a map point used to characterize the lane change process.
[0037] Preferably, determining the second target point comprises:
[0038] Acquire a third target point; wherein the third target point is a plurality of first target points on the first line corresponding to the road during and after the lane change;
[0039] Acquire a fourth target point; wherein the fourth target point is the first target point corresponding to when the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirement;
[0040] The second target point is obtained by eliminating the fourth target point from the third target point;
[0041] Among them, the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirement:
[0042] ;
[0043] in, represents the function corresponding to the first line; Indicates the width of the road after the lane change; is the adjustment parameter, which is a constant; Indicates the horizontal coordinate of the map point.
[0044] In order to solve the above technical problems, the present invention further provides a device for controlling vehicle travel, comprising:
[0045] an acquisition module, used to acquire current map information and historical map information; wherein the current map information is information about a map point relative to a current position of a vehicle, and the historical map information is information about a map point relative to a historical position of a vehicle, and the map information includes at least one of angle information and lateral information, wherein the angle value in the angle information is a constant term of a first-order derivative of a model established according to the map point, and the lateral distance value in the lateral information is a constant term of the model;
[0046] A determination module, used to determine the current jitter of the map point according to the current map information and the historical map information; wherein the jitter includes at least one of the angular jitter and the lateral jitter;
[0047] A judgment module, used to judge whether the current jitter amount is greater than a first jitter threshold; if so, trigger the first control module, if not, trigger the second control module;
[0048] The first control module is used for obtaining target map information if the current positioning information of the vehicle is not received, and controlling the vehicle to travel according to the target map information, wherein the target map information is obtained by changing the current map information by a second jump threshold, and the first jump threshold is greater than the second jump threshold; if the current positioning information of the vehicle is received, obtaining the position information of the vehicle in the map according to the current positioning information, and controlling the vehicle to travel according to the map information;
[0049] The second control module is used to obtain the position information of the vehicle in the map according to the current positioning information if the current positioning information is received, and control the vehicle to travel according to the map information.
[0050] In order to solve the above technical problems, the present invention further provides a device for controlling vehicle driving, comprising:
[0051] Memory for storing computer programs;
[0052] The processor is used to implement the steps of the above-mentioned method for controlling vehicle driving when executing the computer program.
[0053] In order to solve the above technical problem, the present invention 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 the above method for controlling vehicle driving are implemented.
[0054] The present invention provides a method for controlling vehicle driving, comprising: determining the current jitter amount of a map point according to current map information and historical map information, and controlling the vehicle driving according to the target map information obtained after changing the second jitter threshold according to the current map information if the current positioning information of the vehicle is not received. Since the second jitter threshold is smaller than the first jitter threshold, the map point can be changed by a smaller value, and the abnormal jitter of the map point is suppressed, thereby ensuring the stability and safety of controlling the vehicle driving according to the map point; after receiving the current positioning information of the vehicle, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle driving is controlled according to the map information, and the method of changing the current map information according to the second jitter threshold is no longer used, thereby improving the accuracy of driving control; and the map information includes at least one of the angle information and the lateral information, and quantitative analysis is performed according to the angle information and / or the lateral information, so as to achieve accurate judgment of the jitter amount of the map point, and to ensure the suppression of the abnormal jitter of the map point as much as possible when the current jitter amount is greater than the first jitter threshold, thereby ensuring the stability and safety of driving.
[0055] In addition, the present invention also provides a device for controlling vehicle driving, an apparatus for controlling vehicle driving, and a computer-readable storage medium, which have the same or corresponding technical features as the above-mentioned method for controlling vehicle driving and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A flow chart of a method for controlling vehicle driving provided by an embodiment of the present invention;
[0058] Figure 2 A flowchart of a map point control method provided by an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of an angle detection angle jump provided by an embodiment of the present invention;
[0060] Figure 4 A schematic diagram of detecting lateral distance jump provided by an embodiment of the present invention;
[0061] Figure 5 A schematic diagram of detecting abnormal map points in a lane change scenario provided by an embodiment of the present invention;
[0062] Figure 6 A schematic diagram of an acceleration and deceleration lane provided by an embodiment of the present invention;
[0063] Figure 7 A schematic diagram of a deceleration lane provided by an embodiment of the present invention;
[0064] Figure 8 A structural diagram of a device for controlling vehicle travel provided by an embodiment of the present invention;
[0065] Fig. 9 A structural diagram of a device for controlling vehicle travel provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] The core of the present invention is to provide a method, device, equipment and medium for controlling vehicle driving to solve the technical problem that map points have abnormal deflection or jitter, which affects the stability and safety of driving.
[0068] The success rate of the exported scene plays an important role in the quality of the NOA function. Since the exported scene includes the separation and bifurcation of lanes, it is difficult for a single camera to capture the trend of lane lines under all working conditions. In addition, due to the influence of environmental factors, it is still difficult to simply use a single camera to export (pure vision). At this time, high-precision maps are needed for some assistance, but due to cost reasons, when map points deflect or jitter abnormally, it will have a certain impact on vehicle control. Therefore, an embodiment of the present invention detects abnormal deflection or jitter of map points, and suppresses the deflection or jitter to improve driving stability and safety.
[0069] It should be noted that after the vehicle turns on NOA, Real Time Kinematic (RTK) is used for positioning. However, when the RTK frequency is low (1Hz), it is necessary to match the actual road conditions detected by the smart camera with the high-precision map to locate the vehicle. RTK can usually provide the actual position information of the vehicle on the road every second (such as 1s, 2s, 3s, etc.), but cannot provide the actual position information of the vehicle on the road between adjacent moments (such as between 1s and 2s, between 2s and 3s), and thus cannot use map information to control the vehicle's travel based on the vehicle's positioning information. Therefore, the method provided by the present invention is used to control the travel of the vehicle between adjacent moments.
[0070] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flow chart of a method for controlling vehicle driving provided by an embodiment of the present invention is as follows: Figure 1 As shown, the method includes:
[0071] S10: Acquire current map information and historical map information;
[0072] S11: determining the current jitter amount of the map point according to the current map information and the historical map information;
[0073] S12: Determine whether the current jitter amount is greater than the first jitter threshold; if so, proceed to step S13; if not, proceed to step S14;
[0074] S13: If the current positioning information of the vehicle is not received, the target map information is obtained, and the vehicle is controlled to travel according to the target map information; if the current positioning information of the vehicle is received, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle is controlled to travel according to the map information.
[0075] The target map information is obtained after the current map information changes by a second jump threshold, and the first jump threshold is greater than the second jump threshold;
[0076] S14: If the current positioning information is received, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle is controlled to travel according to the map information.
[0077] The current map information is information about the map point relative to the current position of the vehicle, and the historical map information is information about the map point relative to the historical position of the vehicle. The map information includes at least one of angle information and lateral information. The angle value in the angle information is a constant term of the first-order derivative of the model (equation) established based on the map point, and the lateral distance value in the lateral information is a constant term of the model. There is no limit on the degree of the equation established based on the map point, such as a cubic equation. There is no limit on the historical time corresponding to the selected historical map information. For example, if the selected historical map information is the map information of the previous moment before the current moment, the difference between the current map information and the historical map information is used as the current jitter amount. Since the jitter amount includes at least one of the angle jitter amount and the lateral jitter amount; therefore, the current jitter amount includes the angle jitter amount and / or the lateral jitter amount. Correspondingly, judging whether the current jitter amount is greater than the first jitter threshold value includes judging whether the angle jitter amount is greater than the first angle jitter threshold value. and / or determine whether the lateral jump amount is greater than a first lateral jump threshold . There is no limitation on the first angle jitter threshold and the first lateral jitter threshold, which are determined according to actual conditions. When it is determined whether the current jitter amount is greater than the first jitter threshold, if the current positioning information of the vehicle sent by RTK is not received, the vehicle is controlled according to the target map information obtained after changing the second jitter threshold according to the current map information; since the data sent by RTK gives the current positioning information of the vehicle, when the current positioning information of the vehicle is received, the position information of the vehicle in the map is directly obtained according to the current positioning information, and the vehicle is controlled according to the map information. When it is determined that the current jitter amount is less than or equal to the first jitter threshold, it means that the jitter is normal. When the current positioning information is received, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle is controlled according to the map information.
[0078] It should be noted that in order to facilitate understanding of the jitter of the map point, a flag is set. Specifically, when the angle jitter is detected to be greater than the first angle jitter threshold, and / or determine whether the lateral jump amount is greater than a first lateral jump threshold When the map point angle jump flag or the map point horizontal jump flag is set to 1 (can be triggered at the same time), accordingly, when the corresponding flag is set to 1, the angle or horizontal will send the second jump threshold (that is, the minimum change value of a single frame, including the second angle jump threshold Or the second horizontal jump threshold ). When new RTK data arrives, the map point jump mark position is set to 0. Figure 2 A flowchart of a map point control method provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:
[0079] S15: Get the angle value of the previous frame and lateral distance values , and get the angle value of the current frame and lateral distance values ;
[0080] S16: Determine whether the difference between the two is greater than the first beating threshold; if not, proceed to step S17; if yes, proceed to step S18;
[0081] S17: when receiving new RTK data, output the new RTK data;
[0082] S18: Determine whether there is new RTK data; if not, proceed to step S19; if yes, proceed to step S20;
[0083] S19: Set the flag bit for limiting the jump; and return to step S18;
[0084] S20: Cancel the flag for limiting the jump and output new RTK data.
[0085] The angle value of each frame and lateral distance values When the angle difference between the two frames is greater than the first angle jump threshold, or the horizontal distance difference between the two frames is greater than the first horizontal jump threshold, the horizontal flag or angle flag is set to 1, and the output is limited by the second angle jump threshold and the second horizontal jump threshold. If the angle difference between the two frames is less than or equal to the first angle jump threshold, or the horizontal distance difference between the two frames is less than or equal to the first horizontal jump threshold, the current frame is output normally. and To proportional (Proportion), integral (Integral) and differential (Derivative) control, referred to as PID control.
[0086] Since RTK data is updated every 1 second, when new RTK data is updated, if the flag is not set to 1, it indicates that the current state is normal. If the flag value is 1, the RTK update will set the flag to 0. The reason for this is that it can be understood that the value sent by RTK is a true value, that is, credible. If the flag is set to 1, the program enters the limited jump mode. Less than , Less than , so the logic will be activated as long as it enters. When the true value comes, the input at the beginning and lateral distance values If it is wrong, it will be corrected. If it is correct, you need to exit the limited jump mode to make the program run normally.
[0087] The present embodiment provides a method for controlling vehicle driving, including: determining the current jitter amount of a map point according to current map information and historical map information, and controlling the vehicle driving according to the target map information obtained after changing the second jitter threshold according to the current map information if the current positioning information of the vehicle is not received. Since the second jitter threshold is smaller than the first jitter threshold, the map point can be changed by a smaller value, and the abnormal jitter of the map point is suppressed, thereby ensuring the stability and safety of controlling the vehicle driving according to the map point; after receiving the current positioning information of the vehicle, the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle driving is controlled according to the map information, and the method of changing the current map information according to the second jitter threshold is no longer used, thereby improving the accuracy of driving control; and the map information includes at least one of the angle information and the lateral information, and quantitative analysis is performed according to the angle information and / or the lateral information, so as to achieve accurate judgment of the jitter amount of the map point, and to ensure the suppression of the abnormal jitter of the map point as much as possible when the current jitter amount is greater than the first jitter threshold, thereby ensuring the stability and safety of driving.
[0088] In order to set a reasonable first beat threshold and a reasonable second beat threshold, in some embodiments, determining the first beat threshold includes:
[0089] When the vehicle changes lanes, multiple historical map information is obtained;
[0090] Get the difference of historical map information at each adjacent time;
[0091] Obtaining the largest difference from all the differences and determining a first beating threshold value according to the largest difference value; wherein the first beating threshold value is greater than the largest difference value;
[0092] Determining the second beat threshold includes:
[0093] When the vehicle changes lanes, multiple historical map information is obtained;
[0094] Get the difference of historical map information at each adjacent time;
[0095] An average value of all the differences is obtained and a second jitter threshold is determined according to the average value; wherein the second jitter threshold is greater than the average value.
[0096] For example, when the vehicle changes lanes, the differences in historical map information at adjacent moments are 0.1, 0.3, 0.08, and 0.15, respectively. The maximum difference among all the differences is 0.3. Since the differences in the map points when the vehicle changes lanes are normal data, the first threshold for detecting abnormal jumps must be greater than the maximum difference. The average value of all the differences is 0.63 / 4. Similarly, since the differences in the map points when the vehicle changes lanes are normal data, the second threshold for detecting abnormal jumps must be greater than the average value. If the first threshold for detecting abnormal jumps is directly set to the maximum difference or the second threshold is directly set to the average value, the map point may be mistakenly considered abnormal based on the change amount obtained when turning. It can be seen that the method provided by the embodiment of the present invention can achieve a more reasonable setting of the first and second thresholds.
[0097] Since the first angle jump threshold in the above embodiment Or the first horizontal jump threshold It is set and cannot be set too small. Setting it too small will greatly affect PID control. Therefore, the map may jump or shift, but the difference between the two frames is slightly less than or In the case of a vehicle that is not controlled by the target map information, when the value continues to accumulate, the vehicle may still be out of control. Therefore, it is necessary to verify the vision and map points to determine the abnormal situation of the map points. In some embodiments, before controlling the vehicle to travel according to the target map information, it also includes:
[0098] Get the current map point and the current lane line detected by the visual sensor;
[0099] Determine a first line according to the current map point and determine a second line according to the current lane line;
[0100] Determining whether a distance between the first line and the second line is less than half of the width of the vehicle along the vehicle's travel direction;
[0101] If so, the map point is determined to be abnormal;
[0102] If not, the map point is determined to be normal and the process ends.
[0103] The visual-map point verification mechanism is: In implementation, the least squares method can be used for fitting. The map points are fitted to the first line, and the function corresponding to the first line is ; At the same time, the smart camera will fit the second line according to the detected lane line. The function corresponding to the second line is Similarly, the degree of the function corresponding to the second line is not limited and is determined according to the actual situation, such as fitting a cubic function. The images corresponding to the two functions are compared to see whether they are crossed or similar, so as to determine the abnormality of the map point.
[0104] In practice, there may be cases where vision (camera) misses detection, such as only seeing the left lane but not the right lane, or only seeing the right lane but not the left lane. In order to achieve control of the vehicle, the model corresponding to the second line includes:
[0105] When the visual sensor detects the left lane line, the model corresponding to the second line is determined according to the model corresponding to the left lane line;
[0106] When the visual sensor detects the right lane, the model corresponding to the second line is determined according to the model corresponding to the right lane line.
[0107] If the visual sensor detects both the left lane line and the right lane line, the model corresponding to the left lane line and the model corresponding to the right lane line are respectively used as the model corresponding to the second line.
[0108] Specifically, the function corresponding to the second line satisfies the expression:
[0109] ;
[0110] in, represents the function corresponding to the second line, Represents the horizontal coordinate of the point on the lane line detected by the visual sensor, Indicates the validity of the left lane line, Represents the function corresponding to the left lane line, Indicates the validity of the right lane line, Represents the function corresponding to the right lane line.
[0111] At the same time, the map points can also be fitted to form the first line (each lane has a first line, and the function corresponding to the first line is currently obtained by the positioning module after locating the lane where the vehicle is located). Figure 3 A schematic diagram of an angle detection angle jump provided by an embodiment of the present invention, such as Figure 3 As shown, Figure 3The line segment a in represents the visually detected left lane, the line segment c represents the visually detected right lane, and the line segment b represents the first line fitted by the map points. Figure 4 A schematic diagram of detecting lateral distance jump provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, Figure 4 The line segment a in represents the visually detected left lane, the line segment c represents the visually detected right lane, and the line segment b represents the first line fitted by the map points.
[0112] In implementation, determining whether the distance between the first line and the second line along the vehicle travel direction is less than half of the vehicle width includes:
[0113] Acquire a plurality of first target points on the first line along the vehicle travel direction, and acquire a distance value from each first target point to the second line;
[0114] Determine whether the distance from each first target point to the second line is less than half of the vehicle width;
[0115] If so, determining the first target point whose distance value is less than half of the vehicle width is an abnormal map point;
[0116] If not, the first target point whose distance value is greater than or equal to half of the vehicle width is determined to be a normal map point.
[0117] Specifically, multiple points are selected from the center line in front of the vehicle, and each point is mapped to the first line respectively. When the function value of each point on the first line satisfies the following conditions, it is determined that the map point has an error value:
[0118] ;
[0119] in, It represents the horizontal coordinate of the point on the center line of the lane line after being mapped onto the first line. The horizontal coordinate of the point on the left lane centerline mapped to the point on the first line is When , the function value on the corresponding first line; The horizontal coordinate of the point on the center line of the lane on the right side mapped to the point on the first line is When , the function value on the corresponding first line is, Indicates the width of the vehicle.
[0120] Likewise, Figure 4 middle If it is established, it means that there is an error value in the map point. Figure 3 In the figure, the map points located in the circle are outliers.
[0121] The visual-map point verification method provided in this embodiment is enabled when the flag is not triggered, that is, to prevent the accumulation of error values and the occurrence of missed detection. When the map point is determined to be abnormal, the abnormal swing of the vehicle can be prevented by taking over the report or using visual control.
[0122] The method provided in the above embodiment can determine the abnormal situation of the map point, however, most of the map data is provided by third-party companies, and the map point may cross the lane according to the road connection relationship, so there are similar scenarios as follows. Figure 5 A schematic diagram of detecting abnormal map points in a lane change scenario provided by an embodiment of the present invention, such as Figure 5 As shown, there are map points on the left lane and map points on the right lane. According to the description above, when the vehicle crosses the lane (i.e. Figure 5 After the map function is switched to the function corresponding to the first line fitted by the map points on the right lane, that is, the line on the right lane in the figure. According to the technical solution described above, since the map line intersects with the lane line (such as Figure 5 The map line and the lane line intersect at the position of the vehicle (the position shown in the box), so this situation will be mistaken for the map point jumping or offset. However, this result is wrong because the map point itself is like this. Therefore, in order to avoid misjudgment as much as possible, in some embodiments, judging whether the distance value from each first target point to the second line is less than half of the vehicle width includes:
[0123] Obtain the road type of the road on which the vehicle is located; the road type includes the acceleration and deceleration lane type and the deceleration lane type; the road width of the acceleration and deceleration lane is a fixed value, and the road of the deceleration lane is in a widened state;
[0124] If it is detected that the road type of the vehicle is an acceleration / deceleration lane type, determining whether the distance value from each first target point to the second line is less than half of the vehicle width;
[0125] If it is detected that the road type of the vehicle is a deceleration lane type, obtain the remaining first target points after eliminating the second target points from all the first target points; determine whether the distance value from each remaining first target point to the second line is less than half the width of the vehicle; wherein the second target point is a map point used to characterize the lane change process.
[0126] Figure 6 A schematic diagram of an acceleration and deceleration lane provided in an embodiment of the present invention. Figure 7 A schematic diagram of a deceleration lane provided by an embodiment of the present invention. Figure 6 and Figure 7 It can be found that Figure 6 The width of the acceleration and deceleration lane is a fixed value, and Figure 7 The middle deceleration lane gradually widens along the road at the location indicated by the circle.
[0127] For acceleration and deceleration lanes, use the Abnormal map points can be detected more accurately. For the deceleration lane, in the lane change scenario, in order to avoid mistaking some map points for abnormal map points, in implementation, if it is detected that the road type of the vehicle is a deceleration lane type, the remaining first target points are obtained after removing the second target points from all the first target points; it is determined whether the distance value from each remaining first target point to the second line is less than half the width of the vehicle; wherein the second target point is a map point used to characterize the lane change process.
[0128] Determining the second target point includes:
[0129] Acquire a third target point; wherein the third target point is a plurality of first target points on the first line corresponding to the road during and after the lane change;
[0130] Obtaining a fourth target point; wherein the fourth target point is the first target point corresponding to when the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirement;
[0131] The second target point is obtained by eliminating the fourth target point from the third target point;
[0132] Among them, the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirements:
[0133] ;
[0134] in, represents the function corresponding to the first line; Indicates the width of the road after the lane change; is the adjustment parameter, which is a constant; Indicates the horizontal coordinate of the map point.
[0135] by Figure 5 For example, the third target point is a plurality of first target points on the first line corresponding to the road during and after the lane change, that is, Figure 5 When the vehicle crosses the lane within t time (t<1s), the left map points are still used to detect abnormal map points, but an additional step is added: that is, the function corresponding to the line fitted by the map points after the lane change is determined, and the function that satisfies the line is found. The point (i.e. the fourth target point), such as the point in the solid circle in 5, after t time, The function corresponding to the line fitted by the map point after the lane change. Figure 5Remove the points in the solid circle from all the points on the connecting line, and the remaining points are the second target points. Get the remaining first target points after removing the second target points from all the first target points, which are the map points that need to be detected for abnormal situations, such as Figure 5 The points inside the solid circle and the points inside the dotted circle.
[0136] In the method provided in this embodiment, for the lane change scenario, map points that may be mistakenly regarded as abnormal at the lane change location are removed, thereby improving the accuracy of detecting abnormal map points.
[0137] In the above embodiments, the method for controlling the driving of a vehicle and the device for controlling the driving of a vehicle are described, and the present invention also provides an embodiment of the device for controlling the driving of a vehicle. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.
[0138] Figure 8 A structural diagram of a device for controlling vehicle travel provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules and includes:
[0139] The acquisition module 10 is used to acquire current map information and historical map information; wherein the current map information is information about a map point relative to a current position of the vehicle, and the historical map information is information about a map point relative to a historical position of the vehicle, and the map information includes at least one of angle information and lateral information, wherein the angle value in the angle information is a constant term of a first-order derivative of a model established according to the map point, and the lateral distance value in the lateral information is a constant term of the model;
[0140] A determination module 11 is used to determine the current jitter of the map point according to the current map information and the historical map information; wherein the jitter includes at least one of the angular jitter and the lateral jitter;
[0141] The judging module 12 is used to judge whether the current jitter value is greater than the first jitter threshold value; if so, the first control module 13 is triggered, and if not, the second control module 14 is triggered;
[0142] The first control module 13 is used to obtain target map information if the current positioning information of the vehicle is not received, and control the vehicle to travel according to the target map information, wherein the target map information is obtained by changing the current map information by a second jump threshold, and the first jump threshold is greater than the second jump threshold; if the current positioning information of the vehicle is received, obtain the position information of the vehicle in the map according to the current positioning information, and control the vehicle to travel according to the map information;
[0143] The second control module 14 is used to obtain the position information of the vehicle in the map according to the current positioning information if the current positioning information is received, and control the vehicle to travel according to the map information.
[0144] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the above-mentioned method for controlling vehicle driving.
[0145] Fig. 9 This is a structural diagram of a device for controlling vehicle travel provided by another embodiment of the present invention. This embodiment is based on the hardware perspective, such as Fig. 9 As shown, the device for controlling the vehicle driving includes:
[0146] A memory 20, used for storing computer programs;
[0147] The processor 21 is used to implement the steps of the method for controlling vehicle driving mentioned in the above embodiment when executing the computer program.
[0148] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0149] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method for controlling the driving of the vehicle disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the above-mentioned method for controlling the driving of the vehicle, etc.
[0150] In some embodiments, the device for controlling the driving of the vehicle may also include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0151] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the device for controlling the driving of a vehicle, and may include more or fewer components than those shown in the figure.
[0152] The device for controlling vehicle driving provided by an embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a method for controlling vehicle driving, with the same effect as above.
[0153] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0154] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0155] The computer-readable storage medium provided by the present invention includes the above-mentioned method for controlling vehicle driving, and the effect is the same as above.
[0156] The above is a detailed introduction to a method, device, equipment and medium for controlling vehicle driving provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0157] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for controlling vehicle travel, characterized in that: include: Acquire current map information and historical map information; wherein the current map information is information about a map point relative to a current position of the vehicle, and the historical map information is information about a map point relative to a historical position of the vehicle, and the map information includes at least one of angle information and lateral information, wherein the angle value in the angle information is a constant term of a first-order derivative of a model established according to the map point, and the lateral distance value in the lateral information is a constant term of the model; Determine the current jitter of the map point according to the current map information and the historical map information; wherein the jitter includes at least one of the angular jitter and the lateral jitter; In the case where it is detected that the current jitter amount is greater than the first jitter threshold, if the current positioning information of the vehicle is not received, then the target map information is obtained, and the vehicle is controlled to travel according to the target map information, wherein the target map information is obtained by changing the current map information by the second jitter threshold, and the first jitter threshold is greater than the second jitter threshold; if the current positioning information of the vehicle is received, then the position information of the vehicle in the map is obtained according to the current positioning information, and the vehicle is controlled to travel according to the map information; When it is detected that the current jitter amount is less than or equal to the first jitter threshold, if current positioning information is received, obtaining the position information of the vehicle in the map according to the current positioning information, and controlling the vehicle to travel according to the map information; Determining the first beat threshold includes: When the vehicle changes lanes, multiple historical map information is obtained; Get the difference of historical map information at each adjacent time; Obtaining a maximum difference from all the differences and determining the first jitter threshold according to the maximum difference; wherein the first jitter threshold is greater than the maximum difference; Determining the second beat threshold comprises: When the vehicle changes lanes, multiple historical map information is obtained; Get the difference of historical map information at each adjacent time; An average value of all the differences is obtained and the second jitter threshold is determined according to the average value; wherein the second jitter threshold is greater than the average value.
2. The method for controlling vehicle travel according to claim 1, characterized in that: Before controlling the vehicle to travel according to the target map information, the method further includes: Get the current map point and the current lane line detected by the visual sensor; Determine a first line according to the current map point and determine a second line according to the current lane line; Determining whether a distance between the first line and the second line is less than half of the width of the vehicle along the vehicle's travel direction; If so, the map point is determined to be abnormal; If not, the map point is determined to be normal and the process ends.
3. The method for controlling vehicle travel according to claim 2, characterized in that: Determining the model corresponding to the second line includes: In the case where the visual sensor detects a left lane line, determining a model corresponding to the second line according to a model corresponding to the left lane line; When the visual sensor detects the right lane, the model corresponding to the second line is determined according to the model corresponding to the right lane line.
4. The method for controlling vehicle travel according to claim 3, characterized in that: The step of judging whether the distance between the first line and the second line along the vehicle travel direction is less than half of the vehicle width comprises: Acquire a plurality of first target points on the first line along the vehicle travel direction, and acquire a distance value from each of the first target points to the second line; respectively determining whether the distance value from each of the first target points to the second line is less than half of the vehicle width; If so, determining the first target point whose distance value is less than half of the vehicle width is an abnormal map point; If not, the first target point whose distance value is greater than or equal to half of the vehicle width is determined to be a normal map point.
5. The method for controlling vehicle travel according to claim 4, characterized in that: The respectively determining whether the distance value from each of the first target points to the second line is less than half of the vehicle width comprises: Obtain the road type of the road on which the vehicle is located; wherein the road type includes the acceleration and deceleration lane type and the deceleration lane type; the road width of the acceleration and deceleration lane is a fixed value, and the road of the deceleration lane is in a widened state; If it is detected that the road type of the vehicle is an acceleration / deceleration lane type, determining whether the distance value from each of the first target points to the second line is less than half of the width of the vehicle; If it is detected that the road type of the vehicle is a deceleration lane type, obtain the remaining first target points after eliminating the second target points from all the first target points; determine whether the distance value from each remaining first target point to the second line is less than half the width of the vehicle; wherein the second target point is a map point used to characterize the lane change process.
6. The method for controlling vehicle travel according to claim 5, characterized in that: Determining the second target point includes: Acquire a third target point; wherein the third target point is a plurality of first target points on the first line corresponding to the road during and after the lane change; Acquire a fourth target point; wherein the fourth target point is the first target point corresponding to when the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirement; The second target point is obtained by eliminating the fourth target point from the third target point; Among them, the function value corresponding to the first line corresponding to the road after the lane change meets the preset requirement: ; in, represents the function corresponding to the first line; Indicates the width of the road after the lane change; is the adjustment parameter, which is a constant; Indicates the horizontal coordinate of the map point.
7. The method for controlling vehicle travel according to claim 1, characterized in that: Also includes: When it is detected that the current jitter amount is greater than the first jitter threshold, if the current positioning information of the vehicle is not received, the jitter limit flag is set, and it is continued to be determined whether the current positioning information of the vehicle is received; if the current positioning information is received, the jitter limit flag is canceled.
8. A device for controlling vehicle travel, characterized in that: include: an acquisition module, used to acquire current map information and historical map information; wherein the current map information is information about a map point relative to a current position of a vehicle, and the historical map information is information about a map point relative to a historical position of a vehicle, and the map information includes at least one of angle information and lateral information, wherein the angle value in the angle information is a constant term of a first-order derivative of a model established according to the map point, and the lateral distance value in the lateral information is a constant term of the model; A determination module, used to determine the current jitter of the map point according to the current map information and the historical map information; wherein the jitter includes at least one of the angular jitter and the lateral jitter; A judgment module, used to judge whether the current jitter amount is greater than a first jitter threshold; if so, trigger the first control module, if not, trigger the second control module; The first control module is used for obtaining target map information if the current positioning information of the vehicle is not received, and controlling the vehicle to travel according to the target map information, wherein the target map information is obtained by changing the current map information by a second jump threshold, and the first jump threshold is greater than the second jump threshold; if the current positioning information of the vehicle is received, obtaining the position information of the vehicle in the map according to the current positioning information, and controlling the vehicle to travel according to the map information; The second control module is used to obtain the position information of the vehicle in the map according to the current positioning information if the current positioning information is received, and control the vehicle to travel according to the map information; Determining the first beat threshold includes: When the vehicle changes lanes, multiple historical map information is obtained; Get the difference of historical map information at each adjacent time; Obtaining a maximum difference from all the differences and determining the first jitter threshold according to the maximum difference; wherein the first jitter threshold is greater than the maximum difference; Determining the second beat threshold comprises: When the vehicle changes lanes, multiple historical map information is obtained; Get the difference of historical map information at each adjacent time; An average value of all the differences is obtained and the second jitter threshold is determined according to the average value; wherein the second jitter threshold is greater than the average value.
9. A device for controlling vehicle travel, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the method for controlling vehicle driving as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling vehicle driving as described in any one of claims 1 to 7 are implemented.
