Magnetic field-based multi-DOF orientation sensor for PM-based spherical actuators