Generic Path Planning Algorithm for Mobile Robots Based on Bézier Curves