Adaptive Control of a Gyroscopically Stabilized Pendulum and Its Applicationto a Single-Wheel Pendulum Robot