Skip to content
Snippets Groups Projects
Verified Commit 266ae5e3 authored by Justin Carpentier's avatar Justin Carpentier Committed by Justin Carpentier
Browse files

[Joint/JointPlanar] Fix constructor of MotionPlanar

parent 366c2a77
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,13 @@ namespace se3
MotionPlanarTpl (Scalar x_dot, Scalar y_dot, Scalar theta_dot)
: m_x_dot(x_dot), m_y_dot(y_dot), m_theta_dot(theta_dot)
{}
template<typename Vector3Like>
MotionPlanarTpl(const Eigen::MatrixBase<Vector3Like> & vj)
: m_x_dot(vj[0]), m_y_dot(vj[1]), m_theta_dot(vj[2])
{
EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(Vector3Like,3);
}
// operator MotionPlain() const
// {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment