Abstract:Aiming to address the problems of long online distance and large straight-line error caused by external disturbances such as side skidding and sliding of the weeding robot on bumpy roads during operation, a model predictive control (MPC) path tracking method with error compensation for tracked weeding robots was proposed. Firstly, a linear error model was established based on the kinematic characteristics of the tracked weeding robot. Then an MPC algorithm with control increment as the state quantity and control quantity and control increment as the constraint conditions was designed. Finally, to compensate for the errors caused by the sliding and slipping of the left and right tracks during the path tracking process of the weeding machine, the compensation was made in the system control quantity, and the optimal control quantity was obtained. The performance of the controller was verified in the Matlab/Simulink simulation environment. The results showed that at a speed of 1m/s, compared with the traditional MPC controller, the error compensation type MPC controller reduced the online distance by more than 26% under three different initial states, and the lateral deviation and heading deviation of the straight-line path tracking after going online were reduced by more than 10% and 21%, respectively. To verify the proposed method, four groups of weeding machine path tracking experiments were designed. Compared with the traditional MPC controller, the error compensation type MPC controller reduced the online distance by 14.5% and 19.1% respectively when the initial position deviation was 0.5m and 1m and the heading deviation was 0° at speed of 1m/s. The average lateral deviation and heading deviation of the straight-line path tracking after going online were reduced by 21.05% and 29.4%, and 16.7% and 20.8%, respectively. When the initial position deviation was 1 m and the heading deviation was 45°, the online distance was reduced by 10.1%, and the average lateral deviation and heading deviation of the straight-line path tracking after going online were reduced by 18.75% and 15.7%, respectively. At a speed of 0.5m/s, when the initial position deviation was 1m and the initial heading deviation was 0°, the online distance was reduced by 16.2%, and the average lateral deviation and heading deviation of the straight-line path tracking after going online were reduced by 21.4% and 15.2%, respectively. The error compensation type MPC controller can significantly reduce the online distance of the weeding machine and improve the tracking accuracy of the straight-line segment, providing a guarantee for high-precision path tracking of the weeding machine during weeding operations.