Safe real-time control of robotic manipulators in unstructured environments requires handling numerous safety constraints without compromising task performance. Traditional approaches, such as artificial potential fields (APFs), suffer from local minima, oscillations, and limited scalability, while model predictive control (MPC) can be computationally expensive. Control barrier functions (CBFs) offer a promising alternative due to their high level of robustness and low computational cost, but these safety filters must be carefully designed to avoid significant reductions in the overall performance of the manipulator. In this work, we introduce an Operational Space Control Barrier Function (OSCBF) framework that integrates safety constraints while preserving task-consistent behavior. Our approach scales to hundreds of simultaneous constraints while retaining real-time control rates, ensuring collision avoidance, singularity prevention, and workspace containment even in highly cluttered and dynamic settings. By explicitly accounting for the task hierarchy in the CBF objective, we prevent degraded performance across both joint-space and operational-space tasks, when at the limit of safety.
"Keep the tip of the end-effector in the safe-set"
❌ Bad operational space tracking
❌ Bad null space tracking
✅ Task-consistent
(minimally impeding the robot's performance while remaining safe)
Shown above: one teleoperated trajectory, with simultaneous constraint enforcement. Across 168 constraints, the robot remains safe (h > 0) without compromising on performance near the boundary of safety.
❌ Input-constrained kinematic model: Cannot account for torque limits
✅ Input-constrained dynamic model: Retains good tracking even under torque limits
Our high-performance and easy-to-use Python package for CBFs is available on PyPI along with full documentation
pip install cbfpy
and the OSCBF implementation is available at this project's GitHub repository.
@article{morton2025oscbf,
author = {Morton, Daniel and Pavone, Marco},
title = {Safe, Task-Consistent Manipulation with Operational Space Control Barrier Functions},
year = {2025},
journal = {arXiv preprint arXiv:2503.06736},
note = {Submitted to IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Hangzhou, 2025},
}