Control Barrier Function based Prioritized Obstacle Avoidance for Robotic Manipulator
Problem Statement
In a human-robot collaborative environment, safety is a critical concern, alongside the performance of the robotic system. This project proposes a solution to address this challenge using the Control Barrier Function (CBF) theory as a mathematical tool and a Depth Stereo ZED2i Camera as the sensory input.
Additionally, a cobot works alongside the robot, so functionality is required to ensure that the robot avoids sensitive human body parts but is allowed to make contact with engaging parts, such as the hands. However, there is a possibility that an engaging body part might approach the manipulator at high velocity. In such scenarios, it is crucial for the algorithm to detect this and ensure collision avoidance. ”
Objectives
- Set up the manipulator system and ZED2i camera.(with Eye on Base calibration)
- Implement motion planning for the following trajectories:
- a) Pick and place operation
- b) X-Y circular trajectory
- c) Y-Z circular trajectory
- d) Square-wave trajectory
- Design a PD controller to achieve trajectory tracking.
- Design and implement a safety filter using time-varying Control Barrier Functions (CBFs).
- Augment prioritization behavior for different collision risks associated with various body parts.
- Analyze the collision avoidance behavior for the aforementioned trajectories.
”
Advantages of the Solution
- Reduced computation time compared to collision-avoidance solutions implemented at the motion planning stage.
- Forward-invariant safe-set when compared with other Nonlinear Model Predictive Control (NMPC)-based solutions. While NMPC ensures the robot’s state moves toward a defined safe set, it does not guarantee that the robot will remain in it over time. In contrast, the CBF-based solution makes the safe set forward-invariant, meaning if the system is in the safe set at some instance (t_0), it will remain in the safe set for all future times (t_k > t_0).
- For complex scenarios where other NMPC-based optimization problems may fail to provide a solution, the CBF-based approach guarantees a solution by using a slack variable in the defined constraints.
Method
The overview of the developed algorithm is shown in the diagram below: .png)
The equations used in the algorithm is shown in the diagram below: 
Result
A simulation was performed for a 2D manipulator to highlight the effect of the relaxation variable. The first diagram shows the initial configuration of the manipulator and two obstacles. The second diagram corresponds to the case where no relaxation variable is used. The third figure corresponds to the case where the red obstacle is prioritized more than the green obstacle. The fourth diagram represents the plot of the relaxation variable value for the previous case, capped at 0.6. The fifth diagram corresponds to the case where the upper bound on the relaxation variable is kept high.
 (1).png)
Plots of the relative velocity of the head and hand versus their distance from the end-effector, based on data from 40 runs of the experiment. A larger gap in the bottom-left corner of the head plot, compared to the hand plot, indicates the prioritization of the head over hand.
Video below represents the implementation of the algorithm
Tools
In earlier stage, UR16e manipulator was used with its ROS2 wrapper, later project was switched to Franka Emika Panda Robot.
