5 #ifndef __pinocchio_lie_group_generic_hpp__ 6 #define __pinocchio_lie_group_generic_hpp__ 8 #include "pinocchio/multibody/liegroup/liegroup-base.hpp" 9 #include "pinocchio/multibody/liegroup/liegroup-variant-visitors.hpp" 13 template<
typename LieGroupCollection>
struct LieGroupGenericTpl;
15 template<
typename LieGroupCollection>
26 template<
typename LieGroupCollection>
28 :
LieGroupBase< LieGroupGenericTpl<LieGroupCollection> >, LieGroupCollection::LieGroupVariant
30 typedef typename LieGroupCollection::LieGroupVariant
Base;
36 template<
typename LieGroupDerived>
38 : Base(lg_base.derived())
41 template<
typename LieGroup>
52 static_cast<Base&
>(*this) = other.
toVariant();
57 {
return static_cast<const LieGroupVariant &
>(*this); }
60 {
return static_cast<LieGroupVariant &
>(*this); }
64 return boost::apply_visitor(visitor::LieGroupEqual<Scalar, Options>(), toVariant(), other.
toVariant());
72 return isEqual_impl(other);
77 return this->isDifferent_impl(other);
88 #endif // ifndef __pinocchio_lie_group_generic_hpp__
int nv(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through JointNvVisitor to get the dimension of the joint tangent space...
int nq(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through JointNqVisitor to get the dimension of the joint configuration space...
LieGroupCollection::Scalar Scalar
LieGroupCollection::LieGroupVariant Base
bool operator==(const JointDataBase< JointDataDerived > &joint_data, const JointDataTpl< Scalar, Options, JointCollectionTpl > &joint_data_generic)
LieGroupVariant & toVariant()
LieGroupGenericTpl & operator=(const LieGroupGenericTpl &other)
bool operator!=(const JointDataBase< JointDataDerived > &joint_data, const JointDataTpl< Scalar, Options, JointCollectionTpl > &joint_data_generic)
LieGroupGenericTpl(const LieGroupBase< LieGroupDerived > &lg_base)
Main pinocchio namespace.
LieGroupGenericTpl(const LieGroupGenericTpl &lg_generic)
Common traits structure to fully define base classes for CRTP.
bool isEqual_impl(const LieGroupGenericTpl &other) const
LieGroupCollection::LieGroupVariant LieGroupVariant
LieGroupCollection::Scalar Scalar
const LieGroupVariant & toVariant() const
LieGroupGenericTpl(const LieGroupVariant &lg_variant)