Least Restrictive Halfplane Control Barrier Functions for an Autonomous Hydrofoil Boat with Moving Obstacles
Authors: Mattias Trende, Petter Ögren
Organizations: Robotics, Perception and Learning Lab., School of Electrical Engineering and Computer Science, Royal Institute of Technology (KTH), SE-100 44 Stockholm, Sweden
Finding valid Control Barrier Functions (CBFs) is difficult for non-linear systems subject to actuation constraints and moving in complex environments. One way to enable analytically derived CBFs is to represent obstacles as supporting halfplanes, allowing the agent to move safely on one side. In this paper, we propose such a CBF for an agent with Dubins car dynamics. A potential drawback of halfplane CBFs is that they can be highly conservative, overestimating the obstacles and thereby restricting the agent's motion. To address this problem, we make the CBF halfplanes less restrictive as follows. First, the orientation of the supporting halfplane for a single obstacle is optimised to find a safe control input as close as possible to the desired one. Second, we use multiple halfplanes to better approximate complex geometries, and derive rules for handling halfplane intersections. Comparative simulations show that our method reduces conservatism compared to existing CBF techniques, enabling tighter obstacle clearance and faster goal arrival, with delays reduced by more than 33%. Finally, experiments on an autonomous hydrofoil boat demonstrate successful real-world implementation.
Figures & tables
Fig. 1: A boat approaching a stationary obstacle (moving obstacles will be considered below). Three different supporting halfplane CBFs are shown as h1,h2 , and h3 . The green curves correspond to the boat’s turning radius. For the CBF h2 , which is orthogonal to the minimum distance between the boat and the obstacle, the boat is not in the safe set, as neither turning direction can avoid the halfplane. By either choosing h1 or h3 , we can ensure safety. Depending on the boat’s destination ( G1 or G2 ), the least restrictive halfplane CBF will either be h1 or h3 .
Fig. 2: The geometry of a Dubins car agent, A , approaching a moving halfplane, O . Two circular arc turns are shown through angles β1 (left turn) and β−1 (right turn). The two terms of b in ( 12 ) are divided into ba and bb in the figure.
Fig. 3: The geometry of an agent, A , moving towards a corner of two stationary halfplanes, O1 and O2 . Note that only the longest turn in each direction will ensure safety, corresponding to the requirement of Lemma 2 .
Fig. 4: The geometry of Example 1 . The agent starts at [−30,0]T , with a goal at [30,0]T , moving at vA=0.8 m/s. The obstacle is parametrised by the incidence angle ψ and the velocity vO . The initial position of the obstacle is set so that it intersects the agent’s nominal trajectory at x=[0,0]T . The simulation is run for up to 300 s, or until the agent is within 1 m of the goal. The nominal time to goal is 60/0.8=75 s.
Fig. 5: The closest distance between the agent and the obstacle, as a function of the speed of the obstacle. Notice how the LRH-CBF allows the agent to go close to the obstacle consistently. All methods ensure safety for all vO<vA=0.8 m/s, with the exception of the SHO-CBF, which has a few collisions at obstacle speeds of vO∈(0.65,0.8) .
Fig. 6: The time delay to the goal, compared to the direct trajectory, as a function of the speed of the obstacle. The y-axis is on a log scale to better show differences over a large range of values. The lines are the moving average over a window of 51 points. Notice how the LRH-CBF has significantly smaller delays than all other methods, with MDH-CBF delays often 50 % larger and (S)HO-CBF even larger still.
Method:
Closest Distance (avg) [m]
Delay (avg) [s]
HO-CBF
0.817±1.33
34.5±52.0
SHO-CBF
0.650±2.55
33.3±51.2
MDH-CBF
2.03±1.53
10.3±5.14
LRH-CBF (ours)
0.105±0.359
6.79±3.29
TABLE I: Average Obstacle Distances and Arrival Delays. Note that without the moving obstacle, the straight-line distance is 60m with a corresponding travel time of 75 s, which is used to compute the delays.
Fig. 7 : The agent drives in a harbour, following a series of waypoints. By using multiple halfplanes to describe the environment, the agent’s safety can be ensured while it fulfills its mission.
Fig. 8: The autonomous hydrofoiler, Evolo.
Fig. 9: Evolo’s paths for the MDH-CBF and the LRH-CBF for a) a static obstacle, b) a moving obstacle with v=1 m/s. The closest instance between Evolo and the moving obstacle occurs at t=9.8 s, and a snapshot of both Evolo and the obstacle at that time is shown.
Control Barrier Functions (CBFs) can provide provable safety guarantees for dynamic systems. However, finding a valid CBF for a system of interest is often non-trivial, especially for systems with low computational resources, higher-order dynamics, and moving close to obstacles of complex shape. A common solution to this problem is to use a purely distance-based CBF. In this paper, we study Hyperplane CBFs (H-CBFs), where a hyperplane separates the agent from the obstacle. First, we note that the common distance-based CBF is a special case of an H-CBF where the hyperplane is a supporting hyperplane of the obstacle that is orthogonal to a line between the agent and the closest point of the obstacle. We then show that a less conservative CBF can be found by optimising over the orientation of the supporting hyperplane, in order to find the Least Restrictive Hyperplane CBF. This enables us to maintain the safety guarantees while allowing controls that are closer to the desired ones, especially when moving fast and passing close to obstacles. We illustrate the approach on a double integrator dynamical system with acceleration constraints, moving through a group of arbitrarily shaped static and moving obstacles, and show that the proposed approach reduces the average gap between desired and safe controls by an order of magnitude.
Mattias Trende, Petter Ögren
The authors are with the Robotics, Perception and Learning Lab., School of Electrical Engineering and Computer Science, Royal Institute of Technology (KTH), SE-100 44 Stockholm, Sweden
Classical control barrier functions (CBFs) provide safety constraints for controllers, but designing them by hand is difficult for underactuated vehicles and the resulting safe sets can be overly conservative. Neural CBFs can learn more informative barriers from data, yet a learned barrier is usually verified only for one fixed obstacle configuration. We study whether one neural barrier can be reused across environments by expressing the state relative to each obstacle. The key gap is that these relative coordinates may discard information needed to predict their own evolution. We give a generalized closure condition that represents this missing information as a residual and a lifting theorem that transfers a verified relative-coordinate barrier to every obstacle in a family. A rank test also identifies when symmetry alone cannot justify the transfer. We validate the conditions on a double integrator, a planar aircraft, and a 12-state quadrotor. Coordinates that fail the test lead to obstacle penetration or to a barrier condition that fails near hover, whereas body-frame coordinates close exactly for the quadrotor. The resulting barrier transfers to new maps without retraining and is effective in the reported deployment and fast-start experiments.
Nishant Jayesh Bhave, Parthib Khound
Indian Institute of Technology Bombay, Mumbai 400076, India
Control barrier functions (CBFs) provide real-time safety guarantees through pointwise conditions on the state. However, synthesizing a valid CBF is difficult and the resulting controllers are myopic. To address myopia, this article introduces predicted-flow control barrier functions (P-CBFs), which generalize the CBF from a function of the current state to a functional of a predicted flow under a parametrized control plan over a finite prediction horizon. For safety, a P-CBF can certify that the predicted flow is in a safe set over the entire prediction horizon. However, candidate P-CBFs suffer from the same challenge as candidate CBFs, namely, control constraints make it difficult to guarantee that the P-CBF is valid. This article resolves this challenge by introducing a terminal candidate P-CBF requiring that the predicted flow end in a backup safe set at the terminal time, and a planning-time shift that modulates the prediction horizon, providing an additional degree of freedom to ensure feasibility. The real-time control and the evolution of the control-plan parameter and planning-time shift are determined jointly by a single convex optimization that is guaranteed to be feasible and renders the associated safe set forward invariant. The resulting safe optimal flow control provides a safety certificate over the entire prediction horizon and unifies finite-horizon integral-cost optimization with safety certification. This optimization reduces to a quadratic program (QP) if the control constraints are a convex polytope. The QP implementation, termed FlowBarrier, is validated on a nonholonomic ground robot navigating a dense environment. FlowBarrier is compared to nonlinear model predictive control and two CBF-based safety filter methods across 100 trials, where FlowBarrier achieves the highest goal-reaching rate, zero safety violations, and the lowest computation time.
Amirsaeid Safari, Jesse B. Hoagg
Department of Mechanical and Aerospace Engineering, University of Kentucky, Lexington, KY 40506 USA