Skip to content
Snippets Groups Projects
Commit e83c49af authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix tiny bug that was inadverted for years!

parent 38cd6a41
No related branches found
No related tags found
No related merge requests found
Pipeline #4288 passed
...@@ -56,9 +56,9 @@ void ProcessorOdom3D::computeCurrentDelta(const Eigen::VectorXs& _data, ...@@ -56,9 +56,9 @@ void ProcessorOdom3D::computeCurrentDelta(const Eigen::VectorXs& _data,
else else
{ {
// rotation in quaternion form // rotation in quaternion form
_delta = _data; _delta = _data;
disp = _data.head<3>().norm(); disp = _data.head<3>().norm();
rot = 2 * acos(_data(3)); rot = 2.0 * acos(_data(6)); // '6' is the real part of the quaternion
} }
/* Jacobians of d = data2delta(data, dt) /* Jacobians of d = data2delta(data, dt)
* with: d = [Dp Dq] * with: d = [Dp Dq]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment