Safe Planning for Articulated Robots Using Reachability-based Obstacle Avoidance With Spheres