A path tracking control method for articulated autonomous driving agricultural machinery based on switching strategy
Through the path tracking control method based on switching strategy in articulated autonomous agricultural machinery, using MPC and NMPC switching strategies and dynamically adjusting the prediction time domain, the problem of low path tracking efficiency and accuracy in the existing technology is solved, and the problem of low path tracking efficiency and accuracy in different situations is achieved. Efficient and stable path tracking under curvature conditions.
Patent Information
- Application Number
- CN202310437962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-04-21
AI Technical Summary
Existing path tracking control algorithms have problems such as low working efficiency, low tracking accuracy and poor stability in articulated autonomous agricultural machinery, especially on paths with large curvature changes.
A path tracking control method based on switching strategy is adopted. By constructing a kinematic model of the articulated machine tool, the turning conditions are determined based on the current path curvature, and model predictive control (MPC) is used when turning with a small curvature, and nonlinearity is used when turning with a large curvature. Model Predictive Control (NMPC) dynamically adjusts the prediction time domain and vehicle speed to improve path tracking accuracy and stability.
It improves the tracking accuracy and stability of articulated autonomous agricultural machinery on complex paths, ensures efficient path tracking under different curvature conditions, and takes into account real-time computing and path tracking effects.
Smart Images

Figure CN116661441B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle control, and in particular relates to a path tracking control method for an articulated automatic driving agricultural machinery based on a switching strategy. Background Art
[0002] In recent years, my country's agricultural machinery is rapidly transforming towards modernization and intelligence, and autonomous driving technology is expected to be fully applied in agricultural machinery. Unlike traditional manual driving methods, autonomous driving agricultural machinery can complete tasks such as rotary tillage, sowing, fertilizing, transplanting and harvesting without human intervention. The path tracking control technology is an important prerequisite for the precise completion of various tasks. With the use of path tracking control technology, agricultural machinery can walk along the desired operation path, which can not only avoid repeated or missed operations, but also effectively solve problems such as driver fatigue.
[0003] Unlike ordinary cars that travel on structured roads, agricultural machinery often travels in muddy, slippery, and uneven farmland environments. Due to the presence of obstacles such as crop roots and stems, the road conditions for agricultural machinery are usually poor; in addition, in order to complete various field operations, agricultural machinery often needs to be articulated with other machines, which will affect the operation path of autonomous driving agricultural machinery. It should be noted that obstacles often exist in actual farmland environments, and the conversion of working surfaces is also normal. These require articulated autonomous driving agricultural machinery to be able to efficiently turn on large curvature paths. In addition, accuracy is also one of the key evaluation indicators for the path tracking problem of articulated agricultural machinery. The existing path tracking control algorithm generally adopts a single control model, and the planning process does not involve the driving speed of agricultural machinery. There are defects such as low work efficiency, low tracking accuracy, and poor stability for paths with large curvature changes. Therefore, it is necessary to study efficient, high-precision, and stable path tracking control methods for articulated autonomous driving agricultural machinery. Summary of the invention
[0004] In view of this, the present invention provides a path tracking control method for an articulated automatic driving agricultural machinery based on a switching strategy.
[0005] The present invention achieves the above technical objectives through the following technical means.
[0006] A path tracking control method for articulated autonomous driving agricultural machinery based on switching strategy:
[0007] Construct linear and nonlinear discrete state space equations based on the kinematic model of articulated implements, and design the objective function and system constraints of agricultural machinery control systems;
[0008] The vehicle turning condition is determined by the curvature k of the current path of the agricultural machinery: <k sWhen k ≥ k s When the curvature is large, k s Switch path curvature threshold for working condition;
[0009] Select the path tracking switching strategy according to the current turning condition: when the agricultural machinery is in a small curvature turning condition, the model predictive control (MPC) is used for path tracking control; when the agricultural machinery is in a large curvature turning condition, the nonlinear model predictive control (NMPC) is used for path tracking control;
[0010] In the vehicle path tracking control, the prediction time domain in the objective function is dynamically adjusted and the reference vehicle speed is set.
[0011] Furthermore, the dynamic adjustment of the prediction time domain in the objective function is specifically as follows: performing multiple tests according to the set maximum stable vehicle speed and the evaluation criteria of the best prediction time domain, respectively obtaining the approximate relationship between the maximum stable vehicle speed, the best prediction time domain and the path curvature, and then determining the best prediction time domain and the reference vehicle speed;
[0012] The evaluation criteria are: P = aRMS (y m -y mr )+bRMS(ω m )≤P s , where RMS is the root mean square in the prediction time domain, a and b are weight coefficients, P s To ensure the minimum standard of path tracking accuracy and driving stability, ω m is the yaw angular velocity of the implement, y m is the ordinate of the center of the machine, y mr It is the reference ordinate of the center of the machine.
[0013] Furthermore, the approximate relationship between the maximum stable vehicle speed and the path curvature is:
[0014] v max =a 1 k+a 2 k+a 3 k+a 4
[0015] The approximate relationship between the optimal prediction time domain and the path curvature is:
[0016] N pm =b 1 k+b 2 k+b 3 k+b 4
[0017] Among them: a 1 、a 2 、a 3 、a 4 、b 1 、b 2 、b 3 and b 4 is the fitting coefficient, v max is the maximum stable vehicle speed, N pm is the best prediction time domain.
[0018] Furthermore, the reference vehicle speed satisfies: s =0.96v max , v s The reference speed.
[0019] Furthermore, the kinematic model of the articulated tool is:
[0020]
[0021]
[0022]
[0023] Where: v r is the center speed of the agricultural machinery body, is the heading angle of the implement, θ is the relative angle between the vehicle body and the implement, ω m is the yaw angular velocity of the implement, ω r represents the yaw angular velocity of the vehicle body, l g is the distance from the rear axle to the towing point, l j It is the distance from the towing point to the center of the machine.
[0024] Furthermore, for model predictive control, the objective function is:
[0025]
[0026] Where: N p is the prediction time domain of the autonomous driving agricultural machinery control system, N c is the control time domain of the autonomous driving agricultural machinery control, η(t+i|t) is the actual output of the linear system, η r (t+i|t) is the expected output of the linear system, Q and R are weight coefficient matrices adjusted according to different control needs, ε is the relaxation factor, ρ is the weight coefficient of the relaxation factor, and the control variable u=[v r δ f ] T , v r is the center speed of the agricultural machinery body, δ fThe front wheel steering angle of the agricultural machinery body, t represents the time, and △u is the control increment.
[0027] Furthermore, for nonlinear model predictive control, the objective function is:
[0028]
[0029] in: is the expected output of the nonlinear system, is the actual output of the nonlinear system.
[0030] Furthermore, the system constraints are:
[0031]
[0032] Where: u min and u max They represent the minimum and maximum sets of control variables, Δu represents the control increment, and Δu min and Δu max denote the minimum and maximum set of control increments, Δy min and Δy max They represent the minimum and maximum sets of lateral deviations of the implement, respectively.
[0033] The beneficial effects of the present invention are:
[0034] (1) The present invention considers specific farmland operation scenarios, constructs a kinematic model of an articulated autonomous driving agricultural machinery, and considers the impact of the implement on the vehicle body motion posture to improve the model accuracy;
[0035] (2) The present invention dynamically adjusts the prediction time domain and limits the vehicle speed within a stable range according to the path curvature, thereby improving the path tracking accuracy under complex path curvature while ensuring driving stability;
[0036] (3) The present invention proposes an MPC / NMPC switching strategy, which uses MPC to control the movement of the vehicle in areas where the road curvature changes slightly, and uses NMPC with higher tracking accuracy according to the switching strategy in areas where the road curvature changes greatly. This can improve the tracking effect while ensuring the overall real-time performance of the calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a block diagram of the path tracking control method of an articulated automatic driving agricultural machinery based on a switching strategy according to the present invention;
[0038] Figure 2 This is a kinematic model diagram of the articulated automatic driving agricultural machinery according to the present invention;
[0039] Figure 3Schematic diagram of the MPC / NMPC switching process considering the change of path curvature according to the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0041] like Figure 1 As shown, the present invention provides a path tracking control method for an articulated automatic driving agricultural machinery based on a switching strategy, which specifically includes the following steps:
[0042] Step (1), constructing a kinematic model of an articulated autonomous driving agricultural machinery to obtain a kinematic model of the machine.
[0043] There is a relative posture change between the body of the autonomous agricultural machinery and the articulated implements. The control system that uses the body as the measurement and control object is not suitable for the operation needs of autonomous agricultural machinery in farmland. By measuring the posture and parameter information of the body and the relative posture information of the body and the implement, the kinematic model of the articulated implement is finally obtained and used in the design of the path tracking control system.
[0044] Kinematic model of articulated autonomous agricultural machinery Figure 2 As shown. Among them, δ f is the front wheel steering angle of the vehicle body, v r is the center velocity of the vehicle body, x r ,y r are the horizontal and vertical coordinates of the rear axle center of the vehicle body, v m is the center speed of the machine, are the heading angles of the vehicle body and the implement, respectively, m ,y m are the horizontal and vertical coordinates of the center of the machine, L is the wheelbase of the vehicle body, l g is the distance from the rear axle to the towing point, l j is the distance from the towing point to the center of the machine, θ is the relative angle between the vehicle body and the machine, and
[0045] Based on the kinematic relationship between the vehicle body and the machine, the kinematic model of the vehicle body can be obtained:
[0046]
[0047] Where: r is the yaw angular velocity of the vehicle body, and They represent the longitudinal speed and lateral speed of the vehicle body respectively.
[0048] According to the posture and parameter information of the vehicle body and the relative posture change relationship between the vehicle body and the machine, the kinematic model of the machine can be obtained:
[0049]
[0050] Where: m is the yaw angular velocity of the implement, and They represent the longitudinal speed and lateral speed of the machine respectively.
[0051] Step (2), constructing a discretized state space equation based on the kinematic model of the articulated autonomous driving agricultural machinery in step (1).
[0052] Model predictive control algorithms can be used to solve constrained quadratic programming problems online. However, these planning problems usually do not have fixed analytical solutions, which means it is difficult to obtain the optimal control quantity. In practical applications, continuous system models are often discretized and then numerically solved on a computing platform based on the discretized linear or nonlinear model.
[0053] First, rewrite the kinematic model of the machine into state space form:
[0054]
[0055] Taking the speed and steering wheel angle of the articulated autonomous agricultural machinery as the input of the autonomous agricultural machinery control system, the nonlinear control system of the autonomous agricultural machinery can be expressed as:
[0056]
[0057] Where f() is the state transfer function, u=[v r δ f ] T ,
[0058] The nonlinear system shown in formula (4) is discretized to obtain the nonlinear discrete state space equation:
[0059]
[0060] in, is the actual output of the nonlinear system, and g() is the state transfer function.
[0061] Considering that the model predictive control algorithm has a large amount of calculation, in order to reduce the amount of calculation and improve real-time performance, the nonlinear control system can be linearized in the following way:
[0062] Any point (X) that satisfies equation (4) r ,u r) is expressed as a reference quantity, that is:
[0063]
[0064] in, u r =[v rr δ fr ] T , x mr is the reference horizontal coordinate of the tool center, y mr is the reference ordinate of the tool center, is the reference heading angle of the implement center, v rr is the reference center speed of the vehicle body, δ fr is the reference front wheel turning angle of the vehicle body.
[0065] Put equation (4) at point (X r ,u r ), keeping the first order and ignoring the higher order terms, we can get:
[0066]
[0067] Subtracting equation (7) from equation (6) and further simplifying it, we can get the linear state space equation of the autonomous driving agricultural machinery control system:
[0068]
[0069] Among them, the intermediate Intermediate Intermediate matrix matrix
[0070] The linear state space equations of the autonomous driving agricultural machinery control system are discretized using the forward Euler method:
[0071]
[0072] Among them, A k,t and B k,t is the system matrix after discretization, T is the sampling time interval, and I is the unit matrix. Combining equations (8) and (9), we can get the linear discrete state space equation:
[0073]
[0074] Step (3), establish an autonomous driving agricultural machinery control system based on the discretized state space equations in step (2), and design relevant objective functions and system constraints.
[0075] The steering and speed changes of articulated autonomous agricultural machinery are constrained by the mechanical system and control system, and the controllable range and control increment are limited, so constraints such as control quantity limit and control increment must be considered. At the same time, the driving path of articulated autonomous agricultural machinery is restricted by the field boundary and road boundary, and the tracking error needs to be constrained. The specific constraints are expressed as follows:
[0076]
[0077] Among them, u min and u max denote the minimum and maximum sets of control variables, Δu min and Δu max denote the minimum and maximum sets of control increments, respectively. represents the control increment, Δy min and Δy max Respectively represent the minimum and maximum sets of machine lateral deviations, N c is the system control time domain, N p is the system prediction time domain, and t represents the time.
[0078] The objective function represents the desired vehicle state during the tracking process, that is, the deviation between the output and control quantity and the desired value is minimized, so as to take into account the tracking accuracy and stability during the path tracking process.
[0079] For the NMPC system, the following objective function can be obtained from formula (5):
[0080]
[0081] Among them, ε is the relaxation factor, ρ is the weight coefficient of the relaxation factor, Q and R are weight coefficient matrices that can be adjusted according to different control needs, and η r (t+i|t) is the expected output of the linear system, is the expected output of the nonlinear system. The first term of the objective function reflects the path following ability of the system, the second term reflects the constraint on the incremental change of the control variable, and the third term is the scaling relaxation term of the control variable, which directly constrains the incremental control amount to prevent the situation where there is no feasible solution during the execution process.
[0082] For MPC systems, the linear discrete state space equations need to be further processed to transform the vector and It is expressed as follows:
[0083]
[0084] Substituting formula (13) into formula (10), we can obtain:
[0085]
[0086] Among them, η(k|t) is the actual output of the linear system, and the matrix matrix matrix O represents the zero matrix and I represents the identity matrix.
[0087] Assume that the prediction time domain of the autonomous driving agricultural machinery control system is N p , the control time domain is N c , k=t,t+1,...,t+N p -1, we get:
[0088]
[0089] The linear system prediction output expression is:
[0090] Y(t)=ψζ(t|t)+ΘΔU(t) (16)
[0091] Among them: Matrix matrix matrix
[0092] matrix
[0093] Finally, the objective function of MPC is obtained:
[0094]
[0095] Finally, the quadratic programming method is used to solve each control cycle in the objective function to obtain the optimal control increment sequence:
[0096]
[0097] At the next moment, the first element of the control sequence is taken to act on the control system in a loop iteration manner, and finally the path tracking control of the articulated autonomous driving agricultural machinery is realized, that is:
[0098]
[0099] Step (4), design a working condition identification method that takes into account the change in path curvature.
[0100] First, the perception system is used to obtain the posture information and expected path information of the articulated autonomous agricultural machinery (the acquisition process is the existing technology), and the expected path is set in advance according to the field obstacles and the field headland steering requirements, and the expected path is expressed as a function form:
[0101] y=t(x)(20)
[0102] Among them, t() represents the mapping relationship between the vertical coordinate y and the horizontal coordinate x.
[0103] The curvature k of the current path of the articulated autonomous driving agricultural machinery and the maximum allowed path curvature k are calculated by the expected path. max Perform the calculation:
[0104]
[0105]
[0106] Among them, δ max is the maximum steering angle of the front wheels.
[0107] Set the curvature threshold k of the working condition switching path s =0.8k max , and then identify the current working condition of the vehicle, which is divided into small curvature turning condition and large curvature turning condition (as shown in Table 1):
[0108] Table 1 Path curvature condition judgment rules
[0109]
[0110] Step (5), establishing a switching strategy for path tracking control according to the working conditions of different path curvature identification determined in step (4).
[0111] When agricultural machinery is actually working in the field, there may be obstacles or field turns, especially when the curvature of the junction between the working path and the turning path is large when the field turns. In order to further improve agricultural production efficiency, articulated autonomous driving agricultural machinery has high requirements for path tracking accuracy for large curvature turns: when the curvature is large, the vehicle speed is low, and the real-time requirements are low. At the same time, the large curvature turning condition is short, and the control system's calculation real-time performance in this period is within an acceptable range. For MPC, the problem it handles is obtained by linearizing the real nonlinear system. There is a loss of accuracy in the linearization process. It is suitable for occasions where the control accuracy requirements are not high, and the tracking error is large at the junction of the path turns; NMPC can directly handle nonlinear problems, and the path tracking accuracy is higher, but there is a problem of large calculation. Considering the advantages and disadvantages of the two methods, the path tracking control based on the switching strategy of MPC and NMPC can take into account both path tracking accuracy and calculation real-time performance, that is, MPC is used for small curvature turning conditions, and NMPC with higher tracking accuracy is used for large curvature turning conditions (specifically, Figure 3 shown).
[0112] Step (6), based on the path tracking control objective function determined and established in step (3), a dynamic adjustment method in the prediction time domain is proposed.
[0113] In vehicle path tracking control, the size of the prediction time domain will affect the path tracking accuracy and driving stability of articulated autonomous agricultural machinery. To improve the path tracking accuracy while ensuring driving stability, it is necessary to study the impact of the prediction time domain and vehicle speed on the path tracking control performance under different path curvatures, and improve the adaptability of agricultural machinery to changes in path curvature during actual driving.
[0114] The root mean square value of the lateral error of the machine and the root mean square value of the yaw rate are selected as the measurement criteria for the maximum stable vehicle speed and the best prediction time domain:
[0115] P = aRMS(y m -y mr )+bRMS(ω m )≤P s (twenty three)
[0116] Among them, RMS is the root mean square in the prediction time domain, a and b are weight coefficients respectively, and P s To ensure the minimum standards for path tracking accuracy and driving stability.
[0117] In path tracking control, multiple tests are performed (the specific process is the existing technology) to ensure that P meets the requirements. The data obtained from the test are fitted with a cubic polynomial to obtain the approximate relationship between the maximum stable vehicle speed and the best prediction time domain and the path curvature:
[0118] v max =a 1 k+a 2 k+a 3 k+a 4 (twenty four)
[0119] N pm =b 1 k+b 2 k+b 3 k+b 4 (25)
[0120] Among them, a 1 、a 2 、a 3 、a 4 、b 1 、b 2 、b 3 and b 4 is the fitting coefficient.
[0121] To further ensure the stability of control and avoid the vehicle speed exceeding the maximum stable speed, set the reference speed v s for:
[0122] v s=0.96v max (26)
[0123] Finally, the optimal prediction time domain and reference vehicle speed can be determined based on the path curvature, which makes autonomous driving agricultural machinery more accurate while ensuring driving stability when tracking complex paths.
[0124] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.
Claims
1. A path tracking control method for an articulated automatic driving agricultural machinery based on a switching strategy, characterized in that: Construct linear and nonlinear discrete state space equations based on the kinematic model of articulated implements, and design the objective function and system constraints of agricultural machinery control systems; The vehicle turning condition is determined by the curvature k of the current path of the agricultural machinery: <k s When k ≥ k s When the curvature is large, k s Switch path curvature threshold for working condition; Select the path tracking switching strategy according to the current turning condition: when the agricultural machinery is in a small curvature turning condition, the path tracking control is performed by using the model predictive control; when the agricultural machinery is in a large curvature turning condition, the path tracking control is performed by using the nonlinear model predictive control; In vehicle path tracking control, dynamically adjusting the prediction time domain in the objective function and setting a reference vehicle speed; The dynamic adjustment of the prediction time domain in the objective function is specifically: performing multiple tests according to the set maximum stable vehicle speed and the evaluation criteria of the best prediction time domain, respectively obtaining the approximate relationship between the maximum stable vehicle speed, the best prediction time domain and the path curvature, and then determining the best prediction time domain and the reference vehicle speed; The evaluation criteria are: P = aRMS (y m -y mr )+bRMS(ω m )≤P s , where RMS is the root mean square in the prediction time domain, a and b are weight coefficients, P s To ensure the minimum standard of path tracking accuracy and driving stability, ω m is the yaw angular velocity of the implement, y m is the ordinate of the center of the machine, y mr It is the reference ordinate of the center of the machine.
2. The path tracking control method of articulated automatic driving agricultural machinery based on switching strategy according to claim 1 is characterized in that: The approximate relationship between the maximum stable vehicle speed and the path curvature is: v max =a1k+a2k+a3k+a4 The approximate relationship between the optimal prediction time domain and the path curvature is: N pm =b1k+b2k+b3k+b4 Among them: a1, a2, a3, a4, b1, b2, b3 and b4 are fitting coefficients, v max is the maximum stable vehicle speed, N pm is the best prediction time domain.
3. The path tracking control method of articulated automatic driving agricultural machinery based on switching strategy according to claim 2 is characterized in that: The reference vehicle speed satisfies: v s =0.96v max , v s The reference speed.
4. The path tracking control method of an articulated automatic driving agricultural machinery based on a switching strategy according to claim 1, characterized in that: The kinematic model of the articulated tool is: Where: v r is the center speed of the agricultural machinery body, is the heading angle of the implement, θ is the relative angle between the vehicle body and the implement, ω m is the yaw angular velocity of the implement, ω r represents the yaw angular velocity of the vehicle body, l g is the distance from the rear axle to the towing point, l j is the distance from the towing point to the center of the machine, and They represent the longitudinal speed and lateral speed of the machine respectively.
5. The path tracking control method of articulated automatic driving agricultural machinery based on switching strategy according to claim 1 is characterized in that: For model predictive control, the objective function is: Where: N p is the prediction time domain of the autonomous driving agricultural machinery control system, N c is the control time domain of the autonomous driving agricultural machinery control, η(t+i|t) is the actual output of the linear system, η r (t+i|t) is the expected output of the linear system, Q and R are weight coefficient matrices adjusted according to different control needs, ε is the relaxation factor, ρ is the weight coefficient of the relaxation factor, and the control variable u=[v r δ f ] T , v r is the center speed of the agricultural machinery body, δ f The front wheel steering angle of the agricultural machinery body, t represents the time, and Δu is the control increment.
6. The path tracking control method for articulated automatic driving agricultural machinery based on switching strategy according to claim 5 is characterized in that: For nonlinear model predictive control, the objective function is: in: is the expected output of the nonlinear system, is the actual output of the nonlinear system.
7. The path tracking control method of an articulated automatic driving agricultural machinery based on a switching strategy according to claim 6 is characterized in that: The system constraints are: Where: u min and u max They represent the minimum and maximum sets of control variables, Δu represents the control increment, and Δu min and Δu max denote the minimum and maximum set of control increments, Δy min and Δy max They represent the minimum and maximum sets of lateral deviations of the implement, respectively.
Citation Information
Patent Citations
Intelligent automobile path tracking hybrid control method
CN109318905A
Predictive powertrain control for a multi-mode hybrid electric vehicle
WO2021081051A1
Backward movement control device for articulated vehicle, computer-readable medium storing backward movement control program for articulated vehicle, and backward movement control method for articulated vehicle
WO2022270322A1
