Deviation detection method and related device

By acquiring the rotation angle data of the vehicle's left and right travel modules and calculating the degree of lateral deviation, the problem of low accuracy in deviation detection in existing technologies is solved, achieving high-precision deviation detection, simplifying the detection process and improving practicality.

CN121464321APending Publication Date: 2026-02-03YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480035534.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

Existing technologies have low accuracy in detecting vehicle deviation, resulting in inaccurate correction forces that may cause safety issues. Furthermore, they rely on external signals or intelligent driving devices, making them less practical.

Method used

By acquiring the rotation angle data of the left and right driving modules of the vehicle, the degree of lateral deviation is calculated. Using the angle difference and speed information of the left and right driving modules, the deviation of the vehicle can be directly analyzed, avoiding reliance on external coordinates and intelligent driving equipment.

Benefits of technology

It improves the accuracy and precision of deviation detection, simplifies the detection process, reduces the impact of external environment and equipment precision errors, and has high practicality and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121464321A_ABST
    Figure CN121464321A_ABST
Patent Text Reader

Abstract

A deviation detection method comprises: acquiring first accumulated angle data and second accumulated angle data, the first accumulated angle data being angle data of rotation of a left-side traveling module (101) of a vehicle (100) within a first duration, the second accumulated angle data being angle data of rotation of a right-side traveling module (102) of the vehicle (100) within the first duration, and the second accumulated angle data being angle data of rotation of the right-side traveling module (102) of the vehicle (100) within the first duration, the first accumulated angle data being angle data of rotation of the left-side traveling module (101) of the vehicle (100) within the first duration; the vehicle (100) runs in a straight line; according to the first accumulated angle data and the second accumulated angle data, the transverse deviation degree under the condition that the vehicle (100) linearly runs for the first duration is determined, and the transverse deviation degree is related to the difference value between the first accumulated angle data and the second accumulated angle data. According to the invention, the transverse deviation degree of the vehicle can be determined according to the rotation angle data of the traveling modules (101, 102) on the left and right sides of the vehicle (100), the transverse deviation degree of the vehicle (100) can be directly analyzed from a deviation generation scene, and the detection precision and accuracy of the transverse deviation degree can be greatly improved. The method does not need to obtain the coordinates of the starting position and the ending position of the straight driving of the vehicle (100), does not depend on a lane line and intelligent driving equipment, can conveniently and quickly determine the transverse deviation degree, and has relatively high practicability and compatibility. A processing apparatus (103, 40), a computing device (50), a vehicle (100), a computer readable storage medium and a computer program product are also disclosed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle control, in particular to a deviation detection method and related device. BACKGROUND

[0002] Due to factors such as production process assembly, incorrect four-wheel positioning parameters, tire differences, and tire wear during use, the vehicle will still deviate to the left or right side when driving straight on a flat road while keeping the steering wheel still, that is, the vehicle deviates. When the vehicle deviates, the degree of deviation needs to be detected accurately and timely. When the accuracy of the scheme for detecting the degree of deviation is low, it may lead to excessive or insufficient correction when correcting the deviation subsequently, which cannot accurately and quickly solve the problem of vehicle deviation, resulting in poor user experience and easily causing safety problems.

[0003] In some schemes, the vehicle can obtain the horizontal and vertical coordinates of the starting position and the ending position of straight driving through an external signal emitter or a global positioning system (GPS) positioning, and calculate the horizontal deviation degree through the coordinate difference. The accuracy of the coordinate position of the vehicle obtained by this scheme is poor, and the horizontal deviation degree calculated is not accurate enough.

[0004] In other schemes, the vehicle obtains the starting position coordinates and ending position coordinates of straight driving or even the driving process route through new technologies combined with intelligent driving, such as laser radar, vehicle-mounted camera, visual scheme, fusion perception, etc., and calculates the horizontal deviation degree based on this. However, this scheme relies on automatic driving equipment and function algorithms, and needs clear lane lines on site to accurately identify, which has low practicality.

[0005] How to improve the accuracy of the determined horizontal deviation degree is a technical problem to be solved at present. SUMMARY

[0006] The present application provides a deviation detection method and related device, which can determine the horizontal deviation degree of the vehicle according to the angle data of the left and right travel modules, improve the accuracy and precision of the determined horizontal deviation degree, and has high practicality and compatibility without relying on lane lines and intelligent driving equipment.

[0007] In a first aspect, the application provides a deviation detection method, which comprises obtaining first cumulative angle data and second cumulative angle data, and determining a lateral deviation degree of the vehicle in a case of straight driving for a first time length according to the first cumulative angle data and the second cumulative angle data. The first cumulative angle data is the angle data of the left driving module of the vehicle in the first time length, the second cumulative angle data is the angle data of the right driving module of the vehicle in the first time length, and the lateral deviation degree is related to the difference between the first cumulative angle data and the second cumulative angle data. In the first time length, the vehicle drives straight.

[0008] When the vehicle deviates, the angle data of the left driving module and the right driving module of the vehicle will present corresponding characteristics. For example, when the vehicle has left and right tire differences, the angle of the left driving module may be greatly different from the angle of the right driving module, thereby causing the vehicle to deviate to one side of the vehicle in the case of a centered steering wheel. For example, in an ideal case, the angle data of the left driving module and the angle data of the right driving module are consistent when the vehicle drives straight for a period of time. Conversely, if the angle data of the two is inconsistent, or the difference between the angle data of the two reaches a threshold, it indicates that the vehicle may have deviated to one side.

[0009] By collecting the angle data of the left driving module and the angle data of the right driving module of the vehicle in a period of time, the application can directly analyze the lateral deviation degree of the vehicle from the generation scene of the deviation, which can significantly reduce the interference of external factors such as the accuracy error of the external environment and the perception device on the deviation detection, and greatly improve the detection accuracy and accuracy of the lateral deviation degree.

[0010] Moreover, the application does not need to obtain the coordinates of the starting position and the ending position of the straight driving of the vehicle, and does not depend on the lane line and the intelligent driving device, so that the lateral deviation degree can be determined conveniently and quickly, and has high practicability and compatibility.

[0011] In a possible implementation of the first aspect, the left driving module comprises a left motor, the right driving module comprises a right motor, the left motor is used to drive the left wheel of the vehicle to rotate, the right motor is used to drive the right wheel of the vehicle to rotate, and / or the left driving module comprises a left wheel, and the right driving module comprises a right wheel.

[0012] The application can obtain the angle data of the left motor rotation in the first time length and the angle data of the right motor rotation in the first time length, and then determine the lateral deviation degree, which can improve the accuracy and precision of determining the lateral deviation degree. The application can also obtain the angle data of the left wheel rotation in the first time length and the angle data of the right wheel rotation in the first time length, and then determine the lateral deviation degree. In this way, for non-electric vehicles such as fuel vehicles, the application can also determine the lateral deviation degree of the vehicle, which has high practicability and compatibility.

[0013] In another possible implementation of the first aspect, in the first time length, the first vehicle travels at a first speed, and the lateral deviation degree of the vehicle in the case of traveling in a straight line for the first time length is determined according to the first cumulative angle data and the second cumulative angle data, including determining the lateral deviation degree of the vehicle in the case of traveling in a straight line at the first speed for the first time length according to the first angle difference and the first speed. Wherein the first angle difference is the difference between the first cumulative angle data and the second cumulative angle data, the lateral deviation degree is positively correlated with the first angle difference, and the lateral deviation degree is correlated with the first speed.

[0014] Since the speed of the vehicle will affect the lateral deviation degree of the vehicle, the application considers the speed of the vehicle when determining the lateral deviation degree, which can improve the accuracy and precision of the determined lateral deviation degree.

[0015] In another possible implementation of the first aspect, the lateral deviation degree of the vehicle in the case of traveling in a straight line at the first speed for the first time length is determined according to the first angle difference and the first speed, including obtaining a first ratio according to the first angle difference, and determining the lateral deviation degree of the vehicle in the case of traveling in a straight line at the first speed for the first time length according to the first ratio, the first speed and the first corresponding relationship data. Wherein the first ratio is the ratio of the first angle difference to the total cumulative angle data of the vehicle in the first time length, and the total cumulative angle data of the vehicle in the first time length is related to the first cumulative angle data and the second cumulative angle data. The first corresponding relationship data is used to describe the mapping relationship between the ratio of the angle difference and the total cumulative angle data of the vehicle, the speed of the vehicle, and the lateral deviation degree of the vehicle, the angle difference is the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle, and the total cumulative angle data of the vehicle is related to the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle.

[0016] The application can map the lateral deviation degree of the vehicle when the vehicle travels in a straight line according to the ratio between the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, thereby improving the accuracy and precision of determining the lateral deviation degree. Moreover, the application does not depend on lane lines and intelligent driving equipment, and can conveniently and quickly determine the lateral deviation degree, thereby having high practicability and compatibility.

[0017] In a further possible implementation of the first aspect, the left traveling module comprises a left motor, and the right traveling module comprises a right motor, and the method further comprises determining a second ratio. The second ratio is a ratio between the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle when the vehicle is in a non-deviation state.

[0018] Due to tire wear and other factors, the ratio between the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle when the vehicle is in a non-deviation state may not be 0. Therefore, the application needs to determine the ratio between the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle when the vehicle is in a non-deviation state, i.e., the second ratio.

[0019] Further, the application determines the second ratio, and removes the influence of the second ratio on the lateral deviation degree of the vehicle when subsequently determining the lateral deviation degree of the vehicle, thereby improving the accuracy and precision of the determined lateral deviation degree.

[0020] In a further possible implementation of the first aspect, determining the lateral deviation degree of the vehicle when the vehicle travels in a straight line at the first speed for the first time length according to the first ratio, the first speed and the first corresponding relationship data comprises determining the lateral deviation degree of the vehicle when the vehicle travels in a straight line at the first speed for the first time length according to the first ratio, the second ratio, the first speed and the first corresponding relationship data.

[0021] In the above implementation, the application removes the influence of the second ratio on the lateral deviation degree of the vehicle, thereby improving the accuracy and precision of the determined lateral deviation degree.

[0022] In a further possible implementation form of the first aspect, determining the lateral deviation degree of the vehicle under the condition that the vehicle travels straight at the first speed for the first time length according to the first angle difference and the first speed comprises obtaining a third ratio according to the first angle difference, and determining the lateral deviation degree of the vehicle under the condition that the vehicle travels straight at the first speed for the first time length according to the third ratio, the first speed and second corresponding relationship data. The third ratio is a ratio of the first angle difference to a displacement of the vehicle traveling straight in the first time length. The second corresponding relationship data is used to describe a mapping relationship between a ratio of an angle difference to a displacement of the vehicle traveling straight, a speed of the vehicle, and a lateral deviation degree of the vehicle. The angle difference is a difference between an angle data of the left traveling module of the vehicle and an angle data of the right traveling module of the vehicle.

[0023] In the above implementation form, the lateral deviation degree of the vehicle when traveling straight can be mapped according to the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the displacement of the vehicle traveling straight, so that the accuracy and precision of determining the lateral deviation degree can be improved. Moreover, the application does not depend on lane lines and intelligent driving devices, and the lateral deviation degree can be determined conveniently and quickly, so that the application has high practicability and compatibility.

[0024] In a further possible implementation form of the first aspect, determining the lateral deviation degree of the vehicle under the condition that the vehicle travels straight at the first speed for the first time length according to the first angle difference and the first speed comprises obtaining a fourth ratio according to the first angle difference, and determining the lateral deviation degree of the vehicle under the condition that the vehicle travels straight at the first speed for the first time length according to the fourth ratio, the first speed and third corresponding relationship data. The fourth ratio is a ratio of the first angle difference to the first time length. The third corresponding relationship data is used to describe a mapping relationship between a ratio of an angle difference to a time length of the vehicle traveling straight, a speed of the vehicle, and a lateral deviation degree of the vehicle. The angle difference is a difference between an angle data of the left traveling module of the vehicle and an angle data of the right traveling module of the vehicle.

[0025] In the above implementation form, the lateral deviation degree of the vehicle when traveling straight can be mapped according to the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the time length of the vehicle traveling straight, so that the accuracy and precision of determining the lateral deviation degree can be improved. Moreover, the application does not depend on lane lines and intelligent driving devices, and the lateral deviation degree can be determined conveniently and quickly, so that the application has high practicability and compatibility.

[0026] In a further possible implementation form of the first aspect, the left traveling module comprises a left motor, and the right traveling module comprises a right motor, and the first cumulative angle data and the second cumulative angle data are obtained by obtaining first rotation speed data of the left motor and second rotation speed data of the right motor, and the first cumulative angle data is obtained according to the first rotation speed data, and the second cumulative angle data is obtained according to the second rotation speed data.

[0027] In the above implementation form, the angle data of the motor rotation can be obtained according to the rotation speed data of the motor.

[0028] In a further possible implementation form of the first aspect, the left traveling module comprises a left motor, and the right traveling module comprises a right motor, and the first cumulative angle data and the second cumulative angle data are obtained by obtaining first rotation speed data of the left motor and second rotation speed data of the right motor, and the first cumulative angle data is obtained according to the first rotation speed data, and the second cumulative angle data is obtained according to the second rotation speed data.

[0029] In the above implementation form, the first cumulative angle data and the second cumulative angle data can be obtained by the resolver sensor, which can improve the accuracy of the difference between the first cumulative angle data and the second cumulative angle data, and is beneficial to subsequently improving the accuracy and precision of the determined lateral deviation degree.

[0030] In a further possible implementation form of the first aspect, the left traveling module comprises a left wheel, and the right traveling module comprises a right wheel, and the first cumulative angle data and the second cumulative angle data are obtained by obtaining third rotation speed data of the left wheel and fourth rotation speed data of the right wheel, and the first cumulative angle data is obtained according to the third rotation speed data, and the second cumulative angle data is obtained according to the fourth rotation speed data.

[0031] In the above implementation form, the angle data of the wheel rotation can be obtained according to the rotation speed data of the wheel.

[0032] In a further possible implementation form of the first aspect, the left traveling module comprises a left motor, and the right traveling module comprises a right motor, and the method further comprises adjusting the output torque of the left motor and / or the output torque of the right motor according to the lateral deviation degree when the vehicle travels in a straight line for a first time length, so that the lateral deviation degree when the vehicle travels in a straight line tends to 0.

[0033] In the above implementation form, the determined lateral deviation degree can be used for deviation correction, which improves the precision of deviation correction, accurately and quickly solves the deviation problem of the vehicle, reduces the influence of the deviation degree of the vehicle on the driving of the vehicle, and improves the user experience.

[0034] In a second aspect, the present application provides a processing device, comprising an obtaining unit configured to obtain first cumulative angle data and second cumulative angle data. The first cumulative angle data is angle data of a left traveling module of a vehicle rotating in a first time period, and the second cumulative angle data is angle data of a right traveling module of the vehicle rotating in the first time period. In the first time period, the vehicle travels in a straight line. The processing device further comprises a processing unit configured to determine a lateral deviation degree of the vehicle in the first time period of straight traveling according to the first cumulative angle data and the second cumulative angle data. The lateral deviation degree is related to a difference between the first cumulative angle data and the second cumulative angle data.

[0035] In a possible implementation of the second aspect, the left traveling module comprises a left motor configured to drive a left wheel of the vehicle to rotate, and the right traveling module comprises a right motor configured to drive a right wheel of the vehicle to rotate. Alternatively or additionally, the left traveling module comprises the left wheel, and the right traveling module comprises the right wheel.

[0036] In another possible implementation of the second aspect, in the first time period, the vehicle travels at a first speed. The processing unit is further configured to determine the lateral deviation degree of the vehicle in the first time period of straight traveling at the first speed according to the first angle difference and the first speed. The first angle difference is a difference between the first cumulative angle data and the second cumulative angle data. The lateral deviation degree is positively related to the first angle difference, and the lateral deviation degree is related to the first speed.

[0037] In another possible implementation of the second aspect, the processing unit is further configured to obtain a first ratio according to the first angle difference, and determine the lateral deviation degree of the vehicle in the first time period of straight traveling at the first speed according to the first ratio, the first speed and first corresponding relationship data. The first ratio is a ratio of the first angle difference to total cumulative angle data of the vehicle in the first time period. The total cumulative angle data of the vehicle in the first time period is related to the first cumulative angle data and the second cumulative angle data. The first corresponding relationship data is used to describe a mapping relationship between a ratio of an angle difference to total cumulative angle data of the vehicle and a speed of the vehicle, and a lateral deviation degree of the vehicle. The angle difference is a difference between angle data of the left traveling module of the vehicle rotating and angle data of the right traveling module of the vehicle rotating. The total cumulative angle data of the vehicle is related to the angle data of the left traveling module of the vehicle rotating and the angle data of the right traveling module of the vehicle rotating.

[0038] In a further possible implementation form of the second aspect, the left traveling module comprises a left motor, the right traveling module comprises a right motor, and the processing unit is further configured to determine a second ratio. The second ratio is a ratio of a difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total accumulated angle data of the vehicle when the vehicle is in the non-deviation state.

[0039] In a further possible implementation form of the second aspect, the processing unit is further configured to determine the lateral deviation degree of the vehicle in the case of the first speed and the first time length of straight-line driving according to the first ratio, the second ratio, the first speed, and the first corresponding relationship data.

[0040] In a further possible implementation form of the second aspect, the processing unit is further configured to obtain a third ratio according to the first angle difference, and determine the lateral deviation degree of the vehicle in the case of the first speed and the first time length of straight-line driving according to the third ratio, the first speed, and second corresponding relationship data. The third ratio is a ratio of the first angle difference and the displacement of the vehicle in the first time length of straight-line driving. The second corresponding relationship data is used to describe a mapping relationship between a ratio of an angle difference and a displacement of the vehicle in straight-line driving, a speed of the vehicle, and the lateral deviation degree of the vehicle. The angle difference is a difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle.

[0041] In a further possible implementation form of the second aspect, the processing unit is further configured to obtain a fourth ratio according to the first angle difference, and determine the lateral deviation degree of the vehicle in the case of the first speed and the first time length of straight-line driving according to the fourth ratio, the first speed, and third corresponding relationship data. The fourth ratio is a ratio of the first angle difference and the first time length. The third corresponding relationship data is used to describe a mapping relationship between a ratio of an angle difference and a time length of the vehicle in straight-line driving, a speed of the vehicle, and the lateral deviation degree of the vehicle. The angle difference is a difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle.

[0042] In a further possible implementation form of the second aspect, the left traveling module comprises a left motor, the right traveling module comprises a right motor, and the acquisition unit is further configured to acquire first rotation speed data of the left motor and second rotation speed data of the right motor. The processing unit is further configured to obtain the first accumulated angle data according to the first rotation speed data, and obtain the second accumulated angle data according to the second rotation speed data.

[0043] In a further possible implementation form of the second aspect, the left traveling module comprises a left motor, the right traveling module comprises a right motor, and the acquisition unit is further configured to acquire the first accumulated angle data through a first rotary transformer sensor, and acquire the second accumulated angle data through a second rotary transformer sensor.

[0044] In a further possible implementation form of the second aspect, the left traveling module comprises a left wheel, the right traveling module comprises a right wheel, and the obtaining unit is further configured to obtain third rotation speed data of the left wheel and fourth rotation speed data of the right wheel. The processing unit is further configured to obtain first cumulative angle data according to the third rotation speed data and second cumulative angle data according to the fourth rotation speed data.

[0045] In a further possible implementation form of the second aspect, the left traveling module comprises a left motor, the right traveling module comprises a right motor, and the processing unit is further configured to adjust an output torque of the left motor and / or an output torque of the right motor according to the lateral deviation degree of the vehicle in the case of straight driving for the first time length, so that the lateral deviation degree of the vehicle in the case of straight driving tends to be close to 0.

[0046] In a third aspect, an embodiment of the present application provides a computing device, comprising a processor and a memory, the memory storing a program, and the processor executing the program stored in the memory, so that the computing device implements the method described in any one of the preceding first aspect.

[0047] In a fourth aspect, the present application provides a vehicle, comprising the preceding processing device or the preceding computing device, and the vehicle is configured to implement the method described in any one of the preceding first aspect.

[0048] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, configured to store a computer program, the computer program comprising instructions for executing the method described in any one of the preceding first aspect.

[0049] In a sixth aspect, the present application provides a computer program product, comprising computer instructions, when the computer instructions are executed by a processing device, a computing device or a processor, so that the method described in any one of the preceding first aspect is implemented.

[0050] The solutions provided by the second aspect to the sixth aspect above are used to implement or cooperate to implement the method provided in the first aspect, and thus can achieve the same or corresponding beneficial effects as the corresponding method in the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0051] The drawings needed in the following embodiment description will be briefly introduced.

[0052] Figure 1A is a schematic view of a vehicle with dual-motor rear-wheel independent drive provided by an embodiment of the present application;

[0053] Figure 1Bis a schematic diagram of a vehicle with dual-motor front-wheel independent drive provided by an embodiment of the present application;

[0054] Figure 1C is a schematic diagram of a vehicle with four-motor four-wheel independent drive provided by an embodiment of the present application;

[0055] Figure 1D is a schematic diagram of a vehicle architecture provided by an embodiment of the present application;

[0056] Figure 2 is a schematic diagram of a scenario provided by an embodiment of the present application;

[0057] Figure 3 is a schematic diagram of a deviation detection method provided by an embodiment of the present application;

[0058] Figure 4 is a schematic diagram of a processing device provided by an embodiment of the present application;

[0059] Figure 5 is a schematic diagram of a computing device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0060] The system and scenario to which the present application can be applied will be described by way of example. It should be noted that the system architecture and business scenario described in the present application are intended to more clearly illustrate the technical solutions of the present application, and do not constitute a limitation on the technical solutions provided by the present application. Those skilled in the art can know that, as the system architecture evolves and new business scenarios appear, the technical solutions provided by the present application are also applicable to similar technical problems.

[0061] Referring to Figure 1A , Figure 1A is a schematic diagram of a vehicle with dual-motor rear-wheel independent drive provided by an embodiment of the present application. As shown in Figure 1A , the vehicle with dual-motor rear-wheel independent drive includes a left front wheel, a left rear wheel, a right front wheel, a right rear wheel, a left rear motor, and a right rear motor. The left rear motor is configured to drive the left rear wheel to rotate, and the right rear motor is configured to drive the right rear wheel to rotate, so that the vehicle moves forward or backward. Figure 1A The left traveling module of the vehicle with dual-motor rear-wheel independent drive includes the left rear wheel and the left rear motor, and the right traveling module includes the right rear wheel and the right rear motor. By way of example, the motor can be a hub motor, a wheel-side motor, an integrated dual-motor drive, two independent single-motor drives, or the like.

[0062] Referring to Figure 1B , Figure 1B is a schematic diagram of a vehicle with dual-motor front-wheel independent drive provided by an embodiment of the present application. As shown in Figure 1BAs shown in the figure, the dual-motor front-wheel independent drive vehicle includes a left front wheel, a left rear wheel, a right front wheel, a right rear wheel, a left front motor and a right front motor. The left front motor is configured to drive the left front wheel to rotate, and the right front motor is configured to drive the right front wheel to rotate, so as to drive the vehicle to move forward or backward. Figure 1B As shown in the figure, the left traveling module of the dual-motor front-wheel independent drive vehicle includes the left front wheel and the left front motor, and the right traveling module includes the right front wheel and the right front motor.

[0063] Please refer to Figure 1C , Figure 1C is a schematic diagram of a four-motor four-wheel independent drive vehicle provided by an embodiment of the present application. As shown in the figure, Figure 1C the four-motor four-wheel independent drive vehicle includes a left front wheel, a left rear wheel, a right front wheel, a right rear wheel, a left front motor, a right front motor, a left rear motor and a right rear motor. The left front motor is configured to drive the left front wheel to rotate, the right front motor is configured to drive the right front wheel to rotate, the left rear motor is configured to drive the left rear wheel to rotate, and the right rear motor is configured to drive the right rear wheel to rotate, so as to drive the vehicle to move forward or backward. Figure 1C As shown in the figure, the left traveling module of the four-motor four-wheel independent drive vehicle includes the left front wheel, the left front motor, the left rear wheel and the left rear motor, and the right traveling module includes the right front wheel, the right front motor, the right rear wheel and the right rear motor.

[0064] Please refer to Figure 1D , Figure 1D is a schematic diagram of a vehicle architecture provided by an embodiment of the present application. The vehicle 100 includes a left traveling module 101, a right traveling module 102 and a processing device 103. Of course, the vehicle 100 also includes devices supporting vehicle control, such as a braking system, etc., which are not described here. It should be understood that the type of vehicle shown here is only an example. In specific implementations, the vehicle 100 can be a car, a truck, a train, a bus, a van, an electric vehicle, etc. Figure 1D For example, the vehicle 100 is a dual-motor rear-wheel independent drive vehicle. In specific implementations, the vehicle 100 can also be Figure 1B the dual-motor front-wheel independent drive vehicle shown in the figure or Figure 1C the four-motor four-wheel independent drive vehicle shown in the figure, which are not described here.

[0065] The following exemplary describes each device included in the vehicle 100 in Figure 1D :

[0066] The left traveling module 101 is configured to control the left wheels of the vehicle 100 to travel forward or backward, so as to make the vehicle 100 move forward or backward. For example, the left traveling module 101 comprises a first motor 1011 and / or a first wheel 1012, and the first motor 1011 is configured to drive the first wheel 1012 to rotate, so as to make the vehicle 100 move forward or backward. Since the left traveling module 101 rotates continuously when the vehicle travels, the angle data of the left traveling module 101 rotating in a certain time period can be obtained.

[0067] The right traveling module 102 is configured to control the right wheels of the vehicle 100 to travel forward or backward, so as to make the vehicle 100 move forward or backward. The right traveling module 102 comprises a second motor 1021 and / or a second wheel 1022, and the second motor 1021 is configured to drive the second wheel 1022 to rotate, so as to make the vehicle 100 move forward or backward. Here, the left and right sides are the two sides along the traveling direction of the vehicle. Since the right traveling module 102 rotates continuously when the vehicle travels, the angle data of the right traveling module 102 rotating in a certain time period can be obtained. Optionally, when the vehicle is a fuel vehicle, the left traveling module comprises the wheels on the left side of the vehicle, and the right traveling module comprises the wheels on the right side of the vehicle. For example, in a four-wheel fuel vehicle, the left traveling module comprises the front left wheel and the rear left wheel of the vehicle, and the right traveling module comprises the front right wheel and the rear right wheel of the vehicle. At this time, the fuel vehicle comprises sensors capable of accurately collecting the wheel speed and half shaft speed of the front left wheel, the rear left wheel, the front right wheel and the rear right wheel.

[0068] The processing device 103 has data acquisition capability and data processing capability. For example, the processing device 103 can obtain first cumulative angle data of the left traveling module 101 rotating in a first time period, and second cumulative angle data of the right traveling module 102 rotating in the first time period. For another example, the processing device 103 can determine the lateral deviation degree of the vehicle 100 in a straight traveling state in the first time period according to the first cumulative angle data and the second cumulative angle data. Here, the lateral deviation degree is related to the difference between the first cumulative angle data and the second cumulative angle data.

[0069] For example, the left traveling module 101 comprises the first motor 1011, and the right traveling module 102 comprises the second motor 1021, so the first cumulative angle data is the angle data of the first motor 1011 rotating in the first time period, and the second cumulative angle data is the angle data of the second motor 1021 rotating in the first time period.

[0070] For another example, the left traveling module 101 comprises the first motor 1011 and the first wheel 1012, and the right traveling module 102 comprises the second motor 1021 and the second wheel 1022. The first cumulative angle data comprises the angle data of the rotation of the first motor 1011 in the first time length and the angle data of the rotation of the first wheel 1012 in the first time length. The second cumulative angle data comprises the angle data of the rotation of the second motor 1021 in the first time length and the angle data of the rotation of the second wheel 1022 in the first time length.

[0071] For another example, the left traveling module 101 comprises the first motor 1011 and the first wheel 1012, and the right traveling module 102 comprises the second motor 1021 and the second wheel 1022. The first cumulative angle data comprises the angle data of the rotation of the first motor 1011 in the first time length and the angle data of the rotation of the first wheel 1012 in the first time length. The second cumulative angle data comprises the angle data of the rotation of the second motor 1021 in the first time length and the angle data of the rotation of the second wheel 1022 in the first time length.

[0072] As a possible implementation, the left traveling module 101 comprises the first motor 1011, and the right traveling module 102 comprises the second motor 1021. The vehicle 100 further comprises a first resolver sensor and a second resolver sensor. The first resolver sensor is configured to collect the angle data of the rotation of the first motor 1011. The second resolver sensor is configured to collect the angle data of the rotation of the second motor 1021. For example, the first resolver sensor collects the first cumulative angle data of the rotation of the first motor 1011 in the first time length. The second resolver sensor collects the second cumulative angle data of the rotation of the second motor 1021 in the first time length. For example, the processing device 103 is connected with the first resolver sensor. The processing device 103 can receive the first cumulative angle data sent (or output) by the first resolver sensor through the connection line between them, so as to obtain the first cumulative angle data. For another example, the processing device 103 is connected with the second resolver sensor. The processing device 103 can receive the second cumulative angle data sent (or output) by the second resolver sensor through the connection line between them, so as to obtain the second cumulative angle data.

[0073] As a possible implementation, the processing apparatus 103 can be a physical device, for example, the processing apparatus 103 can include one or more of the following modules: a central processing unit (CPU), a microprocessor unit (MPU), an application specific-integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a co-processor (assisting the central processor to complete the corresponding processing and application), a microcontroller unit (MCU), a mobile data center (MDC), and / or an electronic control unit (ECU), a cockpit domain controller (CDC), a vehicle integrated / integration unit (VIU), etc. Further, the processing apparatus includes at least one processor integrated together in the form of a system-on-chip (SOC), which is commonly referred to as SOC by those skilled in the art. The SOC can include at least one processor, and when the SOC includes multiple processors, the types of the multiple processors can be different. In addition, the processor can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.

[0074] Of course, the above is described by taking the processing apparatus 103 as a vehicle-mounted device as an example. In some schemes, the processing apparatus 103 can be a physical device arranged outside the vehicle, such as a server, a cloud, or a host, etc. The physical device arranged outside the vehicle communicates and transmits information with the vehicle. As a possible implementation, the processing apparatus 103 can be a software module, such as a virtual machine, software, program code, or a container, etc.

[0075] Please refer to Figure 2 , Figure 2 is a scene schematic diagram provided by an embodiment of the present application. As Figure 2As shown, when vehicle 100 travels in a straight line during the first time period, it should theoretically travel from position 1 to position 2. However, due to the lateral deviation of vehicle 100, when vehicle 100 travels in a straight line during the first time period, it actually travels from position 1 to position 3. The degree of lateral deviation of the vehicle includes the ratio of the lateral displacement b of the vehicle traveling in a straight line during the first time period to the longitudinal displacement a of the vehicle traveling in a straight line during the first time period, that is, the degree of lateral deviation of the vehicle includes the value of b / a.

[0076] For example, such as Figure 2 As shown, the processing device 103 can acquire first cumulative angle data of the left travel module 101 rotating clockwise within a first time period, and second cumulative angle data of the right travel module 102 rotating clockwise within the same time period. Further, the processing device 103 can determine the degree of lateral deviation of the vehicle 100 when traveling in a straight line for a first time period based on the first and second cumulative angle data. The degree of lateral deviation is related to the difference between the first and second cumulative angle data. For example, the processing device 103 maps the degree of lateral deviation of the vehicle 100, i.e., the value of b / a, to the difference between the first and second cumulative angle data.

[0077] Optionally, the foregoing is merely an exemplary vehicle provided for ease of understanding and is not intended to limit the application scenarios of this solution. The solution provided in this application is also applicable to similar devices that use wheeled devices for propulsion and have data processing capabilities, such as logistics robots. Furthermore, Figure 1D The number of wheels shown for vehicle 100 is also an example; in a real implementation, vehicle 100 may contain more wheels (e.g., six or eight).

[0078] In one possible implementation, the processing device 103 acquires first cumulative angle data of the rotation of the left travel module 101 within a first duration, and second cumulative angle data of the rotation of the right travel module 102 within the same first duration. Further, the processing device 103 can determine the degree of lateral deviation of the vehicle 100 when traveling in a straight line for a first duration based on the first and second cumulative angle data. This application, by collecting the angle data of the left and right travel modules during a certain period of travel, can directly analyze the degree of lateral deviation of the vehicle from the scenario in which deviation occurs. Compared to analysis based on external visual information (such as location and scene information), this significantly reduces the interference of external factors such as the external environment and the accuracy error of sensing devices on deviation detection, greatly improving the detection accuracy and precision of lateral deviation. Moreover, this application does not require the coordinates of the vehicle's starting and ending positions during straight-line travel, does not rely on lane lines or intelligent driving devices, and can conveniently and quickly determine the degree of lateral deviation, exhibiting high practicality and compatibility.

[0079] The methods of the embodiments of this application will be described in detail below.

[0080] Please see Figure 3 , Figure 3 This is a schematic flowchart illustrating a method for detecting vehicle deviation provided in an embodiment of this application. Optionally, this method can be applied to vehicles, for example, to... Figure 1D The vehicle 100 shown can optionally be processed by the processing device 103 in the vehicle 100.

[0081] like Figure 3 The method for detecting deviation may include steps S301 and S302. Steps S301 and S302 are detailed below:

[0082] Step S301: The processing device acquires the first cumulative angle data and the second cumulative angle data.

[0083] The processing device is a device with data processing capabilities. For example, the processing device is as described above. Figure 1D The processing device 103 shown.

[0084] The vehicle includes a left-side travel module and a right-side travel module. For example, the left-side travel module is as described above. Figure 1D The left-side traveling module 101 is shown, and the right-side traveling module is as described above. Figure 1D The right-side traveling module 102 is shown.

[0085] The first cumulative angle data is the angle data of the left-side travel module of the vehicle rotating within the first time period, and the second cumulative angle data is the angle data of the right-side travel module of the vehicle rotating within the first time period. During the first time period, the vehicle travels in a straight line.

[0086] like Figure 2 As shown, when vehicle 100 travels in a straight line during the first time period, it should theoretically travel from position 1 to position 2. However, due to lateral deviation of vehicle 100, it actually travels from position 1 to position 3 during the first time period. The processing device can acquire the rotation angle data of the left-side travel module of the vehicle during the first time period, i.e., the first cumulative angle data. The processing device can also acquire the rotation angle data of the right-side travel module of the vehicle during the first time period, i.e., the second cumulative angle data.

[0087] The left-side travel module includes a left-side motor, the right-side travel module includes a right-side motor, and / or, the left-side travel module includes a left-side wheel, and the right-side travel module includes a right-side wheel. The left-side motor drives the left-side wheel of the vehicle to rotate, and the right-side motor drives the right-side wheel of the vehicle to rotate.

[0088] For example, if the left travel module includes a left motor and the right travel module includes a right motor, then the first cumulative angle data is the angle data of the left motor rotating within a first time period, and the second cumulative angle data is the angle data of the right motor rotating within the first time period.

[0089] For another example, if the left-side travel module includes a left-side wheel and the right-side travel module includes a right-side wheel, then the first cumulative angle data is the angle data of the left-side wheel rotation within a first time period, and the second cumulative angle data is the angle data of the right-side wheel rotation within the first time period.

[0090] For another example, if the left-side travel module includes a left-side motor and a left-side wheel, and the right-side travel module includes a right-side motor and a right-side wheel, then the first cumulative angle data includes the angle data of the left-side motor rotation within the first time period and the angle data of the left-side wheel rotation within the first time period, and the second cumulative angle data includes the angle data of the right-side motor rotation within the first time period and the angle data of the right-side wheel rotation within the first time period.

[0091] As a possible implementation, the left traveling module includes a left motor, the right traveling module includes a right motor, and the vehicle further includes a first resolver sensor and a second resolver sensor, the first resolver sensor being configured to collect angle data of rotation of the left motor, and the second resolver sensor being configured to collect angle data of rotation of the right motor. Illustratively, the first resolver sensor collects first cumulative angle data of rotation of the left motor within a first time duration, and the second resolver sensor collects second cumulative angle data of rotation of the right motor within the first time duration. Illustratively, the processing device is connected to the first resolver sensor, and the processing device can acquire the first cumulative angle data by receiving the first cumulative angle data sent (or output) by the first resolver sensor through a connection line between the first resolver sensor and the processing device. Further illustratively, the processing device is connected to the second resolver sensor, and the processing device can acquire the second cumulative angle data by receiving the second cumulative angle data sent (or output) by the second resolver sensor through a connection line between the second resolver sensor and the processing device.

[0092] As another possible implementation, the left traveling module includes a left motor, the right traveling module includes a right motor, and the processing device can acquire first rotation speed data of the left motor and second rotation speed data of the right motor, and obtain first cumulative angle data according to the first rotation speed data and obtain second cumulative angle data according to the second rotation speed data. Illustratively, the processing device obtains the first cumulative angle data by integrating the first rotation speed data and obtains the second cumulative angle data by integrating the second rotation speed data. Optionally, the first rotation speed data can be acquired by the first resolver sensor, and the second rotation speed data can be acquired by the second resolver sensor. Further optionally, the first rotation speed data and the second rotation speed data can be calculated based on a speed of the vehicle. For example, the rotation speed of the motor can be calculated according to the following formula: motor rotation speed = (maximum speed of the vehicle * speed ratio) / 0.377 / tire radius, wherein the speed ratio is related to a speed ratio of a main reducer and a speed ratio of a transmission, and the tire radius refers to a tire radius of a wheel driven by the motor.

[0093] As another possible implementation, the left traveling module includes a left wheel, the right traveling module includes a right wheel, and the processing device can acquire third rotation speed data of the left wheel and fourth rotation speed data of the right wheel, and obtain first cumulative angle data according to the third rotation speed data and obtain second cumulative angle data according to the fourth rotation speed data. Similarly, the processing device can obtain the first cumulative angle data by integrating the third rotation speed data and obtain the second cumulative angle data by integrating the fourth rotation speed data. Optionally, the third rotation speed data can be acquired by a first wheel speed sensor, and the fourth rotation speed data can be acquired by a second wheel speed sensor.

[0094] As a further possible implementation, the left traveling module comprises a left motor and the right traveling module comprises a right motor, and the processing device can acquire data of the left motor and data of the right motor, and calculate first cumulative angle data according to the data of the left motor and calculate second cumulative angle data according to the data of the right motor. Optionally, the data of the left motor comprises current data and voltage data of the left motor, and the data of the right motor comprises current data and voltage data of the right motor. Illustratively, the processing device can determine angle data of rotation of the motor by using a field oriented control (FOC) technique in combination with the data of the motor, such as the current data and voltage data of the motor.

[0095] As a possible implementation, when the steering wheel angle of the vehicle is maintained unchanged within the first time length or the steering wheel angle of the vehicle is always within a first range within the first time length, it is considered that the vehicle travels in a straight line within the first time length. The first range can be a predefined range, for example, ±x degrees. Illustratively, the initial steering wheel angle of the vehicle is y degrees, and when the steering wheel angle of the vehicle is always within the range of y±x degrees within the first time length, it is considered that the vehicle travels in a straight line within the first time length.

[0096] As a possible implementation, when the vehicle travels in a straight line within the first time length, the wheels have no skidding phenomenon. Illustratively, when the processing device determines that the wheels have a skidding phenomenon, the first cumulative angle data and the second cumulative angle data acquired by the processing device cannot be used to determine the lateral deviation degree of the vehicle.

[0097] As a possible implementation, in the case where the processing device acquires the first cumulative angle data according to the first rotation variable sensor and acquires the second cumulative angle data according to the second rotation variable sensor, the signals collected by the first rotation variable sensor and the second rotation variable sensor within the first time length have no abrupt change. When the signals collected by the first rotation variable sensor and / or the second rotation variable sensor within the first time length have an abrupt change, the first cumulative angle data acquired by the first rotation variable sensor and the second cumulative angle data acquired by the second rotation variable sensor cannot be used to determine the lateral deviation degree of the vehicle.

[0098] Step S302: The processing device determines the lateral deviation degree of the vehicle when the vehicle travels in a straight line within the first time length according to the first cumulative angle data and the second cumulative angle data.

[0099] The lateral deviation degree comprises a ratio of the lateral displacement of the vehicle when the vehicle travels in a straight line within the first time length to the longitudinal displacement of the vehicle when the vehicle travels in a straight line within the first time length, which can be referred to as lateral deviation amount for the purpose of distinguishing. For example, as shown in FIG. 2, the lateral deviation amount is the ratio of the lateral displacement L of the vehicle when the vehicle travels in a straight line within the first time length to the longitudinal displacement D of the vehicle when the vehicle travels in a straight line within the first time length. Figure 2As shown, the lateral displacement of the vehicle in the first time duration in straight line driving is b, the longitudinal displacement of the vehicle in the first time duration in straight line driving is a, and the lateral runout amount of the vehicle includes the value of b / a.

[0100] The lateral runout degree includes a lateral runout level, for example, the lateral runout level includes three levels of slight runout, moderate runout and severe runout. The processing device can determine the lateral runout level of the vehicle in the first time duration in straight line driving according to the first cumulative angle data and the second cumulative angle data. Alternatively, the processing device can determine a fifth ratio value according to the first cumulative angle data and the second cumulative angle data, and obtain the lateral runout level of the vehicle according to the fifth ratio value and a first threshold value. The first threshold value is a pre-set value, which can be related to the speed of the vehicle and the model of the vehicle and the like. For example, when the difference between the fifth ratio value and the first threshold value is less than a second threshold value, the lateral runout level of the vehicle is considered to be slight runout. When the difference between the fifth ratio value and the first threshold value is greater than the second threshold value and less than a third threshold value, the lateral runout level of the vehicle is considered to be moderate runout. When the difference between the fifth ratio value and the first threshold value is greater than the third threshold value, the lateral runout level of the vehicle is considered to be severe runout. The second threshold value and the third threshold value are pre-set values, which can be related to the speed of the vehicle and the model of the vehicle and the like.

[0101] As a possible implementation, the processing device determines a first angle difference according to the first cumulative angle data and the second cumulative angle data, obtains a first ratio value according to the first angle difference, and determines the lateral runout degree of the vehicle in the first time duration in straight line driving according to the first ratio value. The first angle difference is the difference between the first cumulative angle data and the second cumulative angle data, the lateral runout degree is positively correlated with the first angle difference, the first ratio value is the ratio of the first angle difference to the total cumulative angle data of the vehicle in the first time duration, and the total cumulative angle data of the vehicle in the first time duration is related to the first cumulative angle data and the second cumulative angle data. For example, the total cumulative angle data of the vehicle in the first time duration is half of the sum of the first cumulative angle data and the second cumulative angle data. For example, in the case where the lateral runout degree includes the lateral runout amount, the first ratio value can be approximately equivalent to the lateral runout amount. For another example, in the case where the lateral runout degree includes the lateral runout level, the first ratio value can be approximately equal to the fifth ratio value, and the processing device can obtain the lateral runout level according to the fifth ratio value.

[0102] Since the speed of the vehicle can affect the lateral runout degree of the vehicle, as another possible implementation, in the first time duration, the first vehicle drives at a first speed, and the processing device determines the lateral runout degree of the vehicle in the first time duration in straight line driving at the first speed according to the aforementioned first angle difference and the first speed. The lateral runout degree is related to the first speed, and the first angle difference is described above.

[0103] Optionally, the vehicle can not travel at a constant speed during the first time duration, and the processing device can determine the first speed according to speed data of the vehicle during the first time duration. For example, the vehicle travels at the second speed for 80% of the time and travels at other speeds for 20% of the time during the first time duration, and the processing device can consider the second speed as the first speed. Here, 80% and 20% are only one possible example, and other designs can also exist in actual use, which will not be exemplified here.

[0104] As another possible implementation, the processing device determines the lateral deviation degree of the vehicle under the condition that the vehicle travels at the first speed and in a straight line for the first time duration according to the first ratio, the first speed, and first correspondence relationship data. The first correspondence relationship data is used to describe a mapping relationship between the ratio of the angle difference and the total cumulative angle data of the vehicle and the speed of the vehicle and the lateral deviation degree of the vehicle, the angle difference is a difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle, the total cumulative angle data of the vehicle is related to the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle, and the first ratio is described above.

[0105] Optionally, in the case that the lateral deviation degree includes the lateral deviation amount, the first correspondence relationship data is used to describe a mapping relationship between the ratio of the angle difference and the total cumulative angle data of the vehicle and the speed of the vehicle and the lateral deviation amount of the vehicle. For example, in the case that the lateral deviation degree includes the lateral deviation amount, the processing device can find the lateral deviation amount of the vehicle corresponding to the first ratio and the first speed in the first correspondence relationship data, and output the lateral deviation amount of the vehicle. For another example, in the case that the lateral deviation degree includes the lateral deviation level, the processing device can find the lateral deviation amount of the vehicle corresponding to the first ratio and the first speed in the first correspondence relationship data, and the lateral deviation amount of the vehicle corresponding to the first ratio and the first speed can be equal to the fifth ratio described above, and then the processing device can obtain the lateral deviation level according to the fifth ratio.

[0106] Optionally, the first correspondence relationship data can be obtained by offline calibration in advance. Optionally, when the first correspondence relationship data of a certain type of vehicle is obtained by offline calibration in advance, the first correspondence relationship data can be applied to all vehicles of the type for vehicle lateral deviation detection, and it is not necessary to calibrate the first correspondence relationship data of each vehicle of the type offline again.

[0107] Exemplarily, the vehicle is tested under a first condition to obtain first corresponding relationship data of the vehicle. The first condition includes that the test is performed on a straight road of clean, dry, flat asphalt or concrete pavement. The straight road has a length greater than a first length, a width greater than a first width, a longitudinal slope less than a first slope, a lateral slope less than a second slope, and a lateral wind speed of the straight road less than a second speed. The vehicle is clean, the windows and the ventilation device in the vehicle cabin are closed, the driving mode is a comfort mode, the tire pressure of the left tire and the right tire of the vehicle are inflated to a specified value, the model, the tread pattern, the pattern depth, and the tire pressure of the left tire and the right tire on the same drive shaft are consistent, and the pattern depth of the tread pattern of the left tire and the right tire is not less than 50% of the initial pattern depth. The load state of the vehicle is the curb weight. The first length is a pre-set length threshold, for example, 200 meters. The first width is a pre-set width threshold, for example, 6 meters. The first slope and the second slope are pre-set slope thresholds, for example, the first slope is 0.1%, and the second slope is 0.5%. The second speed is a pre-set wind speed threshold, for example, 2 m / s.

[0108] Taking the lateral deviation degree including the lateral deviation amount, the first corresponding relationship data is used to describe the mapping relationship between the ratio of the angle difference to the total cumulative angle data of the vehicle and the speed of the vehicle, and the lateral deviation amount of the vehicle. The following describes how the first corresponding relationship data is determined.

[0109] As a possible implementation, the left traveling module includes a left motor, and the right traveling module includes a right motor. The vehicle is tested by driving at a certain speed on the aforementioned straight road for a first distance under the condition that the torque difference between the output torque of the left motor and the output torque of the right motor is a different value of torque difference. The first distance is a pre-set distance threshold, for example, 250 meters. The application records and calculates the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle, the total cumulative angle data of the vehicle, and the lateral deviation amount of the vehicle. Optionally, the lateral deviation amount of the vehicle can be measured by a tape measure.

[0110] Further, the application analyzes and processes the mapping relationship between the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the lateral deviation of the vehicle, to obtain the mapping relationship between the ratio of the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle and the lateral deviation of the vehicle when the vehicle travels straight at the speed. Alternatively, the application can also analyze and process the mapping relationship between the torque difference between the output torque of the left motor and the output torque of the right motor and the lateral deviation of the vehicle, to obtain the mapping relationship between the torque difference between the output torque of the left motor and the output torque of the right motor and the lateral deviation of the vehicle when the vehicle travels straight at the speed.

[0111] Alternatively, the torque difference between the output torque of the left motor and the output torque of the right motor can be 0-mkNm, 0-2k Nm, 0-k Nm, 0Nm, 0+k Nm, 0+2k Nm, or 0+mk Nm, etc. Wherein, m is greater than 0 and m is an integer, and k is greater than 0. The speed of the vehicle can be any speed in the speed range of the vehicle. For example, the vehicle of the application travels straight at the first speed for the first distance on the straight road in the case that the torque difference between the output torque of the left motor and the output torque of the right motor is each of the plurality of torque differences in the above examples when the steering wheel angle is 0. Wherein, the first speed belongs to the speed range of the vehicle. The application can obtain the mapping relationship between the ratio of the difference between the angle data of the left traveling module and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle and the lateral deviation of the vehicle when the vehicle travels straight at the first speed. The application can also obtain the mapping relationship between the torque difference between the output torque of the left motor and the output torque of the right motor and the lateral deviation of the vehicle when the vehicle travels straight at the first speed.

[0112] Further, the above-mentioned test is performed at different speeds in the speed range of the vehicle, and then the present application obtains the mapping relationship between the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle and the speed of the vehicle and the lateral deviation, i.e., the first corresponding relationship data. In addition, the mapping relationship between the torque difference between the output torque of the left motor and the output torque of the right motor and the speed of the vehicle and the lateral deviation of the vehicle, i.e., the fourth corresponding relationship data, is obtained, which is used to distinguish the torque difference between the output torque of the left motor and the output torque of the right motor and the speed of the vehicle and the lateral deviation of the vehicle.

[0113] As another possible implementation, the left traveling module includes a left motor, and the right traveling module includes a right motor. The vehicle is tested by driving at a certain speed on the straight road for a first distance with the torque difference between the output torque of the left motor and the output torque of the right motor being 0 and the steering wheel angle being different angles. The first distance is described above. The present application records and calculates the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the lateral deviation of the vehicle. Optionally, the lateral deviation of the vehicle can be measured by a tape measure.

[0114] Further, the present application obtains the mapping relationship between the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle and the lateral deviation of the vehicle at the speed of the vehicle driving straight, according to the recorded difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the lateral deviation of the vehicle. Optionally, the present application also obtains the mapping relationship between the steering wheel angle and the lateral deviation of the vehicle at the speed of the vehicle driving straight, according to the recorded difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the lateral deviation of the vehicle.

[0115] Optionally, the steering wheel angle can be 0-np degrees, 0-2p degrees, 0-p degrees, 0 degrees, 0+p degrees, 0+2p degrees, or 0+np degrees, etc. Wherein, n is greater than 0 and n is an integer, and p is greater than 0. The certain speed of the vehicle can be any speed in the speed range of the vehicle. For example, the vehicle of the present application is tested to travel at a first speed on the straight road at a first distance at a constant speed in a straight line under the condition that the torque difference between the output torque of the left motor and the output torque of the right motor is 0 and the steering wheel angle is each of the plurality of angles in the above example. The present application can obtain the mapping relationship between the difference value between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle when the vehicle travels at a first speed in a straight line, and the lateral deviation amount. The present application can also obtain the mapping relationship between the steering wheel angle and the lateral deviation amount of the vehicle when the vehicle travels at a first speed in a straight line.

[0116] Further, different speeds in the speed range of the vehicle are selected for the above test, and then the present application can obtain the mapping relationship between the difference value between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the speed of the vehicle, and the lateral deviation amount, i.e. the first corresponding relationship data. And the mapping relationship between the steering wheel angle of the vehicle and the speed of the vehicle, and the lateral deviation amount of the vehicle, which can be referred to as the fifth corresponding relationship data, is convenient for distinguishing. The lateral deviation degree includes the lateral deviation amount, and the fifth corresponding relationship data is used to describe the mapping relationship between the steering wheel angle of the vehicle and the speed of the vehicle, and the lateral deviation degree of the vehicle.

[0117] Optionally, the above embodiments can be combined, for example, the present application can jointly obtain the mapping relationship between the difference value between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle and the total cumulative angle data of the vehicle, and the speed of the vehicle, and the lateral deviation amount, i.e. the first corresponding relationship data, according to all the test data. In this way, the first corresponding relationship data is obtained by combining all the test data, which can improve the accuracy and precision of the obtained first corresponding relationship data.

[0118] Since the vehicle is in the non-drifting state due to tire wear and other factors, the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle may not be 0. Therefore, the application needs to determine the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle when the vehicle is in the non-drifting state, so as to distinguish the second ratio. Moreover, since the tire wear and other conditions of each vehicle may be different, the second ratio may be different when each vehicle is in the non-drifting state, so the application needs to determine the second ratio of each vehicle.

[0119] As a possible implementation, the second ratio can be determined by big data self-learning. Illustratively, when the vehicle travels at a first speed for a second distance in a valid straight-line driving condition, and the steering wheel angle of the vehicle is maintained unchanged during the period of traveling the second distance (for ease of description, referred to as the first time period), or the steering wheel angle of the vehicle is always within a second range during the first time period, and the driver of the vehicle does not correct the steering wheel of the vehicle, it is considered that the vehicle travels in a straight line and the vehicle is in a non-drifting state during the first time period. The valid straight-line driving condition includes that the lateral slope of the road traveled by the vehicle during the period is less than a third slope, the tire pressure of the tire of the wheel of the vehicle is normal, and the wheel of the vehicle has no slip phenomenon. Optionally, the valid straight-line driving condition can be the same as the first condition described above. The second range can be a pre-defined range, for example, ±z degrees. Illustratively, the initial steering wheel angle of the vehicle is y degrees, and when the steering wheel angle of the vehicle is always within the range of y±z degrees during the first time period, it is considered that the steering wheel angle of the vehicle has no large change. Optionally, the second range can be the same as the first range described above. The third slope is a pre-set slope threshold, for example, the third slope is 0.1%.

[0120] Illustratively, the application obtains the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle during the first time period described above, so as to distinguish the sixth ratio.

[0121] Optionally, the sixth ratio is the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle when the vehicle is in the non-drifting state. That is, the sixth ratio is the second ratio described above.

[0122] Further, the processing device determines the lateral drifting degree of the vehicle in the case of straight-line driving at the first speed for the first time period according to the first ratio, the second ratio, the first speed, and the first corresponding relationship data.

[0123] Exemplarily, the lateral runout degree comprises a lateral runout amount, and the processing device finds, in the first corresponding relationship data, a lateral runout amount corresponding to the difference between the first ratio and the second ratio and the first speed, and outputs the lateral runout amount of the vehicle. In this way, the second ratio is removed from the influence on the lateral runout degree of the vehicle, and the accuracy and precision of the determined lateral runout degree can be improved.

[0124] Exemplarily, in the case where the lateral runout degree comprises a lateral runout level, the lateral runout amount corresponding to the difference between the first ratio and the second ratio and the first speed can be equal to the fifth ratio, and the processing device can obtain the lateral runout level according to the fifth ratio.

[0125] Exemplarily, the lateral runout amount corresponding to the difference between the first ratio and the second ratio and the first speed can be equal to the fifth ratio, and the processing device can obtain the lateral runout level according to the fifth ratio.

[0126] Optionally, the application can select driving data meeting the above working conditions and conditions in the daily driving process of the vehicle, and then determine the second ratio through big data self-learning, without the need for factory calibration for each vehicle, which can reduce the workload.

[0127] Optionally, since the second ratio of each vehicle can not change greatly within a certain distance, the application can consider using the same second ratio when the distance traveled by the vehicle meets the preset distance range, without the need to determine the second ratio of the vehicle again each time the lateral runout is detected. For example, the currently determined second ratio of the vehicle is M, and the distance traveled by the vehicle from this moment is accumulated. When the accumulated distance is less than the preset distance threshold, the second ratio M can be continued to be used when the lateral runout is detected.

[0128] As a possible implementation, the left traveling module comprises a left motor and a left wheel, the right traveling module comprises a right motor and a right wheel, the first cumulative angle data comprises angle data of the left motor rotating within the first time length and angle data of the left wheel rotating within the first time length, and the second cumulative angle data comprises angle data of the right motor rotating within the first time length and angle data of the right wheel rotating within the first time length.

[0129] Exemplarily, the lateral runout degree comprises a lateral runout amount, the processing device can determine a third lateral runout amount according to the angle data of the left motor rotating in the first time length and the angle data of the right motor rotating in the first time length, and determine a fourth lateral runout amount according to the angle data of the left wheel rotating in the first time length and the angle data of the right wheel rotating in the first time length. Further, the processing device determines the lateral runout degree of the vehicle in the case of straight driving for the first time length according to the third lateral runout amount and the fourth lateral runout amount. For example, the lateral runout degree comprises a lateral runout amount, and the lateral runout amount of the vehicle in the case of straight driving for the first time length is the average of the third lateral runout amount and the fourth lateral runout amount. Similarly, the processing device can determine a third lateral runout amount according to the angle data of the left motor rotating in the first time length and the angle data of the right motor rotating in the first time length, and determine a fourth lateral runout amount according to the angle data of the left wheel rotating in the first time length and the angle data of the right wheel rotating in the first time length, which can be referred to the aforementioned embodiments and will not be described here.

[0130] Exemplarily, the lateral runout degree comprises a lateral runout level, the processing device determines a fifth ratio according to the angle data of the left motor rotating in the first time length and the angle data of the right motor rotating in the first time length, for example, H1. The processing device determines a fifth ratio according to the angle data of the left wheel rotating in the first time length and the angle data of the right wheel rotating in the first time length, for example, H2. Further, the fifth ratio determined by the processing device according to the first cumulative angle data and the second cumulative angle data can be the average of H1 and H2, and then the processing device can obtain the lateral runout level according to the average of H1 and H2.

[0131] The above is to determine the lateral runout degree of the vehicle according to the mapping relationship between the ratio of the angle difference and the total cumulative angle data of the vehicle, and the speed of the vehicle and the lateral runout degree of the vehicle. In actual use, the lateral runout degree of the vehicle can also be determined according to other mapping relationships. Two possible mapping relationships are exemplarily introduced below.

[0132] The mapping relationship one is a mapping relationship between the ratio of the angle difference and the displacement of the vehicle driving in a straight line, the speed of the vehicle, and the lateral deviation degree of the vehicle. For the convenience of distinguishing, it is referred to as second corresponding relationship data. Exemplarily, the processing device can obtain a third ratio according to the first angle difference, and determine the lateral deviation degree of the vehicle driving in a straight line at the first speed for the first time length according to the third ratio, the first speed, and the second corresponding relationship data. The third ratio is the ratio of the first angle difference and the displacement of the vehicle driving in a straight line for the first time length. The angle difference is described above. Similarly, in the case that the lateral deviation degree includes the lateral deviation amount, the processing device can find the lateral deviation amount of the vehicle corresponding to the third ratio and the first speed in the second corresponding relationship data, and output the lateral deviation amount of the vehicle. Similarly, in the case that the lateral deviation degree includes the lateral deviation level, the processing device can find the lateral deviation amount of the vehicle corresponding to the third ratio and the first speed in the second corresponding relationship data, and the lateral deviation amount of the vehicle corresponding to the third ratio and the first speed can be equal to the fifth ratio described above, and then the processing device can obtain the lateral deviation level according to the fifth ratio. Similarly to the above embodiments, the details are not described herein.

[0133] The mapping relationship two is a mapping relationship between the ratio of the angle difference and the time length of the vehicle driving in a straight line, the speed of the vehicle, and the lateral deviation degree of the vehicle. For the convenience of distinguishing, it is referred to as third corresponding relationship data. Exemplarily, the processing device can obtain a fourth ratio according to the first angle difference, and determine the lateral deviation degree of the vehicle driving in a straight line at the first speed for the first time length according to the fourth ratio, the first speed, and the third corresponding relationship data. The fourth ratio is the ratio of the first angle difference and the first time length. The angle difference is described above. Similarly, in the case that the lateral deviation degree includes the lateral deviation amount, the processing device can find the lateral deviation amount of the vehicle corresponding to the fourth ratio and the first speed in the third corresponding relationship data, and output the lateral deviation amount of the vehicle. Similarly, in the case that the lateral deviation degree includes the lateral deviation level, the processing device can find the lateral deviation amount of the vehicle corresponding to the fourth ratio and the first speed in the third corresponding relationship data, and the lateral deviation amount of the vehicle corresponding to the fourth ratio and the first speed can be equal to the fifth ratio described above, and then the processing device can obtain the lateral deviation level according to the fifth ratio. Similarly to the above embodiments, the details are not described herein.

[0134] As a possible implementation, the processing device can correct the deviation of the vehicle.

[0135] As a possible implementation, the left traveling module comprises a left motor, and the right traveling module comprises a right motor. The processing device can further adjust the output torque of the left motor and / or the output torque of the right motor according to the lateral deviation degree of the vehicle when the vehicle travels straight for the first time length, so that the lateral deviation degree of the vehicle when the vehicle travels straight tends to be 0. For example, the processing device can further adjust the difference between the output torque of the left motor and the output torque of the right motor according to the lateral deviation degree of the vehicle when the vehicle travels straight for the first time length, for example, to apply a torque difference so that the lateral deviation degree of the vehicle when the vehicle travels straight tends to be 0, or so that the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle is the same as the second ratio.

[0136] For example, the processing device expects to adjust the difference between the output torque of the left motor and the output torque of the right motor when the steering wheel angle is 0, so that the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle is the same as the second ratio.

[0137] As another possible implementation, the processing device can further adjust the output torque of the steering motor according to the lateral deviation degree of the vehicle when the vehicle travels straight for the first time length, so that the lateral deviation degree of the vehicle when the vehicle travels straight tends to be 0. For example, the processing device can further adjust the output torque of the steering motor according to the lateral deviation degree of the vehicle when the vehicle travels straight for the first time length, for example, by applying a torque difference to the left wheel and the right wheel through the steering motor so that the lateral deviation degree of the vehicle when the vehicle travels straight tends to be 0, or so that the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle is the same as the second ratio.

[0138] For example, the processing device expects to adjust the output torque of the steering motor when the steering wheel angle is 0, so that the ratio of the difference between the angle data of the left traveling module of the vehicle and the angle data of the right traveling module of the vehicle to the total cumulative angle data of the vehicle is the same as the second ratio.

[0139] Optionally, the processing device can use the fourth and fifth corresponding relationship data obtained above when performing the above deviation correction operation.

[0140] In this way, the lateral deviation degree determined by the present application can be used for deviation correction, improving the accuracy of deviation correction, reducing the impact of the deviation degree of the vehicle on the driving of the vehicle, and improving the user experience.

[0141] Optionally, the vehicle further comprises a display screen, and the processing device can further output notification information to the display screen, the notification information being used to notify the user of the lateral deviation degree of the vehicle in the case of straight driving for the first time length, and prompt the user to detect and maintain the vehicle.

[0142] In Figure 3 In the embodiment shown, the processing device can determine the lateral deviation degree of the vehicle according to the angle data of the left and right travel modules, for example, by mapping the lateral deviation degree of the vehicle in straight driving through the difference between the angle data of the left and right travel modules. The present application can directly analyze the lateral deviation degree of the vehicle from the generation scene of the deviation by collecting the angle data of the left travel module and the angle data of the right travel module in the vehicle traveling for a period of time, which can significantly reduce the interference of external factors such as the accuracy error of external environment and perception equipment on deviation detection compared to analysis through external appearance information (such as positioning position and scene information), and can greatly improve the detection accuracy and accuracy of the lateral deviation degree. Moreover, the present application does not need to obtain the coordinates of the starting position and the ending position of the vehicle in straight driving, and does not depend on lane lines and intelligent driving equipment, so that the lateral deviation degree can be determined conveniently and quickly, and has high practicability and compatibility.

[0143] The above describes the method of the embodiment of the present application in detail. The following describes some devices for implementing the foregoing method. It should be understood that the devices provided in the embodiment of the present application are only logical function division, and can be integrated into one physical entity or physically separated when actually implemented.

[0144] In addition, the units in the device can be implemented in the form of processor calling software, for example, the device comprises a processor, the processor is connected with a memory, the memory stores instructions, and the processor calls the instructions stored in the memory to implement any one of the above methods or to realize the functions of the units of the device, wherein the processor is a general processor, for example, a central processing unit (CPU) or a microprocessor, and the memory is an internal memory of the device or an external memory of the device.

[0145] Alternatively, the units in the apparatus can be implemented in the form of hardware circuitry, and part or all of the units can be implemented through design of hardware circuitry, which can be understood as one or more processors. For example, in one implementation, the hardware circuitry is an application-specific integrated circuit (ASIC) that is designed through logical relationship of elements in the circuit to implement part or all of the units. For another example, in another implementation, the hardware circuitry is a programmable logic device (PLD) that can be implemented through a field programmable gate array (FPGA). The FPGA can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured through a configuration file, so as to implement part or all of the units. All the units of the above apparatus can be implemented in the form of calling software by the processor, or in the form of hardware circuit, or part of them is implemented in the form of calling software by the processor, and the remaining part is implemented in the form of hardware circuit.

[0146] In the embodiments of the present application, the processor is a circuit with signal processing capability. In one implementation, the processor can be a circuit with instruction reading and running capability, such as a central processing unit (CPU) or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationship of hardware circuit, which is fixed or can be reconfigured. For example, the processor is an application-specific integrated circuit (ASIC) or a hardware circuit implemented by a programmable logic device (PLD), such as an FPGA. In the reconfigurable hardware circuit, the processor loads the configuration document to implement the hardware circuit configuration. The process can be understood as the process in which the processor loads instructions to implement part or all of the units. It can be seen that each unit in the apparatus can be one or more processors (or processing circuits) configured to implement the above method, such as a CPU, a GPU, a microprocessor, a DSP, an ASIC, an FPGA, or a combination of at least two of these processor forms.

[0147] Furthermore, the units in the above devices can be integrated in whole or in part, or they can be implemented independently. In one implementation, these units are integrated together as a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or for implementing the functions of the units in the device. The at least one processor may be of different types, such as a CPU and an FPGA.

[0148] Several possible devices are listed below.

[0149] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a processing device provided in an embodiment of this application, namely processing device 40. Optionally, the processing device 40 can be a standalone device; for example, the processing device 40 can be a... Figure 1D The processing device 103 is shown. Alternatively, the processing device 40 can also be a component in a standalone device (such as a node), such as a chip or integrated circuit. The processing device 40 is used to implement the aforementioned... Figure 3 The method for detecting deviation is shown.

[0150] like Figure 4 As shown, the processing device 40 includes an acquisition unit 401 and a processing unit 402. The acquisition unit 401 is used to perform one or more operations such as acquisition, reception, listening, transmission, and sending, for example, to acquire first cumulative angle data and second cumulative angle data. The first cumulative angle data is the angle data of the left-side travel module of the vehicle rotating within a first time period, and the second cumulative angle data is the angle data of the right-side travel module of the vehicle rotating within the first time period. It further includes other operations for implementing the deviation detection method.

[0151] The processing unit 402 is used to perform one or more operations such as processing, calculation, determination, generation, and updating. For example, it is used to determine the degree of lateral deviation when the vehicle is traveling in a straight line for a first duration based on the first cumulative angle data and the second cumulative angle data. The degree of lateral deviation is related to the difference between the first and second cumulative angle data. During the first duration, the vehicle travels in a straight line. The unit further includes other operations for implementing the deviation detection method.

[0152] For related descriptions, please refer to Figure 3 The embodiments shown are described in detail here.

[0153] Please see Figure 5 , Figure 5Fig. 1 is a structural schematic diagram of a computing device provided by an embodiment of the present application. The computing device is a device with processing capability. Here, the device can be a physical device, such as a server (e.g., a rack-mounted server), a mainframe, etc., or a virtual device, such as a virtual machine, a container, etc.

[0154] As shown in Fig. 1, the computing device 50 includes a processor 501 and a memory 502, and one or more programs, and can include a communication interface 503. It should be understood that the present application does not limit the number of processors and memories in the computing device 50. Figure 5

[0155] The processor 501 is a module for performing operations, and can include a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), a digital signal processor (DSP), a micro controller unit (MCU), or one or more integrated circuits for controlling the execution of programs of the above solutions.

[0156] The memory 502 is configured to provide a storage space, in which application data, user data, an operating system, and computer programs, etc. can be stored. The memory 502 can include a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, and can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, an optical disk storage (including a compact disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0157] The memory 502 can exist independently and be connected to the processor 501 through a bus. The memory 502 can also be integrated with the processor 501.

[0158] ​The communication interface 503 is configured to provide information input or output for the at least one processor. The communication interface 503 can be configured to receive data transmitted from outside and / or transmit data to outside. The communication interface 503 can be a wired link interface including an Ethernet cable, or a wireless link (Bluetooth, general wireless transmission, and other wireless communication technologies) interface. Optionally, the communication interface 503 can further include a transmitter (such as a radio frequency transmitter, an antenna, etc.) coupled to the interface, or a receiver, etc.

[0159] In the embodiments of the present application, the one or more programs described above are stored in the memory 502 in the form of program codes, and are configured to be executed by the processor 501. The programs include instructions for implementing the steps of the off-tracking detection method described above. That is, the memory 502 stores executable instructions, and the processor 501 executes the executable instructions to implement the instructions of the steps of the off-tracking detection method described above. Figure 3 The memory 502 stores executable instructions, and the processor 501 executes the executable instructions to implement the instructions of the steps of the off-tracking detection method described above. Figure 3 The memory 502 stores executable instructions, and the processor 501 executes the executable instructions to implement the instructions of the steps of the off-tracking detection method described above. Figure 3 The memory 502 stores executable instructions, and the processor 501 executes the executable instructions to implement the instructions of the steps of the off-tracking detection method described above.

[0160] The embodiments of the present application also provide a vehicle including the processing device 40 or the computing device 50 described above, and the vehicle is configured to implement the off-tracking detection method described above, for example, the off-tracking detection method described above. Figure 3 The embodiments of the present application also provide a vehicle including the processing device 40 or the computing device 50 described above, and the vehicle is configured to implement the off-tracking detection method described above, for example, the off-tracking detection method described above.

[0161] The embodiments of the present application also provide a computer program product including instructions. The computer program product can be a software or program product including instructions, which can be run on a computing device or stored in any available medium. The computer program instructions are configured to implement the off-tracking detection method described above, for example, the off-tracking detection method described above. Figure 3 The embodiments of the present application also provide a computer program product including instructions. The computer program product can be a software or program product including instructions, which can be run on a computing device or stored in any available medium. The computer program instructions are configured to implement the off-tracking detection method described above, for example, the off-tracking detection method described above.

[0162] The embodiments of the present application also provide a computer readable storage medium. The computer readable storage medium is configured to store a computer program including instructions for implementing the off-tracking detection method described above, for example, the off-tracking detection method described above. Figure 3 Figure 3 The embodiments of the present application also provide a computer readable storage medium. The computer readable storage medium is configured to store a computer program including instructions for implementing the off-tracking detection method described above, for example, the off-tracking detection method described above.

[0163] The computer readable storage medium can be any available medium that the information interaction device and / or the computing device can store, or a data storage device including one or more available media, such as a data center. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (for example, a solid state disk), etc.

[0164] In the present application, the word "exemplary" or "for example" is used to mean "an example of" or "an example, only. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as preferred or advantageous over other embodiments or design solutions. In fact, the use of the word "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0165] In the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "At least one of the following (one)" or the like refers to any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, and c can be single or multiple. "And / or" describes the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects.

[0166] In addition, unless otherwise stated, the ordinal numbers "first", "second", etc. used in the embodiments of the present application are used to distinguish a plurality of objects, and are not used to limit the order, time sequence, priority or importance of the plurality of objects.

[0167] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by programs instructing relevant hardware to complete, and the programs can be stored in a computer readable storage medium, which can be a read-only memory, a magnetic disk or an optical disk.

[0168] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting deviation, characterized in that, The method includes: Acquire first cumulative angle data and second cumulative angle data. The first cumulative angle data is the angle data of the left travel module of the vehicle rotating within a first time period, and the second cumulative angle data is the angle data of the right travel module of the vehicle rotating within the first time period. During the first time period, the vehicle travels in a straight line. Based on the first cumulative angle data and the second cumulative angle data, the degree of lateral deviation of the vehicle when traveling in a straight line for a first duration is determined, and the degree of lateral deviation is related to the difference between the first cumulative angle data and the second cumulative angle data.

2. The method according to claim 1, characterized in that, The left-side travel module includes a left-side motor, and the right-side travel module includes a right-side motor. The left-side motor is used to drive the left-side wheel of the vehicle to rotate, and the right-side motor is used to drive the right-side wheel of the vehicle to rotate. And / or, The left-side travel module includes a left-side wheel, and the right-side travel module includes a right-side wheel.

3. The method according to claim 1 or 2, characterized in that, During the first time period, the first vehicle travels at the first speed; The step of determining the degree of lateral deviation of the vehicle when it travels in a straight line for a first duration based on the first cumulative angle data and the second cumulative angle data includes: Based on the first angle difference and the first speed, the degree of lateral deviation of the vehicle when it travels in a straight line at the first speed for a first duration is determined. The first angle difference is the difference between the first cumulative angle data and the second cumulative angle data. The degree of lateral deviation is positively correlated with the first angle difference and is related to the first speed.

4. The method according to claim 3, characterized in that, The step of determining the degree of lateral deviation of the vehicle when it travels in a straight line at a first speed for a first duration based on the first angle difference and the first speed includes: Based on the first angle difference, a first ratio is obtained. The first ratio is the ratio of the first angle difference to the total cumulative angle data of the vehicle within the first time period. The total cumulative angle data of the vehicle within the first time period is related to the first cumulative angle data and the second cumulative angle data. Based on the first ratio, the first speed, and the first correspondence data, determine the degree of lateral deviation of the vehicle when it travels in a straight line at the first speed for a first duration. The first correspondence data is used to describe the ratio of the angle difference to the total cumulative angle data of the vehicle, the speed of the vehicle, and the mapping relationship between the lateral deviation of the vehicle. The angle difference is the difference between the angle data of the left travel module and the angle data of the right travel module of the vehicle. The total cumulative angle data of the vehicle is related to the angle data of the left travel module and the angle data of the right travel module of the vehicle.

5. The method according to claim 4, characterized in that, The left-side traveling module includes a left-side motor, the right-side traveling module includes a right-side motor, and the method further includes: A second ratio is determined, which is the ratio of the difference between the rotation angle data of the left travel module and the rotation angle data of the right travel module of the vehicle when the vehicle is in a non-velocity state to the total cumulative angle data of the vehicle.

6. The method according to claim 5, characterized in that, The step of determining the degree of lateral deviation of the vehicle when it travels in a straight line at a first speed for a first duration based on the first ratio, the first speed, and the first correspondence data includes: Based on the first ratio, the second ratio, the first speed, and the first correspondence data, the degree of lateral deviation of the vehicle when it travels in a straight line at a first speed for a first duration is determined.

7. The method according to claim 3, characterized in that, The step of determining the degree of lateral deviation of the vehicle when it travels in a straight line at a first speed for a first duration based on the first angle difference and the first speed includes: Based on the first angle difference, a third ratio is obtained, wherein the third ratio is the ratio of the first angle difference to the displacement of the vehicle traveling in a straight line within the first time period; Based on the third ratio, the first speed and the second correspondence data, the degree of lateral deviation of the vehicle when it travels in a straight line at the first speed for a first duration is determined. The second correspondence data is used to describe the mapping relationship between the angle difference and the displacement of the vehicle traveling in a straight line, the speed of the vehicle, and the degree of lateral deviation of the vehicle. The angle difference is the difference between the angle data of the left travel module of the vehicle and the angle data of the right travel module of the vehicle.

8. The method according to claim 3, characterized in that, The step of determining the degree of lateral deviation of the vehicle when it travels in a straight line at a first speed for a first duration based on the first angle difference and the first speed includes: Based on the first angle difference, a fourth ratio is obtained, wherein the fourth ratio is the ratio of the first angle difference to the first duration; Based on the fourth ratio, the first speed and the third corresponding data, the degree of lateral deviation of the vehicle when it travels in a straight line at the first speed for a first duration is determined. The third correspondence data is used to describe the ratio of the angle difference to the time the vehicle travels in a straight line, the speed of the vehicle, and the mapping relationship between the lateral deviation of the vehicle. The angle difference is the difference between the rotation angle data of the left travel module of the vehicle and the rotation angle data of the right travel module of the vehicle.

9. The method according to any one of claims 1-8, characterized in that, The left-side traveling module includes a left-side motor, and the right-side traveling module includes a right-side motor. Acquiring the first cumulative angle data and the second cumulative angle data includes: Obtain the first speed data of the left motor and the second speed data of the right motor; The first cumulative angle data is obtained based on the first rotational speed data; The second cumulative angle data is obtained based on the second rotational speed data.

10. The method according to any one of claims 1-8, characterized in that, The left-side traveling module includes a left-side motor, and the right-side traveling module includes a right-side motor. Acquiring the first cumulative angle data and the second cumulative angle data includes: The first accumulated angle data is obtained through the first refractive index sensor; The second cumulative angle data is obtained by a second refractive index sensor.

11. The method according to any one of claims 1-8, characterized in that, The left-side travel module includes a left-side wheel, and the right-side travel module includes a right-side wheel. Acquiring the first cumulative angle data and the second cumulative angle data includes: Obtain the third rotational speed data of the left wheel and the fourth rotational speed data of the right wheel; The first cumulative angle data is obtained based on the third rotational speed data; The second cumulative angle data is obtained based on the fourth rotational speed data.

12. The method according to any one of claims 1-11, characterized in that, The left-side traveling module includes a left-side motor, the right-side traveling module includes a right-side motor, and the method further includes: Based on the degree of lateral deviation of the vehicle while traveling in a straight line for a first duration, the output torque of the left motor and / or the output torque of the right motor are adjusted so that the degree of lateral deviation of the vehicle while traveling in a straight line approaches 0.

13. A processing apparatus, characterized in that, The processing device includes: The acquisition unit is used to acquire first cumulative angle data and second cumulative angle data. The first cumulative angle data is the angle data of the left travel module of the vehicle rotating within a first time period, and the second cumulative angle data is the angle data of the right travel module of the vehicle rotating within the first time period. During the first time period, the vehicle travels in a straight line. The processing unit is configured to determine the degree of lateral deviation of the vehicle when it travels in a straight line for a first duration based on the first cumulative angle data and the second cumulative angle data, wherein the degree of lateral deviation is related to the difference between the first cumulative angle data and the second cumulative angle data.

14. A computing device, characterized in that, The computing device includes a processor and a memory, the memory storing a program, and the processor executing the program to cause the computing device to perform the method as described in any one of claims 1-12.

15. A vehicle, characterized in that, The vehicle includes the processing device as described in claim 13 or the computing device as described in claim 14.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, the computer program including instructions for performing the method as described in any one of claims 1-12.

17. A computer program product, characterized in that, The computer program product includes instructions that, when executed by a processor, cause the method as described in any one of claims 1-12 to be implemented.