A Differentiable Distance Metric for Robotics Through Generalized Alternating Projection
Abstract
In many robotics applications, it is necessary to compute not only the distance between the robot and the environment, but also its derivative - for example, when using control barrier functions. However, since the traditional Euclidean distance is not differentiable, meaning it is not guaranteed to be differentiable everywhere, there is a need for alternative distance metrics that possess this property. Recently, a metric with guaranteed differentiability was proposed GoncalvesSmoothDistances. This approach has some important drawbacks, which we address in this paper. We provide much simpler and practical expressions for the smooth projection for general convex polytopes. Additionally, as opposed to GoncalvesSmoothDistances, we ensure that the distance vanishes as the objects overlap. We show the efficacy of the approach in experimental results. Our proposed distance metric is publicly available through the Python-based simulation package UAIBot.
Fields of Study & Subjects
Robotics and Sensor-Based Localization
Robotic Path Planning Algorithms
Robot Manipulation and Learning
Publication details
- Journal / source
- IEEE Robotics and Automation Letters
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Volume
- 11
- Issue
- 3
- Pages
- 2889–2896
- Publication date
- 19 January 2026