Skip to Content
AgricultureAgriculture
  • Article
  • Open Access

8 July 2026

31 Pages

Waypoint Kinodynamic Motion Planning for a Tractor with Two Trailers in an Orchard: Sampling-Based vs. Optimization- Based Approaches

and
1
Faculty of Mechatronics, Warsaw University of Technology, 02-525 Warsaw, Poland
2
NK Automatyka, 05-270 Marki, Poland
*
Author to whom correspondence should be addressed.

Abstract

We propose a novel sampling-based approach to waypoint-constrained kinodynamic planning for a custom apple-picking machine consisting of a tractor towing two trailers, operating autonomously in an orchard. The platform must follow sparse 2D waypoints through narrow headlands and rows. We adapt the Asymptotically Optimal A* (AOA*) planner to this setting and compare it against optimization-based methods (Fatrop and Ipopt) on representative benchmarks, a headland U-Turn, complex long path, and an environment with random obstacles. AOA* finds first feasible plans in seconds (often sub-second for U-turns), achieves 100% success at moderate temporal resolution, and reduces trajectory-time suboptimality to under 7% with a short anytime budget. Optimization-based planners (Fatrop and Ipopt) reach near-optimal trajectories when successful but typically require coarser time steps and longer runtime. At the same time, sampling-based algorithms support arbitrary obstacle geometries and are easier to set up. Overall, AOA* finds a feasible plan faster and scales better with the horizon and temporal resolution. At the same time, optimization-based solvers produce smoother, near-locally optimal trajectories when warm-started. The results of this work can enable a generalized approach for both intra-row maneuvers and inter-field logistics (e.g., orchard–warehouse transits) without changing environment representations.

1. Introduction

Motion planning for articulated vehicles in confined spaces, such as orchards, is a challenging problem due to nonholonomic constraints, complex dynamics, and the need to avoid static obstacles with tight clearances. In the case of the autonomous apple-picking machine (Figure 1), which was developed as part of a project to create an autonomous apple-harvesting solution, these challenges are further exacerbated by the large size of the vehicle and the narrow rows of trees. In such applications, the global motion planner must generate a feasible trajectory that follows the predefined sequence of waypoints while respecting the system’s kinematic and dynamic constraints, which is the main scope of this paper.
Figure 1. Visualization of a U-turn maneuver in an orchard for the apple-picking machine (tractor in blue and trailer one in dark green, no trailer two) developed as a part of the project. The size of the machine and the environment pose a challenging trajectory-planning problem.
Global motion planning plays a central role in a typical agricultural robot navigation system (Figure 2), as it mediates between high-level coverage planning and low-level motion control. Kinodynamic motion planning aims to find collision-free trajectories that simultaneously satisfy the robot’s kinematic and dynamic constraints, which are the nonholonomic constraints and the limits on velocities, accelerations, and forces [1]. According to [1], “a kinodynamic solution is a mapping from time to generalized forces or accelerations.” Herein, we focus on acceleration-based kinodynamic planning, in which the control inputs are accelerations, and the state space includes both position and velocity. Typical planning frameworks for agricultural vehicles [2] consider only kinematic constraints, for example, Dubins paths, which are position and orientation continuous—they are C 0 and C 1 continuous, but have curvature discontinuities (i.e., are not C 2 continuous) [3], which lead to infinite accelerations of steering wheels or tracks. By incorporating kinodynamic constraints in the form of finite bounds on accelerations, we can generate trajectories that are not only collision-free but also dynamically feasible. This is particularly important for large agricultural vehicles, where aggressive maneuvers can lead to instability, excessive wear, or even damage to the vehicle and the environment.
Figure 2. A high-level overview of the navigation system for an autonomous agricultural vehicle. The global motion planning module, which is the focus of this work, is responsible for generating a feasible, collision-free trajectory that follows a predefined sequence of waypoints while respecting the kinodynamic constraints of the system. Possible integration points with the mission planner and online control modules are highlighted, demonstrating how fast global planning can enhance the overall system’s responsiveness and adaptability.
State-of-the-art asymptotically optimal kinodynamic planners, such as SST* [4] and our prior work, AOA* [5], are designed to solve general kinodynamic problems, where the planner is free to explore the state space and discover the shortest trajectory to a single goal. However, in many practical applications, such as the one considered here, the planner must generate a trajectory that follows a predefined sequence of waypoints. This requires adapting the planner to handle waypoint constraints while maintaining asymptotic optimality and computational efficiency, a challenge that this work successfully addresses.
On the other hand, gradient-based optimization methods based on direct transcription are the established approach for solving motion planning problems in which waypoints are specified. In such approaches, the continuous motion planning problem is converted into a finite-dimensional nonlinear programming (NLP) problem, which can be solved with general-purpose solvers to find locally optimal solutions while exactly enforcing dynamics, bounds, and obstacle constraints [6].
The two main approaches, sampling-based and optimization-based, differ significantly in their underlying principles. Asymptotically optimal sampling-based planners are gradient-free; hence, they are typically more flexible and can handle complex constraints and robust collision checking methods. Optimization-based planners, which are predominantly gradient-based, can provide high-quality solutions with optimality guarantees under certain conditions. However, they may struggle with convergence issues, require good initial guesses, use differentiable collision detection, and do not scale well to larger problems. In this paper, we provide a detailed comparison of these two approaches for tractor-two–trailer motion planning in an orchard, highlighting their respective strengths and weaknesses.
The main contribution of this work is the adaptation of sampling-based AOA* and SST* algorithms to handle waypoint constraints and compare their performance against the state-of-the-art optimization-based Fatrop [6] and Ipopt [7] solvers in the context of a tractor–two-trailer motion planning problem in an orchard. The proposed objective function is designed to minimize travel time while satisfying waypoint constraints computed for the tractor’s off-center point, thereby achieving a smoother trajectory, even within sampling-based frameworks. We evaluate both approaches on a set of benchmark scenarios, analyzing their success rates, computation times, and solution qualities. Our results demonstrate that the adapted AOA* algorithm can effectively compete with the optimization-based approach, offering advantages in runtime and robustness to initial conditions.

3. Materials and Methods

3.1. The Apple-Picking Machine Model

The machine (Figure 3) was developed as part of a project aimed at developing a solution for autonomous apple harvesting. To separate the machine’s power source (currently a generator, which can be replaced) from the sensitive harvesting section, the decision was made to split the machine into a tractor and a trailer with a picking section (trailer one). A tracked vehicle was chosen to ensure good traction. The two motors independently driving the tractor’s tracks are controlled in velocity mode (use angular speed as an input); however, the motion planning algorithm must account for limited acceleration. The second trailer was designed to serve as a connection point for a pallet exchange system.
Figure 3. The autonomous apple-picking machine consists of a tractor and two trailers, one of which has the double-Ackermann kinematics.

3.1.1. Geometry

The considered system (Figure 4) is a planar articulated chain composed of a tracked tractor and two passive trailers connected via off-axle hitching. The tractor is a differential-drive (tracked) vehicle, where left and right track velocities induce a forward velocity and a yaw rate about its instantaneous center of rotation ( p 0 in Figure 4). The first trailer has symmetric double-Ackermann kinematics, in which the front and rear axle steering angles have equal magnitude and opposite sign. A rigid link connects the two axles; hence, the rear axle of the first trailer can be treated as actuated. Furthermore, note that the hitch point connecting the second trailer ( p 1 h in Figure 4) rotates with the rear axle of the first trailer.
Figure 4. Planar kinematic geometry of the apple-picking machine. The world frame ( X , Y ) and body-fixed frames are shown for the tractor, the first and the second trailer body, and each axle. Headings θ and articulation angles β indicate relative orientations; wheels/axles and hitch points (thick dots) are depicted. Dimension annotations mark wheelbase and link lengths: W 0 , H 0 , H 1 , L 1 f , L 1 , and L 2 . p 0 h and p 1 h are the hitch points.
In addition to the actual axles of trailer one, we introduce a virtual axle at the geometric center of the trailer ( p 1 in Figure 4). With counter-steer symmetry, the instantaneous center of rotation of the axle pair lies on the trailer body centerline, and enforcing zero lateral slip at both real axles implies zero lateral slip at their midpoint. Consequently, the axle pair is kinematically equivalent to a single on-axle trailer, in which the virtual axle has a heading equal to the trailer body’s heading and is located halfway between the physical front and rear axles. The description of the geometric parameters is summarized in Table 2.
Table 2. Geometric parameters of the analyzed tractor–trailer system.
The configuration of the system is described by the global position and orientation of the tractor, together with a sequence of articulation angles that define the relative orientations between consecutive bodies, that is, a tuple:
q = x 0 , y 0 , θ 0 , β 1 f , β 1 , β 1 r , β 2
where ( x 0 , y 0 ) is the tractor center position, θ 0 the tractor heading, β 1 f the articulation between the tractor and the front axle of trailer one, β 1 the articulation within trailer one (front axle to trailer body), β 1 r the articulation between trailer one body and its rear axle, and β 2 the articulation between trailer one rear axle and trailer two, defined as follows:
β 1 f = θ 0 − θ 1 f , β 1 = θ 1 f − θ 1 , β 1 r = θ 1 − θ 1 r , β 2 = θ 1 r − θ 2 .
The headings of the vehicle parts allow straightforward computation of their positions in the world frame:
p 0 h = p 0 − H 0 [ cos θ 0 sin θ 0 ] , p 1 f = p 0 h − L 1 f [ cos θ 1 f sin θ 1 f ] , p 1 = p 1 f − L 1 2 [ cos θ 1 sin θ 1 ] , p 1 r = p 1 − L 1 2 [ cos θ 1 sin θ 1 ] , p 1 h = p 1 r − H 1 [ cos θ 1 r sin θ 1 r ] , p 2 = p 1 h − L 2 [ cos θ 2 sin θ 2 ] ,
where
p 0 = [ x 0 y 0 ] .
The positions are used for collision checking, while the configuration q is used for planning.

3.1.2. Kinodynamic Model

The tractor is a differential-drive vehicle, where the control input u ∈ R 2 consists of left and right track accelerations:
u = [ a l a r ] ⊤ , a l , a r ∈ [ a min , a max ] ,
which integrate to track velocities v l and v r that are subject to bounds:
v l , v r ∈ [ v min , v max ] .
The center-point longitudinal velocity and yaw rate of a differential-drive vehicle are:
v 0 = v R + v L 2 , θ ˙ 0 = v R − v L W 0 ,
which maps to Cartesian rates:
x ˙ 0 = v 0 cos θ 0 , y ˙ 0 = v 0 sin θ 0 .
Although trailer one features a symmetric double-Ackermann arrangement, the main parts of the system can be embedded in the general tractor–n-trailer off-axle kinematic framework [26]. In that generic template, each articulation between a predecessor link and its successor is parameterized by two unsigned off-axle distances, h i and l i + 1 , which measure the axle-to-hitch offsets on the predecessor (i) and successor ( i + 1 ) sides, respectively. Each unactuated link evolves under nonholonomic rolling constraints that enforce zero lateral velocity at the corresponding axle contact points. The framework [26] provides a general method for velocity propagation for an articulated chain:
v i + 1 = v i cos β i + 1 + h i θ ˙ i sin β i + 1 , θ ˙ i + 1 = v i l i + 1 sin β i + 1 − h i l i + 1 θ ˙ i cos β i + 1 , β ˙ i + 1 = θ ˙ i − θ ˙ i + 1 ,
where β i + 1 = θ i − θ i + 1 , h i is the predecessor axle-to-hitch distance, and l i + 1 is the successor axle-to-hitch distance (distances are unsigned).
Under this abstraction, the chain becomes a sequence of axles and off-axle hitches: { 0 } (tractor axle) → { 1 f } (trailer-1 front axle), { 1 f } → { 1 } (virtual axle at trailer-1 center), { 1 } → { 1 r } (trailer-1 rear axle), { 1 r } → { 2 } (trailer-2 axle). The instantiation of the generic velocity-propagation parameters for the apple-picking machine is summarized in Table 3.
Table 3. Instantiation of the generic velocity-propagation parameters in Equation (9) for the apple-picking machine (Figure 4).
Note that h i = 0 means the on-axle case, and l i + 1 must be greater than zero to avoid singularities in the velocity propagation (Equation (9)). The double-Ackermann geometry of trailer one violates the latter condition, as the rear axle { 1 r } is located at l i = 0 from the hitch point. However, we can leverage the symmetry; hence, the longitudinal velocity of the rear axle is equal to the longitudinal velocity of the front axle, and the relative angular velocities of the trailer’s one virtual axle and the rear axle are also equal:
v 1 f = v 1 r β ˙ 1 = β ˙ 1 r .
Substituting geometric parameters (Table 3) into Equations (9) and (10) yields the following equations:
v 1 f = v 0 cos β 1 f + H 0 θ ˙ 0 sin β 1 f ,
θ ˙ 1 f = v 0 L 1 f sin β 1 f − H 0 L 1 f θ ˙ 0 cos β 1 f ,
v 1 = v 1 f cos β 1 ,
θ ˙ 1 = 2 v 1 f L 1 sin β 1 ,
v 1 r = v 1 f ,
θ ˙ 1 r = θ ˙ 1 − θ ˙ 1 f − θ ˙ 1 = 2 θ ˙ 1 − θ ˙ 1 f ,
v 2 = v 1 r cos β 2 + H 1 θ ˙ 1 r sin β 2 ,
θ ˙ 2 = v 1 r L 2 sin β 2 − H 1 L 2 θ ˙ 1 r cos β 2 ,
and the articulation angle rates are:
β ˙ 1 f = θ ˙ 0 − θ ˙ 1 f ,
β ˙ 1 = θ ˙ 1 f − θ ˙ 1 ,
β ˙ 2 = θ ˙ 1 r − θ ˙ 2 .
Finally, the state vector x ∈ R 8 is defined as:
x = [ x 0 , y 0 , θ 0 , β 1 f , β 1 , β 2 , v l , v r ] ⊤ ,
where ( x 0 , y 0 , θ 0 ) denotes the tractor pose; β 1 f , β 1 , β 2 are the relative joint angles between the bodies; and v l , v r represent the velocities of the left and right tractor wheels. The complete kinematic model is:
x ˙ = f ( x , u ) .

3.2. Optimal Motion Planning Formulation

The problem is to compute a time-optimal trajectory for the tractor–trailer system to navigate from an initial state x 0 to a final state x g while following a sequence of waypoints, forming a 2D path S , and avoiding self-collisions and collisions with obstacles in the environment. Throughout the text, we use path to denote the sequence of 2D points including waypoint reference in the plane, without timing information, and trajectory to denote the time-parameterized sequence of states and controls returned by a planner.
The output trajectory is represented as a sequence of states and controls { x k , u k } for k = 0 , … , N − 1 , with x N being the final state (or satisfying a goal condition, in case of a sampling-based planning). The optimization problem is multi-objective as it joins time and path following objectives, and is formulated as follows:
min x , u , T J = w t T + ∑ k = 0 N w s e g dist 2 ( p 0 , k , S )
where T is the total travel time, p 0 , k is the position of the tractor center at node k, S is the reference path defined by waypoints, and w t and w s e g are weights that balance the time objective and the waypoint-following objective. It is important to note that the number of steps N is fixed a priori in the optimization-based approach, whereas the sampling-based approach does not require this parameter to be specified. On the other hand, sampling-based algorithms have zero probability of reaching the goal exactly; hence, the goal condition is defined as being within a small neighborhood of the goal state.
The point-to-path distance function searches through the path segments, s j = ( a j , b j ) ∈ S , to find the closest line segment:
dist 2 ( p , S ) = min ( a j , b j ) ∈ S dist 2 ( p , a j , b j )
and the point-to-segment distance is computed as a distance to the projection of the point p onto the line defined by a and b , clamped to the endpoints of the segment:
dist 2 ( p , a , b ) = ∥ p − a ∥ 2 , if p 0 ≤ 0 , ∥ p − b ∥ 2 , if p 0 ≥ 1 , ∥ p − q ∥ 2 , if 0 < p 0 < 1 ,
where
v = b − a , w = p − a , p 0 = w ⊤ v ∥ v ∥ 2 , q = a + p v .
The objective function formulation (Equation (24)) allows the planner to find a trajectory that not only minimizes travel time but also closely follows the desired path defined by the waypoints, which is crucial for navigating through narrow spaces in an orchard environment. The optimization is subject to the system dynamics (Equations (5) and (6)); boundary conditions, x 0 , x N ; and collision avoidance constraints, ∀ q k q k ∉ C obs , where C obs denotes the set of configurations with collisions and self-collisions.
We aim to compare two approaches to solve the stated problem: a sampling-based kinodynamic planner and an optimization-based planner. As the two approaches require different formulations, the general approach described has to be adapted to the specific requirements of each method, which we discuss in the following sections.

3.2.1. Sampling-Based Kinodynamic Planning Formulation

We use a recently proposed Asymptotically Optimal A* (AOA*) algorithm [5]. AOA*, like a typical kinodynamic sampling-based algorithm, samples a control input, u r a n d , and a number of time steps for propagation, k r a n d . Then, the algorithm generates a motion by integrating the system dynamics for time t r a n d = k r a n d · Δ t (where Δ t is a fixed time step), via fourth-order Runge–Kutta (RK4) integration on each interval. Every motion is then checked for collision using general-purpose collision detection algorithms for arbitrary shapes.
The AOA* algorithm itself does not require any adaptation. However, the adaptation for time-optimal kinodynamic planning along predefined waypoints involves modifying the motion cost function to include a term that penalizes deviation from the waypoints, as described in the optimal control formulation Equation (24), that is:
c ( x from , x to ) = w t · k · Δ t + w s e g · dist 2 ( p 0 , to + p off , S ) ,
where p to is a 2D position of the tractor at the state x to , p off is the offset from the tractor’s center of rotation along the tractor’s longitudinal axis transformed into the global frame, and S is the reference path defined by waypoints. The offset p off is added to the tractor position to achieve smoother trajectories. This arises because, at the tractor’s center of rotation, the waypoint-following objective is satisfied with an arbitrary tractor heading, which may lead to winding trajectories. The offset plays a role similar to that of a look-ahead point in pure pursuit controllers. The effect of the offset is discussed in Section 4; however, it is consistent with findings by Murillo et al. [31], where the objective function is defined for the trailer rather than the tractor.
The cost-to-come function is defined as:
g ( x to ) = g ( x from ) + c ( x from , x to ) and g ( x 0 ) = 0 ,
which corresponds to the objective function Equation (24). The heuristic function that AOA* can use is unnecessary in a waypoint setup. Hence, we set it to zero, h ( x ) = 0 , which means that the search is guided solely by the cost-to-come value, that is, f ( x ) = g ( x ) , where f ( x ) is used to maintain the priority queue. The main components of the planning algorithm, such as the tree expansion, collision checking, re-initialization, and solution extraction, remain unchanged. Therefore, it was also possible to evaluate the performance of the SST* algorithm, another state-of-the-art sampling-based kinodynamic planner.

3.2.2. Optimization-Based Kinodynamic Planning Formulation

The problem of optimization-based motion planning is formulated as a large-scale sparse NLP. We utilize the Fatrop [6] and Ipopt [7] solvers with exact Hessians and symbolic Jacobians provided by CasADi [34]. The trajectory is divided into N shooting intervals of equal duration Δ t = T / N , where T is the total trajectory time (a decision variable). At each node k = 0 , … , N , the state x k and, for k < N , the control u k are optimization variables. The N is determined from a desired temporal resolution Δ t res > 0 , as follows:
N = ⌈ d total v max / Δ t res ⌉ ,
where d total is the total length of the waypoint path S , v max is the maximum velocity, and Δ t res is a tunable parameter.
While in sampling-based planning, control input bounds, state bounds, and collision checking are performed for each generated motion, in the optimization-based approach, these constraints must be explicitly enforced in the NLP formulation. Therefore, the optimization is subject to the following constraints.
The system dynamics are enforced as a discrete update x k + 1 = F ( x k , u k , Δ t ) , where F is obtained via fourth-order Runge–Kutta (RK4) integration on each interval. Actuator limits are imposed as box constraints on track velocities and accelerations, v l , v r ∈ [ v min , v max ] and a l , a r ∈ [ a min , a max ] . Boundary conditions fix the initial and terminal states to specified waypoints and enforce rest at the endpoints, x 0 and x N given, with v l = v r = 0 at k = 0 and k = N .
Collision avoidance is handled via the Separating Axis Theorem [35]. Each vehicle body (tractor, trailer front linkage, trailer box) and each obstacle is modeled as an oriented rectangle. For every pair of rectangles A and B, we impose the non-overlap condition
max e ∈ E d ⊤ e − r A ( e ) + r B ( e ) ≥ 0 ,
where E collects the axes perpendicular to the rectangle edges, d is the center-to-center vector, and r · ( e ) is the support (projection) radius along axis e .
To ease the computational burden, we added trailer articulation angle limits, which are limited to [ β min , β max ] , where β min = − π 2 , β max = π 2 . Although these limits are not needed in the sampling-based approach (self-collision checking is sufficient), they significantly speed up the optimization-based planners.
The number of physical limits creates a large-scale NLP problem with numerous inequality constraints. Hence, it was necessary to use an approach described in [36], which adds slack variables to the inequality constraints, making them decision variables included in the objective function. Such an approach adds certain elasticity and makes the problem tractable for the solver.
Finally, the objective function for the optimization-based approach is an extension of Equation (24), which is as follows:
min x , u , s , T J = w t T + ∑ k = 0 N w s e g dist 2 ( p 0 , k + p off , S ) + ∑ k = 0 N − 1 ρ 1 ∥ s k ∥ 1 + ρ 2 ∥ s k ∥ 2 2
where s k are the slack variables for the collision and self-collision inequality constraints, and ρ 1 and ρ 2 are the corresponding penalty weights for the L1 and L2 penalties, respectively. p off has been introduced to achieve a similar objective function to the one defined in Equation (28).
The function is subject to the dynamics and boundary constraints:
x k + 1 = F x k , u k , T N , k = 0 , … , N − 1 , x 0 = x init , x N = x goal , T ≥ T min .
Collision (and self-collision) avoidance with slacks is defined as follows:
G ( x k ) + s k ≥ 0 , s k ≥ 0 , k = 0 , … , N − 1 ,
where the stacked vector G ( x k ) ∈ R m collects all per-stage separation functions: three self-collision separations among the tractor, trailer one, and trailer two, as well as the separations between each of the three bodies and each obstacle in the environment, o ∈ O . Hence, there are three self-collision constraints, and three constraints per obstacle, m = 3 + 3 | O | . Each entry is computed by the rectangle-separation operator Equation (31) applied to the corresponding pair of rectangles.
Solver warm-starting with an initial guess is a common practice in optimization-based motion planning. In [12], two methods for headland turn planning were tested: the pattern-based method and the method utilizing Hybrid A* for collision-free planning. Herein, we propose a simpler approach. The initial guess is generated using a geometric look-ahead controller to provide a kinematically feasible trajectory (Figure 5).
Figure 5. Initial guess trajectory generated by the geometric look-ahead controller used for warm-starting the optimization solver. The original waypoints are shown in blue. The interpolated waypoints are marked as red dots, and the reference path connecting them is shown as a dashed line.
First, a waypoint sequence S (of size | S | = M ) is subdivided into N equal intervals using linear interpolation:
τ k = k N ( M − 1 ) , j k = ⌊ τ k ⌋ + 1 , α k = τ k − ( j k − 1 ) , r k = ( 1 − α k ) w j k + α k w min ( j k + 1 , M ) ,
creating a reference path S ′ = { r k } k = 0 N of size N + 1 that connects the waypoints.
Given the current state x k , the controller computes a reference heading ψ k towards the L-step look-ahead point r k + L on the reference path, and generates a desired yaw rate ω k to steer towards that point:
ψ k = atan 2 ( r y , k + L − y k , r x , k + L − x k ) , e k = ψ k − θ k , ω k = K ω e k
where K ω = 2 is a proportional gain. The look-ahead distance L is set to L = 2 , which corresponds to looking two reference points ahead on the reference path. The left and right track velocities are then computed by mapping the desired forward velocity v max and yaw rate ω k to track speeds, and enforcing the velocity bounds:
v r , k = v max , ω k > 0 , max { v min , v max + ω k W 0 } , ω k ≤ 0 , v l , k = max { v min , v max − ω k W 0 } , ω k > 0 , v max , ω k ≤ 0 .
Accelerations are set to zero, u k = 0 . The subsequent state is computed using the same integration method as in optimization; thus, x k + 1 = F ( x k , u k , T 0 / N ) . The T 0 is initialized to the time required to traverse the reference path at maximum speed, that is:
T 0 = d total / v max · ϵ ,
where d total is the total length of the waypoint path S , and ϵ is a scaling factor helping to adjust the initial guess when the waypoint path underestimates the feasible traversal path.

3.2.3. Discussion of Optimal Motion Planning Formulation

Sampling-based and optimization-based approaches differ substantially in their initialization and execution. To facilitate comparison, the overall workflows of the two approaches are summarized in Figure 6.
Figure 6. Comparison of the sampling-based and optimization-based kinodynamic planning workflow. Blue blocks indicate initialization and problem setup steps, green blocks indicate solver steps, and yellow blocks indicate decision steps. Elements highlighted in red indicate adaptations to the specific problem of waypoint motion planning for the considered vehicle in an orchard environment.
Sampling-based methods are straightforward to set up, as they require only the system dynamics (ODEs), a map with arbitrary shapes, and a set of waypoints. The hyperparameters for AOA* and SST* are also relatively intuitive, such as the time step for propagation Δ t , step sampling limits k max , and neighbor selection radius R, and they do not require problem-specific tuning. The implementation of the optimization-based method required additional considerations, such as slack variables and trailer articulation limits. Furthermore, because the method is gradient-based, auxiliary functions, such as collision checking, must be differentiable. This imposes a specific representation of obstacles and vehicle bodies, for which we used rotated rectangles and the SAT method (Equation (31)). The NLP formulation also required careful selection of the initial guess and tuning of the penalty weights for the slack variables to make the problem tractable for the solver.
Ideally, sampling-based methods never violate hard constraints, which are checked for each generated motion. Whereas the optimization-based method can violate these constraints during the optimization process (which is controlled with slack variables and interior barrier functions), the final solution is guaranteed to satisfy them within the specified, typically very tight, tolerances.
As AOA* and SST* are asymptotically optimal, they store a solution as soon as it is found, and keep improving it until the timeout; if no solution is found in the time limit, the algorithm reports failure. The optimization-based method returns only one solution once the tolerance is met. Otherwise, it terminates with a failure if the maximum number of iterations is reached. However, it is still possible that the solution is collision-free, though not optimal.
Although both methods return trajectories that include control inputs, these trajectories are not meant to be executed directly but rather passed to the real-time trajectory-tracking controller, which is outside the scope of this paper (Figure 2).

3.3. Experimental Methodology

We evaluate the performance of the asymptotically optimal sampling-based approach with waypoint-following cost, the AOA* and SST* algorithms in the OMPL (1.7.0) framework [37], and the optimization-based approach using the Fatrop and Ipopt solvers in the CasADi (3.7.2) framework [34]. To make the comparison fair, we re-simulate trajectories with a finer time step ( Δ t = 0.1 s) using the same Python (3.8.10) + Numpy (1.24.4) implementation, which differs from the two original implementations: OMPL and CasADi.
The evaluation is conducted in an artificial orchard environment with paths of varying lengths (named Long and U-Turn), as well as in an environment with random obstacles (named Random). The test trajectories include headland turns and narrow passages, which are common in orchard navigation scenarios. Sample trajectories generated by the planners are shown in Figure 7.
Figure 7. Sample trajectories planned by AOA* and Fatrop for the test cases: Long Path, U-Turn, and Random scenarios. Blue, orange, and green boxes represent the footprints of the tractor, trailer one, and trailer two, respectively. Gray boxes depict obstacles. The waypoints are marked as red crosses. Green dots mark the final tractor’s position (center of rotation). The time resolution is 0.2 s for AOA* and 0.5 s for Fatrop.

3.3.1. Common Hyperparameters

The common parameters for the sampling-based and optimization-based methods are the trajectory time cost weight w t , the waypoint-following cost weight, and the offset from the tractor’s center of rotation for waypoint-following cost computation p off = 1.0 .
Unfortunately, both methods are sensitive to adjustments to the objective function weights, and we could not find a common set of w t and w seg weights that works well for both. Hence, we used different parameter sets, which were w t = 1.0 and w seg = 5.0 for sampling-based algorithms (referred to as Objective 1) and w t = 10.0 and w seg = 0.5 for optimization-based algorithms (referred to as Objective 2), as the methods achieved the highest success rates with these parameters. Later, for a fair comparison, we re-simulate trajectories with finer time steps and recompute objectives using w t and w seg sets for all methods.
The similar, though not the same, parameters are the motion propagation time step Δ t in Equation (28) used by sampling-based algorithms and the initial temporal resolution Δ t r e s in Equation (30) used by optimization-based algorithms. In both cases, the temporal resolution is an important parameter that controls the trade-off between solution quality and computational complexity. A smaller Δ t leads to a finer discretization, which can capture more complex trajectories and reduce the risk of collision during deployment, but increases the computational burden. Conversely, a larger Δ t can speed up planning but potentially sacrifice solution quality. As this parameter affects success rate, planning runtime, and the number of collisions the most, we tested all algorithms for multiple values of Δ t and Δ t res : 0.1 , 0.2 , 0.5 , and 1.0 s.

3.3.2. Method-Specific Hyperparameters

For optimization-based planners, all Ipopt and Fatrop runs used a nonlinear-programming tolerance of 10 − 5 and a maximum of 1000 iterations. The solvers were used with the initial value of interior-point barrier set to μ init = 0.1 . The initial time T 0 scale factor ϵ in (Equation (38)) was set to 1.0 for the Long Path and U-Turn scenarios, and 1.5 for the Random Obstacle scenarios. The initial guess generation method (Equation (36)) used a weight gain of K w = 2.0 and a look-ahead horizon of L = 2 steps.
The sampling-based planners, namely, AOA* and SST*, were implemented in the OMPL framework [37] and shared the same dynamics integration and collision checking. The algorithms were run with a time step of Δ t = 0.2 s and minimum and maximum control durations of 1 and 5 time steps, respectively. The goal threshold was set to 1.0 and was computed for the full state vectors. The state distance function used weights, [ 1.0 , 1.0 , 0.5 , 0.1 , 0.1 , 0.1 , 1.0 , 1.0 ] for [ x 0 , y 0 , θ 0 , β 1 f , β 1 , β 2 , v l , v r ] state variables, respectively.
Unless explicitly marked as FS (first solution), the algorithms searched for improved solutions until a specified time limit, T limit , which were 10, 20, 30, and 60 s. However, even while searching for the first solution, the algorithms were allowed to run for the specified 60 s time limit. Random seeds varied across repeats.
AOA* and SST* use a similar method for deciding whether a new motion should be added to the tree or pruned. The method selects neighboring tree nodes within a certain radius around the new motion. If the new motion has a lower distance-weighted cost than that of any neighboring node, it is added to the tree. There is also a pruning radius, which is half the selection radius, within which the new motion is more likely to be pruned. The selection radius is a key parameter that controls the balance between exploration and exploitation in the search process. A larger radius leads to more aggressive pruning and exploration. A smaller radius allows for more exploitation but can increase computational time due to less pruning. Excessive exploration or exploitation affects the time to the first solution. Therefore, in our experiments, we recorded the time to the first solution for selection radii (denoted by R) of 0.5 , 1.0 , 1.5 , and 2.0 . However, we report the results for the best performing runs with R = 1.0 , so as not to occlude the comparison with optimization-based methods. The remaining parameters for SST* and AOA* were set to default values.

3.3.3. Aggregation Across Repeats

Sampling-based planners (i.e., AOA* and SST*) were run for 10 different random seeds. The results were averaged across runs, and the standard deviation was computed to assess variability in the planners’ performance. Furthermore, for these planners, statistics are computed only over successful runs, as failed runs terminate at the specified time limit and do not provide a feasible trajectory for quality evaluation. The optimization-based solvers were run only once, as they provide deterministic solutions with minor runtime variations.

3.3.4. Final Remark on Experimental Methodology

The initial implementation of the optimization-based approach in CasADi was prepared with the use of ChatGPT-5, as well as additional scripts for benchmarking and data logging. We have reviewed, edited, and incrementally improved the output source code. The implementation of AOA* in OMPL, as well as the system’s dynamics, was implemented by the first author. The presented numerical results were collected by running the algorithms on the same PC machine (year 2026); the vehicle design and problem formulation were developed in years 2023–2025.

4. Results

The analysis of the experimental results is split into two categories: algorithm performance and trajectory quality.

4.1. Algorithm Performance

The algorithm performance metrics, such as success rate and runtime, are gathered in Table 4. Additionally, for a quick assessment, the trajectories of all tested algorithms in the U-Turn scenario are shown in Figure 8, with the corresponding velocity profiles in Figure 9. For AOA* and SST*, the first solutions are marked with FS, and improved solutions are described with the time limit T = · s, whereas d t = · s denotes the temporal resolution Δ t res or Δ t , depending on the method.
Table 4. Success rate (%) and average runtimes (s) by algorithm and benchmark. For AOA* and SST*, success rates are computed for 10 runs with random seeds, and runtimes are averaged over successful runs and shown with standard deviations if computed. Fatrop and Ipopt are deterministic for a fixed setup and were run once. The best values are printed in bold.
Figure 8. Trajectories for solutions with the best objective for the U-Turn scenario. Blue, orange, and green boxes represent the footprints of the tractor, trailer one, and trailer two, respectively. Gray boxes depict obstacles. The waypoints are marked as red crosses. Green dots mark the final tractor’s position (center of rotation).
Figure 9. Velocity profiles for solutions with the best objective for the U-Turn scenario.
As discussed in Section 3.2.3 and Section 3.3.2, sampling-based algorithms report success if any solution reaches the goal within a given threshold, whereas optimization-based algorithms report success only if a solution meets a predefined tolerance within 1000 iterations. The success rate for sampling-based algorithms is computed after 10 runs of the algorithm with the same parameters but different sampling seeds. As optimization-based algorithms are deterministic, they are run only once; hence, the success rate can be 0 % or 100 % .
The runtimes of the optimization-based planners are wall-clock times, which include the time taken by CasADi to compute symbolic derivatives and the time taken by the solver to find a solution. Therefore, the solver time is shown in addition to the total runtime. The runtimes of AOA* and SST* are also wall-clock times that include setup and solution times. The success rates and runtimes are summarized in Table 4.
None of the solvers guarantee finding a solution within a finite time, and the performance of the planners can vary significantly across different runs and scenarios. With respect to the success rates, Fatrop and Ipopt solvers can find a solution across all scenarios but only for Δ t res equal 0.5 and 1.0 , while being unable to solve problems with finer time steps, where the Long path scenario is the hardest problem. AOA* and SST* had varying success rates depending on the scenario complexity, temporal resolution, and the time limit. AOA* generally achieved higher success rates than SST*, especially in more complex scenarios, which can be attributed to its more efficient exploration strategy and adaptive pruning mechanism. The results suggest that SST* may struggle to find solutions in highly constrained environments (e.g., when traversing narrow passages), whereas AOA* is more robust in such scenarios.
One of the key metrics for asymptotically optimal algorithms, such as SST* and AOA*, is the time to the first solution. By contrast, the optimization-based planners are not anytime (though they can provide intermediate solutions). Unquestionably, AOA* achieves the best average time to first solution, typically 0.58 ± 0.35 to 21 ± 14 s, depending on scenario complexity and the selection radius. The optimization-based planners, Fatrop and Ipopt, have similar runtimes: Fatrop is generally faster, but both are slower than AOA*. The SST* planner generally takes longer to find a solution than AOA*, Fatrop, and Ipopt. It is worth noting that AOA* can successfully perform fine-grained search with a time step of 0.1 s, whereas the optimization-based planners have to use a coarser time step of 0.5 to 1.0 s.

4.2. Trajectory Quality

Trajectory quality is first evaluated with respect to total time, waypoint-tracking error, and their composition within the objective function. The other metrics are jerk energy, tractor’s path curvature, and constraint violations. As the algorithms were run with different temporal resolutions and in different frameworks, we re-simulated all trajectories with a finer time resolution of 0.1 s using 10-step RK4 integration in the alternative simulation developed in the Python (3.8.10) + Numpy (1.24.4) framework. No control input smoothing was applied in the simulation, as this would significantly change the resulting trajectory. The metrics discussed in the following sections were computed for the original trajectories and the re-simulated trajectories (denoted by the (sim) suffix).

4.2.1. Constraints Violations

Constraint satisfaction is the primary requirement regarding the planned trajectory. In Table 5, the percentage of states with speed bounds violations, obstacle collisions, and self-collisions is presented for both original and re-simulated trajectories. Both original and re-simulated trajectories were tested for collisions in the alternative simulation. Speed violations are counted if at least one track speed exceeds bounds. Obstacle collision and self-collision are counted if at least one body (tractor or any of the trailers) is in a collision for a given state. Multiple violations are counted only once per state.
Table 5. Average percent of constraint violations for the original and re-simulated trajectories.
In the sampling-based approach, states that violate constraints are pruned early. Hence, we observe no speed violations, even after re-simulation. However, even for the original trajectories, we observe sporadic obstacle collisions and self-collisions that, for AOA*, did not exceed 1 % of all states along the trajectory, which can be explained by mismatches between collision-checking methods in OMPL and the alternative simulation. The percent of collisions increases after re-simulation. For fine-grained time steps of Δ t = 0.1–0.2 s, the increase in the number of collisions is small. However, this abruptly changes when the trajectories planned with coarse time steps, Δ t = 0.1 – 0.2 s, are re-simulated. The extreme case of an increase from 0.24 % to 76.84 % was observed for the Long Path scenario, which is depicted in Figure 10, which exhibits a large discrepancy between coarse state propagation in OMPL and the fine-grained simulation.
Figure 10. Example of coarse trajectories planned by AOA* and Fatrop, which have numerous obstacle collisions after fine-grained re-simulation. Blue, orange, and green boxes represent the footprints of the tractor, trailer one, and trailer two, respectively. Gray boxes depict obstacles. The waypoints are marked as red crosses. Green dots mark the final tractor’s position (center of rotation).
Optimization-based methods tend to plan trajectories that are very close to obstacles, which leads to numerous collisions even before re-simulation. Furthermore, speed bounds violations and self-collisions are often observed. Although constraints are defined as hard, the algorithms use slack variables in the objective function, and the optimizer’s tolerance is relatively large, thereby reducing the cost of collisions while boosting the time-minimization objective. On the other hand, planning without slack variables was too hard for the tested solvers. The number of obstacle collisions can be reduced by including the distance to obstacles in the objective function or by introducing a safety margin. However, this may make planning the problem intractable for narrow orchard alleys.
Note that a moderate number of collisions in the simulation does not necessarily disqualify the algorithms. The simulation used for trajectory evaluation can be considered an open-loop control algorithm, whereas a typical mobile robot navigation system performs closed-loop control and online local planning.

4.2.2. Trajectory Optimality

The basic objective function Equation (24) minimizes time and waypoints following error. As discussed in Section 3.3.1, the evaluated methods used objectives with different weights. Moreover, the objective function used for optimization-based algorithms includes slack variables (Equation (32)). Therefore, in Table 6, we present objective-related metrics and the recomputed basic objective Equation (24) with weights w t = 1.0 and w seg = 5.0 (Objective 1) and w t = 10.0 and w seg = 0.5 (Objective 2).
Table 6. Optimality-related metrics for the original trajectories.
Asymptotically optimal sampling-based planners report success whenever they find a collision-free solution, which is typically suboptimal but can be improved by allowing the planner to run longer, with theoretical guarantees of reaching the optimal solution. Therefore, to compare the quality of the solutions found by the planners, we compute the trajectory time suboptimality, defined as the percentage difference between the planned trajectory time and the best trajectory time across all runs and methods for a given scenario. The trajectory time suboptimality is presented in Table 6 and visualized in Figure 11.
Figure 11. Trajectory time suboptimality of the planned trajectories across different scenarios. The bars represent the average trajectory time suboptimality, while the error bars indicate the standard deviation across multiple runs.
The trajectory-time suboptimality naturally depends on the trajectory length. In the Long Path scenario, the trajectory-time suboptimality (reaching 6.9%) is generally lower than in the U-Turn scenario. The trajectory suboptimality plots support the asymptotic optimality of AOA*, as the suboptimality decreases with longer time limits. Interestingly, differences between Fatrop runs with different time steps are evident. Furthermore, in the Random Obstacle scenario, the best solution was found by Fatrop with a time step of 0.5 s, but for both smaller and larger time steps, the suboptimality is higher. This is consistent with the findings that a fixed time step violates asymptotic optimality of kinodynamic planning [38].
A waypoint tracking error is an important component of the objective function Equation (24). For all experiments, the tracking error was computed for the tractor. However, Murillo et al. suggests that the objective function should be defined for the trailer rather than the tractor [31], as a lateral deviation is the core challenge in multi-trailer systems. We did not run full experiments, as this topic is not within the scope of this paper. However, the quick tests in the U-Turn scenario revealed that using the center of rotation of trailer one extends runtime by two orders of magnitude for AOA* and 1.5 times for Fatrop. On the other hand, the reason lateral deviation is important is the risk of collision, which is the primary constraint addressed by the tested methods regardless of the objective function. In the case of the machine considered here, the off-track error is relatively low (Figure 12) owing to double-Ackermann kinematics of the main trailer.
Figure 12. Paths of the center of masses of the tractor and the trailers in the U-Turn scenario show relatively low lateral deviation. Gray boxes depict obstacles. The waypoints are marked as red crosses. Green dots mark the final tractor’s position (center of rotation).

4.2.3. Trajectory Smoothness

The quality of the control input is especially important for heavy agricultural vehicles, as it directly affects actuator wear, energy consumption, soil disturbance, and the feasibility of executing maneuvers within physical limits. Intuitively, smooth trajectories are preferred.
Path curvature is one of the basic metrics for smoothness. Given the forward speed v ( t ) , the yaw rate θ ˙ ( t ) , and ε v = 0.05 to avoid division by zero, the curvature is
κ ( t ) = θ ˙ ( t ) max | v ( t ) | , ε v .
The average tractor’s path curvature (curvature-squared) is computed as:
S κ = 1 N ∑ k = 0 N − 1 1 2 κ k 2 + κ k + 1 2 Δ s k , Δ s k = 1 2 | v k | + | v k + 1 | Δ t .
Sharp turns exhibit high curvature and necessitate rapid changes in yaw rate, which, for a tracked vehicle, result in large track accelerations.
Jerk energy is another popular metric for trajectory smoothness:
S jerk = 1 T ∑ k = 0 N − 2 j l , k 2 + j r , k 2 Δ t , j { l , r } , k = a { l , r } , k + 1 − a { l , r } , k Δ t ,
where a l / r , k are left/right track accelerations. The tractor’s path curvature and jerk energy were computed for re-simulated trajectories for unbiased comparison and are shown in Figure 13.
Figure 13. Smoothness metrics computed for re-simulated trajectories for unbiased comparison. Path curvature is multiplied by 1000 for convenience.
The computed path curvature differs across the scenarios, whereas the jerk energy remains similar. While the improved trajectories found by AOA* and trajectories found by Fatrop/Ipopt have comparable path curvature, the optimization-based planners provide substantially smoother trajectories in terms of jerk energy. Higher jerk energy is expected for sampling-based planners, as they use piecewise-constant sampled accelerations; hence, discontinuities at switching points are significant.
The difference in control smoothness can be observed in the velocity profiles as shown in Figure 14. As sampling-based algorithms rely on control-input sampling, the velocity profiles of AOA* are more irregular, with more frequent velocity changes. As one might expect, the velocity profiles of Fatrop are smoother, with fewer velocity changes. However, even the sampling-based planners can achieve a smoother velocity profile if the waypoint-following objective is computed, not for the tractor’s center of rotation but for an off-center point (Equation (28)), which works similarly to a look-ahead controller and encourages the planner to generate trajectories that follow the reference path more closely. This is shown in the second plot of Figure 14, where AOA* with an off-center point has a smoother velocity profile compared to AOA* with the waypoint-following objective computed for the tractor’s center of rotation (the third plot in Figure 14).
Figure 14. Velocity profiles of the best trajectories found by AOA* and Fatrop for the Long Path scenario. The bottom plot shows the AOA* velocity profiles, with the waypoint-following objective computed at the tractor’s center of rotation. In contrast, the middle plot shows the velocity profiles of AOA* with the waypoint-following objective computed for an off-center point, which are much smoother.

5. Discussion

To the best of our knowledge, this is the first work to compare asymptotically optimal sampling-based and optimization-based kinodynamic motion planners for a complex system with a nontrivial kinodynamic model, such as a tractor–two-trailer system. The results of the evaluation suggest that both approaches have advantages and disadvantages, and the choice between them depends on the application’s specific requirements, such as desired solution quality, computational resources, and time constraints, which are discussed in Section 4.
As discussed, the optimization-based planners do not scale well with finer temporal resolutions or with problem length, as there may be a critical temporal resolution that makes the problem intractable. Hence, the optimization-based planners are not suitable for mission-scale global motion planning, whereas the approach proposed in this paper can handle long paths. Furthermore, asymptotically optimal planners are much more flexible and easier to implement, as they do not require computing symbolic derivatives, can be easily adapted to different systems and cost functions, and require only forward-dynamics models and general-purpose collision-checking methods for arbitrary shapes. Optimization-based planners, on the other hand, require more careful tuning of the solver parameters, nontrivial initialization for warm-starting, differentiable collision-checking functions (thus, specific obstacle representations), and may require more expertise in optimization to achieve good performance.
For agricultural robotics, fast global kinodynamic planning has several practical benefits. First, tighter coupling with the mission/coverage planner enables rapid feasibility checks and route selection in irregular orchards with curved or skewed rows, and irregular headland constraints, improving mission throughput without manual retuning. Second, planning times short enough for within-mission updates make online re-planning feasible, allowing the robot to adapt to real-world uncertainties such as blocked rows, and moving machinery or workers. Third, because sampling-based planners naturally support arbitrary obstacle geometries and general collision models, a single navigation framework can cover both intra-row maneuvers and inter-field logistics (e.g., orchard–warehouse transits) without changing environment representations. Finally, any moderate suboptimality of globally feasible sampling-based solutions can be corrected during execution by local optimal controllers (OCP) or sampling-based MPC (e.g., MPPI [22]), yielding high-quality trajectories while preserving the robustness and speed advantages of the global stage.
In future work, we plan to investigate the performance of the waypoint AOA* on complex headland turning problems, where turning patterns can not be used. We also plan to explore cooperation between the sampling-based and optimization-based approaches to leverage their respective advantages. Naturally, AOA* can be used to quickly find a feasible solution, which can then serve as an initial guess for the optimization-based planner [12,18,20,39] or Global-MPPI [24] to refine and improve solution quality. Moreover, both approaches can be used in an online fashion. In such a setup, a global AOA* could be run in parallel with local planners, providing alternative globally feasible candidate trajectories that may help local planners avoid or recover from poor local minima, potentially including trajectories from different homotopy classes. Furthermore, AOA* can be interrupted at any time, and a partial solution can be retrieved from the explored motion tree, similarly to Learning Real-Time A* [40]. Hence, the hybridized AOA* + OCP method can work in a receding-horizon fashion, which is critical for real-time robotic applications. Finally, MPPI [22] and other sampling-based optimization methods can be included in the comparison, as they represent a middle ground between the two approaches.

6. Conclusions

In this work, we proposed a novel approach that is the use of asymptotically optimal sampling-based planner AOA* for kinodynamic motion planning via sparse waypoints for the custom tractor–two-trailer apple picking machine navigating in orchard. We also provided a quantitative comparison of this new approach and state-of-the-art optimization-based methods (Fatrop and Ipopt in the CasADi framework), considering algorithm performance metrics (runtime, success rate) and trajectory quality metrics (time optimality, waypoint tracking errors, collision rates, and smoothness). Our results show that AOA* attains substantially faster time-to-first-solution and scales better with path length and temporal resolution, whereas optimization-based solvers return smoother, near-locally optimal trajectories when well warm-started, at the cost of higher sensitivity to initialization, obstacle parameterization, and time discretization.
For end users and integrators in agricultural robotics, fast global kinodynamic planning enables rapid, feasibility-in-the-loop mission planning in irregular orchards (curved or skewed rows, tight headlands), improving throughput and reducing operator trial-and-error. It can also enable online re-planning during missions to adapt to a changing environment, thereby reducing idle time and manual interventions. Because sampling-based planners naturally support arbitrary obstacle geometries and general collision models, the same navigation stack can span intra-row maneuvers and orchard–warehouse transfers without changing environment representations.
We plan to combine waypoint AOA* with advanced local planners: optimization-based (OCP) and an MPPI in high-fidelity simulation and in the real world. Ultimately, we expect fast global kinodynamic planning to serve as the upstream layer in agricultural navigation stacks, with local OCP/MPPI refining trajectories to reduce planning time and operator interventions while improving utilization and safety.

Author Contributions

Conceptualization, M.P. (algorithms and formulation) and S.W. (kinematics design); methodology, software, validation, formal analysis, investigation, and writing—original draft preparation, M.P.; writing—review and editing and visualization, M.P. and S.W.; supervision, M.P.; project administration and funding acquisition, S.W. All authors have read and agreed to the published version of the manuscript.

Funding

The study was funded by the National Centre for Research and Development, Warsaw, Poland, project number INFOSTRATEG4/0020/2022. The APC was funded by the National Centre for Research and Development, Warsaw, Poland, project number INFOSTRATEG4/0020/2022.

Data Availability Statement

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

Acknowledgments

During the preparation of this manuscript, the authors used ChatGPT-5 and Claude Sonnet 4.6 to assist with preliminary literature searches, proofreading, initial CasADi implementation scaffolding, plotting scripts, benchmarking scripts, data-logging utilities, and result table formatting scripts. The core OMPL implementation, vehicle model, problem formulation, experimental design, validation, results interpretation, and conclusions were developed by the authors. The authors reviewed and edited all AI-assisted material and take full responsibility for the content of this publication.

Conflicts of Interest

Author S.W. was employed by the company NK Automatyka, Marki, Poland. The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Donald, B.; Xavier, P.; Canny, J.; Reif, J. Kinodynamic motion planning. J. ACM (JACM) 1993, 40, 1048–1066. [Google Scholar] [CrossRef] [Scilit]
  2. Mier, G.; Valente, J.; de Bruin, S. Fields2Cover: An Open-Source Coverage Path Planning Library for Unmanned Agricultural Vehicles. IEEE Robot. Autom. Lett. 2023, 8, 2166–2172. [Google Scholar] [CrossRef] [Scilit]
  3. Dubins, L.E. On curves of minimal length with a constraint on average curvature, and with prescribed initial and terminal positions and tangents. Am. J. Math. 1957, 79, 497–516. [Google Scholar] [CrossRef] [Scilit]
  4. Li, Y.; Littlefield, Z.; Bekris, K.E. Asymptotically Optimal Sampling-Based Kinodynamic Planning. Int. J. Robot. Res. 2016, 35, 528–564. [Google Scholar] [CrossRef] [Scilit]
  5. Przybylski, M. Asymptotically optimal A* for kinodynamic planning. IEEE Robot. Autom. Lett. 2024, 9, 4353–4360. [Google Scholar] [CrossRef] [Scilit]
  6. Vanroye, L.; Sathya, A.; De Schutter, J.; Decré, W. Fatrop: A fast constrained optimal control problem solver for robot trajectory optimization and control. In Proceedings of the 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: Piscataway, NJ, USA, 2023; pp. 10036–10043. [Google Scholar]
  7. Wächter, A.; Biegler, L.T. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Program. 2006, 106, 25–57. [Google Scholar] [CrossRef] [Scilit]
  8. Hönig, W.; Ortiz-Haro, J.; Toussaint, M. db-A*: Discontinuity-bounded search for kinodynamic mobile robot motion planning. In Proceedings of the 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: Piscataway, NJ, USA, 2022; pp. 13540–13547. [Google Scholar]
  9. Hart, P.E.; Nilsson, N.J.; Raphael, B. A formal basis for the heuristic determination of minimum cost paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar] [CrossRef] [Scilit]
  10. Pivtoraiko, M.; Knepper, R.A.; Kelly, A. Differentially constrained mobile robot motion planning in state lattices. J. Field Robot. 2009, 26, 308–333. [Google Scholar] [CrossRef] [Scilit]
  11. Dolgov, D.; Thrun, S.; Montemerlo, M.; Diebel, J. Path planning for autonomous vehicles in unknown semi-structured environments. Int. J. Robot. Res. 2010, 29, 485–501. [Google Scholar] [CrossRef] [Scilit]
  12. Peng, C.; Wei, P.; Fei, Z.; Zhu, Y.; Vougioukas, S.G. Optimization-based motion planning for autonomous agricultural vehicles turning in constrained headlands. J. Field Robot. 2024, 41, 1984–2008. [Google Scholar]
  13. Kavraki, L.; Svestka, P.; Latombe, J.C.; Overmars, M. Probabilistic roadmaps for path planning in high-dimensional configuration spaces. IEEE Trans. Robot. Autom. 1996, 12, 566–580. [Google Scholar] [CrossRef] [Scilit]
  14. LaValle, S.M.; Kuffner, J.J., Jr. Randomized kinodynamic planning. Int. J. Robot. Res. 2001, 20, 378–400. [Google Scholar] [CrossRef] [Scilit]
  15. Karaman, S.; Frazzoli, E. Optimal Kinodynamic Motion Planning using Incremental Sampling-Based Methods. In Proceedings of the 49th IEEE Conference on Decision and Control (CDC), Atlanta, GA, USA, 15–17 December 2010. [Google Scholar]
  16. LaValle, S.M. Planning Algorithms; Cambridge University Press: Cambridge, UK, 2006. [Google Scholar]
  17. Ortiz-Haro, J.; Hönig, W.; Hartmann, V.N.; Toussaint, M. iDb-A*: Iterative search and optimization for optimal kinodynamic motion planning. IEEE Trans. Robot. 2024, 41, 2031–2049. [Google Scholar]
  18. Wei, P.; Peng, C.; Lu, W.; Zhu, Y.; Vougioukas, S.; Fei, Z.; Ge, Z. Efficient and safe trajectory planning for autonomous agricultural vehicle headland turning in cluttered orchard environments. IEEE Robot. Autom. Lett. 2025, 10, 2574–2581. [Google Scholar] [CrossRef] [Scilit]
  19. Ljungqvist, O.; Evestedt, N.; Cirillo, M.; Axehill, D.; Holmer, O. Lattice-based motion planning for a general 2-trailer system. In Proceedings of the 2017 IEEE Intelligent Vehicles Symposium (IV); IEEE: Piscataway, NJ, USA, 2017; pp. 819–824. [Google Scholar]
  20. Ljungqvist, O.; Bergman, K.; Axehill, D. Optimization-based motion planning for multi-steered articulated vehicles. IFAC-PapersOnLine 2020, 53, 15580–15587. [Google Scholar]
  21. Sakcak, B.; Bascetta, L.; Ferretti, G.; Prandini, M. Sampling-based optimal kinodynamic planning with motion primitives. Auton. Robot. 2019, 43, 1715–1732. [Google Scholar] [CrossRef] [Scilit]
  22. Williams, G.; Drews, P.; Goldfain, B.; Rehg, J.M.; Theodorou, E.A. Aggressive driving with model predictive path integral control. In Proceedings of the 2016 IEEE International Conference on Robotics and Automation (ICRA); IEEE: Piscataway, NJ, USA, 2016; pp. 1433–1440. [Google Scholar]
  23. Williams, G.; Aldrich, A.; Theodorou, E.A. Model predictive path integral control: From theory to parallel computation. J. Guid. Control. Dyn. 2017, 40, 344–357. [Google Scholar] [CrossRef] [Scilit]
  24. Li, J.; Wang, A.; Lyu, Y.; Ding, Z. Global path guided model predictive path integral control: Applications to GPU-parallelizable robot simulation systems. Comput. Electr. Eng. 2024, 120, 109645. [Google Scholar] [CrossRef] [Scilit]
  25. Bravo-Doddoli, A.; García-Naranjo, L.C. The dynamics of an articulated n-trailer vehicle. Regul. Chaotic Dyn. 2015, 20, 497–517. [Google Scholar] [CrossRef] [Scilit]
  26. Altafini, C. The general n-trailer problem: Conversion into chained form. In Proceedings of the 37th IEEE Conference on Decision and Control; Cat. No. 98CH36171; IEEE: Piscataway, NJ, USA, 1998; Volume 3, pp. 3129–3130. [Google Scholar]
  27. Xu, L.; Chai, K.; An, B.; Ji, S.; Hou, Z.; Gan, J.; Wang, Q.; Zhou, Y.; Li, X.; Lin, J.; et al. Tracailer: An Efficient Trajectory Planner for Tractor-Trailer Robots in Unstructured Environments. IEEE Trans. Autom. Sci. Eng. 2025, 22, 21118–21138. [Google Scholar] [CrossRef] [Scilit]
  28. Fan, Y.; Feixiang, L.; Longfei, C.; Han, S.; Jingxing, G.; Junzhe, Q.; Xinyu, X. Application of Navigation Path Planning and Trajectory Tracking Control Methods for Agricultural Robots. Agriculture 2025, 16, 64. [Google Scholar] [CrossRef] [Scilit]
  29. Mier, G.; Fennema, R.; Valente, J.; de Bruin, S. Continuous curvature path planning for headland coverage with agricultural robots. J. Field Robot. 2025, 42, 641–656. [Google Scholar]
  30. Li, D.; Tang, Z.; Yan, R.; Tian, W.; Bao, H. Quadratic optimization-based path planning for autonomous agricultural vehicles headland turning in orchard environments. Comput. Electron. Agric. 2026, 247, 111684. [Google Scholar] [CrossRef] [Scilit]
  31. Murillo, M.; Sánchez, G.; Deniz, N.; Genzelis, L.; Giovanini, L. Improving path-tracking performance of an articulated tractor-trailer system using a non-linear kinematic model. Comput. Electron. Agric. 2022, 196, 106826. [Google Scholar]
  32. Zheng, S.; Xu, S.; Rai, R. Trailer-referenced autonomous navigation of agricultural tractor–trailer systems. Comput. Electron. Agric. 2025, 237, 110514. [Google Scholar]
  33. Guevara, L.; Michałek, M.M.; Cheein, F.A. Headland turning algorithmization for autonomous N-trailer vehicles in agricultural scenarios. Comput. Electron. Agric. 2020, 175, 105541. [Google Scholar] [CrossRef] [Scilit]
  34. Andersson, J.A.E.; Gillis, J.; Horn, G.; Rawlings, J.B.; Diehl, M. CasADi: A software framework for nonlinear optimization and optimal control. Math. Program. Comput. 2019, 11, 1–36. [Google Scholar] [CrossRef] [Scilit]
  35. Gottschalk, S.; Lin, M.C.; Manocha, D. OBBTree: A hierarchical structure for rapid interference detection. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques, New Orleans, LA, USA, 4–9 August 1996; pp. 171–180. [Google Scholar]
  36. Gill, P.E.; Murray, W.; Saunders, M.A. SNOPT: An SQP algorithm for large-scale constrained optimization. SIAM Rev. 2005, 47, 99–131. [Google Scholar] [CrossRef] [Scilit]
  37. Şucan, I.A.; Moll, M.; Kavraki, L.E. The Open Motion Planning Library. IEEE Robot. Autom. Mag. 2012, 19, 72–82. [Google Scholar] [CrossRef] [Scilit]
  38. Kunz, T.; Stilman, M. Kinodynamic RRTs with Fixed Time Step and Best-Input Extension Are Not Probabilistically Complete. In Algorithmic Foundations of Robotics XI: Selected Contributions of the Eleventh International Workshop on the Algorithmic Foundations of Robotics; Springer International Publishing: Cham, Switzerland, 2015; pp. 233–244. [Google Scholar] [CrossRef] [Scilit]
  39. Ortiz-Haro, J.; Hönig, W.; Hartmann, V.N.; Toussaint, M.; Righetti, L. iDb-RRT: Sampling-based kinodynamic motion planning with motion primitives and trajectory optimization. In Proceedings of the 2024 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: Piscataway, NJ, USA, 2024; pp. 10702–10709. [Google Scholar]
  40. Korf, R.E. Real-time heuristic search. Artif. Intell. 1990, 42, 189–211. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.