Tracailer: An Efficient Trajectory Planner for Tractor-Trailer Vehicles in Unstructured Environments

Long Xu, Kaixin Chai, Boyuan An, Jiaxiang Gan, Qianhao Wang, Yuan Zhou, Xiaoying Li, Junxiao Lin, Zhichao Han, Chao Xu, Yanjun Cao, Fei GaoarXiv 2025 · OpenReview

Abstract

The tractor-trailer vehicle consists of a drivable tractor and one or more non-drivable trailers connected via hitches. Compared to typical car-like robots, the addition of trailers provides greater transportation capability. However, this also complicates motion planning due to the robot's complex kinematics, high-dimensional state space, and deformable structure. To efficiently plan safe, time-optimal trajectories that adhere to the kinematic constraints of the robot and address the challenges posed by its unique features, this paper introduces a lightweight, compact, and high-order smooth trajectory representation for tractor-trailer robots. Based on it, we design an efficiently solvable spatio-temporal trajectory optimization problem. To deal with deformable structures, which leads to difficulties in collision avoidance, we fully leverage the collision-free regions of the environment, directly applying deformations to trajectories in continuous space. This approach does not require constructing safe regions from the environment using convex approximations through collision-free seed points before each optimization, avoiding the loss of the solution space and reducing dependency on initial values. Moreover, a multi-terminal fast path search algorithm is proposed to generate the initial values for optimization. Extensive simulation experiments demonstrate that our approach achieves several-fold improvements in efficiency compared to existing algorithms, while also ensuring lower curvature and trajectory duration. Real-world experiments involving the transportation, loading, and unloading of goods in both indoor and outdoor scenarios further validate the effectiveness of our method.

Introduction

Tractor-trailer robots are indispensable in logistics, agriculture, and luggage handling due to their high transportation capacity. However, automating these vehicles presents significant challenges. Unlike standard car-like robots, they are governed by complex underactuated kinematics where hinge connections can lead to "jackknifing." Furthermore, each additional trailer increases the state space dimensionality, causing traditional search algorithms like A or RRT to suffer from the "curse of dimensionality." Finally, the robot's deformable structure makes standard collision avoidance—which often relies on static convex approximations—computationally expensive and overly restrictive in narrow spaces.

To address these hurdles, we present Tracailer, a high-performance trajectory planning framework designed for real-time navigation in complex, unstructured environments. Tracailer overcomes kinematic singularities and high-dimensional search spaces through a novel trajectory representation and a multi-stage planning pipeline.

The Tracailer Framework

The Tracailer framework splits the planning problem into a fast initial path search followed by a continuous spatial-temporal optimization phase. This modular approach ensures both computational efficiency and trajectory smoothness.

Slackened Arc Length Representation

Traditional planners often rely on differential flatness, which can lead to numerical singularities (such as division by zero) when the robot stops or moves slowly. Tracailer introduces a "slackened arc length" variable $s(t)$. This mathematical formulation decouples the geometric path from the timing, allowing the optimizer to handle starts, stops, and slow maneuvers smoothly without numerical instability.

SE(2)-MHA (Multi-terminal Hybrid-A*)

To generate a high-quality initial guess for the optimizer, we developed SE(2)-MHA. This search algorithm focuses on exploring the tractor's 3D space (x, y, yaw) while using a fast numerical approximation to "drag" the trailers along. This drastically reduces the search space compared to full-state search methods while still providing a kinematically feasible initial path.

System architecture of Tracailer, highlighting the integration of perception, localization, and planning modules.

Continuous Spatial-Temporal Optimization

Rather than fitting trajectories into pre-calculated "safe corridors," Tracailer optimizes quintic piecewise polynomials directly against a Signed Distance Field (SDF) of the environment. This allows the robot to "deform" its trajectory in continuous space, finding the safest and most efficient path through narrow gaps without the information loss associated with convex approximations.

Experimental Results

We evaluated Tracailer through extensive simulations in ROS/Gazebo and real-world deployments using a custom robot platform consisting of an AgileX Hunter SE tractor and up to three trailers.

Efficiency and Success Rate

In a complex three-trailer parking simulation, Tracailer achieved a total planning time of approximately 0.36 seconds, representing an order-of-magnitude improvement over existing state-of-the-art methods like OCP-STC, which required over 4 seconds. Furthermore, Tracailer maintained a success rate of over 98% in cluttered environments, whereas traditional Hybrid-A* methods saw significant performance degradation as the number of trailers increased.

Real-World Validation

Real-world tests were conducted in both indoor laboratory settings and outdoor campus environments featuring obstacles such as bicycles, boxes, and narrow aisles. The system demonstrated robust performance in transporting and unloading goods. The resulting trajectories showed a 20% reduction in tracking error compared to baseline methods, attributed to the high-order polynomial representation which is inherently easier for low-level controllers to follow.

Real-world autonomous navigation in a cluttered outdoor environment, showing the planned trajectory and traversability assessment.

Conclusion

Tracailer provides a robust and efficient solution for the motion planning of articulated tractor-trailer vehicles. By leveraging a slackened arc length representation and direct SDF-based optimization, it avoids the common pitfalls of kinematic singularities and restrictive safe regions. Future work will focus on enhancing performance in extremely dynamic environments and integrating semantic information to identify movable obstacles.

The source code for Tracailer is available at https://github.com/ZJU-FAST-Lab/tracailer/.

Summary updated

Abstract

The tractor-trailer vehicle (robot) consists of a drivable tractor and one or more non-drivable trailers connected via hitches. Compared to typical car-like robots, the addition of trailers provides greater transportation capability. However, this also complicates motion planning due to the robot's complex kinematics, high-dimensional state space, and deformable structure. To efficiently plan safe, time-optimal trajectories that adhere to the kinematic constraints of the robot and address the challenges posed by its unique features, this paper introduces a lightweight, compact, and high-order smooth trajectory representation for tractor-trailer robots. Based on it, we design an efficiently solvable spatio-temporal trajectory optimization problem. To deal with deformable structures, which leads to difficulties in collision avoidance, we fully leverage the collision-free regions of the environment, directly applying deformations to trajectories in continuous space. This approach not requires constructing safe regions from the environment using convex approximations through collision-free seed points before each optimization, avoiding the loss of the solution space, thus reducing the dependency of the optimization on initial values. Moreover, a multi-terminal fast path search algorithm is proposed to generate the initial values for optimization. Extensive simulation experiments demonstrate that our approach achieves several-fold improvements in efficiency compared to existing algorithms, while also ensuring lower curvature and trajectory duration. Real-world experiments involving the transportation, loading and unloading of goods in both indoor and outdoor scenarios further validate the effectiveness of our method. The source code is accessible at https://github.com/ZJU-FAST-Lab/tracailer/.
BibTeX
@misc{xu2025tracailer,
  author = {Long Xu and Kaixin Chai and Boyuan An and Jiaxiang Gan and Qianhao Wang and Yuan Zhou and Xiaoying Li and Junxiao Lin and Zhichao Han and Chao Xu and Yanjun Cao and Fei Gao},
  title = {{Tracailer: An Efficient Trajectory Planner for Tractor-Trailer Vehicles in Unstructured Environments}},
  year = {2025},
  eprint = {2502.19832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.19832},
}
Figure