Vehicle lateral control method, device, equipment, program product and vehicle
By determining the horizontal control mode according to road environment information and control instructions in the autonomous driving system, and calculating the steering wheel compensation angle, the problems of steering wheel slamming and shaking are solved, and the safety of autonomous driving is improved.
Patent Information
- Application Number
- CN202410211382.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-02-26
AI Technical Summary
During the lateral control of autonomous driving, the difference between the steering wheel value and the control command causes the steering wheel to slam and shake, affecting safety.
Different lateral control modes are determined based on road environment information and lateral control instructions, and the steering wheel compensation angle is calculated based on these modes to adjust the steering wheel angle to avoid instantaneous striking and jitter.
It significantly improves the safety of autonomous driving, ensures that the vehicle can drive stably in different road environments and control stages, and avoids abnormal shaking and violent shaking of the steering wheel.
Smart Images

Figure CN117864171B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a vehicle lateral control method, device, equipment, program product and vehicle. Background Art
[0002] Lateral control is one of the core technologies of autonomous driving, which is related to the safety, comfort and economy of autonomous driving. At present, the general lateral control is to send steering wheel control instructions to the chassis to make the vehicle drive in the center of the road. However, in the lateral control process, if the current steering wheel value of the vehicle is significantly different from the steering wheel control instruction, it will cause the steering wheel to slam and shake instantly, thus affecting the safety of autonomous driving. Summary of the invention
[0003] In order to solve the above problems, the present application proposes a vehicle lateral control method, device, equipment, program product and vehicle, which can significantly improve the safety of autonomous driving.
[0004] According to a first aspect of an embodiment of the present application, a lateral control method for a vehicle is provided, comprising:
[0005] Determining a lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction; wherein the lateral control mode is a control mode determined for lateral control at different stages;
[0006] determining a steering wheel compensation angle of the target vehicle based on the lateral control mode;
[0007] The target vehicle is controlled to travel based on the steering wheel compensation angle.
[0008] According to a second aspect of an embodiment of the present application, a lateral control device for a vehicle is provided, comprising:
[0009] A determination module, used to determine a lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction; wherein the lateral control mode is a control mode determined for lateral control at different stages;
[0010] A calculation module, configured to determine a steering wheel compensation angle of the target vehicle based on the lateral control mode;
[0011] A control module is used to control the target vehicle to travel based on the steering wheel compensation angle.
[0012] A third aspect of the present application provides an electronic device, including:
[0013] Memory and processor;
[0014] The memory is connected to the processor and is used to store programs;
[0015] The processor implements the above-mentioned vehicle lateral control method by running the program in the memory.
[0016] A fourth aspect of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned vehicle lateral control method is implemented.
[0017] A fifth aspect of the present application provides a vehicle to implement the above-mentioned vehicle lateral control method.
[0018] One embodiment of the above application has the following advantages or beneficial effects:
[0019] The lateral control mode corresponding to the target vehicle is determined based on the road environment information and lateral control instructions of the target vehicle, and the steering wheel compensation angle of the target vehicle is determined according to the lateral control mode. The target vehicle is controlled to travel based on the steering wheel compensation angle. It can be seen that since the lateral control mode is a control mode determined for lateral control at different stages, different steering wheel compensation angles can be used to compensate the steering wheel angle of the target vehicle in the face of lateral control at different stages, thereby avoiding the phenomenon of instantaneous slamming and shaking of the steering wheel in the lateral control process, thereby improving the safety of autonomous driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0021] Figure 1 A schematic flow chart of a lateral control method for a vehicle provided in an embodiment of the present application;
[0022] Figure 2 A schematic flow chart of a method for lateral control of a vehicle in an upper control process of lateral control provided in an embodiment of the present application;
[0023] Figure 3 A schematic flow chart of a method for lateral control of a vehicle during a down-control process of lateral control provided in an embodiment of the present application;
[0024] Figure 4 A schematic flow chart of a method for lateral control of a vehicle during a lateral control process provided by an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of a lateral control device for a vehicle provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] Exemplary Methods
[0029] Figure 1 is a flow chart of a lateral control method for a vehicle according to an embodiment of the present application. In an exemplary embodiment, a lateral control method for a vehicle is provided, comprising:
[0030] S110, determining a lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction; wherein the lateral control mode is a control mode determined for lateral control at different stages;
[0031] S120, determining a steering wheel compensation angle of the target vehicle based on the lateral control mode;
[0032] S130: Controlling the target vehicle to travel based on the steering wheel compensation angle.
[0033] In step S110, illustratively, in the related art, the lateral control can be roughly divided into three stages in the process, namely, the upper control stage (i.e., starting the lateral control), the control process (i.e., performing the lateral control), and the lower control stage (i.e., ending the lateral control). At the moment of the upper control, the position of the vehicle may not be on the center line of the road, that is, the lateral position and the heading angle may have a certain amount of deviation. After calculation by the lateral controller, the steering wheel control command is output. If the steering wheel angle corresponding to the steering wheel control command of the vehicle upper control moment is greatly different, it will cause the steering wheel to be violently turned instantly. During the control process, the road structure may change, such as the road suddenly widens or narrows. Then the input received by the lateral controller (such as: lateral position error and heading angle error, etc.) will jump between frames, and the corresponding control command will also jump. If it is sent directly to the chassis wire control module, it will cause the steering wheel to shake. This abnormal shaking will be converted into shaking of the vehicle body in the high-speed driving scene of the vehicle, causing adverse reactions to the driver and passengers. The process of down-control is divided into active down-control by humans (such as taking over the steering wheel) and passive down-control (such as the road line is blurred or disappears for a short time). In passive down-control, the lateral control function may be forced to down-control because it cannot receive the road reference line, and remind the driver to take over the vehicle urgently. There is a time difference of seconds between down-control and the actual takeover by the driver. If the vehicle is driving at high speed, directly down-controlling the steering wheel angle to 0 is likely to cause dangerous behaviors such as vehicle deviation.
[0034] Therefore, according to the different stages of lateral control, the first lateral control mode, the second lateral control mode and the third lateral control mode are obtained; wherein, the first lateral control mode is for the process of the vehicle entering lateral control. wherein, the process of the vehicle entering lateral control means from the moment the vehicle starts lateral control to the moment the current steering wheel angle reaches the target steering wheel angle calculated by the lateral controller. the second lateral control mode is for the process of the vehicle exiting lateral control, that is, the process of the vehicle exiting lateral control means from the moment the vehicle ends lateral control to the moment the current steering wheel angle changes to 0. the third lateral control mode is for the process of the vehicle undergoing lateral control.
[0035] Exemplarily, the target vehicle can be any vehicle or a designated vehicle, and the target vehicle can be an unmanned vehicle or a manually driven vehicle, which is not limited here. The road environment information represents the lane information collected by the target vehicle through various sensors. For example, lane line information, obstacle information, etc. The lateral control instruction represents that the driver operates in the cab to trigger the steering wheel to turn the vehicle automatically. For example, press the button for automatic driving on the center console to trigger the lateral control instruction. For another example, click the control for automatic driving on the display screen to trigger the lateral control instruction.
[0036] Specifically, the correspondence between the road environment information, the lateral control instruction and the lateral control mode can be preset. In this way, after the road environment information collected by the sensor of the target vehicle and the reception of the lateral control instruction are determined, the corresponding lateral control mode can be found in the above correspondence. It should be noted that the road environment information meets the preset road environment conditions and the lateral control instruction is received, which is a necessary condition for lateral control. For example, the road environment information collected by the sensor of the target vehicle meets the preset road environment conditions and the lateral control instruction is received, indicating that the target vehicle is in the upper control stage, that is, the upper control process needs to be controlled, and the target vehicle is in the first lateral control mode.
[0037] In step S120, illustratively, the steering wheel compensation angle represents an angle value used to compensate for the steering wheel target angle calculated by the lateral controller. Specifically, different steering wheel compensation angles can be set in advance according to different lateral control modes to form a corresponding relationship between the lateral control mode and the steering wheel compensation angle. For example, the first lateral control mode corresponds to the steering wheel compensation angle A, the second lateral control mode corresponds to the steering wheel compensation angle B, and the third lateral control mode corresponds to the steering wheel compensation angle C. In this way, after determining the lateral control mode, the steering wheel compensation angle can be directly found in the above corresponding relationship.
[0038] Alternatively, different steering wheel angle change rates may be set in advance according to different lateral control modes, and the current steering wheel angle of the target vehicle or the steering wheel compensation angle of the previous frame may be adjusted according to the steering wheel angle change rate to calculate the steering wheel compensation angle of the target vehicle.
[0039] In step S130, specifically, a steering wheel post-processing instruction is generated according to the steering wheel compensation angle, and the steering wheel post-processing instruction is sent to the chassis wire control module, so that the chassis wire control module receives the steering wheel compensation angle and compensates the steering wheel angle of the target vehicle so that the target vehicle drives in the center.
[0040] In the technical solution of the present application, the lateral control mode corresponding to the target vehicle is determined based on the road environment information of the target vehicle and the lateral control instruction, and the steering wheel compensation angle of the target vehicle is determined according to the lateral control mode. The driving of the target vehicle is controlled based on the steering wheel compensation angle. It can be seen that since the lateral control mode is a control mode determined for lateral control at different stages, different steering wheel compensation angles can be used to compensate the steering wheel angle of the target vehicle in the face of lateral control at different stages, thereby avoiding the phenomenon of instantaneous slamming and shaking of the steering wheel in the lateral control process, thereby improving the safety of automatic driving.
[0041] In one embodiment, the determining of the lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction, step S110 includes:
[0042] The road environment information and lateral control instructions of the target vehicle in the k-1th frame and the road environment information and lateral control instructions of the target vehicle in the kth frame are compared to determine the lateral control mode of the target vehicle in the kth frame; wherein k is a positive integer greater than 1.
[0043] Exemplarily, the road environment information and lateral control instructions of the target vehicle in the k-1th frame and the road environment information and lateral control instructions of the target vehicle in the kth frame are compared to determine the lateral control stage corresponding to the target vehicle in the kth frame; and the corresponding lateral control mode is determined according to the lateral control stage corresponding to the target vehicle in the kth frame.
[0044] Specifically, the road environment information and lateral control instructions of the two frames before and after are compared to more accurately distinguish the moment of starting lateral control and the moment of ending lateral control, so as to more accurately determine the lateral control stage corresponding to the target vehicle in the kth frame. In order to distinguish whether the vehicle is in the process of entering lateral control or exiting lateral control. And because both starting lateral control and performing lateral control require that the road environment information of the current frame meets the preset road environment conditions and receives the lateral control instruction, the process of entering lateral control and the process of performing lateral control can be better distinguished by comparing the current frame with the previous frame.
[0045] In one implementation, when the lateral control mode is the first lateral control mode, comparing the road environment information and lateral control instruction of the target vehicle in the k-1th frame with the road environment information and lateral control instruction of the target vehicle in the kth frame to determine the lateral control mode of the target vehicle in the kth frame includes:
[0046] When the road environment information of the target vehicle in the k-1th frame does not meet the preset road environment conditions or the target vehicle in the k-1th frame does not receive the lateral control instruction, if the road environment information of the target vehicle in the kth frame meets the preset road environment conditions and the target vehicle in the kth frame receives the lateral control instruction, it is determined that the target vehicle in the kth frame is in the first lateral control mode.
[0047] Exemplarily, the preset road environment condition may be that the lane line detected by the vehicle is clear and complete. Specifically, flags may be set for the road environment and lateral control instructions respectively, and it is to be understood that the flags are not limited to being represented by numbers or words. For example, 0, 1; true, false. Optionally, if the road environment meets the preset road environment condition, that is, the road structure is clear, the road environment flag corresponding to the road environment outputs true; if the road environment does not meet the preset road environment condition, that is, the road structure is unclear, the road environment flag corresponding to the road environment outputs false. If a lateral control instruction is received, the corresponding control behavior flag outputs true; if no lateral control instruction is received, the corresponding control behavior flag outputs false.
[0048] The lateral control is divided into active upper control and passive upper control. Active upper control means that the road environment flag of the k-1th frame outputs true, the control behavior flag outputs false, the road environment flag of the kth frame outputs true, and the control behavior flag outputs true. Passive upper control means that the road environment flag of the k-1th frame outputs false, the control behavior flag outputs true, the road environment flag of the kth frame outputs true, and the control behavior flag outputs true.
[0049] Therefore, the road environment information and lateral control instructions of the target vehicle in the k-1th frame and the kth frame are obtained respectively, and the road environment flags and control behavior flags of the k-1th frame and the kth frame are compared. If the conditions in starting lateral control are met, the target vehicle in the kth frame is in the first lateral control mode. Further, in order to facilitate the representation of the first lateral control mode, the upper control process flag is set to represent the first lateral control mode. That is, when the road environment flags and control behavior flags of the k-1th frame and the kth frame meet the conditions in starting lateral control, the upper control process flag outputs true. It should be noted that when the program is initialized, the upper control process flag outputs false. In this way, the first lateral control mode that takes into account the change of the upper control process (i.e., from the moment the vehicle starts lateral control until the current steering wheel angle reaches the steering wheel target angle of the lateral controller) is introduced, making the driving of the autonomous driving vehicle safer and improving the user experience.
[0050] Further, when the lateral control mode is the first lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes:
[0051] The current steering wheel angle of the target vehicle in the kth frame, the first steering wheel target angle and the preset first steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
[0052] Exemplarily, the first steering wheel target angle is a steering wheel target angle calculated by the lateral controller. The steering wheel angle change rate indicates the steering wheel angle change rate between frames. The preset first steering wheel angle change rate may be set according to the speed of the target vehicle. A larger steering wheel angle change rate may be set for a vehicle with a low speed, and a smaller steering wheel angle change rate may be set for a vehicle with a high speed. For example, when the vehicle speed is lower than a preset speed threshold, the first steering wheel angle change rate is set to A, and when the vehicle speed is not lower than the preset speed threshold, the first steering wheel angle change rate is set to B. And A is greater than B.
[0053] Specifically, the difference between the current steering wheel angle of the target vehicle in the kth frame and the first steering wheel target angle is calculated to obtain the angle difference. When the angle difference is not less than the preset difference, the upper control process flag output is determined to be true again, that is, it is in the first lateral control mode. Therefore, it is necessary to adjust the steering wheel angle, calculate the angle difference using the sign function, and return an integer variable. Then multiply the returned integer variable by the first steering wheel angle change rate and the control period to obtain the first compensation angle. Finally, the first compensation angle is added to the current steering wheel angle to obtain the steering wheel compensation angle. In this way, the steering wheel can be prevented from shaking and slamming during the upper control process of the lateral control, thereby improving the safety of autonomous driving.
[0054] Furthermore, the method further comprises:
[0055] Calculate the angle difference between the current steering wheel angle of the target vehicle in the kth frame and the first steering wheel target angle; when the angle difference is less than a preset difference, exit the first lateral control mode, and control the target vehicle to travel based on the first steering wheel target angle.
[0056] Specifically, the difference between the current steering wheel angle of the target vehicle in the kth frame and the first steering wheel target angle is calculated to obtain the angle difference. When the angle difference is less than the preset difference, it means that the steering wheel angle does not need to be adjusted, and the first steering wheel target angle is output. The first lateral control mode is exited, that is, the upper control process flag outputs false. Then the target vehicle is controlled to travel according to the first steering wheel target angle.
[0057] In this embodiment, if Figure 2 As shown, there are two entry conditions for adjusting the steering wheel angle during the upper control process of lateral control, condition 1: start lateral control; condition 2: the upper control process flag is true (Note: when the program is initialized, the upper control process flag 1 defaults to false).
[0058] As long as condition 1 is met, that is, when the upper control is instantaneous, the upper control process flag is set to true. When condition 2 is entered, the upper control process flag is not modified.
[0059] Read the current steering wheel angle (denoted as δ chassis ) and the first steering wheel target angle (denoted as δ) corresponding to the steering wheel control command calculated by the lateral controller controller After the processing of the first lateral control mode, the compensation angle of the steering wheel corresponding to the updated steering wheel control command is obtained (denoted as δ output ).
[0060] Calculate control instruction δ controller and the current steering wheel angle δ chassis The angle difference δ gap
[0061] δ gap =δ controller -δ chassis
[0062] Update the upper control process flag activate_control
[0063]
[0064] Where: is the steering wheel difference δ during the upper control process gap That is, when calculating the control instruction δ controller and the current steering wheel angle δ chassis The difference between gap Less than When the first lateral control mode is exited, the steering wheel control command δ controller Output. That is, δ output =δ controller .
[0065] If the control instruction δ is calculated controller and the current steering wheel angle δ chassis The difference between gap Greater than or equal to That is, the upper control process flag is true. Then according to the preset first steering wheel angle change rate Process the steering wheel control command and output:
[0066]
[0067] Wherein: sign(*) is the sign function, and h is the control period. Wherein, h can be set to 20 milliseconds, which is not limited here.
[0068] In one implementation, when the lateral control mode is the second lateral control, comparing the road environment information and lateral control instruction of the target vehicle in the k-1th frame with the road environment information and lateral control instruction of the target vehicle in the kth frame to determine the lateral control mode of the target vehicle in the kth frame includes:
[0069] When the road environment information of the target vehicle in the k-1th frame meets the preset road environment conditions and the road environment information of the target vehicle in the kth frame does not meet the preset road environment conditions, or the reception conditions of the lateral control instructions of the target vehicles in the k-1th frame and the kth frame are different, it is determined that the target vehicle in the kth frame is in the second lateral control mode.
[0070] Specifically, the end of lateral control is divided into active down-control and passive down-control. Active down-control means that the control behavior flag of the k-1th frame is true; the control behavior flag of the kth frame is false. Passive down-control means that the road environment flag of the k-1th frame is true and the control behavior flag is true; the road environment flag of the kth frame is false and the control behavior flag is true.
[0071] Therefore, the road environment information and lateral control instructions of the target vehicle in the k-1th frame and the kth frame are obtained respectively, and the road environment flags and control behavior flags of the k-1th frame and the kth frame are compared. If the conditions in ending the lateral control are met, the target vehicle in the kth frame is in the second lateral control mode. Further, in order to facilitate the representation of the second lateral control mode, the lower control process flag is set to represent the second lateral control mode. That is, when the road environment flags and control behavior flags of the k-1th frame and the kth frame meet the conditions in starting the lateral control, the lower control process flag outputs true. It should be noted that when the program is initialized, the lower control process flag outputs false. In this way, the introduction of the second lateral control mode that takes into account the change of the lower control process (i.e., from the moment the vehicle ends the lateral control to the moment the current steering wheel angle changes to 0) makes the driving of the autonomous driving vehicle safer and improves the user experience.
[0072] Further, when the lateral control mode is the second lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes:
[0073] The steering wheel compensation angle of the target vehicle in the k-1th frame and the preset second steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
[0074] Exemplarily, the steering wheel angle change rate represents the steering wheel angle change rate between frames. The preset second steering wheel angle change rate may be set according to the speed of the target vehicle, and a larger steering wheel angle change rate may be set for a vehicle with a low speed, and a smaller steering wheel angle change rate may be set for a vehicle with a high speed.
[0075] Specifically, if the steering wheel compensation angle of the target vehicle in the k-1th frame is 0, the calculation of the steering wheel compensation angle of the target vehicle in the k-1th frame is stopped. If the steering wheel compensation angle of the target vehicle in the k-1th frame is not 0, the steering wheel compensation angle of the target vehicle in the k-1th frame is calculated using a sign function, and an integer variable is returned. The returned integer variable is then multiplied by the second steering wheel angle change rate and the control period to obtain the second compensation angle. Finally, the second compensation angle is added to the steering wheel compensation angle of the target vehicle in the k-1th frame to obtain the steering wheel compensation angle. In this way, the steering wheel can be prevented from shaking and slamming during the lateral control process, thereby improving the safety of autonomous driving.
[0076] In this embodiment, if Figure 3 As shown, there are two entry conditions for adjusting the steering wheel angle during the down control process of the lateral control: Condition 1: End the lateral control; Condition 2: The down control process flag is true.
[0077] As long as condition 1 is met, the down-control process flag is set to true (Note: when the program is initialized, the down-control process flag is false by default). When entering from condition 2, the down-control process flag is not changed.
[0078] If the steering wheel compensation angle corresponding to the steering wheel command output in the k-1th frame If the steering wheel compensation angle corresponding to the steering wheel command output in the k-1th frame is If it is not 0, the second steering wheel angle change rate is set. Process the steering wheel control command and output:
[0079]
[0080] In one embodiment, the method for determining the third lateral control mode includes:
[0081] When the lateral control mode is neither the first lateral control mode nor the second lateral control mode, if the road environment information of the target vehicle meets the preset road environment conditions and the target vehicle receives a lateral control instruction, the lateral control mode is determined to be the third lateral control mode.
[0082] For example, when it is determined that the target vehicle of the kth frame does not belong to the first lateral control mode and does not belong to the second lateral control mode according to the road environment information and the lateral control instruction, it means that the target vehicle of the kth frame is not in the process of entering the lateral control, nor is it in the process of exiting the lateral control. That is, the upper control process flag is controlled to output false, and the lower control process flag is controlled to output false. At this time, if the road environment flag of the kth frame is false and the control behavior flag is true, it means that the target vehicle of the kth frame is in the process of performing lateral control.
[0083] It should be noted that in the process of determining the lateral control mode corresponding to the target vehicle based on the road environment information and the lateral control command, the output of the upper control process flag and the lower control process flag will be changed in real time according to the road environment flag and the control behavior flag. For example, when the road environment flag is false, the upper control process flag must be false; when the road environment flag is true and the control behavior flag is true, the lower control process flag must be false.
[0084] Further, when the lateral control mode is the third lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes:
[0085] The steering wheel compensation angle, the second steering wheel target angle and the preset third steering wheel angle change rate of the target vehicle in the k-1th frame are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame. Exemplarily, the second steering wheel target angle is the steering wheel target angle calculated by the lateral controller. The steering wheel angle change rate represents the steering wheel angle change rate between frames. The preset third steering wheel angle change rate can be set according to the speed of the target vehicle. A larger steering wheel angle change rate can be set for a vehicle with a low speed, and a smaller steering wheel angle change rate can be set for a vehicle with a high speed. It should be noted that the first steering wheel angle change rate, the second steering wheel angle change rate and the third steering wheel angle change rate can be the same value or different values.
[0086] Specifically, the second steering wheel target angle corresponding to the steering wheel control command calculated by the lateral controller in the kth frame and the steering wheel compensation angle of the target vehicle in the k-1th frame are read. The current steering wheel angle change rate is calculated according to the steering wheel compensation angle of the target vehicle in the k-1th frame and the second steering wheel target angle. That is, the second steering wheel target angle is subtracted from the steering wheel compensation angle of the target vehicle in the k-1th frame to obtain the angle difference. Then the ratio of the angle difference to the control period is calculated to obtain the current steering wheel angle change rate.
[0087] If the current steering wheel angle change rate is not greater than the preset third steering wheel angle change rate, the second steering wheel target angle is output. The target vehicle is controlled to travel according to the second steering wheel target angle. If the current steering wheel angle change rate is greater than the preset third steering wheel angle change rate, the steering wheel angle of the target vehicle needs to be compensated. That is, the difference between the second steering wheel target angle and the steering wheel compensation angle of the target vehicle in the k-1 frame is calculated using a sign function, and an integer variable is returned. The returned integer variable is then multiplied by the third steering wheel angle change rate and the control period to obtain the third compensation angle. Finally, the third compensation angle is added to the steering wheel compensation angle of the target vehicle in the k-1 frame to obtain the steering wheel compensation angle. In this way, the steering wheel can be prevented from shaking and slamming during the lateral control process, thereby improving the safety of autonomous driving.
[0088] In this embodiment, if Figure 4 As shown, the entry conditions for adjusting the steering wheel angle during the lateral control process are that the upper control process flag outputs false and the lower control process flag outputs false, the road environment flag is false, and the control behavior flag is true.
[0089] Read the steering wheel control command of the k-1th frame and record it as And determine the second steering wheel target angle corresponding to the steering wheel control command calculated by the lateral controller in the kth frame as Then the current change rate of the steering wheel between frames for
[0090]
[0091] If the current change rate of the steering wheel between frames Greater than the preset third steering wheel angle change rate Then enter the next step of compensating the steering wheel command. Process the steering wheel control instructions and output the steering wheel compensation angle of the target vehicle in the kth frame:
[0092]
[0093] Exemplary Devices
[0094] Accordingly, Figure 5 1 is a schematic diagram of the structure of a lateral control device for a vehicle according to an embodiment of the present application. In an exemplary embodiment, a lateral control device for a vehicle is provided, comprising:
[0095] A determination module 510, configured to determine a lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction; wherein the lateral control mode is a control mode determined for lateral control at different stages;
[0096] A calculation module 520, configured to determine a steering wheel compensation angle of the target vehicle based on the lateral control mode;
[0097] The control module 530 is used to control the target vehicle to travel based on the steering wheel compensation angle.
[0098] In one embodiment, the lateral control mode includes: a first lateral control mode, a second lateral control mode, and a third lateral control mode;
[0099] The first lateral control mode is for the process of the vehicle entering lateral control; the second lateral control mode is for the process of the vehicle exiting lateral control; and the third lateral control mode is for the process of the vehicle performing lateral control.
[0100] In one embodiment, the method for determining the third lateral control mode includes:
[0101] When the lateral control mode is neither the first lateral control mode nor the second lateral control mode, if the road environment information of the target vehicle meets the preset road environment conditions and the target vehicle receives a lateral control instruction, the lateral control mode is determined to be the third lateral control mode.
[0102] In one implementation, the determining module 510 further includes:
[0103] The control mode module is used to compare the road environment information and lateral control instructions of the target vehicle in the k-1th frame, and the road environment information and lateral control instructions of the target vehicle in the kth frame, and determine the lateral control mode of the target vehicle in the kth frame; wherein k is a positive integer greater than 1.
[0104] In one implementation, when the lateral control mode is the first lateral control mode, the control mode module is further configured to:
[0105] When the road environment information of the target vehicle in the k-1th frame does not meet the preset road environment conditions or the target vehicle in the k-1th frame does not receive the lateral control instruction, if the road environment information of the target vehicle in the kth frame meets the preset road environment conditions and the target vehicle in the kth frame receives the lateral control instruction, it is determined that the target vehicle in the kth frame is in the first lateral control mode.
[0106] In one implementation, when the lateral control mode is the second lateral control, the control mode module is further configured to:
[0107] When the road environment information of the target vehicle in the k-1th frame meets the preset road environment conditions and the road environment information of the target vehicle in the kth frame does not meet the preset road environment conditions, or the reception conditions of the lateral control instructions of the target vehicles in the k-1th frame and the kth frame are different, it is determined that the target vehicle in the kth frame is in the second lateral control mode.
[0108] In one implementation, when the lateral control mode is the first lateral control mode, the calculation module 520 is further configured to:
[0109] The current steering wheel angle of the target vehicle in the kth frame, the first steering wheel target angle and the preset first steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
[0110] In one embodiment, the device further comprises:
[0111] A steering angle difference calculation module, used to calculate the steering angle difference between the current steering wheel angle of the target vehicle in the kth frame and the first steering wheel target angle;
[0112] An exit module is used to exit the first lateral control mode when the angle difference is less than a preset difference, and control the target vehicle to travel based on the first steering wheel target angle.
[0113] In one implementation, when the lateral control mode is the second lateral control mode, the calculation module 520 is further configured to:
[0114] The steering wheel compensation angle of the target vehicle in the k-1th frame and the preset second steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
[0115] In one implementation, when the lateral control mode is the third lateral control mode, the calculation module 520 is further configured to:
[0116] The steering wheel compensation angle of the target vehicle in the k-1th frame, the second steering wheel target angle and the preset third steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
[0117] Another embodiment of the present application further provides a vehicle, wherein the vehicle is configured to execute the lateral control method of the vehicle disclosed in any embodiment.
[0118] The device provided in this embodiment belongs to the same application concept as the method provided in the above embodiment of this application, can execute the method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of the execution method. For the technical details not fully described in this embodiment, please refer to the specific processing content of the method provided in the above embodiment of this application, which will not be repeated here.
[0119] Exemplary Electronic Devices
[0120] Another embodiment of the present application also provides an electronic device, see Figure 6 As shown, the device includes:
[0121] Memory 600 and processor 610;
[0122] The memory 600 is connected to the processor 610 and is used to store programs;
[0123] The processor 610 is used to implement the lateral control method of the vehicle disclosed in any of the above embodiments by running the program stored in the memory 600.
[0124] Specifically, the electronic device may further include: a bus, a communication interface 620 , an input device 630 and an output device 640 .
[0125] The processor 610, the memory 600, the communication interface 620, the input device 630 and the output device 640 are connected to each other via a bus.
[0126] A bus may include a pathway that transfers information between components of a computer system.
[0127] The processor 610 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0128] The processor 610 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0129] The memory 600 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 600 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0130] The input device 630 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0131] Output device 640 may include a device that allows information to be output to a user, such as a display screen, printer, speaker, etc.
[0132] The communication interface 620 may include any transceiver-like device to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc. The processor 610 executes the program stored in the memory 600 and calls other devices to implement the various steps of any vehicle lateral control method provided in the above embodiments of the present application.
[0133] Exemplary computer program products and storage media
[0134] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the lateral control method of a vehicle according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.
[0135] The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in this application is performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0136] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0137] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the lateral control method of a vehicle according to various embodiments of the present application described in the above "Exemplary Method" section of this specification. The specific working content of the above-mentioned electronic device, as well as the specific working content of the above-mentioned computer program product and the computer program on the storage medium when being executed by the processor, can all be found in the contents of the above-mentioned method embodiments and will not be repeated here.
[0138] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0139] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0140] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0141] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0143] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0146] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0147] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0148] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A lateral control method for a vehicle, characterized in that: include: Determine the lateral control mode corresponding to the target vehicle based on the road environment information and lateral control instructions of the target vehicle; wherein the lateral control mode is a control mode determined for lateral control at different stages; the first lateral control mode is for the process of the target vehicle entering lateral control, and the process of the target vehicle entering lateral control means from the moment the target vehicle starts lateral control to the moment the current steering wheel angle reaches the target steering wheel angle calculated by the lateral controller; the second lateral control mode is for the process of the target vehicle exiting lateral control, and the process of the target vehicle exiting lateral control means from the moment the target vehicle ends lateral control to the moment the current steering wheel angle changes to 0; the third lateral control mode is for the process of the vehicle undergoing lateral control; determining a steering wheel compensation angle of the target vehicle based on the lateral control mode; The target vehicle is controlled to travel based on the steering wheel compensation angle.
2. The method according to claim 1, characterized in that The method for determining the third lateral control mode comprises: When the lateral control mode is neither the first lateral control mode nor the second lateral control mode, if the road environment information of the target vehicle meets the preset road environment conditions and the target vehicle receives a lateral control instruction, the lateral control mode is determined to be the third lateral control mode.
3. The method according to claim 1, characterized in that: The determining of the lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction includes: The road environment information and lateral control instructions of the target vehicle in the k-1th frame and the road environment information and lateral control instructions of the target vehicle in the kth frame are compared to determine the lateral control mode of the target vehicle in the kth frame; wherein k is a positive integer greater than 1.
4. The method according to claim 3, characterized in that When the lateral control mode is the first lateral control mode, comparing the road environment information and lateral control instruction of the target vehicle in the k-1th frame with the road environment information and lateral control instruction of the target vehicle in the kth frame to determine the lateral control mode of the target vehicle in the kth frame, including: When the road environment information of the target vehicle in the k-1th frame does not meet the preset road environment conditions or the target vehicle in the k-1th frame does not receive the lateral control instruction, if the road environment information of the target vehicle in the kth frame meets the preset road environment conditions and the target vehicle in the kth frame receives the lateral control instruction, it is determined that the target vehicle in the kth frame is in the first lateral control mode.
5. The method according to claim 3, characterized in that: In the case where the lateral control mode is the second lateral control, comparing the road environment information and lateral control instruction of the target vehicle in the k-1th frame with the road environment information and lateral control instruction of the target vehicle in the kth frame to determine the lateral control mode of the target vehicle in the kth frame, including: When the road environment information of the target vehicle in the k-1th frame meets the preset road environment conditions and the road environment information of the target vehicle in the kth frame does not meet the preset road environment conditions, or the reception conditions of the lateral control instructions of the target vehicles in the k-1th frame and the kth frame are different, it is determined that the target vehicle in the kth frame is in the second lateral control mode.
6. The method according to claim 4, characterized in that When the lateral control mode is the first lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes: The current steering wheel angle of the target vehicle in the kth frame, the first steering wheel target angle and the preset first steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
7. The method according to claim 6, characterized in that The method further comprises: Calculate the angle difference between the current steering wheel angle of the target vehicle in the kth frame and the first steering wheel target angle; When the angle difference is less than a preset difference, the first lateral control mode is exited, and the target vehicle is controlled to travel based on the first steering wheel target angle.
8. The method according to claim 5, characterized in that When the lateral control mode is the second lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes: The steering wheel compensation angle of the target vehicle in the k-1th frame and the preset second steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
9. The method according to claim 2, characterized in that: When the lateral control mode is the third lateral control mode, determining the steering wheel compensation angle of the target vehicle based on the lateral control mode includes: The steering wheel compensation angle of the target vehicle in the k-1th frame, the second steering wheel target angle and the preset third steering wheel angle change rate are calculated to obtain the steering wheel compensation angle of the target vehicle in the kth frame.
10. A lateral control device for a vehicle, characterized in that: include: A determination module, for determining a lateral control mode corresponding to the target vehicle based on the road environment information of the target vehicle and the lateral control instruction; wherein the lateral control mode is a control mode determined for lateral control at different stages; the first lateral control mode is a process for the target vehicle to enter lateral control, and the process for the target vehicle to enter lateral control means from the moment the target vehicle starts lateral control to the moment the current steering wheel angle reaches the target steering wheel angle calculated by the lateral controller; the second lateral control mode is a process for the target vehicle to exit lateral control, and the process for the target vehicle to exit lateral control means from the moment the target vehicle ends lateral control to the moment the current steering wheel angle changes to 0; the third lateral control mode is a process for the vehicle to be in lateral control; A calculation module, configured to determine a steering wheel compensation angle of the target vehicle based on the lateral control mode; A control module is used to control the target vehicle to travel based on the steering wheel compensation angle.
11. An electronic device, characterized in that: include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor implements the lateral control method of a vehicle as claimed in any one of claims 1 to 1 to 9 by running the program in the memory.
12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the lateral control method of a vehicle according to any one of claims 1 to 9.
13. A vehicle, characterized in that: The vehicle is configured to execute the lateral control method of the vehicle as claimed in any one of claims 1 to 9.
