StableTracker: Learning to Stably Track Target via Differentiable Simulation

Danping ZouarXiv 2025 · DOI

TL;DR

This paper introduces StableTracker, a novel learning-based policy for quadrotors that enables stable and precise tracking of moving targets. By leveraging differentiable simulation and low-level control commands, StableTracker achieves superior accuracy and robustness compared to existing methods, even in challenging scenarios with high target maneuverability.

What Problem Does This Paper Address?

Existing methods for quadrotor object tracking often rely on modular pipelines that combine object detection, trajectory planning, and low-level control. While effective, these pipelines can suffer from high computational overhead, cumulative errors, and increased control latency, especially on resource-constrained onboard computers. This makes it difficult for quadrotors to track fast-moving or highly agile targets, often leading to loss of the target from the camera's field of view. Furthermore, many learning-based approaches output high-level trajectories, which lack the fine-grained attitude control needed for precise target centering, particularly during rapid accelerations or decelerations. This paper aims to bridge this gap by developing a lightweight, end-to-end learning-based policy that directly outputs low-level control commands for stable and precise target tracking.

Methods

The core of StableTracker lies in its use of differentiable simulation for training. Instead of relying on traditional reinforcement learning (RL) methods that use zero-order gradients (which can have high variance and poor generalization), StableTracker employs backpropagation-through-time (BPTT). This allows for the computation of first-order gradients, leading to more accurate optimization directions, faster convergence, and improved sample efficiency.

The policy directly outputs low-level collective thrust and bodyrate (CTBR) commands. This is a key departure from many prior works that output high-level waypoints. By controlling thrust and bodyrates, the quadrotor gains precise control over its attitude, enabling it to maintain the target in the center of its field of view (FOV) even during aggressive maneuvers.

A custom differentiable reward function is designed, incorporating three components:

  • Perception-aware reward: Encourages the quadrotor to face the target by rewarding alignment of the quadrotor's camera axis with the target's position.
  • Constant-distance reward: Penalizes deviations from a desired safe distance to the target.
  • Stability reward: Penalizes high-frequency fluctuations and non-smooth control actions, promoting smoother flight.

To enhance generalization, the paper utilizes domain randomization during training, varying target trajectories, velocities, and initial quadrotor positions.

Datasets

The paper does not explicitly mention specific public datasets for training or evaluation. Instead, it relies on simulated environments for training and testing. The simulation environment, likely based on the authors' previous work (VisFly [19]), allows for the generation of diverse scenarios with randomized parameters. For real-world validation, the authors used a DJI quadrotor as the moving target. The evaluation experiments involved three unseen circular trajectories (named Trajectories D, B, and 8) with varying curvature and scale, and target velocities ranging from 0.5 m/s to 3.0 m/s.

Key Insights and Ideas

  • Differentiable simulation is crucial for robust quadrotor control: The paper strongly advocates for differentiable simulation and BPTT, demonstrating its superiority over traditional RL in terms of stability, generalization, and sample efficiency for complex robotic tasks.
  • Low-level control is key for precise visual tracking: Directly controlling thrust and bodyrates, rather than just planning waypoints, provides the necessary attitude control to keep a target centered in the FOV, especially during dynamic maneuvers.
  • A novel "coordinated descent/ascent" maneuver: The quadrotor learns to pitch up or down while simultaneously descending or ascending to compensate for camera tilt during target acceleration/deceleration, keeping the target centered. This is a significant emergent behavior.
  • Generalization across perspectives is challenging but achievable: The paper highlights how other methods struggle to generalize to different initial viewing angles, while StableTracker shows improved robustness.

Key Results

  • Superior stability and accuracy: StableTracker consistently outperforms baseline methods (Elastic Tracker, PPO, SAC) in terms of tracking accuracy (mean absolute error) and stability (standard deviation of errors).
  • Robustness to varying conditions: The policy demonstrates strong generalization across different target velocities (0.5-3.0 m/s), trajectories, and safe distances (1.5-4.5 m).
  • Faster and more stable convergence: In simulation, StableTracker converges faster and exhibits more stable reward curves compared to PPO and SAC.
  • Real-world validation: A real-world experiment successfully demonstrated StableTracker's ability to track a maneuvering DJI quadrotor, maintaining the target in the FOV throughout complex maneuvers.
  • Reduced jitter: Compared to Elastic Tracker, StableTracker exhibits significantly less jitter, leading to a smoother visual experience.

Limitations and Future Work

  • Target recognition module is assumed: The current work assumes the target's state (position and velocity) is known, neglecting the object detection and pose estimation module. The authors plan to integrate a prototype object detector and pose estimator in future work.
  • Collision-free flight not addressed: While the focus is on tracking, future work aims to train a policy that can also ensure collision-free flight, which is a critical aspect for practical applications.
  • Further exploration of dynamic scenarios: The authors suggest that addressing more complex dynamic scenarios and further enhancing generalization capabilities will be part of their future research.

Summary updated

BibTeX
@misc{zou2025stabletracker,
  author = {Danping Zou},
  title = {{StableTracker: Learning to Stably Track Target via Differentiable Simulation}},
  year = {2025},
  eprint = {2509.14147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.14147},
}
Figure