<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[convert covariance of quaternions into covariance of Euler angles]]></title><description><![CDATA[<p>I'm currently adding a new user message to the INS application to output the covariance of the estimated values.</p>
<p>Just to check, I'm getting them from the diagonal elements of the gKalmanFilter.P, is that right ?</p>
<p>However, the algorithm maintains covariance of quaternion elements. Would someone could give me an idea on how to convert that to covariances for euler angles ?</p>
<p>Thanks in advance.</p>
]]></description><link>https://forum.aceinna.com//topic/58/convert-covariance-of-quaternions-into-covariance-of-euler-angles</link><generator>RSS for Node</generator><lastBuildDate>Thu, 19 Nov 2026 00:27:52 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/58.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Aug 2019 19:27:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to convert covariance of quaternions into covariance of Euler angles on Wed, 07 Aug 2019 19:27:01 GMT]]></title><description><![CDATA[<p>I'm currently adding a new user message to the INS application to output the covariance of the estimated values.</p>
<p>Just to check, I'm getting them from the diagonal elements of the gKalmanFilter.P, is that right ?</p>
<p>However, the algorithm maintains covariance of quaternion elements. Would someone could give me an idea on how to convert that to covariances for euler angles ?</p>
<p>Thanks in advance.</p>
]]></description><link>https://forum.aceinna.com//post/186</link><guid isPermaLink="true">https://forum.aceinna.com//post/186</guid><dc:creator><![CDATA[Sylvain Joyeux]]></dc:creator><pubDate>Wed, 07 Aug 2019 19:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to convert covariance of quaternions into covariance of Euler angles on Thu, 08 Aug 2019 02:27:24 GMT]]></title><description><![CDATA[<p>Generally, this is difficult. However, you can use a first-order approximation.</p>
<pre><code>euler_angles = f(quaternion) ≈ f(quaternion_0) + (df/dquaternion)*(delta_quaterninon)

H = df/dquaternion
  = [droll/dq0   droll/dq1    droll/dq2   droll/dq2
     dpitch/dq0  dpitch/dq1   dpitch/dq2  dpitch/dq3
     dyaw/dq0    dyaw/dq1     dyaw/dq2    dyaw/dq3]

cov(euler_angles) = H*cov(quaternion)*H'
</code></pre>
<p>The choice of the function f depends on the rotation sequence of Euler angles you want. We use ZYX in our code.</p>
]]></description><link>https://forum.aceinna.com//post/188</link><guid isPermaLink="true">https://forum.aceinna.com//post/188</guid><dc:creator><![CDATA[Dong xiaoguang]]></dc:creator><pubDate>Thu, 08 Aug 2019 02:27:24 GMT</pubDate></item></channel></rss>