A four-DOF Lagrangian approach to attitude tracking. (May 2023)