An integrated control method and system for lane keeping and lane changing of an autonomous driving vehicle
Through the integrated control method and integrated lane keeping and lane changing controller, the automatic driving reference trajectory is generated, which solves the complexity problem of switching between lane keeping and lane changing behaviors in the automatic driving system, and achieves seamless switching and traffic environment perception. The direct utilization improves the adaptability and simplicity of the system.
Patent Information
- Application Number
- CN202210540170.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-05-17
AI Technical Summary
Existing autonomous driving systems lack seamless switching capabilities between lane keeping and lane changing driving behaviors, resulting in a complicated control system and failure to effectively incorporate traffic environment changes into control, increasing design difficulty and system complexity.
The integrated control method is used to obtain road environment information through sensors, generate a coordinate set of lane line reference points, generate an automatic driving reference trajectory, and input it into the integrated lane keeping and lane changing controller to solve the steering angle and acceleration control instructions to achieve lane keeping. and seamless switching between lane changes.
It simplifies the autonomous driving control system, reduces the design difficulty, improves the system's adaptability to complex scenarios, enhances functional integration, reduces the gap between the environment perception and control systems, and achieves seamless switching between lane keeping and lane changing.
Smart Images

Figure CN114750785B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent vehicles and relates to a control method and system for an automatic driving vehicle. Background Art
[0002] Lane keeping and lane changing are two basic driving behaviors when people drive vehicles on structured roads. They are also two basic control issues for autonomous vehicles. The automatic lane keeping controller keeps the vehicle in its lane while maintaining speed and avoiding collisions, while the automatic lane change controller drives the vehicle smoothly and safely to the adjacent lane. However, currently, lane keeping and lane changing are controlled by different methods. Fully automated or highly automated vehicles need to be equipped with control modules that can automatically keep lanes and change lanes at the same time, and have the function of seamlessly switching from one module to another, which greatly increases the complexity of the autonomous driving control system.
[0003] The perception system and control system are the two major subsystems of the autonomous driving system. The former captures traffic environment information, the state information of the controlled vehicle, and information about other traffic participants, while the latter is usually composed of road planning, driving behavior decision-making, motion planning, and feedback control modules. However, most of the current autonomous driving control systems often only consider the planning or control tasks of lane keeping, following driving, or lane changing behaviors in a specific driving scenario. In order to cope with the complex and continuous driving control process, the autonomous driving control system will be organized into a cumbersome hierarchical structure, which undoubtedly makes the autonomous driving control system more complicated. In addition, the traffic environment is not static during the control process of the autonomous driving car, and the mapping relationship between the traffic environment and the control does not change linearly. The current autonomous driving vehicles do not incorporate changes in the traffic environment into the autonomous driving control system. Summary of the invention
[0004] In order to solve the problems described in the background technology, the present invention proposes an integrated control method and system for lane keeping and lane changing of an autonomous driving vehicle.
[0005] An integrated control method for lane keeping and lane changing of an autonomous driving vehicle comprises the following steps:
[0006] Step 1: Obtain road environment information: obtain lane boundaries, lane lines, and surrounding traffic participants through sensor perception;
[0007] Step 2: Generate a set of lane line reference point coordinates: Based on the road environment information, the data processor uses polynomials to fit the lane lines from right to left and from near to far. When the fitting error exceeds the set threshold, another set of polynomials is added to fit the remaining lane lines. This process continues until all the perceived lane lines are fitted. The polynomials for fitting the lane lines are sampled according to the equidistant sampling method to obtain a set of lane line reference point coordinates.
[0008] Step 3: Generate an autonomous driving reference trajectory through a data processor based on the lane reference point coordinate set:
[0009] (1) Lane keeping: The autonomous vehicle takes the reference point coordinate set of the current lane as the autonomous driving reference trajectory;
[0010] (2) Lane change: The autonomous driving vehicle takes the reference point coordinate set of the current lane and gradually connects it to the reference point coordinate set of the target lane as the autonomous driving reference trajectory;
[0011] Step 4: Input the autonomous driving reference trajectory into the model of the integrated lane keeping and lane changing controller, and solve the model to obtain the steering angle control command and acceleration control command of the autonomous driving vehicle;
[0012] Step 5: The steering angle control command is transmitted to the steering wheel control mechanism to control the steering wheel angle of the vehicle, and the acceleration control command is transmitted to the PID controller. The accelerator pedal opening and the brake pedal opening are controlled by the PID controller to control the acceleration of the vehicle. At the same time, the autonomous driving vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration, and continuously controls the steering wheel angle of the vehicle and the accelerator pedal opening and brake pedal opening to complete the vehicle lane keeping or lane changing.
[0013] Furthermore, in step 2, the obtained lane line reference point coordinate set is:
[0014]
[0015] Among them, j represents the index number of the lane line, M represents the last polynomial combination, and P X represents the quadratic polynomial of the fitted lane line horizontal coordinate, P Y represents the quadratic polynomial of the fitted lane line ordinate, P X and P Y for:
[0016]
[0017] Wherein, xy=X or Y, 1≤m≤M, l represents the length of the intercepted lane line, and a, b, and c are constants of the fitting polynomial.
[0018] Furthermore, in step 3, when the autonomous driving car needs to change lanes, the method for generating the autonomous driving reference trajectory is:
[0019] ① When the autonomous driving car is in an emergency and needs to change lanes immediately, it directly uses the reference point set of the target lane as the autonomous driving reference trajectory;
[0020] ② When there are vehicles, pedestrians or obstacles within 50-200m ahead of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle rolls from the current lane centerline reference point set to the target lane centerline reference point set until the reference trajectory is entirely composed of the target lane centerline reference points. The coordinate set r(k) of the autonomous driving reference trajectory is:
[0021]
[0022] Where k is the number of control cycles, k = 0, 1, ..., N p -1, k = 0 indicates the first control cycle of lane change behavior, N p represents the total number of control cycles corresponding to the control variable sequence, Represents the reference point set of the current lane centerline, Represents the target lane centerline reference point set;
[0023] ③ When there are vehicles, pedestrians or obstacles within 200m in front of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle is composed of the quantiles of the current lane centerline reference point set and the target lane centerline reference point set, and the quantiles gradually increase until the reference trajectory is completely composed of the target lane centerline reference points. The coordinate set r(k) of the autonomous driving reference trajectory is:
[0024]
[0025] Where k is the number of control cycles, k = 0, 1, ..., N p -1, k = 0 indicates the first control cycle of lane change behavior, N p represents the total number of control cycles corresponding to the control variable sequence, Represents the reference point set of the current lane centerline, Represents the target lane centerline reference point set.
[0026] Furthermore, in step 4, the model of the integrated lane keeping and lane changing controller is:
[0027]
[0028] in, U represents the sequence of control variables to be solved, N p Represents the number of points taken by the sensor in one control cycle, and the objective function of the integrated lane keeping and lane changing controller is:
[0029]
[0030] Among them, S and R are semi-positive matrices, q is a constant, and υ t is the target speed, C1 and C2 are logic matrices, C1 and C2 are used to extract the longitudinal speed and horizontal and vertical coordinate elements of the vehicle from the full state vector of the vehicle, respectively. n+1 Represents the (n+1)th element of the reference point sequence;
[0031] Constraints of the integrated lane keeping and lane changing controller: The first term x n+1 =A n x n +B n u n is the state equation of the vehicle dynamics system, where A n , B n is the state matrix of the system, x n is the state information set of the vehicle dynamics system at the nth moment, including the vehicle's lateral and longitudinal velocities in the vehicle reference system, the yaw angular velocity, the angle between the vehicle body and the world coordinate system, and the horizontal and vertical coordinates of the vehicle's center of gravity in the world coordinate system, u n is the control variable to be solved, including the steering angle control command and the acceleration control command; the second term represents the constraint of the system state, x min and x max are the upper and lower boundary limits of the state information set of the vehicle dynamics system at the nth moment; the third term represents the direct constraint of the control variable to be solved, u min and u max are the upper and lower boundary limits of the control variables to be solved; the fourth and fifth terms represent the constraints on the increment of the control variables to be solved, Δu min and Δu max are the minimum and maximum increments of the control variables to be solved, respectively, -1 It represents the steering angle control instruction and acceleration control instruction of the previous execution cycle; the sixth item represents the collision avoidance constraint, where X n With Y n is the position coordinate of the controlled autonomous vehicle, X i,n With Y i,n is the coordinate of the obstacle, P i With Q iis a constant whose value is determined according to the length and width of the obstacle and the collision avoidance safety distance; the initial state information set of the integrated lane keeping and lane changing controller represented by the seventh item is the state information set of the controlled automatic driving vehicle at the current moment, where x k A collection of state information representing the current moment of the controlled autonomous vehicle;
[0032] Solve the model to obtain the steering angle control instructions and acceleration control instructions of the autonomous vehicle.
[0033] An integrated control system for lane keeping and lane changing of an autonomous driving vehicle, comprising a sensor, a data processor, an integrated lane keeping and lane changing controller, a throttle and brake controller, and an autonomous driving vehicle; the sensor is used to sense and obtain lane boundaries, lane lines, and information about surrounding traffic participants and transmit the information to the data processor; the data processor is used to generate a lane line reference point coordinate set and an autonomous driving reference trajectory and transmit the coordinates to the integrated lane keeping and lane changing controller; the integrated lane keeping and lane changing controller is used to solve the autonomous driving reference trajectory, obtain a steering angle control instruction and an acceleration control instruction of the autonomous driving vehicle, and transmit the steering angle control instruction to the autonomous driving vehicle, and transmit the acceleration control instruction to the autonomous driving vehicle via the throttle and brake controller.
[0034] Furthermore, the throttle and brake controller includes two PID controllers, which are respectively used to control the throttle pedal opening and the brake pedal opening to achieve control of the vehicle acceleration. The autonomous driving vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration.
[0035] The purpose and implementation process of each component of the control system have been explained in the above control method and will not be repeated here.
[0036] Compared with the prior art, the control method and system provided by the present invention have both lane keeping and lane changing automatic control functions, which can seamlessly solve the lane keeping and lane changing control problems without switching from a lane keeping control method and system to a lane changing control method and system, which eliminates the boundary between the two driving behaviors, and does not need to design multiple control methods for complex and changing traffic environments to deal with lane keeping or lane changing driving behaviors, and does not need to use complex path or trajectory planning algorithms in advance, which significantly increases the functional integration of the control system, improves the complex scene adaptability of the control system, simplifies the control system of the autonomous driving vehicle, reduces the difficulty of control system design, and speeds up the development of the autonomous driving vehicle project; the control method and system can generate motion trajectory reference points from the perceived traffic environment, reduce the gap between the environment perception system and the control system in the autonomous driving system, and provide a guide for the control-oriented traffic environment perception system. The control method and system provided by the present invention are simpler, more flexible, and more powerful, and can handle lane keeping and lane changing driving behaviors in different driving scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Schematic diagram of the integrated control system for lane keeping and lane changing of an autonomous vehicle.
[0038] Figure 2 Schematic diagram of the throttle and brake controller structure of an autonomous vehicle.
[0039] Figure 3 This is the motion trajectory of the car in Example 1.
[0040] Figure 4 This is a diagram showing changes in the steering angle and lateral acceleration of the vehicle in Example 1.
[0041] Figure 5 This is the motion trajectory of the car in Example 2.
[0042] Figure 6 This is a diagram showing changes in the steering angle and lateral acceleration of the vehicle in Example 2.
[0043] Figure 7 This is the motion trajectory of the car in Example 3.
[0044] Figure 8 This is a diagram showing changes in the steering angle and lateral acceleration of the vehicle in Example 3. DETAILED DESCRIPTION
[0045] The implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but they do not constitute a limitation of the present invention, but are only examples. At the same time, through the description, the advantages of the present invention will be more clearly understood. All variations that can be directly derived or associated with the content disclosed by ordinary technicians in the field should be considered as the protection scope of the present invention. Other parts not described in detail in the embodiments are all prior art.
[0046] The structural diagram of the integrated control system for lane keeping and lane changing of an autonomous vehicle is shown in the figure. Figure 1 As shown, it is composed of sensors, data processors, integrated lane keeping and lane changing controllers, throttle and brake controllers, and autonomous vehicles. The sensors are used to sense and obtain lane boundaries, lane lines, and information about surrounding traffic participants and transmit them to the data processor; the data processor is used to generate a set of lane line reference point coordinates and an autonomous driving reference trajectory and transmit them to the integrated lane keeping and lane changing controller, which is used to solve the autonomous driving reference trajectory, obtain the steering angle control command and acceleration control command of the autonomous driving vehicle, and transmit the steering angle control command to the autonomous driving vehicle, and transmit the acceleration control command to the autonomous driving vehicle via the throttle and brake controller. Figure 1 The dotted box in the middle is the main component of the control system, which consists of two layers, the upper layer is the integrated lane keeping and lane changing controller, and the lower layer is the throttle and brake controller.
[0047] The structure of the throttle and brake controller of an autonomous vehicle is as follows: Figure 2 As shown, it is composed of two PID controllers, switches and circuits. The two PID controllers are used to control the accelerator pedal opening and the brake pedal opening respectively to achieve the control of the vehicle acceleration, and the autonomous vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration. In the following embodiment, the PID1 controller is used to control the accelerator pedal opening of the autonomous vehicle, and the PID2 controller is used to control the brake pedal opening of the autonomous vehicle, thereby achieving the control of the acceleration of the autonomous vehicle.
[0048] The specific process of lane keeping and lane changing by the above system during driving of an autonomous vehicle is as follows:
[0049] 1. First, obtain road environment information: obtain lane boundaries, lane lines, and information about surrounding traffic participants through sensor perception.
[0050] 2. Generate a set of lane line reference point coordinates: Based on the road environment information, the data processor uses polynomials to fit the lane lines from right to left and from near to far. When the fitting error exceeds the set threshold, another set of polynomials is added to fit the remaining lane lines. This continues until all the perceived lane lines are fitted. The polynomials for fitting the lane lines are sampled according to the equidistant sampling method to obtain a set of lane line reference point coordinates:
[0051]
[0052] Among them, j represents the index number of the lane line, M represents the last polynomial combination, and P X represents the quadratic polynomial of the fitted lane line horizontal coordinate, P Y represents the quadratic polynomial of the fitted lane line ordinate, P X and P Y for:
[0053]
[0054] Wherein, xy=X or Y, 1≤m≤M, l represents the length of the intercepted lane line, and a, b, and c are constants of the fitting polynomial.
[0055] 3. Based on the lane line reference point coordinate set, the data processor generates the autonomous driving reference trajectory:
[0056] (1) Lane keeping: The autonomous vehicle takes the reference point coordinate set of the current lane as the autonomous driving reference trajectory;
[0057] (2) Lane changing: The autonomous driving vehicle takes the reference point coordinate set of the current lane and gradually connects it to the reference point coordinate set of the target lane as the autonomous driving reference trajectory.
[0058] Specifically, when the autonomous driving car needs to change lanes, the method for generating the autonomous driving reference trajectory is:
[0059] ① When the autonomous driving car is in an emergency and needs to change lanes immediately, it directly uses the reference point set of the target lane as the autonomous driving reference trajectory;
[0060] ② When there are vehicles, pedestrians or obstacles within 50-200m ahead of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle rolls from the current lane centerline reference point set to the target lane centerline reference point set until the reference trajectory is entirely composed of the target lane centerline reference points. The coordinate set r(k) of the autonomous driving reference trajectory is:
[0061]
[0062] Where k is the number of control cycles, k = 0, 1, ..., Np -1, k = 0 indicates the first control cycle of lane change behavior, N p represents the total number of control cycles corresponding to the control variable sequence, Represents the reference point set of the current lane centerline, Represents the target lane centerline reference point set;
[0063] ③ When there are vehicles, pedestrians or obstacles within 200m in front of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle is composed of the quantiles of the current lane centerline reference point set and the target lane centerline reference point set, and the quantiles gradually increase until the reference trajectory is completely composed of the target lane centerline reference points. The coordinate set r(k) of the autonomous driving reference trajectory is:
[0064]
[0065] Where k is the number of control cycles, k = 0, 1, ..., N p -1, k = 0 indicates the first control cycle of lane change behavior, N p represents the total number of control cycles corresponding to the control variable sequence, Represents the reference point set of the current lane centerline, Represents the target lane centerline reference point set.
[0066] 4. Input the autonomous driving reference trajectory into the integrated lane keeping and lane changing controller. The model of the integrated lane keeping and lane changing controller is:
[0067]
[0068] in, U represents the sequence of control variables to be solved, N p Represents the total number of control cycles corresponding to the control variable sequence, and the objective function of the integrated lane keeping and lane changing controller is:
[0069]
[0070] Among them, S and R are semi-positive matrices, q is a constant, and υ t is the target speed, C1 and C2 are logic matrices, C1 and C2 are used to extract the longitudinal speed and horizontal and vertical coordinate elements of the vehicle from the full state vector of the vehicle, respectively. n+1 Represents the (n+1)th element of the reference point sequence;
[0071] Constraints of the integrated lane keeping and lane changing controller: The first term x n+1 =A n x n +B nu n is the state equation of the vehicle dynamics system, where A n , B n is the state matrix of the system, x n is the state information set of the vehicle dynamics system at the nth moment, including the vehicle's lateral and longitudinal velocities in the vehicle reference system, the yaw angular velocity, the angle between the vehicle body and the world coordinate system, and the horizontal and vertical coordinates of the vehicle's center of gravity in the world coordinate system, u n is the control variable to be solved, including the steering angle control command and the acceleration control command; the second term represents the constraint of the system state, x min and x max are the upper and lower boundary limits of the state information set of the vehicle dynamics system at the nth moment; the third term represents the direct constraint of the control variable to be solved, u min and u max are the upper and lower boundary limits of the control variables to be solved; the fourth and fifth terms represent the constraints on the increment of the control variables to be solved, Δu min and Δu max are the minimum and maximum increments of the control variables to be solved, respectively, -1 It represents the steering angle control instruction and acceleration control instruction of the previous execution cycle; the sixth item represents the collision avoidance constraint, where X n With Y n is the position coordinate of the controlled autonomous vehicle, X i,n With Y i,n is the coordinate of the obstacle, P i With Q i is a constant whose value is determined according to the length and width of the obstacle and the collision avoidance safety distance; the initial state information set of the integrated lane keeping and lane changing controller represented by the seventh item is the state information set of the controlled automatic driving vehicle at the current moment, where x k A collection of state information representing the current moment of the controlled autonomous vehicle;
[0072] Solve the model to obtain the steering angle control instructions and acceleration control instructions of the autonomous vehicle.
[0073] 5. The steering angle control command is transmitted to the steering wheel control mechanism to control the steering wheel angle of the vehicle, and the acceleration control command is transmitted to the PID1 controller and the PID2 controller. The accelerator pedal opening is controlled by the PID1 controller, and the brake pedal opening is controlled by the PID2 controller, thereby controlling the acceleration of the vehicle. At the same time, the autonomous driving vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration, continuously controlling the steering wheel angle of the vehicle and the accelerator pedal opening and brake pedal opening to complete the vehicle lane keeping or lane changing.
[0074] The present invention will be further described below by means of specific examples.
[0075] In the following specific embodiments, the values of the parameters of the integrated lane keeping and lane changing controller model are shown in the following table:
[0076]
[0077] Wherein, Δt represents the acquisition interval of the vehicle-mounted sensor. In the following specific embodiment, Δt is 0.05s, that is, the acquisition frequency of the vehicle-mounted sensor is 20Hz; H p represents the duration of the future time taken each time in the autonomous driving reference trajectory planning, that is, the duration of the execution cycle. In the following specific embodiments, H p is 2s; then the total number of control cycles corresponding to the control variable sequence Np = H p / Δt=40.
[0078] Example 1: Lane keeping in a curve
[0079] In this scenario, the road consists of a straight section and an S-shaped curve. The controlled autonomous vehicle starts from the rightmost lane of the straight section at a speed of 16m / s. During the driving process, the on-board sensor collects lane line information and information about the vehicle in front at a frequency of 20Hz and transmits it to the data processor. The data processor obtains the coordinate set of the lane center reference point in the next 2 seconds, which is used as the autonomous driving reference trajectory, and then inputs it into the integrated lane keeping and lane changing controller model for solution to obtain the steering angle control command and acceleration control command of the autonomous driving vehicle. Finally, the steering angle control command is directly transmitted to the autonomous driving vehicle, and the acceleration control command is transmitted to the autonomous driving vehicle through the PID controller. The accelerator pedal opening is controlled by the PID1 controller, and the brake pedal opening is controlled by the PID2 controller, thereby controlling the acceleration of the vehicle. The steering wheel angle, accelerator pedal opening and brake pedal opening of the vehicle are continuously controlled to complete the lane keeping driving of the autonomous driving vehicle in the curve in this scenario.
[0080] When the autonomous vehicle maintains its lane in this curve, its performance is as follows: Figure 3 , Figure 4 shown. Figure 3 It shows the trajectory of the controlled self-driving car to keep driving normally in the curve. Figure 4 The steering angle control instructions and acceleration changes are displayed. It can be seen that the steering wheel control fluctuation is very small during the whole process, and the ride comfort is high.
[0081] Example 2: Changing lanes on a straight road
[0082] In this scenario, the controlled self-driving car is driving on a straight road with three lanes. The controlled self-driving car starts from the middle lane of the three lanes with an initial speed of 16m / s. At the same time, there is a human-driven car in the same lane in front of it, driving forward at a speed of 10m / s. The distance between the two cars is 250m at the initial moment. When the driving speeds of the two cars remain unchanged, the distance between the controlled self-driving car and the car in front will gradually decrease. In order to avoid collision with the car in front, the controlled self-driving car chooses to drive to the adjacent lane. During driving, the on-board sensors of the autonomous vehicle collect lane line information and information about the vehicle in front at a frequency of 20 Hz and transmit them to the data processor; according to the third case of the method for generating the autonomous driving reference trajectory when the autonomous vehicle needs to change lanes, the autonomous driving reference trajectory for the next 2 seconds is planned through the data processor; then it is input into the integrated lane keeping and lane changing controller model for solution to obtain the steering angle control command and acceleration control command of the autonomous vehicle; finally, the steering angle control command is directly transmitted to the autonomous vehicle, and the acceleration control command is transmitted to the autonomous vehicle through the PID controller, the accelerator pedal opening is controlled by the PID1 controller, and the brake pedal opening is controlled by the PID2 controller, thereby controlling the acceleration of the vehicle; the steering wheel angle, accelerator pedal opening and brake pedal opening of the vehicle are continuously controlled to complete the lane change driving of the autonomous vehicle on the straight road in this scenario.
[0083] When the self-driving car changes lanes on a straight road in this scenario, its performance is as follows: Figure 5 , Figure 6 shown. Figure 5 The video shows the motion trajectory of the controlled autonomous vehicle changing lanes from the middle lane to the adjacent lane on the left. It can be seen that the entire lane changing trajectory is very smooth and fluent. Figure 6 The changing curve of the steering control command in the corresponding time period is shown. During the entire lane changing process, the angle change of the steering wheel fluctuates very little, and the maximum value does not exceed 4 degrees.
[0084] Example 3: Overtaking
[0085] In this scenario, the controlled autonomous vehicle is driving at a speed of 16m / s in the middle lane, and a car in the same lane in front of it is driving at a speed of 10m / s in the same direction. At the initial moment, the distance between the two cars is 60m. At the same time, there is another car in the left lane that is also driving forward at a speed of 10m / s. At this time, this car is outside the sensing range of the on-board sensor of the controlled autonomous vehicle. In order to avoid colliding with the car in front, the controlled autonomous vehicle chooses to change lanes to the left lane and continue driving. During the driving process, the on-board sensor of the autonomous vehicle collects lane line information and vehicle information in front at a frequency of 20Hz and transmits it to the data processor; according to the second case of the method for generating the autonomous driving reference trajectory when the autonomous vehicle needs to change lanes, the autonomous driving reference trajectory for the next 2 seconds is planned through the data processor; then it is input into the integrated lane keeping and lane changing controller model for solution to obtain the steering angle control command and acceleration control command of the autonomous vehicle. Finally, the steering angle control command is directly transmitted to the self-driving car, and the acceleration control command is transmitted to the self-driving car through the PID controller. The accelerator pedal opening is controlled by the PID1 controller, and the brake pedal opening is controlled by the PID2 controller, thereby controlling the acceleration of the car; the steering wheel angle, accelerator pedal opening and brake pedal opening of the car are continuously controlled to complete the lane change driving of the self-driving car in this scenario.
[0086] After the controlled autonomous vehicle drove in the left lane for a while, another car entered the sensing range of the onboard sensor of the controlled autonomous vehicle, and the distance was 240m. In order to avoid collision, the controlled autonomous vehicle had to change lanes again and finally returned to the middle lane to continue driving. During the driving process, the onboard sensor of the autonomous vehicle collected lane line information and the information of the vehicle in front at a frequency of 20Hz and transmitted it to the data processor; according to the third case of the autonomous driving reference trajectory generation method when the autonomous vehicle needs to change lanes, the autonomous driving reference trajectory for the next 2 seconds is planned through the data processor; then it is input into the integrated lane keeping and lane changing controller model for solution to obtain the steering angle control command and acceleration control command of the autonomous vehicle. Finally, the steering angle control command is directly transmitted to the autonomous vehicle, and the acceleration control command is transmitted to the autonomous vehicle through the PID controller. The accelerator pedal opening is controlled by the PID1 controller, and the brake pedal opening is controlled by the PID2 controller, so as to control the acceleration of the vehicle; the steering wheel angle of the vehicle and the accelerator pedal opening and brake pedal opening are continuously controlled to complete the lane change driving of the autonomous vehicle in this scenario.
[0087] When an autonomous vehicle overtakes another vehicle in this scenario, its performance is as follows: Figure 7 , Figure 8 shown. Figure 7 The movement trajectory of the controlled car during the entire overtaking process is displayed, including driving behaviors such as changing lanes to the left, going straight, and changing lanes to the right. Figure 8 The curve changes of the front wheel steering angle control curve and the lateral acceleration during the whole process are shown.
[0088] The preferred embodiments of the present invention are described in detail above in combination with the accompanying drawings and specific embodiments. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.
Claims
1. An integrated control method for lane keeping and lane changing of an autonomous vehicle, It is characterized in that The following steps are involved: Step 1: Obtain road environment information: obtain lane boundaries, lane lines, and surrounding traffic participants through sensor perception; Step 2: Generate a set of lane line reference point coordinates: Based on the road environment information, the data processor uses polynomials to fit the lane lines from right to left and from near to far. When the fitting error exceeds the set threshold, another set of polynomials is added to fit the remaining lane lines. This process continues until all the perceived lane lines are fitted. The polynomials for fitting the lane lines are sampled according to the equidistant sampling method to obtain a set of lane line reference point coordinates. Step 3: Generate an autonomous driving reference trajectory through a data processor based on the lane reference point coordinate set: (1) Lane keeping: The autonomous vehicle takes the reference point coordinate set of the current lane as the autonomous driving reference trajectory; (2) Lane change: The autonomous driving vehicle takes the reference point coordinate set of the current lane and gradually connects it to the reference point coordinate set of the target lane as the autonomous driving reference trajectory; Step 4: Input the autonomous driving reference trajectory into the model of the integrated lane keeping and lane changing controller, and solve the model to obtain the steering angle control command and acceleration control command of the autonomous driving vehicle; Step 5: The steering angle control command is transmitted to the steering wheel control mechanism to control the steering wheel angle of the vehicle, and the acceleration control command is transmitted to the PID controller. The accelerator pedal opening and the brake pedal opening are controlled by the PID controller to control the acceleration of the vehicle. At the same time, the autonomous driving vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration, and continuously controls the steering wheel angle of the vehicle and the accelerator pedal opening and brake pedal opening to complete the vehicle lane keeping or lane changing.
2. The integrated control method for lane keeping and lane changing of an autonomous driving vehicle according to claim 1, Features: In the step 2, the obtained lane line reference point coordinate set is: Among them, j represents the index number of the lane line, M represents the last polynomial combination, and P X represents the quadratic polynomial of the fitted lane line horizontal coordinate, P Y represents the quadratic polynomial of the fitted lane line ordinate, P X and P Y for: Wherein, xy=X or Y, 1≤m≤M, l represents the length of the intercepted lane line, and a, b, and c are constants of the fitting polynomial.
3. The integrated control method for lane keeping and lane changing of an autonomous driving vehicle according to claim 2, Features: In step 3, when the autonomous driving car needs to change lanes, the method for generating the autonomous driving reference trajectory is: ① When the autonomous driving car is in an emergency and needs to change lanes immediately, it directly uses the reference point set of the target lane as the autonomous driving reference trajectory; ② When there are vehicles, pedestrians or obstacles within 50-200m ahead of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle rolls from the current lane centerline reference point set to the target lane centerline reference point set until the reference trajectory is entirely composed of the target lane centerline reference points; ③ When there are vehicles, pedestrians or obstacles within 200m in front of the autonomous vehicle and it needs to change lanes, the reference trajectory of the autonomous vehicle is composed of the quantiles of the current lane centerline reference point set and the target lane centerline reference point set, and the quantiles gradually increase until the reference trajectory is completely composed of the target lane centerline reference points.
4. The integrated control method for lane keeping and lane changing of an autonomous driving vehicle according to claim 3, Features: In step 4, the model of the integrated lane keeping and lane changing controller is: s.t.x n+1 =A n x n +B n u n ,n=0,1,...,N p -1 x min ≤x n ≤x max ,n=1,2,...,N p u min ≤u n ≤u max ,n=0,1,...,N p -1 Δu min ≤u n -u n+1 ≤Δu max ,n=0,1,...,N p -2 Δu min ≤u -1 -u 0 ≤Δu max n=1,2,...,N p ,i=1,2,...,N o x 0 =x k , in, U represents the sequence of control variables to be solved, N p Represents the total number of control cycles corresponding to the control variable sequence, and the objective function of the integrated lane keeping and lane changing controller is: Among them, S and R are semi-positive matrices, q is a constant, and v t is the target speed, C 1 and C 2 is the logic matrix, C 1 and C 2 They are used to extract the longitudinal velocity and horizontal and vertical coordinate elements of the vehicle from the full state vector of the vehicle, r n+1 Represents the (n+1)th element of the reference point sequence; Constraints of the integrated lane keeping and lane changing controller: The first term x n+1 =A n x n +B n u n is the state equation of the vehicle dynamics system, where A n , B n is the state matrix of the system, x n is the state information set of the vehicle dynamics system at the nth moment, including the vehicle's lateral and longitudinal velocities in the vehicle reference system, the yaw angular velocity, the angle between the vehicle body and the world coordinate system, and the horizontal and vertical coordinates of the vehicle's center of gravity in the world coordinate system, u n is the control variable to be solved, including the steering angle control command and the acceleration control command; the second term represents the constraint of the system state, x min and x max are the upper and lower boundary limits of the state information set of the vehicle dynamics system at the nth moment; the third term represents the direct constraint of the control variable to be solved, u min and u max are the upper and lower boundary limits of the control variables to be solved; the fourth and fifth terms represent the constraints on the increment of the control variables to be solved, Δu min and Δu max are the minimum and maximum increments of the control variables to be solved, respectively, -1 It represents the steering angle control instruction and acceleration control instruction of the previous execution cycle; the sixth item represents the collision avoidance constraint, where X n With Y n is the position coordinate of the controlled autonomous vehicle, X i,n With Y i,n is the coordinate of the obstacle, P i With Q i is a constant whose value is determined according to the length and width of the obstacle and the collision avoidance safety distance; the initial state information set of the integrated lane keeping and lane changing controller represented by the seventh item is the state information set of the controlled automatic driving vehicle at the current moment, where x k Indicates the current state of the self-driving car being controlled; Solve the model to obtain the steering angle control instructions and acceleration control instructions of the autonomous vehicle.
5. A system for implementing the integrated control method for lane keeping and lane changing of an autonomous driving vehicle as claimed in claim 1, Features: Includes sensors, data processors, integrated lane keeping and lane change controllers, throttle and brake controllers, and self-driving cars; The sensor is used to sense and obtain information about lane boundaries, lane lines, and surrounding traffic participants and transmit it to the data processor; The data processor is used to generate a lane line reference point coordinate set and an automatic driving reference trajectory and transmit them to an integrated lane keeping and lane changing controller; The integrated lane keeping and lane changing controller is used to solve the autonomous driving reference trajectory, obtain the steering angle control command and acceleration control command of the autonomous driving vehicle, and transmit the steering angle control command to the autonomous driving vehicle, and transmit the acceleration control command to the autonomous driving vehicle via the throttle and brake controller.
6. The system according to claim 5, Features: The throttle and brake controller includes two PID controllers, switches and circuits. The two PID controllers are used to control the throttle pedal opening and the brake pedal opening respectively to achieve control of the vehicle acceleration. The autonomous driving vehicle transmits the acceleration measurement value to the integrated lane keeping and lane changing controller for monitoring and adjusting the driving acceleration.
7. The system according to claim 5 or 6, Features: The data processor uses polynomials to fit lane lines from right to left and from near to far according to the road environment information. When the fitting error exceeds a set threshold, another set of polynomials is added to fit the remaining lane lines, and this process is continued until all the lane lines perceived are fitted. The polynomials fitting the lane lines are sampled according to the equidistant sampling method to obtain a set of lane line reference point coordinates. The data processor generates an autonomous driving reference trajectory based on the lane line reference point coordinate set: (1) Lane keeping: The autonomous vehicle takes the reference point coordinate set of the current lane as the autonomous driving reference trajectory; (2) Lane changing: The autonomous driving vehicle takes the reference point coordinate set of the current lane and gradually connects it to the reference point coordinate set of the target lane as the autonomous driving reference trajectory.
8. The system according to claim 7, Features: The lane line reference point coordinate set obtained by the data processor is: Among them, j represents the index number of the lane line, M represents the last polynomial combination, and P X represents the quadratic polynomial of the fitted lane line horizontal coordinate, P Y represents the quadratic polynomial of the fitted lane line ordinate, P X and P Y for: Wherein, xy=X or Y, 1≤m≤M, l represents the length of the intercepted lane line, and a, b, and c are constants of the fitting polynomial.
9. The system according to claim 8, Features: In the data processor, when the autonomous driving car needs to change lanes, the autonomous driving reference trajectory is: (1) When the autonomous driving vehicle is in an emergency and needs to change lanes immediately, the reference point coordinate set of the target lane is directly used as the autonomous driving reference trajectory; (2) When there are vehicles, pedestrians or obstacles within 50-200 m ahead of the autonomous vehicle and a lane change is required, the reference trajectory of the autonomous vehicle rolls from the current lane centerline reference point set to the target lane centerline reference point set until the reference trajectory consists entirely of the target lane centerline reference points; (3) When there are vehicles, pedestrians or obstacles within 200 m in front of the autonomous vehicle and it is necessary to change lanes, the reference trajectory of the autonomous vehicle is composed of the quantiles of the current lane centerline reference point set and the target lane centerline reference point set, and the quantiles gradually increase until the reference trajectory is completely composed of the target lane centerline reference points.
10. The system according to claim 9, Features: The model of the integrated lane keeping and lane changing controller is: s.t.x n+1 =A n x n +B n u n ,n=0,1,...,N p -1 x min ≤x n ≤x max ,n=1,2,...,N p u min ≤u n ≤u max ,n=0,1,...,N p -1 Δu min ≤u n -u n+1 ≤Δu max ,n=0,1,...,N p -2 Δu min ≤u -1 -u 0 ≤Δu max n=1,2,...,N p ,i=1,2,...,N o x 0 =x k in, U represents the sequence of control variables to be solved, N p Represents the total number of control cycles corresponding to the control variable sequence, and the objective function of the integrated lane keeping and lane changing controller is: Among them, S and R are semi-positive matrices, q is a constant, and v t is the target speed, C 1 and C 2 is the logic matrix, C 1 and C 2 They are used to extract the longitudinal velocity and horizontal and vertical coordinate elements of the vehicle from the full state vector of the vehicle, r n+1 Represents the (n+1)th element of the reference point sequence; Constraints of the integrated lane keeping and lane changing controller: The first term x n+1 =Anx n +B n u n is the state equation of the vehicle dynamics system, where A n , B n is the state matrix of the system, x n is the state information set of the vehicle dynamics system at the nth moment, including the vehicle's lateral and longitudinal velocities in the vehicle reference system, the yaw angular velocity, the angle between the vehicle body and the world coordinate system, and the horizontal and vertical coordinates of the vehicle's center of gravity in the world coordinate system, u n is the control variable to be solved, including the steering angle control command and the acceleration control command; the second term represents the constraint of the system state, x min and x max are the upper and lower boundary limits of the state information set of the vehicle dynamics system at the nth moment; the third term represents the direct constraint of the control variable to be solved, u min and u max are the upper and lower boundary limits of the control variables to be solved; the fourth and fifth terms represent the constraints on the increment of the control variables to be solved, Δu min and Δu max are the minimum and maximum increments of the control variables to be solved, respectively, -1 It represents the steering angle control instruction and acceleration control instruction of the previous execution cycle; the sixth item represents the collision avoidance constraint, where X n With Y n is the position coordinate of the controlled autonomous vehicle, X i,n With Y i,n is the coordinate of the obstacle, P i With Q i is a constant whose value is determined according to the length and width of the obstacle and the collision avoidance safety distance; the initial state information set of the integrated lane keeping and lane changing controller represented by the seventh item is the state information set of the controlled automatic driving vehicle at the current moment, where x k A collection of state information representing the current moment of the controlled autonomous vehicle; Solve the model to obtain the steering angle control instructions and acceleration control instructions of the autonomous vehicle.
