A lie group variational integrator for the attitude dynamics of a rigid body with applications to the 3D pendulum | IEEE Conference Publication | IEEE Xplore