Robot navigation using B-Spline curves