Skip to content
Snippets Groups Projects
Commit 776c3d98 authored by Idril-Tadzio Geer Cousté's avatar Idril-Tadzio Geer Cousté
Browse files

added skew() function

parent 43a4e3e8
No related branches found
No related tags found
No related merge requests found
Pipeline #6220 passed
...@@ -36,6 +36,12 @@ inline Eigen::Matrix<T, 2, 2> exp(const T theta) ...@@ -36,6 +36,12 @@ inline Eigen::Matrix<T, 2, 2> exp(const T theta)
namespace SE2{ namespace SE2{
template<class T>
inline Eigen::Matrix<T, 2, 2> skew(const T& t)
{
return (Eigen::Matrix<T, 2, 2>() << (T) 0, -t, t, (T) 0).finished();
}
/** \brief Compute [1]_x * t = (-t.y ; t.x) /** \brief Compute [1]_x * t = (-t.y ; t.x)
*/ */
template<class D> template<class D>
......
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