Trajectory planning to improve the motion performance for a nonholonomic wheeled mobile robot