Safe Navigation in Human Occupied Environments Using Sampling and Control Barrier Functions

Keyvan Majd, Shakiba Yaghoubi, Tomoya Yamaguchi, Bardh Hoxha, Danil Prokhorov, Georgios FainekosarXiv 2021

TL;DR

This paper introduces CBF-TB-RRT, a real-time motion planning framework that combines Time-Based Rapidly-exploring Random Trees (TB-RRT) with Control Barrier Functions (CBFs) to ensure safe robot navigation around pedestrians. By incorporating a probabilistic human motion predictor, the system guarantees collision-free trajectories in tight spaces like narrow corridors, even when the exact dynamics of the moving pedestrians are completely unknown.

What Problem Does This Paper Address?

Navigating crowded indoor environments like hospitals, airports, or narrow corridors is a major challenge for Autonomous Mobile Systems (AMS). Human motion is notoriously complex and unpredictable.

To tackle this, roboticists typically use one of two approaches, both of which have flaws:

  1. Sampling-based planners (like RRTs): Excellent at exploring complex spaces and finding global paths, but they can struggle to compute smooth, reactive controls in real-time when obstacles move.
  2. Optimization-based methods (like Control Barrier Functions/QPs): Great for providing instantaneous, mathematically proven safety guarantees. However, they are prone to getting trapped in local minima (e.g., freezing in front of an obstacle) or becoming mathematically "infeasible" in tightly constrained spaces.

Furthermore, most existing safe-steering methods assume that the robot knows the exact mathematical equations governing the obstacles' movements—an unrealistic assumption when dealing with humans. This paper bridges the gap by creating a unified framework that combines global tree-based exploration with local optimization-based safety filters under unknown obstacle dynamics.

Fig. 1: Simulation scenarios for the robot navigation in nar- row corridors using the proposed CBF-TB-RRT framework.

Methods

The proposed CBF-TB-RRT algorithm integrates three core components:

  • Time-Based RRT (TB-RRT): Unlike standard RRTs that plan static paths, TB-RRT grows a timestamped tree in a bounded-horizon manner. It continuously updates its branches in real-time as the robot moves and receives new environmental data.
  • Control Barrier Functions (CBFs): Safety requirements are formulated as CBF constraints within a local Quadratic Program (QP) optimization loop. This acts as a low-level safety filter, continuously calculating safe control inputs (linear and angular velocities) that keep the robot within a designated "safe set."
  • Joint Sampling MDP (JS-MDP) Prediction: To account for unknown human dynamics, the authors utilize a goal-directed prediction model. JS-MDP generates probabilistic occupancy maps over a finite future horizon. The algorithm extracts these as ellipsoidal level-sets, defining the boundaries the robot must avoid.

Additionally, the authors resolve a common kinematic hurdle: standard unicycle robot models suffer from a "relative degree" mismatch where angular velocity doesn't naturally appear in first-order safety constraints. They apply a near-identity diffeomorphism (a coordinate transformation trick) to ensure the CBF can directly modulate both steering and speed.

Fig. 3: Level sets of the predicted occupied region by human with po = 0.2.

Datasets

The method was not trained or evaluated on standard open-source trajectory datasets. Instead, the authors evaluated their framework using a high-fidelity simulation environment:

  • Platform: The Toyota Human Support Robot (HSR) model.
  • Simulator: Gazebo and ROS (Robot Operating System), interfaced with MATLAB R2020a for the algorithmic backend.
  • Scenarios: Three custom-designed narrow corridor environments featuring different configurations of static human groups and dynamic pedestrians walking at average speeds of 1 m/s.

Key Insights and Ideas

  • Algorithmic Synergy: The core "aha moment" is that RRT and CBF perfectly counteract each other's weaknesses. When the local CBF optimization risks becoming infeasible or stuck, the RRT's stochastic exploration finds alternative topological routes around the human obstacles.
  • Safety Without Explicit Dynamics: The paper demonstrates that you don't need an exact kinematic model of a pedestrian to use CBFs. Probabilistic level-sets derived from a goal-oriented intent predictor provide enough geometric abstraction to enforce rigorous control barriers.
  • Conservative vs. Aggressive Tuning: By adjusting the weights ($a_1, a_2$) in the RRT vertex cost calculator, operators can easily tune the robot's behavior—balancing a highly conservative strategy (waiting for a human to pass) against an aggressive one (actively squeezing through a safe gap).

Key Results

The framework was validated across three challenging corridor navigation scenarios:

  1. Scenario 1 (Short-horizon prediction): The robot safely paused and waited at zero velocity when a narrow corridor was temporarily blocked by two humans walking in tandem, proceeding only when a sufficient gap opened.
  2. Scenarios 2 & 3 (Complex static/dynamic mix): The robot successfully navigated around a stationary crowd while dynamically dodging oncoming pedestrians by hugging the corridor walls.

Mathematically, the framework successfully bounded the probability of collision by the user-defined risk threshold ($p_o = 0.2$). In terms of computational efficiency, the prototype MATLAB implementation achieved an average loop time of $0.6 \pm 0.1$ seconds per prediction and control cycle.

Fig. 4: The robot explores the environment to find a safe path toward goal using CBF-TB-RRT. At each frame, the expanded tree from t = 0 to the current time is shown in light blue. Blue dots show the executed trajectory of the robot. Dark blue shows the expanded tree at the current time with the solid line representing the selected path. Green circles represent the future occupancy of dynamic obstacles with probability at least 20%. The generated controls and real-time safety measure h(˜x) demonstrated in the right-most figures (higher values are safer). Top row: a scenario with a group of humans moving behind each other. Middle and bottom rows: two complex scenarios with a group of static and dynamic agents in the scene.

Limitations and Future Work

  • Inattentive Human Assumption: The current simulation assumes humans follow scripted paths and completely ignore the robot. In the real world, human-robot interaction is bidirectional (humans alter their steps when they see a robot). Incorporating a reactive human motion model is a primary target for future work.
  • Software Bottlenecks: The current implementation relies on a prototype MATLAB script. To deploy this on a physical robot in highly dynamic settings, the code needs to be ported to C/C++ to reduce the $0.6$-second latency.
  • Horizon Tuning: Choosing the optimal prediction horizon ($N_o$) remains a manual balancing act between safety guarantees and computational overhead.

Summary updated

BibTeX
@misc{majd2021safe,
  author = {Keyvan Majd and Shakiba Yaghoubi and Tomoya Yamaguchi and Bardh Hoxha and Danil Prokhorov and Georgios Fainekos},
  title = {{Safe Navigation in Human Occupied Environments Using Sampling and Control Barrier Functions}},
  year = {2021},
  eprint = {2105.01204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.01204},
}
Figure