Collision avoidance system for collaborative robotics