Next Article in Journal
SPMF-YOLO-Tracker: A Method for Quantifying Individual Activity Levels and Assessing Health in Newborn Piglets
Previous Article in Journal
Nitrogen and Potassium Fertilization Modulate Dalbulus maidis (HEMIPTERA: CICADELLIDAE) Abundance and Corn Stunt Disease Severity
Previous Article in Special Issue
Performance Evaluation of a UAV-Based Graded Precision Spraying System: Analysis of Spray Accuracy, Response Errors, and Field Efficacy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantification and Optimization of Straight-Line Attitude Control for Orchard Weeding Robots Using Adaptive Pure Pursuit

1
School of Agricultural Engineering, Jiangsu University, Zhenjiang 212013, China
2
High-Tech Key Laboratory of Agricultural Equipment and Intelligence of Jiangsu Province, Jiangsu University, Zhenjiang 212013, China
3
School of Intelligent Application Engineering, Jinshan Vocational Technical College, Zhenjiang 212200, China
*
Author to whom correspondence should be addressed.
Agriculture 2025, 15(19), 2085; https://doi.org/10.3390/agriculture15192085
Submission received: 23 August 2025 / Revised: 5 October 2025 / Accepted: 6 October 2025 / Published: 7 October 2025
(This article belongs to the Special Issue Design and Development of Smart Crop Protection Equipment)

Abstract

In automated orchard operations, the straight-line locomotion stability of ground-based weeding robots is critical for ensuring path coverage efficiency and operational reliability. To address the response lag and high-frequency oscillations often observed in conventional PID and fixed-lookahead Pure Pursuit controllers, this study proposes an adaptive lookahead Pure Pursuit method incorporating angular velocity feedback. By dynamically adjusting the lookahead distance according to real-time attitude changes, the method enhances coordination between path curvature and robot stability. To enable systematic evaluation, three time-series-based metrics are introduced: mean absolute yaw error (MAYE), peak-to-peak fluctuation amplitude, and the standard deviation of angular velocity, with overshoot occurrences included as an additional indicator. Field experiments demonstrate that the proposed method outperforms baseline algorithms, achieving lower yaw errors (0.61–0.66°), reduced maximum deviation (≤3.7°), and smaller steady-state variance (<0.44°2), thereby suppressing high-frequency jitter and improving turning convergence. Under typical working conditions, the method achieved a mean yaw deviation of 0.6602°, a fluctuation of 5.59°, an angular velocity standard deviation of 10.79°/s, and 155 overshoot instances. The yaw angle remained concentrated around the target orientation, while angular velocity responses stayed stable without loss-of-control events, indicating a favorable balance between responsiveness and smoothness. Overall, the study validates the robustness and adaptability of the proposed strategy in complex orchard scenarios and establishes a reusable evaluation framework, offering theoretical insights and practical guidance for intelligent agricultural machinery optimization.

1. Introduction

In orchard cultivation, weed growth not only competes with fruit trees for water, nutrients, and sunlight, but also serves as a potential host for pests and diseases [1], severely affecting tree development and fruit quality [2,3,4]. Therefore, weed management is a crucial aspect of orchard ground maintenance, playing a vital role in enhancing crop yields and ensuring ecological health. Traditional manual weeding is labor-intensive and inefficient, and with rising labor costs and an aging agricultural workforce, it can no longer meet the demand for efficient and precise orchard management [5]. With the rapid advancement of agricultural intelligent equipment, automated robots have been increasingly adopted for orchard operations [6,7,8,9,10]. Compared to manual methods, ground-based weeding robots offer advantages such as higher efficiency, reduced labor intensity, and consistent performance, making them a focal point of research in orchard ground management [11]. During inter-row weeding operations, the robot’s ability to maintain stable straight-line movement directly affects the completeness of path coverage and the overall operational stability [12,13], forming a foundational capability for high-quality task execution.
However, orchards represent a typical semi-structured environment characterized by narrow aisles, uneven terrain, and potential interference from tree branches or support structures [14,15,16,17]. As the robot navigates the terrain, it is susceptible to disturbances from the ground surface, perception errors, or minor deviations in its intended path. These factors often result in attitude drift or oscillations, manifested as significant yaw fluctuations and unstable angular velocity, which can lead to path discontinuities, trajectory overlap, or deviation from the intended route [18,19,20,21,22]. Therefore, enhancing the attitude control performance of weeding robots during straight-line motion is a key research direction for improving operational quality and automation levels.
Among current path control strategies for ground-based orchard robots, PID and Pure Pursuit are the most widely used. The former is a classic feedback control method, while the latter is a geometric path-tracking algorithm [23,24]. PID controllers are simple in structure and respond quickly, but are highly sensitive to parameter tuning and prone to attitude oscillations when facing path variations or external disturbances. In contrast, Pure Pursuit constructs a circular arc between the current position and a target point to achieve path tracking, offering intuitive geometric interpretation and high implementation efficiency, and is therefore commonly used in orchard path tracking tasks [25,26]. Previous studies have shown that although PID control can reduce trajectory deviation, it is prone to oscillations under complex conditions. In contrast, the Pure Pursuit algorithm, enhanced with error correction, has achieved sub-decimeter accuracy in field navigation [27]. Moreover, research on differential-drive robots has highlighted the critical influence of the look-ahead parameter in Pure Pursuit, demonstrating that proper tuning can effectively mitigate oscillations and improve tracking stability [28].
Nevertheless, both methods have inherent limitations in real-world orchard environments. Taking Pure Pursuit as an example, it relies on a fixed lookahead distance parameter, which is often inadequate under frequent disturbances and rapid attitude changes. A fixed lookahead distance cannot adapt to the robot’s dynamic response: during sharp turns, it fails to shorten the lookahead for fast correction; on relatively straight paths, it may cause over-adjustment, leading to unnecessary angular oscillations.
Moreover, most existing studies evaluate control performance using static indicators such as trajectory deviation or path error, with less emphasis on dynamic behavior during the attitude response process [29,30]. During straight-line motion, the robot’s attitude evolution exhibits clear temporal patterns—such as the gradual convergence of yaw angle and the rhythmic fluctuation of angular velocity—which reflect the controller’s responsiveness and stability. These time-series characteristics are critical for assessing control strategy performance. However, there is a lack of systematic quantitative metrics tailored to attitude response dynamics, and few comparative studies have explored the behavioral differences in various control methods under dynamic orchard scenarios.
To address these issues, this study proposes an adaptive lookahead Pure Pursuit control method based on angular velocity feedback. The proposed approach explicitly introduces the yaw rate ψ(t) as a modulation factor, establishing a ψ-driven coupling mechanism that directly links path geometry with attitude dynamics. When the robot experiences rapid fluctuations in orientation, the lookahead distance is shortened to improve steering responsiveness; under stable conditions, the lookahead distance is extended to suppress oscillations. This design achieves a favorable balance between responsiveness and stability. In addition, three time-series-based evaluation metrics—mean yaw error, maximum yaw deviation, and the standard deviation of angular velocity—are established to quantitatively characterize the robot’s attitude response during straight-line motion.
To validate the effectiveness of the proposed method, comparative experiments were conducted in a real pergola-style orchard. The robot was programmed to follow a “Z”-shaped bidirectional path, and three control strategies were tested under identical conditions: adaptive lookahead Pure Pursuit (with PID), original fixed-lookahead Pure Pursuit (with PID), and standalone PID without tracking assistance. Multiple sets of yaw and angular velocity data were collected and analyzed using time-series methods. The key contributions of this study are summarized as follows:
  • An adaptive Pure Pursuit control strategy integrating yaw-rate feedback is proposed, further improving path-tracking accuracy and attitude stability.
  • A set of time-series evaluation metrics tailored to attitude response is developed, providing a quantitative framework for straight-line control performance analysis.
  • Comprehensive experiments in real orchard environments are conducted, systematically comparing attitude behaviors under different control strategies and demonstrating the effectiveness and application potential of the proposed method.

2. Materials and Methods

2.1. Experimental Data Acquisition

The straight-line motion and attitude data of the weeding robot used in this study were collected at the Yangyu Ecological Pear Orchard Base in Jiangsu Province, China (latitude 32.32° N, longitude 120.10° E, 2025). The test site adopts a standardized pergola-style fruit tree cultivation structure, which provides good inter-row visibility and reproducible experimental conditions. As illustrated in Figure 1, the orchard is constructed using a triangular frame layout, with a row spacing of 5 m, a plant spacing and trellis height of 3 m, and a frame inclination angle of approximately 70°. This structure not only ensures uniform light distribution for fruit tree growth, but also offers clear walking corridors and structural boundaries for robot path planning and attitude sensing.
During path control, the robot employed an RTK-GNSS system for initial localization, consisting of a portable base station (Rock-Smart A332 BD Base, China) and a rover receiver (Rock-Smart NZ500, China). The base station was deployed at the orchard edge to provide real-time differential corrections, enabling centimeter-level positioning accuracy. For attitude estimation, an onboard IMU (WHEELTEC H30, China) was mounted near the chassis center with its sensing axes aligned to the body frame. A static bias calibration was performed prior to experiments to minimize drift. The IMU integrates an accelerometer (±16 g), gyroscope (±2000°/s), and magnetometer (±49 Gauss), and its data were logged at 400 Hz and down-sampled to 100 Hz for control updates. GNSS position outputs and IMU attitude signals were further combined using a simple complementary filtering scheme, ensuring smooth and reliable state estimation. These specifications ensured reliable yaw-rate and posture feedback for the adaptive Pure Pursuit controller, which dynamically regulated the lookahead distance and enhanced straight-line attitude stability.
This study focuses specifically on the straight-line movement of the robot during orchard operations. Among various attitude parameters, yaw angle is selected as the primary variable for analysis. Compared to pitch and roll, the yaw angle more directly reflects horizontal path deviation and movement stability, making it a key indicator for evaluating straight-line tracking performance and control precision.

2.2. Quantitative Analysis and Optimization of Straight-Line Attitude Control

2.2.1. Pure Pursuit Control Algorithm

To achieve stable straight-line motion of the weeding robot within orchard corridors, this study adopts the Pure Pursuit algorithm as the baseline path-tracking control strategy. The Pure Pursuit algorithm guides the robot toward a designated lookahead point on the reference path by defining a lookahead distance and generating control commands based on geometric relationships. It features a simple structure, ease of implementation, and smooth response behavior. In semi-structured environments such as orchards, the robot must continuously navigate between regularly spaced rows while coping with challenges such as uneven terrain, minor path disturbances, and sensor noise. Owing to its real-time responsiveness and adaptability, Pure Pursuit can effectively track pre-defined paths while maintaining a degree of attitude stability—making it especially suitable for embedded systems with limited computational resources. As such, the algorithm serves as a solid foundational control framework in this study, providing a reliable baseline for introducing adaptive mechanisms and optimizing attitude control performance.

2.2.2. Adaptive Lookahead Pure Pursuit Control

To enhance the path-tracking stability and attitude regulation capability of the weeding robot during straight-line navigation in orchard corridors, this study proposes an improved adaptive lookahead Pure Pursuit control strategy based on angular velocity feedback. Concurrently, a quantitative analysis framework centered on yaw response characteristics is established to evaluate the control system’s attitude adjustment performance and stability during real-world operation. As illustrated in Figure 2, in the conventional Pure Pursuit algorithm, the lookahead distance Ld is predefined as a fixed constant, lacking the ability to adapt to attitude disturbances in dynamic environments. This often leads to delayed responses when the robot experiences minor path deviations or navigates segments with sudden curvature changes.
To improve the controller’s responsiveness to attitude variations, the yaw rate of the robot ψ(t) is introduced as a modulation factor. Based on this, an adaptive mechanism is designed to update the lookahead distance dynamically. The proposed update rule is formulated as follows:
L d ( t ) = clip L 0 k ψ ( t ) ; L min , L max
δ ( t ) = s a t arctan 2 L sin ( α ) L d ( t ) ; δ max , δ max
In the equations, Ld(t) denotes the dynamic lookahead distance (m) that adapts in real time to attitude responses within the bounds [Lmin, Lmax]. L0 is the baseline lookahead distance (m), k is the angular velocity sensitivity gain with units of m·s/deg (yaw-rate is in °/s), and ψ(t) = Δyaw/Δt refers to the yaw rate (°/s). The operator clip(·) enforces clamping between Lmin and Lmax. The variable δ(t) is the steering command, limited by the saturation function sat(·) to the actuator bounds [−δmax, δmax]. L is the vehicle wheelbase (m), and α represents the yaw angle difference (°) between the lookahead point and the vehicle centroid line.
This formulation preserves the geometric simplicity of the original Pure Pursuit algorithm while embedding a dynamic coupling mechanism that explicitly links path curvature with instantaneous attitude response. When the robot undergoes rapid fluctuations in orientation, the lookahead distance is shortened to enhance steering responsiveness and improve the timeliness of trajectory correction. Conversely, under stable conditions, the lookahead distance is extended to mitigate control oscillations and promote smoother trajectory following. This adaptive mechanism balances tracking accuracy with motion stability, thereby enhancing the robustness of autonomous navigation in complex environments. To ensure the reproducibility of the results, the main control parameters—including the baseline lookahead distance, coupling gain, and clamping limits—are specified, as summarized in Table 1.

2.2.3. Quantitative Analysis of Straight-Line Attitude Response

To comprehensively evaluate the regulation performance of the improved control strategy during actual operation, this study constructs a set of time-series quantitative indicators based on the robot’s yaw angle sequence yaw(t) and angular velocity sequence ψ(t) [31]. These indicators are designed to characterize the stability and adjustment trends of the control response process, thereby forming a unified closed-loop framework of “control—response—evaluation”.
Three key indicators are introduced. The mean yaw angle deviation reflects the overall offset of the robot’s orientation from the desired trajectory, serving as a measure of directional stability. The peak-to-peak amplitude captures the maximum oscillation range of the yaw angle, enabling the detection of abrupt attitude fluctuations. The standard deviation of angular velocity quantifies the variability of the yaw rate over time and is used to assess the degree of jitter during regulation. Together, these three metrics establish a robust quantitative framework for evaluating the effectiveness of the control strategy in maintaining stable attitude regulation during straight-line motion. Their mathematical definitions are given as follows:
E φ = 1 T t = 1 T φ ( t )
A p p = max φ ( t ) min φ ( t )
σ ψ = 1 T t = 1 T ψ ( t ) θ 2
In the equations, Eφ denotes the average yaw angle deviation, T is the total number of sampled frames, and φ(t) represents the yaw angle deviation of the robot at time t, reflecting whether the robot continuously deviates from the target heading during the entire operation period; smaller values indicate a more stable navigation posture. App is the peak-to-peak amplitude of the yaw angle signal within a specific operation segment, characterizing the extreme variations in the robot’s posture response during that period. σψ represents the standard deviation of the yaw rate, where ψ(t) is the yaw rate at time t and θ is its mean value, reflecting the dispersion of adjustment amplitudes during posture regulation; smaller values indicate a smoother response.
Finally, to characterize the nonlinear oscillatory behavior during the attitude adjustment process, the overshoot count is introduced as a supplementary criterion for evaluating dynamic regulation trends. Specifically, an overshoot is defined as a yaw angle deviation exceeding a threshold of ±0.5° at a local extremum. No hysteresis band was applied in order to ensure comprehensive quantification, allowing all deviations beyond the threshold to be captured. The overshoot count thus quantifies the frequency of meaningful over-adjustments under external disturbances, reflecting the extent of frequent attitude corrections. In summary, the proposed adaptive control strategy enhances the responsiveness of the robot to path disturbances by dynamically adjusting the lookahead distance, while the multidimensional set of quantitative indicators provides a systematic framework for evaluating attitude regulation performance in dynamic orchard environments.

3. Results and Discussion

3.1. Analysis of Straight-Line Attitude Control Performance

To validate the performance advantages of the proposed adaptive lookahead Pure Pursuit control algorithm in straight-line motion tasks, a comparative experiment was conducted involving three control strategies: (i) the improved adaptive lookahead Pure Pursuit algorithm (combined with PID), (ii) the original fixed-lookahead Pure Pursuit algorithm (also combined with PID), and (iii) a standalone PID controller without path tracking. The comparative analysis focuses on evaluating the stability and control accuracy of each method during actual operation. Three performance metrics were introduced to comprehensively assess control effectiveness: mean absolute yaw error, maximum yaw deviation, and steady-state attitude variance. These indicators, respectively, reflect overall control accuracy, response to extreme deviations, and the controller’s ability to maintain attitude stability and quick convergence. The aim is to objectively evaluate each control method’s performance under identical environmental conditions in terms of straight-line tracking capability.
The experiment was conducted within orchard operation corridors, where the robot continuously traversed a predefined “Z”-shaped bidirectional path at a constant forward velocity of 0.5 m/s to ensure full coverage of the orchard area. The onboard IMU (H30, WHEELTEC) was employed to continuously and synchronously collect the real-time yaw angle of the weeding robot, which served as the primary variable for evaluating straight-line attitude control performance. In addition to yaw, the IMU also outputs nine-axis sensing data (acceleration, angular velocity, magnetometer readings, and Euler angles), but yaw was specifically selected as the core indicator in this study due to its direct relationship with lateral path deviation. The IMU data were transmitted via UART to the Jetson AGX Orin in binary frame format at 400 Hz, ensuring high-frequency and low-latency acquisition for dynamic analysis. For control, the yaw-rate signals were further low-pass filtered and down-sampled to a 100 Hz update rate.
To ensure reproducibility, the comparator controllers were fully specified. The PID controller was applied to the heading error (yaw angle deviation) with gains set to Kp = 0.8, Ki = 0.05, and Kd = 0.1; an integral limit was included to avoid windup, and actuator commands were saturated at ±δmax according to the motor driver limits. For the fixed-lookahead Pure Pursuit controller, the lookahead distance was set to L0 = 1.0 m, consistent with the chassis scale, and combined with the same PID stabilization. All control algorithms were deployed on the same edge computing platform—Jetson AGX Orin (featuring a 12-core Arm Cortex-A78AE v8.2 64-bit CPU with 3 MB L2 and 6 MB L3 cache, 2048 CUDA cores, 64 Tensor Cores, and 64 GB LPDDR5 memory; MAKEROBOT, China). Control commands generated by the algorithm were further transmitted via a CAN bus interface to the motor drivers, forming a complete closed-loop data transmission architecture. In each trial, a representative segment containing 3500 yaw data frames was randomly selected from the complete trajectory for subsequent analysis. An example is shown in Figure 3.
As shown in Figure 3, the three control algorithms exhibit distinct differences in the yaw response characteristics of the weeding robot. In Figure 3a, the adaptive lookahead Pure Pursuit controller maintains a consistently low amplitude of attitude fluctuation throughout the entire operation segment. The response curve remains smooth without significant overshoot, indicating strong disturbance rejection capability and overall control stability. In contrast, while the original Pure Pursuit algorithm retains basic control accuracy over most of the trajectory, it shows signs of response delay during segments with intensified path disturbances, suggesting insufficient sensitivity in its regulation process. The PID controller, on the other hand, displays pronounced high-frequency oscillations across the entire segment, leading to unstable attitude behavior and an increased risk of path deviation.
A closer examination of the two locally magnified time segments in Figure 3b,c further highlights these differences. The adaptive controller demonstrates rapid suppression of attitude deviations during disturbance events, with fast convergence and superior smoothness compared to the other two methods. The response curve of the original Pure Pursuit controller exhibits larger fluctuations and moderate drifting tendencies, while the PID controller shows strong periodic oscillations in both segments. Such high-frequency responses could seriously compromise path consistency and operational precision during orchard tasks.
In summary, by incorporating angular velocity feedback and dynamically adjusting the lookahead distance, the adaptive Pure Pursuit controller significantly improves the responsiveness and robustness of path tracking. Compared to traditional control methods, it offers distinct advantages in handling complex trajectories and unstructured environmental disturbances common in orchards, demonstrating promising potential for practical engineering applications.
To ensure the reliability and statistical representativeness of the experimental results, each of the three control methods was independently repeated five times, and multiple statistical analyses were conducted based on the recorded results from each trial. Table 2 presents the control performance of the three algorithms on the same segment.
Based on the data presented in Table 2, the adaptive lookahead Pure Pursuit controller demonstrates superior performance across all metrics. The mean absolute yaw error is consistently controlled between 0.61° and 0.66°, with the maximum yaw deviation not exceeding 3.7° and steady-state variance fluctuations below 0.44°2. These results indicate that the method offers strong control accuracy and attitude stability during straight-line motion. In comparison, the original Pure Pursuit controller shows good overall deviation control but exhibits slightly higher steady-state variance, suggesting some residual oscillation. On the other hand, the traditional PID controller consistently exhibits large yaw errors and significant fluctuations across all trials, with maximum yaw deviations generally exceeding 4.1° and steady-state variance considerably higher than the other two methods. This suggests that PID control is more prone to high-frequency oscillations during path disturbances or attitude corrections, negatively impacting overall control stability.
To further quantify the consistency and statistical significance of the experimental outcomes, the results of five independent trials for each control method were summarized using descriptive statistics, as shown in Table 3.
As shown in Table 3, the adaptive lookahead Pure Pursuit controller consistently achieves the lowest mean absolute yaw error (0.636°) and the smallest steady-state variance (0.430°2), with the narrowest 95% confidence intervals across all metrics. This indicates that the method not only improves control accuracy but also enhances reliability by reducing variability across repeated trials. In contrast, the original Pure Pursuit algorithm achieves moderate performance, with slightly higher yaw errors and variance, suggesting residual oscillatory behavior. The PID controller performs the worst among the three, exhibiting significantly larger yaw errors (1.53° on average) and higher steady-state variance (0.520°2), reflecting its susceptibility to high-frequency oscillations. These findings confirm that the adaptive Pure Pursuit algorithm offers both superior accuracy and greater robustness in orchard straight-line navigation tasks.
In conclusion, the improved adaptive lookahead Pure Pursuit control algorithm demonstrates stronger robustness and consistency in straight-line path tracking tasks within orchard environments, highlighting its greater potential for practical application and widespread adoption.

3.2. Time-Series Behavior Analysis of Attitude Response Characteristics

To further assess the regulation performance of the proposed control strategy during actual operation, this study collects yaw angle sequences yaw(t) and angular velocity sequences ψ(t) during robot operation. The analysis introduces several key metrics: mean yaw deviation, peak-to-peak fluctuation amplitude, angular velocity standard deviation, and overshoot count. These metrics are employed to provide a deeper insight into the stability and regulation trends during the control response process, forming an integrated “control—response—evaluation” closed-loop framework. The statistical results are shown in Figure 4.
The visualization results in Figure 4 further reveal the dynamic response characteristics and regulation trends of the control strategy during actual operation. Figure 4a shows the instantaneous angular velocity variation curve of the weeding robot over the full operational segment. The overall fluctuation range is relatively small, with no significant jumps or sustained instability, indicating that the attitude adjustment process is relatively smooth. To avoid interference from extreme values, an anomalous deviation point (ψ = 396°/s) has been excluded, ensuring that the statistical features are more representative. Figure 4b presents the kernel density estimate (KDE) distribution of the yaw angle, which shows a slight right-skewed characteristic. The main density is concentrated in the range of −1° to 0.5°, indicating that for most of the time, the robot’s yaw angle remains within a small deviation range, reflecting good attitude stability. Figure 4c plots the complete yaw angle variation curve based on the time-series, with 155 overshoot points (red dots) and all extreme points (red crosses) marked, reflecting the system’s ability to identify and adjust deviations in real-time during the dynamic process.
Specifically, the mean yaw deviation is 0.6602°, indicating a small overall attitude offset and good path-holding ability. The peak-to-peak fluctuation amplitude reaches 5.5900°, suggesting that transient large disturbances occur during some periods, but the overall fluctuation distribution is relatively dispersed, without a systemic loss of control. The standard deviation of angular velocity is 10.79°/s, indicating that the fluctuation amplitude during the adjustment process is moderate, with no significant oscillation. In addition, a total of 155 overshoot points were detected, primarily concentrated in segments with sharp attitude changes, showing that the system has a strong response ability to minor disturbances and can quickly correct yaw errors to maintain overall operational stability.
In conclusion, the proposed adaptive control strategy demonstrates excellent response speed and fluctuation control capability during dynamic regulation. It can quickly correct deviations under disturbances and suppress overshoot, effectively balancing stability and sensitivity. The “angle–velocity–overshoot” multidimensional quantitative indicator system developed in this study provides a universal analysis framework for the time-series evaluation and comparison of control strategies, with significant application value and potential for use in complex orchard path conditions.

4. Conclusions

This study proposed an adaptive lookahead Pure Pursuit control method based on angular velocity feedback to enhance the attitude stability and tracking accuracy of orchard weeding robots under disturbed path conditions. By dynamically adjusting the lookahead distance according to yaw rate changes, the method realized coupled regulation of path curvature and attitude response within a unified “control–response–evaluation” framework.
Field experiments on a predefined “Z”-shaped orchard path demonstrated that the proposed method consistently outperformed the original Pure Pursuit and PID controllers. It achieved mean absolute yaw errors of 0.61–0.66°, maximum yaw deviations below 3.7°, and steady-state variances under 0.44°2. These results confirm the ability of the method to suppress high-frequency oscillations and accelerate attitude convergence, thereby improving robustness and stability.
Time-series analysis of yaw angle and angular velocity further validated its performance, yielding a yaw deviation of 0.6602°, fluctuation amplitude of 5.5900°, and angular velocity standard deviation of 10.79°/s, with 155 overshoot events. The occurrence of overshoot events is crucial as it reflects the system’s ability to recover from sharp deviations and maintain stability during transient disturbances. In real-world scenarios, this could indicate the effectiveness of the control method in reducing oscillations and improving the reliability of the robot’s navigation. Kernel density estimation showed yaw angles concentrated between −1° and 0.5°, while angular velocity remained stable, highlighting balanced responsiveness and stability.
The proposed control method demonstrates strong potential for orchard navigation tasks and provides a transferable analytical framework for evaluating agricultural robot control systems. Nevertheless, this study is limited by experiments conducted in controlled orchard corridors and single-robot scenarios, which may restrict its generalization to more complex and unstructured environments. The method was tested only on flat terrain and straight-line paths, which may not fully capture the challenges of curved paths or sloped orchards. Future work will extend the method to curved paths, variable payloads, and multi-robot cooperation, while integrating predictive and learning-based strategies to further enhance robustness and adaptability in precision agriculture. Additionally, we will explore the method’s applicability to multi-row operations and turning maneuvers in orchard navigation.

Author Contributions

Conceptualization, W.J. and Z.Z.; methodology, Z.Z., Y.W. and X.W.; software, R.G. and Y.W.; validation, X.D., M.O. and Q.Y.; formal analysis, X.D. and M.O.; investigation, X.D.; resources, W.J. and X.W.; data curation, R.G.; writing—original draft preparation, W.J., Z.Z. and Y.W. and X.W.; writing—review and editing, W.J., Z.Z., Y.W. and X.W.; visualization, M.O. and Q.Y.; supervision, W.J.; project administration, X.D. and X.W.; funding acquisition, W.J., M.O. and X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the National Key Research and Development Plan of China (grant no. 2023YFD2000503), Project of Faculty of Agricultural Equipment of Jiangsu University (grant no. NZXB20210101), Jiangsu Province and Education Ministry Cosponsored Synergistic Innovation Center of Modern Agricultural Equipment (grant no. XTCX1003), the Open Fund for Key Laboratory of Modern Agricultural Equipment and Technology (Ministry of Education of the People’s Republic of China) (grant no. MAET202113), a project funded by the Priority Academic Program Development of Jiangsu Higher Education Institutions (grant no. PAPD-2023-87), and the Jiangsu University and Wuzhong City Campus Cooperation Project (grant no. zk20230012).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Liu, J.; Abbas, I.; Noor, R.S. Development of deep learning-based variable rate agrochemical spraying system for targeted weeds control in strawberry crop. Agronomy 2021, 11, 1480. [Google Scholar] [CrossRef]
  2. Yang, Y.; Wang, H.; Tang, J.; Chen, X. Effects of weed management practices on orchard soil biological and fertility properties in southeastern China. Soil Tillage Res. 2007, 93, 179–185. [Google Scholar] [CrossRef]
  3. Hussain, S.; Sharma, M.K.; War, A.R.; Hussain, B. Weed management in apple cv. royal delicious by using different orchard floor management practices. Int. J. Fruit Sci. 2020, 20, 891–921. [Google Scholar] [CrossRef]
  4. Li, H.; Wang, X.; Li, Y.; Hou, Y.; Zhao, Z.; Meng, L.; Wang, Z. Cover crops control weed and improve soil qualities in citrus orchard. J. Soil Sci. Plant Nutr. 2023, 23, 6827–6837. [Google Scholar] [CrossRef]
  5. Reiser, D.; Sehsah, E.S.; Bumann, O.; Morhard, J.; Griepentrog, H.W. Development of an autonomous electric robot implement for intra-row weeding in vineyards. Agriculture 2019, 9, 18. [Google Scholar] [CrossRef]
  6. Lu, E.; Ma, Z.; Li, Y.; Xu, L.; Tang, Z. Adaptive backstepping control of tracked robot running trajectory based on real-time slip parameter estimation. Int. J. Agric. Biol. Eng. 2020, 13, 178–187. [Google Scholar] [CrossRef]
  7. Yang, Y.; Xie, H.; Zhang, K.; Wang, Y.; Li, Y.; Zhou, J.; Xu, L. Design, development, integration, and field evaluation of a ridge-planting strawberry harvesting robot. Agriculture 2024, 14, 2126. [Google Scholar] [CrossRef]
  8. Sun, J.; Wang, Z.; Ding, S.; Xia, J.; Xing, G. Adaptive disturbance observer-based fixed time nonsingular terminal sliding mode control for path-tracking of unmanned agricultural tractors. Biosyst. Eng. 2024, 246, 96–109. [Google Scholar] [CrossRef]
  9. Liu, J.; Zhao, S.; Li, N.; Faheem, M.; Zhou, T.; Cai, W.; Zhao, M.; Zhu, X.; Li, P. Development and field test of an autonomous strawberry plug seeding transplanter for use in elevated cultivation. Appl. Eng. Agric. 2019, 35, 1067–1078. [Google Scholar] [CrossRef]
  10. Xiang, M.; Qu, M.; Wang, G.; Ma, Z.; Chen, X.; Zhou, Z.; Jia, H. Crop detection technologies, mechanical weeding executive parts and working performance of intelligent mechanical weeding: A review. Front. Plant Sci. 2024, 15, 1361002. [Google Scholar] [CrossRef]
  11. Ju, J.; Chen, G.; Lv, Z.; Zhao, M.; Sun, L.; Wang, Z.; Wang, J. Design and experiment of an adaptive cruise weeding robot for paddy fields based on improved YOLOv5. Comput. Electron. Agric. 2024, 219, 108824. [Google Scholar] [CrossRef]
  12. Zhao, P.; Chen, J.; Li, J.; Ning, J.; Chang, Y.; Yang, S. Design and Testing of an autonomous laser weeding robot for strawberry fields based on DIN-LW-YOLO. Comput. Electron. Agric. 2025, 229, 109808. [Google Scholar] [CrossRef]
  13. Liu, W.; Zhou, J.; Liu, Y.; Zhang, T.; Meng, Y.; Chen, J.; Chen, X. An Ultrasonic Ridge-Tracking Method Based on Limiter Sliding Window Filter and Fuzzy Pure Pursuit Control for Ridge Transplanter. Agriculture 2024, 14, 1713. [Google Scholar] [CrossRef]
  14. Bao, X.; Mao, J.; Dai, P.; Gong, Z.; Li, S.; Chen, H. Research on trajectory planning and control system of general mobile platform for Mountain Orchard. J. Eng. 2022, 2022, 466–477. [Google Scholar] [CrossRef]
  15. Ma, Z.; Yang, S.; Li, J.; Qi, J. Research on slam localization algorithm for orchard dynamic vision based on YOLOD-SLAM2. Agriculture 2024, 14, 1622. [Google Scholar] [CrossRef]
  16. Li, J.; Wang, S.; Zhang, W.; Li, H.; Zeng, Y.; Wang, T.; Cao, Y. Research on Path Tracking for an Orchard Mowing Robot Based on Cascaded Model Predictive Control and Anti-Slip Drive Control. Agronomy 2023, 13, 1395. [Google Scholar] [CrossRef]
  17. Bayar, G.; Bergerman, M.; Koku, A.B.; Ilhan Konukseven, E. Localization and control of an autonomous orchard vehicle. Comput. Electron. Agric. 2015, 115, 118–128. [Google Scholar] [CrossRef]
  18. Qu, J.; Li, H.; Zhang, Z.; Xi, X.; Zhang, R.; Guo, K. Performance analysis and optimization for steering motion mode switching of an agricultural four-wheel-steering mobile robot. Agronomy 2022, 12, 2655. [Google Scholar] [CrossRef]
  19. Li, J.; Shang, Z.; Li, R.; Cui, B. Adaptive sliding mode path tracking control of unmanned rice transplanter. Agriculture 2022, 12, 1225. [Google Scholar] [CrossRef]
  20. Hu, J.; Pan, J.; Dai, B.; Chai, X.; Sun, Y.; Xu, L. Development of an attitude adjustment crawler chassis for combine harvester and experiment of adaptive leveling system. Agronomy 2022, 12, 717. [Google Scholar] [CrossRef]
  21. Chai, X.; Hu, J.; Ma, T.; Liu, P.; Shi, M.; Zhu, L.; Xu, L. Construction and characteristic analysis of dynamic stress coupling simulation models for the attitude-adjustable chassis of a combine harvester. Agronomy 2024, 14, 1874. [Google Scholar] [CrossRef]
  22. Cui, L.; Le, F.; Xue, X.; Sun, T.; Jiao, Y. Design and experiment of an agricultural field management robot and its navigation control system. Agronomy 2024, 14, 654. [Google Scholar] [CrossRef]
  23. Yang, Y.; Li, Y.; Wen, X.; Zhang, G.; Ma, Q.; Cheng, S.; Chen, L. An optimal goal point determination algorithm for automatic navigation of agricultural machinery: Improving the tracking accuracy of the Pure Pursuit algorithm. Comput. Electron. Agric. 2022, 194, 106760. [Google Scholar] [CrossRef]
  24. Elbanhawi, M.; Simic, M.; Jazar, R. Receding horizon lateral vehicle control for pure pursuit path tracking. J. Vib. Control 2018, 24, 619–642. [Google Scholar] [CrossRef]
  25. Ibrahim, A.E.B. Self-tuning look-ahead distance of pure-pursuit path-following control for autonomous vehicles using an automated curve information extraction method. Int. J. Intell. Transp. Syst. Res. 2022, 20, 709–719. [Google Scholar] [CrossRef]
  26. Chen, W.H.; Wu, J.C.; Davydov, Y.; Yeh, W.C.; Lin, Y.C. Impact of perception errors in vision-based detection and tracking pipelines on pedestrian trajectory prediction in autonomous driving systems. Sensors 2024, 24, 5066. [Google Scholar] [CrossRef] [PubMed]
  27. Fue, K.; Porter, W.; Barnes, E.; Li, C.; Rains, G. Autonomous navigation of a center-articulated and hydrostatic transmission rover using a modified pure pursuit algorithm in a cotton field. Sensors 2020, 20, 4412. [Google Scholar] [CrossRef]
  28. Boztaş, G.; Aydoğmuş, Ö. Implementation of pure pursuit algorithm for nonholonomic mobile robot using robot operating system. Balk. J. Electr. Comput. Eng. 2021, 9, 337–341. [Google Scholar] [CrossRef]
  29. Wang, Y.; Pang, Y.; Chen, O.; Iyer, H.N.; Dutta, P.; Menon, P.K.; Liu, Y. Uncertainty quantification and reduction in aircraft trajectory prediction using Bayesian-Entropy information fusion. Reliab. Eng. Syst. Saf. 2021, 212, 107650. [Google Scholar] [CrossRef]
  30. Wang, W.; Chen, M.; Peng, Y.; Ma, Y.; Dong, S. Unstructured environment navigation and trajectory calibration technology based on multi-data fusion. Comput. Electr. Eng. 2024, 120, 109658. [Google Scholar] [CrossRef]
  31. Zhang, Y.; Wang, Z.; Wang, Y.; Zhang, C.; Zhao, B. Research on automobile four-wheel steering control system based on yaw angular velocity and centroid cornering angle. Meas. Control 2022, 55, 49–61. [Google Scholar] [CrossRef]
Figure 1. Pergola-style orchard structure, tracked mobile chassis prototype, and robot path planning schematic: (a) Pergola-style orchard structure: Orchard layout with 5 m row spacing, 3 m plant spacing, trellis height, and a frame inclination of approximately 70°, with flat loam soil covered by natural grass and an overall slope less than 3°; (b) Tracked mobile chassis prototype: Serving as the experimental platform for straight-line motion tests. The main dimensions are 1.0 m (W) × 1.6 m (L) × 0.4 m (H), with a track width of 120 mm, track wheel spacing of 872 mm, driving wheel radius of 92.5 mm, and rubber triangular tracks (120/60/34 links); (c) Robot path planning schematic: “Z”-shaped bidirectional path designed to achieve full coverage of the operation corridors and to collect continuous attitude data.
Figure 1. Pergola-style orchard structure, tracked mobile chassis prototype, and robot path planning schematic: (a) Pergola-style orchard structure: Orchard layout with 5 m row spacing, 3 m plant spacing, trellis height, and a frame inclination of approximately 70°, with flat loam soil covered by natural grass and an overall slope less than 3°; (b) Tracked mobile chassis prototype: Serving as the experimental platform for straight-line motion tests. The main dimensions are 1.0 m (W) × 1.6 m (L) × 0.4 m (H), with a track width of 120 mm, track wheel spacing of 872 mm, driving wheel radius of 92.5 mm, and rubber triangular tracks (120/60/34 links); (c) Robot path planning schematic: “Z”-shaped bidirectional path designed to achieve full coverage of the operation corridors and to collect continuous attitude data.
Agriculture 15 02085 g001
Figure 2. Pure Pursuit schematic, yaw dynamics quantification, and improved control formulation: (a) Pure Pursuit schematic: geometric relationship among the robot’s current position, the target point, the curvature radius, and the lookahead distance, representing the fundamental principle of the control method; (b) yaw dynamics quantification: typical time-series sequences of yaw angle and angular velocity, obtained at an IMU sampling frequency of 100 Hz (Δt = 0.01 s per frame index), illustrating the robot’s dynamic response and the controller’s ability to regulate attitude disturbances; (c) improved control formulation: the yaw rate ψ(t) is introduced as a modulation factor, enabling an adaptive update of the lookahead distance to enhance responsiveness to attitude variations.
Figure 2. Pure Pursuit schematic, yaw dynamics quantification, and improved control formulation: (a) Pure Pursuit schematic: geometric relationship among the robot’s current position, the target point, the curvature radius, and the lookahead distance, representing the fundamental principle of the control method; (b) yaw dynamics quantification: typical time-series sequences of yaw angle and angular velocity, obtained at an IMU sampling frequency of 100 Hz (Δt = 0.01 s per frame index), illustrating the robot’s dynamic response and the controller’s ability to regulate attitude disturbances; (c) improved control formulation: the yaw rate ψ(t) is introduced as a modulation factor, enabling an adaptive update of the lookahead distance to enhance responsiveness to attitude variations.
Agriculture 15 02085 g002
Figure 3. Comparison of yaw responses of the weeding robot under different control algorithms: (a) yaw angle response curves over the full sampled interval, illustrating the overall attitude fluctuation characteristics of the three control strategies during continuous operation; (b,c) locally magnified views of two representative time segments randomly selected from the full interval, highlighting the differences in local attitude responses under each control strategy.
Figure 3. Comparison of yaw responses of the weeding robot under different control algorithms: (a) yaw angle response curves over the full sampled interval, illustrating the overall attitude fluctuation characteristics of the three control strategies during continuous operation; (b,c) locally magnified views of two representative time segments randomly selected from the full interval, highlighting the differences in local attitude responses under each control strategy.
Agriculture 15 02085 g003
Figure 4. Time-series analysis of angular response characteristics: (a) instantaneous angular velocity variation curve, obtained at an IMU sampling frequency of 100 Hz (Δt = 0.01 s per frame index); (b) kernel density estimate distribution of yaw angle; (c) yaw angle time-series with overshoot points marked.
Figure 4. Time-series analysis of angular response characteristics: (a) instantaneous angular velocity variation curve, obtained at an IMU sampling frequency of 100 Hz (Δt = 0.01 s per frame index); (b) kernel density estimate distribution of yaw angle; (c) yaw angle time-series with overshoot points marked.
Agriculture 15 02085 g004
Table 1. Parameterization of the adaptive lookahead Pure Pursuit controller.
Table 1. Parameterization of the adaptive lookahead Pure Pursuit controller.
ParameterSymbolValueUnit
Baseline lookahead distanceL01.00m
Coupling gaink0.25m·s/°
Minimum lookahead distanceLmin0.60m
Maximum lookahead distanceLmax1.60m
Table 2. Yaw attitude performance comparison of straight-line control algorithms.
Table 2. Yaw attitude performance comparison of straight-line control algorithms.
Trial No.Control AlgorithmMean Absolute Yaw Error (°)Maximum Yaw Deviation (°)Steady-State Attitude Difference (°2)
1Adaptive Pure Pursuit0.663.690.43488
Pure Pursuit1.253.670.47084
PID controller1.534.150.52011
2Adaptive Pure Pursuit0.623.550.42831
Pure Pursuit1.193.600.46592
PID controller1.504.100.51235
3Adaptive Pure Pursuit0.643.620.43214
Pure Pursuit1.233.650.46918
PID controller1.564.200.52843
4Adaptive Pure Pursuit0.613.500.42567
Pure Pursuit1.203.550.46325
PID controller1.524.120.51794
5Adaptive Pure Pursuit0.653.680.43129
Pure Pursuit1.243.660.47121
PID controller1.544.180.52316
Table 3. Statistical summary of three straight-line control algorithms (Mean ± Std. Dev. with 95% Confidence Intervals).
Table 3. Statistical summary of three straight-line control algorithms (Mean ± Std. Dev. with 95% Confidence Intervals).
AlgorithmMean Absolute Yaw Error (°)Maximum Yaw Deviation (°)Steady-State Attitude Difference (°2)
Adaptive Pure Pursuit0.636 ± 0.021 (95% CI: 0.61–0.66)3.608 ± 0.082 (95% CI: 3.51–3.71)0.430 ± 0.004 (95% CI: 0.426–0.435)
Pure Pursuit1.222 ± 0.026 (95% CI: 1.19–1.26)3.626 ± 0.050 (95% CI: 3.56–3.69)0.468 ± 0.003 (95% CI: 0.464–0.472)
PID Controller1.529 ± 0.022 (95% CI: 1.50–1.56)4.151 ± 0.041 (95% CI: 4.10–4.20)0.520 ± 0.006 (95% CI: 0.513–0.528)
Adaptive Pure Pursuit0.636 ± 0.021 (95% CI: 0.61–0.66)3.608 ± 0.082 (95% CI: 3.51–3.71)0.430 ± 0.004 (95% CI: 0.426–0.435)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Jia, W.; Zhang, Z.; Dong, X.; Ou, M.; Gao, R.; Wang, Y.; Yang, Q.; Wang, X. Quantification and Optimization of Straight-Line Attitude Control for Orchard Weeding Robots Using Adaptive Pure Pursuit. Agriculture 2025, 15, 2085. https://doi.org/10.3390/agriculture15192085

AMA Style

Jia W, Zhang Z, Dong X, Ou M, Gao R, Wang Y, Yang Q, Wang X. Quantification and Optimization of Straight-Line Attitude Control for Orchard Weeding Robots Using Adaptive Pure Pursuit. Agriculture. 2025; 15(19):2085. https://doi.org/10.3390/agriculture15192085

Chicago/Turabian Style

Jia, Weidong, Zhenlei Zhang, Xiang Dong, Mingxiong Ou, Ronghua Gao, Yunfei Wang, Qizhi Yang, and Xiaowen Wang. 2025. "Quantification and Optimization of Straight-Line Attitude Control for Orchard Weeding Robots Using Adaptive Pure Pursuit" Agriculture 15, no. 19: 2085. https://doi.org/10.3390/agriculture15192085

APA Style

Jia, W., Zhang, Z., Dong, X., Ou, M., Gao, R., Wang, Y., Yang, Q., & Wang, X. (2025). Quantification and Optimization of Straight-Line Attitude Control for Orchard Weeding Robots Using Adaptive Pure Pursuit. Agriculture, 15(19), 2085. https://doi.org/10.3390/agriculture15192085

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop