academic
The CBF value §
- The value
h(x,t)=∥x−cobs(t)∥2−robs(t)
- x represents the state of the system (position, angle, velocity…)
- cobs(t) is the center of the obstacles
- robs(t) is the radius of the obstacles
- ∥.∥2 is the euclidean distance
- CBF ensures the distance between the system and obstacles always bigger than the radius of the obstacles to avoid collision
Gradient of CBF with Respect to x §
- Using the chain rule: ∂x∂h=∥x−cobs(t)∥x−cobs(t)
Explicit Time Derivative of CBF §
- Using the chain rule: ∂t∂h=∂t∂∥x−cobs(t)∥2−∂t∂robs(t)
- The first term is the time derivative of the distance: ∂t∂∥x−cobs(t)∥2=∂t∥x−cobs(t+∂t)∥2−∥x−cobs(t)∥2
- The second term is the time derivative of the obstacle radius: ∂t∂robs(t)
Approximating Time Derivatives Using Finite Differences §
- Using the forward difference method: ∂t∂f(t)≈δtf(t+δt)−f(t)
- For the obstacle center: ∂t∂cobs(t)≈δtcobs(t+δt)−cobs(t)
- For the obstacle radius: ∂t∂robs(t)≈δtrobs(t+δt)−robs(t)