Safety Embedded Differential Dynamic Programming Using Discrete Barrier States

Hassan Almubarak, Kyle Stachowicz, Nader Sadegh, Evangelos A. TheodorouIEEE RA-L 2021

Introduction

In the field of robotics, the dual requirement of high performance and guaranteed safety remains a significant challenge. Whether it is a drone navigating a dense forest or a robotic arm working alongside humans, the controller must plan trajectories that are both fast and collision-free. Traditionally, this has been handled through penalty methods or Control Barrier Functions (CBFs). However, penalty methods often introduce numerical instability and non-convexity, leading solvers into local minima. CBFs, while effective as safety filters, are notoriously difficult to tune and often struggle with high relative-degree constraints where actions do not immediately impact safety metrics.

This paper introduces Discrete Barrier States (DBaS), a novel approach that embeds safety constraints directly into the robot's mathematical model. By treating safety as a dynamic state rather than a cost penalty, the authors enable Differential Dynamic Programming (DDP) to plan trajectories that are inherently safe and numerically stable.

Methodology: The Discrete Barrier State

The core innovation of this work is State Augmentation. Instead of merely tracking physical properties like position and velocity, the system's state is augmented with a "barrier state" ($w$). This state tracks the robot's proximity to safety boundaries according to specific dynamics embedded within the equations of motion.

By making the barrier part of the system's physics, the optimizer (DDP) perceives safety boundaries as physical limits rather than expensive regions. This shift from the cost function to the system dynamics changes the geometry of the optimization landscape, removing the "jagged" non-convexities that typically cause trajectory optimizers to fail in cluttered environments.

Comparison of trajectories generated by DBaS, Penalty, and CBF-QP methods. DBaS provides smoother, more reliable paths in constrained environments compared to traditional penalty or filtering approaches.

Experimental Evaluation

The authors evaluated the DBaS-DDP algorithm across several challenging simulated benchmarks:

  • Planar Point and Differential Robots: Navigating complex, randomized 2D obstacle courses.
  • Cart-Pole Swing-up: Managing classic control with added physical rail constraints.
  • 3D Quadrotor: Reaching targets in environments cluttered with up to 40 randomized spherical obstacles.

These tests compared DBaS-DDP against standard penalty-based DDP and CBF-based safety filters to measure success rates, computational efficiency, and numerical stability.

Key Results and Insights

The experimental results highlight the robustness of the DBaS approach. In the quadrotor task with 40 obstacles, DBaS-DDP achieved a 96% success rate, significantly outperforming the 59% success rate of the standard penalty-based DDP. Furthermore, DBaS-DDP consistently found more efficient paths; in many scenarios, the penalty method produced trajectories that were 1.5x to 4.6x more expensive in terms of control effort.

Success rates of DBaS-DDP compared to Penalty-DDP and CBF-DDP as the number of obstacles increases. DBaS-DDP maintains high reliability even as environmental complexity grows.

Numerical stability was another major advantage. The authors demonstrated that their method is well-conditioned (minimum eigenvalue of 0.1), whereas penalty methods were often ill-conditioned (-0.173), explaining why standard solvers frequently crash when high penalties are applied to ensure safety.

Conclusion

By embedding safety into the dynamics of the system, DBaS-DDP provides a unified framework for safe trajectory optimization that avoids the pitfalls of traditional penalty and filtering methods. The approach is numerically stable, information-rich, and highly effective in cluttered environments. Future work aims to extend this framework to handle sensor noise and unmodeled dynamics, eventually moving from simulation to real-time execution on physical robotic hardware using receding-horizon control.

Summary updated

BibTeX
@article{almubarak2021safety,
  author = {Hassan Almubarak and Kyle Stachowicz and Nader Sadegh and Evangelos A. Theodorou},
  title = {{Safety Embedded Differential Dynamic Programming Using Discrete Barrier States}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  doi = {10.1109/lra.2022.3143301},
}
Figure