A Tutorial on Euler Angles and Quaternions