Odometer data online calibration method, device, equipment and medium
By calculating and optimizing the sub-residual function in the data window, the problem of odometer data calibration of poor GPS signals or fewer structural characteristics is solved, and high-precision odometer calibration is achieved, which improves the positioning and direction accuracy of autonomous driving. Spend.
Patent Information
- Application Number
- CN202410977201.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-08
AI Technical Summary
In sections where GPS signals are blocked or there are few structural features, it is difficult for the prior art to achieve high-precision online calibration of odometer data, affecting the accuracy of autonomous driving.
By determining whether the number of historical data combinations in the data window reaches the preset threshold, the sub-residual function is calculated, and the overall residual function is constructed based on these functions, the coefficient to be calibrated is used as the optimization variable for solving, the calibration coefficient is obtained, and the odometer is realized High-precision calibration of data.
On road sections with poor GPS signals or fewer structural characteristics, high-precision odometer calibration data can still be achieved, improving the positioning and directional accuracy of autonomous driving, and reducing dependence on additional hardware equipment.
Smart Images

Figure CN118915103A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of autonomous driving technology, and in particular to an odometer data online calibration method, device, equipment and medium. Background Art
[0002] Online calibration technology for odometer data is one of the core technologies in the field of autonomous driving. High-precision online calibration of odometer data is a prerequisite for realizing autonomous driving.
[0003] Therefore, how to improve the online calibration accuracy of odometer data is a research topic that requires continuous efforts in the field of autonomous driving. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the embodiments of the present disclosure provide a method, device, equipment and medium for online calibration of odometer data, which can still achieve high-precision odometer calibration data on sections where GPS signals are blocked, sections with fewer structural features, or sections that change frequently.
[0005] In a first aspect, an embodiment of the present disclosure provides an odometer data online calibration method, the method comprising:
[0006] Determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated;
[0007] If the number of historical data combinations in the data window reaches a preset threshold, a sub-residual function corresponding to each of the historical data combinations is calculated, where the sub-residual function is determined based on two test result data in the historical data combination and a coefficient to be calibrated;
[0008] Constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations;
[0009] The coefficients to be calibrated are used as optimization variables, and the overall residual function is solved to obtain the calibrated coefficients.
[0010] In a second aspect, the embodiment of the present disclosure further provides an odometer data online calibration device, the device comprising:
[0011] A determination module, used to determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated;
[0012] A calculation module, configured to calculate a sub-residual function corresponding to each of the historical data combinations if the number of historical data combinations in the data window reaches a preset threshold, wherein the sub-residual function is determined based on two detection result data in the historical data combination and a coefficient to be calibrated;
[0013] A construction module, used for constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations;
[0014] A solution module is used to solve the overall residual function by taking the coefficients to be calibrated as optimization variables to obtain calibrated coefficients.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the odometer data online calibration method as described above.
[0016] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the odometer data online calibration method as described above.
[0017] An online calibration method for odometer data provided by an embodiment of the present disclosure determines whether the number of historical data combinations in a data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, and each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, and the detection result data includes detection result data based on the odometer, and the detection quantity includes the detection quantity to be calibrated; if the number of historical data combinations in the data window reaches the preset threshold, a sub-residual function corresponding to each of the historical data combinations is calculated, and the sub-residual function is determined based on the two detection result data in the historical data combination and the coefficient to be calibrated; an overall residual function is constructed based on the sub-residual functions corresponding to each of the historical data combinations; the coefficient to be calibrated is used as an optimization variable, and the overall residual function is solved to obtain a technical means of a calibrated coefficient, so as to achieve the purpose of obtaining high-precision odometer calibration data on a road section where the GPS signal is blocked, on a road section with fewer structural features, or on a road section that changes frequently. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0019] Figure 1 It is a flow chart of an online calibration method of odometer data in an embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of a flow chart of a method for calibrating an odometer speed coefficient in an embodiment of the present disclosure;
[0021] Figure 3 It is a flow chart of a method for calibrating the front wheel turning angle coefficient of an odometer in an embodiment of the present disclosure;
[0022] Figure 4 It is a structural schematic diagram of an odometer data online calibration device in an embodiment of the present disclosure;
[0023] Figure 5 It is a structural schematic diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0025] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0026] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0027] Figure 1 1 is a flow chart of an odometer data online calibration method in an embodiment of the present disclosure. The method can be executed by an odometer data online calibration device, which can be implemented in software and / or hardware, and can be configured in an electronic device. Figure 1 As shown, the method may specifically include the following steps:
[0028] S110. Determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, and each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes odometer-based detection result data, and the detection quantity includes a detection quantity to be calibrated.
[0029] For example, the detection quantity may be vehicle speed, and the two detection result data for vehicle speed are respectively a first speed value output by an odometer and a second speed value determined based on satellite positioning data, and the first speed value and the second speed value at the same moment constitute a historical data combination.
[0030] The detection quantity may also be the front wheel turning angle of the vehicle, and the two detection result data for the front wheel turning angle of the vehicle are respectively the first front wheel turning angle in the satellite positioning data and the second front wheel turning angle obtained by recursion based on historical data.
[0031] For the odometer, the only quantities to be calibrated are the vehicle speed and the vehicle's front wheel angle.
[0032] S120. If the number of historical data combinations in the data window reaches a preset threshold, a sub-residual function corresponding to each of the historical data combinations is calculated, where the sub-residual function is determined based on two detection result data in the historical data combination and a coefficient to be calibrated.
[0033] In some embodiments, the detection quantity includes vehicle speed, the two detection result data include a first speed value output by an odometer and a second speed value determined based on satellite positioning data, the coefficient to be calibrated includes a speed coefficient of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes a calibrated speed coefficient of the odometer. Calculating the sub-residual function corresponding to each combination of the historical data includes:
[0034] The sub-residual function is determined by the following calculation formula:
[0035] Residual_vel[i]=gnss_vel[i]–kv_calib_online*odom_vel[i]
[0036] Among them, Residual_vel[i] represents the sub-residual function corresponding to the i-th historical data combination, gnss_vel[i] represents the second speed value in the i-th historical data combination, kv_calib_online represents the odometer speed coefficient to be calibrated, and odom_vel[i] represents the first speed value in the i-th historical data combination.
[0037] In other embodiments, the detection quantity includes the front wheel turning angle of the vehicle, the two detection result data include the first front wheel turning angle in the satellite positioning data and the second front wheel turning angle obtained recursively based on the historical data, the coefficient to be calibrated includes the first coefficient of the front wheel turning angle of the odometer to be calibrated and the second coefficient of the front wheel turning angle of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes the first coefficient of the front wheel turning angle of the calibrated odometer and the second coefficient of the front wheel turning angle of the calibrated odometer; the calculating of the sub-residual function corresponding to each combination of the historical data includes:
[0038] The sub-residual function is determined by the following calculation formula:
[0039] Residual_theta[i]=Func_theta_diff(theta_1[i]–theta_pred[i])
[0040] Wherein, if abs(x)<π, Func_theta_diff(x)=abs(x); if abs(x)>π, Func_theta_diff(x)=2×π–abs(x);
[0041] Residual_theta[i] represents the sub-residual function corresponding to historical data combination i, theta_1[i] represents the first front wheel turning angle in the satellite positioning data in historical data combination i, theta_pred[i] represents the second front wheel turning angle recursively obtained based on historical data in historical data combination i, and the second front wheel turning angle is determined based on the first coefficient of the front wheel turning angle of the odometer to be calibrated and the second coefficient of the front wheel turning angle of the odometer to be calibrated.
[0042] S130, constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations.
[0043] Exemplarily, the sum of the sub-residual functions corresponding to each of the historical data combinations is determined as the overall residual function, and when the overall residual function takes a minimum value, the value of the corresponding optimization variable is the final optimization value.
[0044] S140, using the coefficients to be calibrated as optimization variables, solving the overall residual function to obtain calibrated coefficients
[0045] In some embodiments, the sum of the sub-residual functions Residual_vel[i] corresponding to each historical data combination is determined as the overall residual function, and the odometer speed coefficient to be calibrated is used as the optimization variable. The overall residual function is solved by a nonlinear solution algorithm, so that the odometer speed coefficient value when the overall residual function takes the minimum value is the calibrated odometer speed coefficient.
[0046] In some embodiments, the sum of the sub-residual functions Residual_theta[i] corresponding to each historical data combination is determined as the overall residual function, and the first coefficient of the odometer front wheel angle and the second coefficient of the odometer front wheel angle are used as optimization variables. The overall residual function is solved by a nonlinear solution algorithm so that the first coefficient of the odometer front wheel angle and the second coefficient of the odometer front wheel angle when the overall residual function takes the minimum value are the calibrated first coefficient of the odometer front wheel angle and the calibrated second coefficient of the odometer front wheel angle.
[0047] The odometer data online calibration method provided in this embodiment obtains accurate odometer speed coefficient and front wheel steering coefficient by nonlinear optimization, thereby obtaining accurate odometer speed value and front wheel steering angle value, which helps to improve the accuracy of unmanned driving positioning and orientation.
[0048] For example, see Figure 2 The flowchart of a method for calibrating an odometer speed coefficient shown in FIG. 1 specifically includes the following steps:
[0049] S210: During vehicle driving, a first speed value of a current frame output by an odometer is obtained in real time according to a preset frequency, and a second speed value of the current frame is determined based on satellite positioning data.
[0050] The determining the second speed value of the current frame based on the satellite positioning data comprises:
[0051] Obtain the first east position, the first north position and the first timestamp in the previous frame of satellite positioning data, and the second east position, the second north position and the second timestamp in the current frame of satellite positioning data; in response to the current frame first speed value output by the odometer being not zero, calculate the first difference between the second timestamp and the first timestamp; if the first difference is greater than the first time difference threshold and less than the second time difference threshold, calculate the first direction difference between the second east position and the first east position, and the second direction difference between the second north position and the first north position; determine the second speed value v2 of the current frame by the following calculation formula:
[0052] v2=sqrt(east_diff*east_diff+north_diff*north_diff) / time_diff*
[0053] sign; wherein east_diff represents the first direction difference, north_diff represents the second direction difference, time_diff represents the first difference, and sign represents the first speed value of the current frame.
[0054] S220: Data window is updated.
[0055] Specifically, in response to the number of historical data combinations in the data window being equal to the preset threshold, the historical data combinations in the data window are cleared, and the first speed value of the current frame and the second speed value of the current frame are added to the data window as new data combinations based on preset rules.
[0056] In response to the number of historical data combinations in the data window being less than the preset threshold, the current frame first speed value and the current frame second speed value are added to the data window as a new data combination based on a preset rule.
[0057] The adding the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window based on a preset rule includes:
[0058] The first speed value of the current frame and the second speed value of the current frame are directly added to the data window as a new data combination; or, in response to the second speed value of the current frame being greater than the lower speed limit and less than the upper speed limit, the first speed value of the current frame and the second speed value of the current frame are added to the data window as a new data combination, wherein the lower speed limit is the product of the preset odometer speed coefficient lower limit threshold and the first speed value of the current frame, and the upper speed limit is the product of the preset odometer speed coefficient upper limit threshold and the first speed value of the current frame. By further limiting the second speed value of the current frame to be greater than the lower speed limit and less than the upper speed limit, it can play a role in filtering abnormal data, thereby ensuring data quality and further improving the final calibration accuracy.
[0059] S230: Calculate the odometer speed coefficient.
[0060] Specifically, the sum of the sub-residual functions Residual_vel[i] corresponding to each combination of historical data is determined as the overall residual function, and the odometer speed coefficient to be calibrated is used as the optimization variable. The overall residual function is solved by a nonlinear solution algorithm so that the odometer speed coefficient value when the overall residual function takes the minimum value is the calibrated odometer speed coefficient. A more accurate odometer speed value can be obtained by using the calibrated odometer speed coefficient: odom_vel_calib = kv_calib_online*odom_vel_original. odom_vel_calib represents the calibrated odometer speed value, odom_vel_original represents the original speed value output by the odometer, that is, the uncalibrated odometer speed value, and kv_calib_online represents the calibrated odometer speed coefficient.
[0061] S240, abnormality monitoring based on odometer speed coefficient.
[0062] Exemplarily, in response to a difference between the calibrated odometer speed coefficient and the offline calibrated odometer speed coefficient being greater than a preset deviation threshold, it is determined that the odometer state is an abnormal state.
[0063] Specifically, an offline calibration value of the odometer speed coefficient (kv_calib_offline) can be obtained through the offline calibration process, that is, the offline calibrated odometer speed coefficient. The offline calibration process is time-consuming, usually only calibrated once, and the offline calibrated odometer speed coefficient obtained is used in the subsequent use. This value may be inaccurate as the tire wears or the load changes. When the vehicle is driving, the absolute value of the deviation between the online calibration value of the odometer speed coefficient and the offline calibration value of the odometer speed coefficient is calculated kv_diff = abs (kv_calib_online-kv_calib_offline). When kv_diff> the set odometer speed coefficient deviation threshold, it can be judged that the odometer has an abnormal condition, which may be a tire blowout or slipping. In this way, the abnormal state of the odometer can be monitored online.
[0064] For example, see Figure 3 The flowchart of a method for calibrating the front wheel turning angle coefficient of an odometer shown in FIG. 1 specifically includes the following steps:
[0065] S310: During vehicle driving, a first front wheel steering angle in the current frame satellite positioning data is obtained in real time at a preset frequency, and a second front wheel steering angle is obtained recursively based on historical data.
[0066] Exemplarily, the recursively obtaining the second front wheel turning angle based on historical data includes:
[0067] Obtain a historical first front wheel turning angle in a previous frame of satellite positioning data and a first timestamp corresponding to the previous frame, as well as a second timestamp corresponding to the current frame of satellite positioning data; determine a difference between the second timestamp and the first timestamp as an interval between two adjacent frames; determine a heading change amount of the vehicle within the interval time; and determine a sum of the historical first front wheel turning angle and the heading change amount as a second front wheel turning angle obtained recursively based on historical data.
[0068] The determining the amount of change in the heading of the vehicle within the time interval comprises:
[0069] Obtain the historical speed value determined based on the odometer of the previous frame; determine the product of the historical speed value and the interval time as the distance moved by the vehicle during the interval time; determine the ratio of the distance moved by the vehicle during the interval time to the turning radius of the vehicle during the interval time as the heading change, wherein the turning radius R of the vehicle during the interval time is determined by the following calculation formula:
[0070] R=L / tan(odom_steering_angle_calib);
[0071] odom_steering_angle_calib=k0*odom_steering_angle_orig+k1;
[0072] Wherein, L is the vehicle wheelbase, odom_steering_angle_calib represents the front wheel steering angle of the vehicle in the previous frame, odom_steering_angle_orig represents the reference value of the front wheel steering angle output by the odometer in the previous frame, k0 represents the first coefficient of the front wheel steering angle of the odometer to be calibrated, and k1 represents the second coefficient of the front wheel steering angle of the odometer to be calibrated.
[0073] S320, data window updated.
[0074] Specifically, in response to the number of historical data combinations in the data window being equal to the preset threshold, the historical data combinations in the data window are cleared, and the first front wheel angle and the second front wheel angle are added to the data window as new data combinations based on preset rules; in response to the number of historical data combinations in the data window being less than the preset threshold, the first front wheel angle and the second front wheel angle are added to the data window as new data combinations based on preset rules.
[0075] The adding the first front wheel angle and the second front wheel angle as a new data combination to the data window based on a preset rule includes: adding the first front wheel angle and the second front wheel angle as a new data combination to the data window; or, in response to the second speed value of the current frame being greater than the lower speed limit and less than the upper speed limit, adding the first front wheel angle and the second front wheel angle as a new data combination to the data window. By further limiting the second speed value of the current frame to be greater than the lower speed limit and less than the upper speed limit, it is possible to filter out abnormal data, thereby ensuring data quality and further improving the final calibration accuracy.
[0076] Among them, the lower speed limit value is the product of the preset odometer speed coefficient lower limit threshold and the first speed value of the current frame, the upper speed limit value is the product of the preset odometer speed coefficient upper limit threshold and the first speed value of the current frame, the second speed value of the current frame is determined based on the satellite positioning data of the current frame, and the first speed value of the current frame is the speed value output by the odometer of the current frame.
[0077] S330: Calculate the odometer front wheel turning angle coefficient.
[0078] Specifically, the sum of the sub-residual functions Residual_theta[i] corresponding to each historical data combination is determined as the overall residual function, and the first coefficient of the odometer front wheel angle and the second coefficient of the odometer front wheel angle are used as optimization variables. The overall residual function is solved by a nonlinear solution algorithm, so that the first coefficient of the odometer front wheel angle and the second coefficient of the odometer front wheel angle when the overall residual function takes the minimum value are the calibrated first coefficient of the odometer front wheel angle and the calibrated second coefficient of the odometer front wheel angle.
[0079] A more accurate odometer front wheel angle can be obtained by using the calibrated odometer front wheel angle first coefficient and the calibrated odometer front wheel angle second coefficient: odom_steering_angle_calib=k0_calib_online*odom_steering_angle_original+k1_calib_online, odom_steering_angle_calib represents the more accurate odometer front wheel angle after calibration, k0_calib_online represents the calibrated odometer front wheel angle first coefficient, k1_calib_online represents the calibrated odometer front wheel angle second coefficient, and odom_steering_angle_original represents the front wheel angle output by the odometer.
[0080] S340, abnormal monitoring of the front wheel turning coefficient based on the odometer.
[0081] Specifically, a first absolute value of the difference between a calibrated first coefficient of the front wheel angle of the odometer and the first coefficient of the front wheel angle of the odometer calibrated offline is determined; and a second absolute value of the difference between a calibrated second coefficient of the front wheel angle of the odometer and the second coefficient of the front wheel angle of the odometer calibrated offline is determined; in response to the first absolute value being greater than a first front wheel coefficient deviation threshold, or the second absolute value being greater than a second front wheel coefficient deviation threshold, the odometer state is determined to be an abnormal state.
[0082] In other words, a set of offline calibration values of the front wheel steering coefficient (k0_calib_offline and k1_calib_offline) can be obtained through the offline calibration link. When the vehicle is driving, the deviation k0_diff between the online calibration value of the odometer front wheel steering coefficient and the offline calibration value of the odometer front wheel steering coefficient is calculated.
[0083] abs(k0_calib_online–k0_calib_offline) and k1_diff=abs(k1_calib_online–k1_calib_offline). When k0_diff is greater than the set odometer front wheel coefficient deviation threshold 1 or k1_diff is greater than the set odometer front wheel coefficient deviation threshold 2, it can be determined that the odometer front wheel steering angle has an abnormal condition, which may be due to an abnormal steering mechanism. In this way, the odometer abnormal state can be monitored online.
[0084] The online speed calibration method provided in this application can monitor odometer abnormalities, such as tire blowouts and slippage. The online calibration method of the odometer front wheel steering coefficient can monitor steering mechanism abnormalities, etc. The sensors involved in this solution have lower cost, higher calculation accuracy, more stable calculation results, lower calculation complexity, and higher calculation performance. No additional hardware equipment is required to monitor odometer abnormalities.
[0085] Figure 4 FIG. 1 is a schematic diagram of the structure of an online odometer data calibration device in an embodiment of the present disclosure. Figure 4 As shown: the device includes: a determination module 410, a calculation module 420, a construction module 430 and a solution module 440.
[0086] Among them, the determination module 410 is used to determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during the vehicle driving process, and each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, and the detection result data includes odometer-based detection result data, and the detection quantity includes a detection quantity to be calibrated; the calculation module 420 is used to calculate the sub-residual function corresponding to each of the historical data combinations if the number of historical data combinations in the data window reaches the preset threshold, and the sub-residual function is determined based on the two detection result data in the historical data combination and the coefficient to be calibrated; the construction module 430 is used to construct an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations; the solution module 440 is used to solve the overall residual function with the coefficient to be calibrated as the optimization variable to obtain the calibrated coefficient.
[0087] Exemplarily, the detection quantity includes vehicle speed, the two detection result data include a first speed value output by the odometer and a second speed value determined based on satellite positioning data, the coefficient to be calibrated includes a speed coefficient of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes a calibrated speed coefficient of the odometer. The calculation module 420 is specifically used to determine the sub-residual function by the following calculation formula:
[0088] Residual_vel[i]=gnss_vel[i]–kv_calib_online*odom_vel[i]
[0089] Among them, Residual_vel[i] represents the sub-residual function corresponding to the i-th historical data combination, gnss_vel[i] represents the second speed value in the i-th historical data combination, kv_calib_online represents the odometer speed coefficient to be calibrated, and odom_vel[i] represents the first speed value in the i-th historical data combination.
[0090] Furthermore, it also includes: a first acquisition module, used to acquire a first speed value of the current frame output by the odometer, and determine a second speed value of the current frame based on the satellite positioning data;
[0091] The first data window updating module is used for clearing the historical data combinations in the data window in response to the number of historical data combinations in the data window being equal to the preset threshold value, and adding the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window based on a preset rule; in response to the number of historical data combinations in the data window being less than the preset threshold value, adding the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window based on a preset rule.
[0092] Exemplarily, the acquisition module is specifically used to: acquire a first east position, a first north position, and a first timestamp in a previous frame of satellite positioning data, and a second east position, a second north position, and a second timestamp in a current frame of satellite positioning data;
[0093] In response to a first speed value of a current frame output by the odometer being not zero, calculating a first difference between the second timestamp and the first timestamp;
[0094] If the first difference is greater than a first time difference threshold and less than a second time difference threshold, calculating a first direction difference between the second east position and the first east position, and a second direction difference between the second north position and the first north position;
[0095] The second speed value v2 of the current frame is determined by the following calculation formula:
[0096] v2=sqrt(east_diff*east_diff+north_diff*north_diff) / time_diff *
[0097] sign;
[0098] Among them, east_diff represents the first direction difference, north_diff represents the second direction difference, time_diff represents the first difference, and sign represents the first speed value of the current frame.
[0099] The first data window update module is specifically used to: directly add the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window; or, in response to the second speed value of the current frame being greater than a lower speed limit value and less than an upper speed limit value, add the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window, wherein the lower speed limit value is the product of a preset odometer speed coefficient lower limit threshold value and the first speed value of the current frame, and the upper speed limit value is the product of a preset odometer speed coefficient upper limit threshold value and the first speed value of the current frame.
[0100] Furthermore, it also includes a first abnormality detection module for determining that the odometer state is an abnormal state in response to the difference between the calibrated odometer speed coefficient and the offline calibrated odometer speed coefficient being greater than a preset deviation threshold.
[0101] Exemplarily, the detection quantity includes the front wheel turning angle of the vehicle, the two detection result data include the first front wheel turning angle in the satellite positioning data and the second front wheel turning angle obtained by recursion based on historical data, the coefficient to be calibrated includes the first coefficient of the front wheel turning angle of the odometer to be calibrated and the second coefficient of the front wheel turning angle of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes the first coefficient of the front wheel turning angle of the calibrated odometer and the second coefficient of the front wheel turning angle of the calibrated odometer; the calculation module 420 is specifically used to: determine the sub-residual function by the following calculation formula:
[0102] Residual_theta[i]=Func_theta_diff(theta_1[i]–theta_pred[i])
[0103] Wherein, if abs(x)<π, Func_theta_diff(x)=abs(x); if abs(x)>π, Func_theta_diff(x)=2×π–abs(x);
[0104] Residual_theta[i] represents the sub-residual function corresponding to historical data combination i, theta_1[i] represents the first front wheel steering angle in the satellite positioning data in historical data combination i, and theta_pred[i] represents the second front wheel steering angle obtained recursively based on historical data in historical data combination i.
[0105] Furthermore, it also includes a second acquisition module, which is used to acquire the first front wheel turning angle in the satellite positioning data of the current frame, and recursively obtain the second front wheel turning angle based on historical data.
[0106] A second data window updating module is configured to clear the historical data combinations in the data window in response to the number of historical data combinations in the data window being equal to the preset threshold value, and add the first front wheel steering angle and the second front wheel steering angle as new data combinations to the data window based on preset rules; and to add the first front wheel steering angle and the second front wheel steering angle as new data combinations to the data window based on preset rules in response to the number of historical data combinations in the data window being less than the preset threshold value.
[0107] Furthermore, the second acquisition module includes: an acquisition unit, used to acquire the historical first front wheel turning angle in the previous frame of satellite positioning data and the first timestamp corresponding to the previous frame, and the second timestamp corresponding to the current frame of satellite positioning data; a first determination unit, used to determine the difference between the second timestamp and the first timestamp as the interval time between two adjacent frames; a second determination unit, used to determine the heading change of the vehicle within the interval time; and a third determination unit, used to determine the sum of the historical first front wheel turning angle and the heading change as the second front wheel turning angle obtained recursively based on historical data.
[0108] Furthermore, the second determination unit is specifically used to: obtain a historical speed value determined based on the odometer in the previous frame;
[0109] Determine the product of the historical speed value and the interval time as the distance moved by the vehicle within the interval time;
[0110] The ratio of the distance moved by the vehicle in the interval time to the turning radius of the vehicle in the interval time is determined as the heading change amount, wherein the turning radius R of the vehicle in the interval time is determined by the following calculation formula:
[0111] R=L / tan(odom_steering_angle_calib);
[0112] odom_steering_angle_calib=k0*odom_steering_angle_orig+k1;
[0113] Wherein, L is the vehicle wheelbase, odom_steering_angle_calib represents the front wheel steering angle of the vehicle in the previous frame, odom_steering_angle_orig represents the reference value of the front wheel steering angle output by the odometer in the previous frame, k0 represents the first coefficient of the front wheel steering angle of the odometer to be calibrated, and k1 represents the second coefficient of the front wheel steering angle of the odometer to be calibrated.
[0114] Furthermore, the second data window updating module is specifically used for: adding the first front wheel turning angle and the second front wheel turning angle as a new data combination to the data window;
[0115] Alternatively, in response to the second speed value of the current frame being greater than the lower speed limit value and less than the upper speed limit value, the first front wheel turning angle and the second front wheel turning angle are added to the data window as a new data combination, wherein the lower speed limit value is the product of a preset odometer speed coefficient lower limit threshold value and the first speed value of the current frame, the upper speed limit value is the product of a preset odometer speed coefficient upper limit threshold value and the first speed value of the current frame, the second speed value of the current frame is determined based on the satellite positioning data of the current frame, and the first speed value of the current frame is the speed value output by the odometer of the current frame.
[0116] Furthermore, it also includes a second abnormality detection module, which is used to determine a first absolute value of the difference between a calibrated first coefficient of the front wheel angle of the odometer and the first coefficient of the front wheel angle of the odometer calibrated offline; and determine a second absolute value of the difference between a calibrated second coefficient of the front wheel angle of the odometer and the second coefficient of the front wheel angle of the odometer calibrated offline; in response to the first absolute value being greater than a first front wheel coefficient deviation threshold, or the second absolute value being greater than a second front wheel coefficient deviation threshold, determine that the odometer state is an abnormal state.
[0117] The odometer data online calibration device provided in the embodiment of the present disclosure can execute the steps in the odometer data online calibration method provided in the method embodiment of the present disclosure, and the execution steps and beneficial effects are no longer repeated here.
[0118] Figure 5 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0119] like Figure 5As shown, the electronic device 500 may include a processing device 501, a ROM 502, a RAM 503, a bus 504, an input / output (I / O) interface 505, an input device 506, an output device 507, a storage device 508, and a communication device 509. The processing device (e.g., a central processing unit, a graphics processor, etc.) 501 can perform various appropriate actions and processes to implement the method of the embodiment described in the present disclosure according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage device 508 to the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the odometer data online calibration method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0121] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0122] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the method steps of the present application.
[0123] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] Solution 1: A method for online calibration of odometer data, the method comprising:
[0126] Determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated;
[0127] If the number of historical data combinations in the data window reaches a preset threshold, a sub-residual function corresponding to each of the historical data combinations is calculated, where the sub-residual function is determined based on two test result data in the historical data combination and a coefficient to be calibrated;
[0128] Constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations;
[0129] The coefficients to be calibrated are used as optimization variables, and the overall residual function is solved to obtain the calibrated coefficients.
[0130] Solution 2: According to the method of Solution 1, the detection amount includes vehicle speed, the two detection result data include a first speed value output by the odometer and a second speed value determined based on satellite positioning data, the coefficient to be calibrated includes a speed coefficient of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes a calibrated speed coefficient of the odometer;
[0131] The calculating of the sub-residual functions corresponding to each of the historical data combinations includes:
[0132] The sub-residual function is determined by the following calculation formula:
[0133] Residual_vel[i]=gnss_vel[i]–kv_calib_online*odom_vel[i]
[0134] Among them, Residual_vel[i] represents the sub-residual function corresponding to the i-th historical data combination, gnss_vel[i] represents the second speed value in the i-th historical data combination, kv_calib_online represents the odometer speed coefficient to be calibrated, and odom_vel[i] represents the first speed value in the i-th historical data combination.
[0135] Solution 3. The method according to Solution 2 further includes:
[0136] Obtain the first speed value of the current frame output by the odometer, and determine the second speed value of the current frame based on the satellite positioning data;
[0137] In response to the number of historical data combinations in the data window being equal to the preset threshold, clearing the historical data combinations in the data window, and adding the current frame first speed value and the current frame second speed value as new data combinations to the data window based on a preset rule;
[0138] In response to the number of historical data combinations in the data window being less than the preset threshold, the current frame first speed value and the current frame second speed value are added to the data window as a new data combination based on a preset rule.
[0139] Solution 4: According to the method of Solution 3, determining the second speed value of the current frame based on the satellite positioning data comprises:
[0140] Obtain the first east position, the first north position and the first timestamp in the previous frame of satellite positioning data, and the second east position, the second north position and the second timestamp in the current frame of satellite positioning data;
[0141] In response to a first speed value of a current frame output by the odometer being not zero, calculating a first difference between the second timestamp and the first timestamp;
[0142] If the first difference is greater than a first time difference threshold and less than a second time difference threshold, calculating a first direction difference between the second east position and the first east position, and a second direction difference between the second north position and the first north position;
[0143] The second speed value v2 of the current frame is determined by the following calculation formula:
[0144] v2=sqrt(east_diff*east_diff+north_diff*north_diff) / time_diff *
[0145] sign;
[0146] Among them, east_diff represents the first direction difference, north_diff represents the second direction difference, time_diff represents the first difference, and sign represents the first speed value of the current frame.
[0147] Solution 5, according to the method of Solution 3, adding the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window based on a preset rule, comprises:
[0148] directly adding the first speed value of the current frame and the second speed value of the current frame as a new data combination into the data window;
[0149] Alternatively, in response to the second speed value of the current frame being greater than the lower speed limit value and less than the upper speed limit value, the first speed value of the current frame and the second speed value of the current frame are added to the data window as a new data combination, wherein the lower speed limit value is the product of a preset odometer speed coefficient lower limit threshold value and the first speed value of the current frame, and the upper speed limit value is the product of a preset odometer speed coefficient upper limit threshold value and the first speed value of the current frame.
[0150] Solution 6. The method according to Solution 2 further includes:
[0151] In response to the difference between the calibrated odometer speed coefficient and the offline calibrated odometer speed coefficient being greater than a preset deviation threshold, it is determined that the odometer state is an abnormal state.
[0152] Solution 7. According to the method of Solution 1, the detection amount includes the front wheel turning angle of the vehicle, the two detection result data include the first front wheel turning angle in the satellite positioning data and the second front wheel turning angle obtained by recursion based on historical data, the coefficient to be calibrated includes the first coefficient of the front wheel turning angle of the odometer to be calibrated and the second coefficient of the front wheel turning angle of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes the first coefficient of the front wheel turning angle of the calibrated odometer and the second coefficient of the front wheel turning angle of the calibrated odometer;
[0153] The calculating of the sub-residual functions corresponding to each of the historical data combinations includes:
[0154] The sub-residual function is determined by the following calculation formula:
[0155] Residual_theta[i]=Func_theta_diff(theta_1[i]–theta_pred[i])
[0156] Wherein, if abs(x)<π, Func_theta_diff(x)=abs(x); if abs(x)>π, Func_theta_diff(x)=2×π–abs(x);
[0157] Residual_theta[i] represents the sub-residual function corresponding to historical data combination i, theta_1[i] represents the first front wheel steering angle in the satellite positioning data in historical data combination i, and theta_pred[i] represents the second front wheel steering angle obtained recursively based on historical data in historical data combination i.
[0158] Solution 8. The method according to Solution 7 further includes: obtaining a first front wheel turning angle in the satellite positioning data of the current frame, and recursively obtaining a second front wheel turning angle based on historical data;
[0159] In response to the number of historical data combinations in the data window being equal to the preset threshold, clearing the historical data combinations in the data window, and adding the first front wheel steering angle and the second front wheel steering angle as new data combinations to the data window based on a preset rule;
[0160] In response to the number of historical data combinations in the data window being less than the preset threshold, the first front wheel steering angle and the second front wheel steering angle are added as new data combinations to the data window based on a preset rule.
[0161] Solution 9. According to the method of Solution 8, the step of recursively obtaining the second front wheel turning angle based on historical data comprises:
[0162] Obtaining the historical first front wheel turning angle in the previous frame of satellite positioning data and the first timestamp corresponding to the previous frame, and the second timestamp corresponding to the current frame of satellite positioning data;
[0163] Determine the difference between the second timestamp and the first timestamp as the interval time between two adjacent frames;
[0164] determining an amount by which the vehicle's heading changes during the interval;
[0165] The sum of the historical first front wheel turning angle and the heading change is determined as a second front wheel turning angle obtained by recursion based on historical data.
[0166] Solution 10. According to the method of Solution 9, determining the amount of change in the heading of the vehicle within the time interval comprises:
[0167] Get the historical speed value determined based on the odometer for the previous frame;
[0168] Determine the product of the historical speed value and the interval time as the distance moved by the vehicle within the interval time;
[0169] The ratio of the distance moved by the vehicle in the interval time to the turning radius of the vehicle in the interval time is determined as the heading change amount, wherein the turning radius R of the vehicle in the interval time is determined by the following calculation formula:
[0170] R=L / tan(odom_steering_angle_calib);
[0171] odom_steering_angle_calib=k0*odom_steering_angle_orig+k1;
[0172] Wherein, L is the vehicle wheelbase, odom_steering_angle_calib represents the front wheel steering angle of the vehicle in the previous frame, odom_steering_angle_orig represents the reference value of the front wheel steering angle output by the odometer in the previous frame, k0 represents the first coefficient of the front wheel steering angle of the odometer to be calibrated, and k1 represents the second coefficient of the front wheel steering angle of the odometer to be calibrated.
[0173] Solution 11: According to the method of Solution 8, the step of adding the first front wheel steering angle and the second front wheel steering angle as a new data combination to the data window based on a preset rule comprises:
[0174] adding the first front wheel turning angle and the second front wheel turning angle as a new data combination to the data window;
[0175] Alternatively, in response to the second speed value of the current frame being greater than the lower speed limit value and less than the upper speed limit value, the first front wheel turning angle and the second front wheel turning angle are added to the data window as a new data combination, wherein the lower speed limit value is the product of a preset odometer speed coefficient lower limit threshold value and the first speed value of the current frame, the upper speed limit value is the product of a preset odometer speed coefficient upper limit threshold value and the first speed value of the current frame, the second speed value of the current frame is determined based on the satellite positioning data of the current frame, and the first speed value of the current frame is the speed value output by the odometer of the current frame.
[0176] Solution 12. The method according to Solution 7 further includes:
[0177] Determine a first absolute value of the difference between a calibrated odometer front wheel angle first coefficient and an offline calibrated odometer front wheel angle first coefficient; and determine a second absolute value of the difference between a calibrated odometer front wheel angle second coefficient and an offline calibrated odometer front wheel angle second coefficient;
[0178] In response to the first absolute value being greater than a first front wheel coefficient deviation threshold, or the second absolute value being greater than a second front wheel coefficient deviation threshold, it is determined that the odometer state is in an abnormal state.
[0179] Solution 13: An odometer data online calibration device, comprising:
[0180] A determination module, used to determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated;
[0181] A calculation module, configured to calculate a sub-residual function corresponding to each of the historical data combinations if the number of historical data combinations in the data window reaches a preset threshold, wherein the sub-residual function is determined based on two detection result data in the historical data combination and a coefficient to be calibrated;
[0182] A construction module, used for constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations;
[0183] A solution module is used to solve the overall residual function by taking the coefficients to be calibrated as optimization variables to obtain calibrated coefficients.
[0184] Solution 14. An electronic device, comprising:
[0185] one or more processors;
[0186] A storage device for storing one or more programs;
[0187] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of schemes 1-12.
[0188] Option 15. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any one of Options 1-12.
[0189] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
Claims
1. A method for online calibration of odometer data, characterized in that: include: Determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated; If the number of historical data combinations in the data window reaches a preset threshold, a sub-residual function corresponding to each of the historical data combinations is calculated, where the sub-residual function is determined based on two test result data in the historical data combination and a coefficient to be calibrated; Constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations; The coefficients to be calibrated are used as optimization variables, and the overall residual function is solved to obtain the calibrated coefficients.
2. The method according to claim 1, characterized in that The detection amount includes a vehicle speed, the two detection result data include a first speed value output by the odometer and a second speed value determined based on satellite positioning data, the coefficient to be calibrated includes a speed coefficient of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes a calibrated speed coefficient of the odometer; The calculating of the sub-residual functions corresponding to each of the historical data combinations includes: The sub-residual function is determined by the following calculation formula: Residual_vel[i]=gnss_vel[i]–kv_calib_online*odom_vel[i] Among them, Residual_vel[i] represents the sub-residual function corresponding to the i-th historical data combination, gnss_vel[i] represents the second speed value in the i-th historical data combination, kv_calib_online represents the odometer speed coefficient to be calibrated, and odom_vel[i] represents the first speed value in the i-th historical data combination.
3. The method according to claim 2, characterized in that Also includes: Obtain the first speed value of the current frame output by the odometer, and determine the second speed value of the current frame based on the satellite positioning data; In response to the number of historical data combinations in the data window being equal to the preset threshold, clearing the historical data combinations in the data window, and adding the current frame first speed value and the current frame second speed value as new data combinations to the data window based on a preset rule; In response to the number of historical data combinations in the data window being less than the preset threshold, the current frame first speed value and the current frame second speed value are added to the data window as a new data combination based on a preset rule.
4. The method according to claim 3, characterized in that The determining the second speed value of the current frame based on the satellite positioning data comprises: Obtain the first east position, the first north position and the first timestamp in the previous frame of satellite positioning data, and the second east position, the second north position and the second timestamp in the current frame of satellite positioning data; In response to a first speed value of a current frame output by the odometer being not zero, calculating a first difference between the second timestamp and the first timestamp; If the first difference is greater than a first time difference threshold and less than a second time difference threshold, calculating a first direction difference between the second east position and the first east position, and a second direction difference between the second north position and the first north position; The second speed value v2 of the current frame is determined by the following calculation formula: v2=sqrt(east_diff*east_diff+north_diff*north_diff) / time_diff* sign; Among them, east_diff represents the first direction difference, north_diff represents the second direction difference, time_diff represents the first difference, and sign represents the first speed value of the current frame.
5. The method according to claim 3, characterized in that: The adding the first speed value of the current frame and the second speed value of the current frame as a new data combination to the data window based on a preset rule includes: directly adding the first speed value of the current frame and the second speed value of the current frame as a new data combination into the data window; Alternatively, in response to the second speed value of the current frame being greater than the lower speed limit value and less than the upper speed limit value, the first speed value of the current frame and the second speed value of the current frame are added to the data window as a new data combination, wherein the lower speed limit value is the product of a preset odometer speed coefficient lower limit threshold value and the first speed value of the current frame, and the upper speed limit value is the product of a preset odometer speed coefficient upper limit threshold value and the first speed value of the current frame.
6. The method according to claim 2, characterized in that Also includes: In response to the difference between the calibrated odometer speed coefficient and the offline calibrated odometer speed coefficient being greater than a preset deviation threshold, it is determined that the odometer state is an abnormal state.
7. The method according to claim 1, characterized in that The detection quantity includes the front wheel turning angle of the vehicle, the two detection result data include the first front wheel turning angle in the satellite positioning data and the second front wheel turning angle obtained by recursion based on the historical data, the coefficient to be calibrated includes the first coefficient of the front wheel turning angle of the odometer to be calibrated and the second coefficient of the front wheel turning angle of the odometer to be calibrated, and correspondingly, the calibrated coefficient includes the first coefficient of the front wheel turning angle of the calibrated odometer and the second coefficient of the front wheel turning angle of the calibrated odometer; The calculating of the sub-residual functions corresponding to each of the historical data combinations includes: The sub-residual function is determined by the following calculation formula: Residual_theta[i]=Func_theta_diff(theta_1[i]–theta_pred[i]) Wherein, if abs(x)<π, Func_theta_diff(x)=abs(x); if abs(x)>π, Func_theta_diff(x)=2×π–abs(x); Residual_theta[i] represents the sub-residual function corresponding to historical data combination i, theta_1[i] represents the first front wheel steering angle in the satellite positioning data in historical data combination i, and theta_pred[i] represents the second front wheel steering angle obtained recursively based on historical data in historical data combination i.
8. An odometer data online calibration device, characterized in that: include: A determination module, used to determine whether the number of historical data combinations in the data window reaches a preset threshold, wherein the historical data combinations are detected in real time during vehicle driving, each of the historical data combinations includes two detection result data for the same detection quantity at the same time determined by different detection methods, the detection result data includes detection result data based on an odometer, and the detection quantity includes a detection quantity to be calibrated; A calculation module, configured to calculate a sub-residual function corresponding to each of the historical data combinations if the number of historical data combinations in the data window reaches a preset threshold, wherein the sub-residual function is determined based on two detection result data in the historical data combination and a coefficient to be calibrated; A construction module, used for constructing an overall residual function based on the sub-residual functions corresponding to each of the historical data combinations; A solution module is used to solve the overall residual function by taking the coefficients to be calibrated as optimization variables to obtain calibrated coefficients.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
