Skip to content
Snippets Groups Projects
Commit f72c0c78 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

add getYaw

parent 763c2188
No related branches found
No related tags found
1 merge request!140Eigen pred
This commit is part of merge request !140. Comments created here will be created in the context of that merge request.
......@@ -416,6 +416,13 @@ inline Eigen::Matrix<T, 3, 3> matrixRollPitchYaw(const T roll,
return (az * ay * ax).toRotationMatrix().matrix();
}
template <typename Derived>
inline typename Eigen::MatrixBase<Derived>::Scalar
getYaw(const Eigen::MatrixBase<Derived>& r)
{
using std::atan2;
return atan2( r(1, 0), r(0, 0) );
}
} // namespace wolf
......
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