Physical-consistent behavior embodied in B-spline curves for robot path planning