When it comes to harvesting operations, precision agriculture needs to consider both combine harvester technology and the precise execution of the process to eliminate harvest losses and minimize out-of-work time. This work aims to propose a complete control framework defined by a two-layer-based algorithm and a simulation environment suitable for quantitative harvest loss, time, and consumption analyses. In detail, the path-planning layer shows suitable harvesting techniques considering field boundaries and irregularities, while the path-tracking layer presents a vision-guided Stanley Lateral Controller. In order to validate the developed control framework, challenging driving scenarios were created using IPG-CarMaker software to emulate wheat harvesting operations. Results showed the effectiveness of the designed controller to follow the reference trajectory under regular field conditions with zero harvest waste and minimum out-of-work time. Whereas, in presence of harsh road irregularities, the reference trajectory should be re-planned by either selecting an alternative harvesting method or overlapping the harvester header by some distance to avoid missing crops. Quantitative and qualitative comparisons between the two harvesting techniques as well as a relationship between the level of irregularities and the required overlap will be presented. Eventually, a Driver-in-the-loop (DIL) framework is proposed as a methodology to compare human and autonomous driving.
Self-driving technology aims to minimize human error and improve safety, efficiency, and mobility through advanced autonomous driving algorithms. Among these, Model Predictive Control (MPC) is highly valued for its optimization capabilities and ability to manage constraints. However, its effectiveness depends on an accurate system model, as modeling errors and disturbances can degrade performance, making uncertainty management crucial. Learning-based MPC addresses this challenge by adapting the predictive model to changing and unmodeled conditions. However, existing approaches often involve trade-offs: robust methods tend to be overly conservative, stochastic methods struggle with real-time feasibility, and deep learning lacks interpretability. Sparse regression techniques provide an alternative by identifying compact models that retain essential dynamics while eliminating unnecessary complexity. In this context, the Sparse Identification of Nonlinear Dynamics (SINDy) algorithm is particularly appealing, as it derives governing equations directly from data, balancing accuracy and computational efficiency. This work investigates the use of SINDy for learning and adapting vehicle dynamics models within an MPC framework. The methodology consists of three key phases. First, in offline identification, SINDy estimates the parameters of a three-degree-of-freedom single-track model using simulation data, capturing tire nonlinearities to create a fully tunable vehicle model. This is then validated in a high-fidelity CarMaker simulation to assess its accuracy in complex scenarios. Finally, in the online phase, MPC starts with an incorrect predictive model, which SINDy continuously updates in real time, improving performance by reducing lap time and ensuring a smoother trajectory. Additionally, a constrained version of SINDy is implemented to avoid obtaining physically meaningless parameters while aiming for an accurate approximation of the effects of unmodeled states. Simulation results demonstrate that the proposed framework enables an adaptive and efficient representation of vehicle dynamics, with potential applications to other control strategies and dynamical systems.
Precision Farming (PF) in vineyards represents an innovative approach to vine cultivation that leverages the advantages of the latest technologies to optimize resource use and improve overall field management. This study investigates the application of PF techniques in a vineyard, focusing on sensor-based decision-making for autonomous driving. The goal of this research is to define a repeatable methodology for virtual testing of autonomous driving operations in a vineyard, considering realistic scenarios, efficient control architectures, and reliable sensors. The simulation scenario was created to replicate the conditions of a real vineyard, including elevation, banking profiles, and vine positioning. This provides a safe environment for training operators and testing tools such as sensors, algorithms, or controllers. This study also proposes an efficient control scheme, implemented as a state machine, to autonomously drive the tractor during two distinct phases of the navigation process: between rows and out of the field. The implementation demonstrates improvements in trajectory-following precision while reducing the intervention required by the farmer. The proposed system was extensively tested in a virtual environment, with a particular focus on evaluating the effects of micro and macro terrain irregularities on the results. A key feature of the control framework is its ability to achieve adequate accuracy while minimizing the number of sensors used, relying on a configuration of a Global Navigation Satellite System (GNSS) and an Inertial Measurement Unit (IMU) as a cost-effective solution. This minimal-sensor approach, which includes a state machine designed to seamlessly transition between in-field and out-of-field operations, balances performance and cost efficiency. The system was validated through a wide range of simulations, highlighting its robustness and adaptability to various terrain conditions. The main contributions of this work include the high fidelity of the simulation scenario, the efficient integration of the control algorithm and sensors for the two navigation phases, and the detailed analysis of terrain conditions. Together, these elements form a robust framework for testing autonomous tractor operations in vineyards.