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

Simplify computation of quaternion block

parent 46ab1698
No related branches found
No related tags found
1 merge request!466devel->main
......@@ -55,9 +55,8 @@ void ProcessorOdom3d::computeCurrentDelta(const Eigen::VectorXd& _data,
if (_data.size() == (long int)6)
{
// rotation in vector form
_delta.head<3>() = _data.head<3>();
Eigen::Map<Eigen::Quaterniond> q(_delta.data() + 3);
q = v2q(_data.tail<3>());
_delta.head<3>() = _data.head<3>();
_delta.tail<4>() = v2q(_data.tail<3>()).coeffs();
}
else
{
......
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