Attitude Observation for Second Order Attitude Kinematics
Abstract
This paper addresses the problem of estimating the attitude and angular velocity of a rigid object by exploiting its second order kinematic model. The approach is particularly useful in cases where angular velocity measurements are not available and the attitude and angular velocity of an object need to be estimated from accelerometers and magnetometers. We propose a novel sensor modality that uses multiple accelerometers to measure the angular acceleration of an object as well as using magnetometers to measure partial attitude. We extend the approach of equivariant observer design to second order attitude kinematics by demonstrating that the special Euclidean group acts as a symmetry group on the system considered. The observer design is based on the lifted kinematics and we prove almost global asymptotic stability and local uniform exponential stability of the estimation error. The performance of the observer is demonstrated in simulation.
1 INTRODUCTION
This paper explores the estimation of both the attitude and angular velocity of a rigid object using only accelerometer and magnetometer sensors attached rigidly at known locations on the body. In particular, the approach taken does not require gyroscope measurements of angular velocity. The solution to this problem has numerous applications where deployment of gyroscope MEMS devices is not possible due to size constraints, speed of rotation (saturating a MEMS gyroscope), impact characteristics (destroying/destabilising a MEMS gyroscope), vibration, etc. Example applications include complex acrobatic maneuvers of unmanned aerial vehicles [9][19], detumbling maneuvers for satellite deployment [1][21], and tracking of fast-moving sporting equipment [23]. [9] A gyroscope is also more prone to malfunction than accelerometer and magnetometer devices, a famous example being the Hubble space telescope that required expensive replacement of the faulty gyroscopes in two separate occasions [2].
The subject of attitude estimation has a rich history of research [17]. Different kinematic models and attitude representations have been considered including; Euler angles [6][20][7], quaternions [10, 18], and rotation matrices [14][15]. Euler angles provide a minimal state representation, however, they have a singularity problem when the pitch angle passes through [22]. Quaternion representations have an ambiguity in the sign, where the same rotation can be represented as or . With the power of modern compute hardware, even for embedded applications, the computational advantages of using the Euler angle and quaternion representations are marginal and the direct matrix representation provides a powerful and simple formulation that we exploit in the present paper. Existing work can also be classified as either filtering-based [10, 20], or nonlinear observer-based [14, 18, 8] methods. Filtering methods are based on stochastic principles and provide estimates of uncertainty, however, they are complex (involving propagation of covariance matrix estimates) and typically do not provide the same convergence guarantees and simplicity that are provided by observer-based methods.
The majority of existing attitude estimation algorithms rely on the use of gyroscopes to measure the angular velocity of the rotating body. Lizarralde and Wen [11] proposed the use of a nonlinear filter of the quaternion to remove the need for angular velocity feedback. Berkanel et al. [2] presented a hybrid attitude and angular velocity observer that does not rely on gyroscope measurement. These methods however rely on the knowledge of the inertia matrix and input torque, which are then used to compute the attitude and angular velocity. Recently, Magnis and Petit [13] proposed the use of multiple vector measurements to recover the angular velocity. They extended the state space to include the estimation of the vector measurement along with the angular velocity.
In this paper, we approach the problem from the perspective of nonlinear observer theory and seek a simple and robust innovation that guarantees almost global stability of the attitude estimate (note that global stability for a continuous estimation algorithm is prevented by topological constraints of the state space [3]). We propose the use of multiple strategically placed accelerometers and magnetometers to obtain a robust estimation of a rigid object’s (e.g. unmanned aerial vehicle (UAV)) attitude and angular velocity, without relying on the gyroscope. A key innovation in the paper is to model the second order kinematics of the attitude system (rather than its dynamics) and to show that these kinematics can be treated using the machinery of equivariant observer design. The paper makes the following contributions:
-
•
We propose a novel sensor modality that indirectly measures angular acceleration and attitude using multiple accelerometers and magnetometer. The sensitivity to the angular velocity and acceleration can be adapted for specific application by varying the separation between the accelerometers.
-
•
We derive a second order equivariant attitude observer. To our knowledge this is the first deliberate application of the theory of equivariant observer design to a second order kinematic system.
-
•
We propose a simple observer for robust attitude and angular velocity estimation that does not require angular velocity measurements.
-
•
We prove almost global asymptotic convergence and local uniform exponential convergence of the estimation error for the proposed observer.
The paper is organised as follows. Section I presents the introduction and literature review of related work, Section II discusses the problem formulation where we present the state and velocity space, system kinematics and sensor measurements used. Section III discusses the symmetry group of the attitude system, group actions and the associated system lift. Section IV presents our observer design and stability analysis. Section V presents the simulation results, followed by conclusions in Section VI.
2 PROBLEM FORMULATION
Let and for be finite-dimensional smooth real manifolds that are termed, respectively, the state and output spaces. Let denotes the finite-dimensional real vector space that is termed the input (velocity) space. A kinematic system is defined by the state equations
(1a) | ||||
(1b) |
for smooth dynamic function , with a linear map, and smooth output maps .
We are interested in the second order attitude kinematics that would normally be expressed on . By using the standard left trivialisation of the velocity space, a tangent vector is identified with . In this manner, we consider the state of our system as an element of the product manifold
The associated input (velocity) space is the tangent to at and that tangent space to at a point . Since is a linear space, then . The tangent space can be left trivialised to analogously to the approach taken above. Thus, the input space that we consider is based on this construction for a parametrization of the tangent space to . That is a space where we preserve the notation to make clear the part of the velocity space that is modelling the second order part of the kinematics. An element in the input space can be thought of as two independent elements and .
For an element , and input , the kinematics are given by
(2a) | ||||
(2b) |
Note that the natural behaviour of the system is recovered by measuring the angular acceleration input and by setting . That is, the input angular velocity that acts on the first order state kinematics is zero in the natural system kinematics. A key property of the kinematics (2) is the presence of the drift term
for . That is, the system function is affine in the input not linear as has been considered in most prior works [4, 14, 16] in equivariant observer design.
Remark 2.1.
The majority of the work on equivariant observer design has been done for first order kinematics systems
where is in some Lie-group and are some measured velocities. In such cases there is no drift term, and the system function is linear with respect to the measured velocity. The more general case of second order kinematics is implicit in some of the early work on velocity-aided attitude [5] since the second order velocity kinematics are present in the model. However, in these works the attitude kinematics are not modelled, only the second order attitude (velocity) kinematics and the first order attitude (state) kinematics. As such the drift term in (2) is not present. The authors are not aware of any other works that use equivariant observer techniques for second order kinematic systems.
The first component of the state is the attitude of the object with respect to an inertial frame. The columns of can also be seen as the coordinate basis of the body-fixed frame in the inertial frame. The second component of the state is the angular velocity expressed in the body-fixed frame . The input velocity of the system kinematics
(3) |
is the input angular velocity and the angular acceleration of the rotating UAV with respect to the inertial frame, expressed in the body fixed frame .
2.1 Measurements of Angular Acceleration
The measurement system proposed in this paper involves at least four non-coplanar accelerometers and one magnetometer placed on a rigid body at known displacement from the centre of mass. We denote the body-fixed frame and assume that the accelerometers are aligned (in orientation) with . In practice, calibration may be required to find a transformational mapping from the orientation of each accelerometer to the body-fixed frame. Denote the measured acceleration at each accelerometer for . Then we have
(4) | ||||
where is the position of accelerometer with respect to , is the linear acceleration of , is the angular acceleration of , and is the angular velocity of .
We propose to place the accelerometers at , , and as shown in Fig. 1. Thus, the difference between accelerometer and accelerometer is
and substituting values of ,
Thus,
(5) |

2.2 Measurement of Orientation
Assuming that the magnetic field direction is known and remains constant, the orientation of an object with respect to an inertial frame can be measured by a magnetometer rigidly mounted on the object. For simplicity, the magnetometer is assumed to be aligned (in orientation) with the body-fixed frame .
The physical direction of the magnetic field of the earth can be modelled as a direction on the two sphere embedded in . We denote the magnetic field direction relative to the inertial frame by , and measured magnetic field direction in body-fixed frame by , such that . Then
(6) |
where is the attitude (orientation) of the object with respect to the inertial frame. In the presence of multiple magnetometers, assuming that the orientation of the sensors are aligned and are connected rigidly, the measurements can be combined by taking the average.
If we consider an application in Earth’s gravity field for an object that is not too dynamic (i.e. most of the time, the object is not accelerating with respect to the Earth fixed frame), then the acceleration of measured at accelerometer is approximately the gravitational acceleration direction measured in the body-fixed frame. Thus, the outputs are
(7a) | ||||
(7b) |
where .
Note that other application specific sensor that provides vector measurement may also be used instead of the measurement from accelerometer . For example, in satellite application, sun sensor [12] can be used.
3 SYMMETRY OF ATTITUDE SYSTEM
Most physical systems have physical models with symmetries that encode the equivariance of the laws of motion. This expresses the fact that the behaviour of the system at one point is the same as the behaviour at another point in the state space, when viewed through a symmetric transformation of space [16]. Then, a global observer design can be achieved by analysing the behaviour at one point in space for a system with symmetry.
3.1 The Symmetry group
We introduce a new notation for the inverse mapping from a skew-symmetric matrix to the corresponding vector such that
(8) |
and that .
Consider the Lie-group . This group is usually considered as a model for rigid-body transformations of the Euclidean space. In the following development we show that this group can also be used to model a symmetry of the the second order velocity kinematics for attitude. Write the elements of in the form
The semi-direct group product is given by
with group identity and group inverse
Lemma 3.1.
The action defined by
(9) |
is a transitive right group action of on .
Proof.
Let . Then
This demonstrates that the (right handed) group action property holds. It is straightforward to verify that .
To see that is transitive, let and be any elements of . Then we can find the group element such that
∎
The key observation from this derivation is that the same Lie-group can be used as a symmetry group either for rigid-body kinematics, or as a symmetry group for second order attitude kinematics. Note however that the state-space of the observer problem for attitude kinematics is not .
3.2 Equivariance of the kinematics
Lemma 3.2.
The action defined by
(10) |
is a right action of on .
Proof.
Let and let . Then we have
This shows that the (right handed) group action property holds. It is straightforward to verify that . Thus, is indeed a right action. ∎
Next, we wish to show the system dynamics are equivariant.
Lemma 3.3.
Proof.
Let , , and be arbitrary. Then we have
which proves the equivariance condition. ∎
Finally, we demonstrate that the group action on the output is also equivariant.
Lemma 3.4.
The action defined by
is a transitive right group action of on , where .
Proof.
Let and let . Then we have
This shows that the (right handed) group action property holds. It is straightforward to verify that . Thus, is indeed a right action. ∎
3.3 System lift onto the group
In order to work with our observer on , we need to lift the kinematics of the system. A lifted equivariant system is defined as the system on the -torsor
(11a) | ||||
(11b) |
for and initial condition such that projects to the initial condition of (1).
Specifically, we require a system lift, which is a family of functions such that for all , , and . Lemma 3.5 provides such a family.
Lemma 3.5.
Proof.
In order to show that is indeed a system lift, we need to show that for all , , and . Let , , and be arbitrary.
Then we have
which shows that our condition holds, and therefore is a system lift as required. ∎
Let an element of the lifted state space be represented as , with unknown initial condition . Lemma 3.5 shows that the lifted kinematics on can be written as
(13a) | ||||
(13b) |
where in the real system, since there is no input angular velocity (unlike first order state kinematics).
4 OBSERVER DESIGN
From equation (2), assuming no external angular velocity input (), the behaviour of the second order attitude kinematics satisfies
(14a) | ||||
(14b) |
The (output) measurements available are
where a, , and .
4.1 Proposed Observer
Our proposed observer works on the symmetry group of the attitude state space i.e. , and not the manifold . We use to denote the estimate for the lifted system state for unknown . The fundamental structure for the observer that we consider is that of a pre-observer (a copy of (13)) with innovation. The innovation takes outputs and the observer state , and generates a correction term for the observer dynamics with the goal that converges to .
Theorem 4.1.
Let be a constant reference state in . Let , with arbitrary initial condition . Consider the observer kinematics
(15a) | ||||
(15b) |
where
Denote , then converges uniformly locally exponentially, and almost globally asymptotically to .
Proof.
From Lemma 2 of [16], the solution projects back to the state via the group action
such that
(16) |
and,
(17) |
This can be intuitively understood as shown in Fig. 2.

The stability of observer (15) is analysed as follows. The Lyapunov function is defined as
(18) |
Let , . Computing the derivative of the (output) measurements, we get
From (17), computing the time derivatives, the proposed observer in when projected back into the original state space in has kinematics
and,
The derivative of the Lyapunov function is
We define , and use identities
Then,
(19) |
with (a positive definite matrix), is negative semi-definite. This proves that the estimation error terms are bounded. Analogously to Theorem 4.2 in [14], the computation of the second time derivative of the Lyapunov function
where we assume is bounded (matter cannot exceed the speed of light), such that is also bounded. It is clear that is bounded. With direct application of Barbalat’s lemma, proves that asymptotically converges to zero, and hence
(20) |
This in turn implies that the equilibrium is asymptotically stable. The unstable equilibrium set is with and defined in Theorem 5.1 of [14].
The proof of the local exponential stability for the stable equilibrium , is the same as the proof of item 2 of Theorem 5.1 [14] when using as state variables.
∎
Note that, the observer error on has local uniform exponential convergence, and almost global asymptotic convergence property. Similarly, regardless of the chosen reference , our proposed observer error on has local uniform exponential convergence, and almost global asymptotic convergence property.
5 SIMULATION RESULTS
We evaluate the performance of our proposed observers using simulation. We consider an object with four accelerometers and one magnetometer placed at known locations as shown in Fig. 1, with the distance from the centre . The sensors have simulated additive Gaussian noise with standard deviation of and on all axes for accelerometer measurement and the magnetic field direction respectively. The chosen simulation time step , which corresponds to sensors’ sampling frequency of .
The object is rotating at non-constant angular velocity, following an arbitrarily chosen function of . The ground truth attitude is then generated by integration where .
The observer gains used are , . The observer on have set to random rotational matrix and random vector respectively, while are also set to random rotational matrix and random vector respectively.



6 CONCLUSIONS
An equivariant observer for the second order attitude kinematics was presented. The observer does not rely on angular velocity input commonly used by existing methods. Instead, a novel sensor modality is proposed, which uses four or more accelerometer to obtain the measurement of angular acceleration. The observer works on the symmetry group of the second order attitude state space, which has a similar structure as the well known special Euclidean group . The observer is shown to exhibit local uniform exponential convergence, and almost global asymptotic convergence to zero estimation error in the presence of sensor noise, regardless of the chosen reference state .
Possible extensions of this work include the study of the effect of sensor bias, similar to the work presented in [14]. A nonlinear second order pose observer can also be explored, where the position and linear velocity are also simultaneously estimated. This may be achieved by incorporating GPS measurements or bearing measurements from camera sensors.
References
- [1] Shakil Ahmed and Eric C Kerrigan. Suboptimal predictive control for satellite detumbling. Journal of Guidance, Control, and Dynamics, 37(3):850–859, 2014.
- [2] Soulaimane Berkane, Abdelkader Abdessameud, and Abdelhamid Tayebi. Hybrid output feedback for attitude tracking on so(3). IEEE Transactions on Automatic Control, 63(11):3956–3963, 2018.
- [3] Sanjay P. Bhat and Dennis S. Bernstein. A topological obstruction to continuous global stabilization of rotational motion and the unwinding phenomenon. Systems & Control Letters, 39(1):63–70, 2000.
- [4] Silvere Bonnabel, Philippe Martin, and Pierre Rouchon. Symmetry-preserving observers. IEEE Transactions on Automatic Control, 53(11):2514–2526, 2008.
- [5] Silvère Bonnable, Philippe Martin, and Erwan Salaün. Invariant extended kalman filter: theory and application to a velocity-aided attitude estimation problem. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, pages 1297–1304. IEEE, 2009.
- [6] Eric Foxlin. Inertial head-tracker sensor fusion by a complimentary separate-bias kalman filter. In vrais, page 185. IEEE, 1996.
- [7] Songlai Han and Jinling Wang. A novel method to integrate imu and magnetometers in attitude and heading reference systems. The Journal of Navigation, 64(4):727–738, 2011.
- [8] Minh-Duc Hua, Guillaume Ducard, Tarek Hamel, Robert Mahony, and Konrad Rudin. Implementation of a nonlinear attitude estimator for aerial robotic vehicles. IEEE Transactions on Control Systems Technology, 22(1):201–213, 2014.
- [9] Taeyoung Lee, Melvin Leok, and N Harris McClamroch. Geometric tracking control of a quadrotor uav on se (3). In 49th IEEE conference on decision and control (CDC), pages 5420–5425. IEEE, 2010.
- [10] Ern J Lefferts, F Landis Markley, and Malcolm D Shuster. Kalman filtering for spacecraft attitude estimation. Journal of Guidance, Control, and Dynamics, 5(5):417–429, 1982.
- [11] Fernando Lizarralde and John T Wen. Attitude control without angular velocity measurement: A passivity approach. IEEE transactions on Automatic Control, 41(3):468–472, 1996.
- [12] Lionel Magnis and Nicolas Petit. Estimation of 3d rotation for a satellite from sun sensors. IFAC Proceedings Volumes, 47(3):10004–10011, 2014.
- [13] Lionel Magnis and Nicolas Petit. Angular velocity nonlinear observer from vector measurements. Automatica, 75:46–53, 2017.
- [14] Robert Mahony, Tarek Hamel, and Jean-Michel Pflimlin. Nonlinear complementary filters on the special orthogonal group. IEEE Transactions on automatic control, 53(5):1203–1217, 2008.
- [15] Robert Mahony, Tarek Hamel, Jochen Trumpf, and Christian Lageman. Nonlinear attitude observers on so (3) for complementary and compatible measurements: A theoretical study. In Proceedings of the 48h IEEE Conference on Decision and Control (CDC) held jointly with 2009 28th Chinese Control Conference, pages 6407–6412. IEEE, 2009.
- [16] Robert Mahony, Jochen Trumpf, and Tarek Hamel. Observers for kinematic systems with symmetry. IFAC Proceedings Volumes, 46(23):617–633, 2013.
- [17] F Landis Markley, John Crassidis, and Yang Cheng. Nonlinear attitude filtering methods. In AIAA Guidance, Navigation, and Control Conference and Exhibit, page 5927, 2005.
- [18] Philippe Martin and Erwan Salaün. Design and implementation of a low-cost observer-based attitude and heading reference system. Control Engineering Practice, 18(7):712–722, 2010.
- [19] Charles Richter, Adam Bry, and Nicholas Roy. Polynomial trajectory planning for aggressive quadrotor flight in dense indoor environments. In Robotics Research, pages 649–666. Springer, 2016.
- [20] Peyman Setoodeh, Alireza Khayatian, and Ebrahim Frajah. Attitude estimation by separate-bias kalman filter-based data fusion. The Journal of Navigation, 57(2):261–273, 2004.
- [21] Ho-Nien Shou, Jia-Shing Sheu, and Jyh-Haw Wang. Micro-satellite detumbling mode attitude determination and control: Ukf approach. In IEEE ICCA 2010, pages 673–678. IEEE, 2010.
- [22] John Stuelpnagel. On the parametrization of the three-dimensional rotation group. SIAM review, 6(4):422–430, 1964.
- [23] YiFeng ZHANG and Rong XIONG. Real-time vision system for a ping-pong robot. Scientia Sinica Informationis, 42(9):1115–1129, 2012.