
Safe Path Planning for Polynomial Shape Obstacles via Control Barrier
Functions and Logistic Regression
Chengyang Peng1, Octavian Donca1, and Ayonga Hereid1
Abstract— Safe path planning is critical for bipedal robots to
operate in safety-critical environments. Common path planning
algorithms, such as RRT or RRT*, typically use geometric or
kinematic collision check algorithms to ensure collision-free
paths toward the target position. However, such approaches
may generate non-smooth paths that do not comply with the
dynamics constraints of walking robots. It has been shown
that the control barrier function (CBF) can be integrated
with RRT/RRT* to synthesize dynamically feasible collision-free
paths. Yet, existing work has been limited to simple circular or
elliptical shape obstacles due to the challenging nature of con-
structing appropriate barrier functions to represent irregular-
shaped obstacles. In this paper, we present a CBF-based RRT*
algorithm for bipedal robots to generate a collision-free path
through complex space with polynomial-shaped obstacles. In
particular, we used logistic regression to construct polynomial
barrier functions from a grid map of the environment to
represent arbitrarily shaped obstacles. Moreover, we developed
a multi-step CBF steering controller to ensure the efficiency
of free space exploration. The proposed approach was first
validated in simulation for a differential drive model, and then
experimentally evaluated with a 3D humanoid robot, Digit, in
a lab setting with randomly placed obstacles.
I. INTRODUCTION
Mobile robots have shown encouraging promises in many
real-world applications outside traditional well-structured
factory settings thanks to the recent advancement of real-
time path planning [1]. Path planning has been extensively
studied over the past decades [2], [3]. A feasible path for
a robot requires starting from an initial position to the
goal position without colliding with any obstacle in the
environment. Arguably the most prevailing approach in path
planning is the sampling-based Rapidly Exploring Random
Trees (RRT) algorithm, which expends the path by randomly
sampling points in the configuration space [4]. To improve
the optimality of the resulting path, Karaman and Frazzoli [5]
proposed RRT*, which can reconnect the newly added node
to the nearby nodes based on the minimum cost from the
root node to the new node. Much progress has been made
recently in combining low-level control synthesis and path
planning, such as LQR-RRT* [6], [7], to ensure that the
generated paths are consistent with the underlying dynamics
constraints of the robot.
With the trending occasions of robots operating in
the safety-critical environment (e.g., around people or in
crowded spaces), the safety of robot motion becomes in-
creasingly critical for the continuous deployment of these
*This work was supported in part by the National Science Foundation
under grant FRR-21441568.
1Mechanical and Aerospace Engineering, Ohio State University, Colum-
bus, OH, USA. (peng.947, donca.2, hereid.1)@osu.edu.
Fig. 1. The snapshots of the bipedal robot, Digit, following
the collision-free path generated by the proposed algorithm.
intelligent machines. Control Barrier Function, a popular
tool in guaranteeing safety for nonlinear systems and con-
straints [8], has been shown effective in enforcing the safety-
critical constraints on nonlinear systems such as autonomous
vehicles and bipedal robot locomotion [9], [10]. Recently,
this method has also been used for designing safety-critical
path planners. Yang et al. introduced a Quadratic Program
(QP) that enforces Control Barrier Function (CBF) con-
straints to achieve obstacle avoidance [11]. Aniketh et al.
proposed a framework to incorporate CBF constraints into
the RRT path planning [12]. On these foundations, Ahmad
et al. also combined RRT* algorithm with the CBF and
equipped it with an adaptive sampling method to improve
the efficiency [13]. However, these obstacles studied by these
algorithms only focused on circular and elliptical shapes
because it would be easy to obtain their barrier functions.
In many real-world scenarios, the circular barrier function is
insufficient or wasteful to represent complex-shaped obstacle
regions.
In this work, we developed a modified CBF-RRT* algo-
rithm with a new CBF-QP based multi-step steering con-
troller for safe path planning in complex environments. The
contributions of the proposed work are as follows. First,
we proposed a new method that uses logistic regression
to construct barrier functions that use polygon shapes to
represent complex obstacles. Second, instead of calculating
CBF-QP once when sampling a new node and moving one
step, we would divide one step into four small steps and
calculate them each, which can effectively keep the robot
safe (avoiding collision). Finally, we applied our modified
CBF-RRT* algorithm to bipedal robots to enable the robot
arXiv:2210.03704v1 [cs.RO] 7 Oct 2022