Trajectory planning and control of an underactuated dynamically stable single spherical wheeled mobile robot