29 #ifndef HPP_PINOCCHIO_LIEGROUP_ELEMENT_HH
30 #define HPP_PINOCCHIO_LIEGROUP_ELEMENT_HH
34 #include <pinocchio/math/quaternion.hpp>
44 template <
typename vector_type>
50 template <
typename Derived>
61 template <
typename Derived>
68 template <
typename vector_type2>
86 template <
typename vector_type2>
92 template <
typename vector_type2>
98 template <
typename Derived>
107 template <
typename vector_type2>
109 template <
typename vector_type2>
116 template <
typename vector_type>
141 template <
typename vector_type2>
149 template <
typename vector_type2>
154 template <
typename vector_type2>
174 template <
typename vector_type2>
183 template <
typename Vector>
185 EIGEN_STATIC_ASSERT_VECTOR_ONLY(Vector);
186 assert(this->
space_->nq() == v.derived().size());
187 this->
value_.noalias() = v.derived();
200 template <
typename vector_type>
211 template <
typename vector_type1,
typename vector_type2>
221 template <
typename vector_type>
224 const value_type& eps = PINOCCHIO_DEFAULT_QUATERNION_NORM_TOLERANCE_VALUE);
228 template <
typename vector_type>
231 template <
typename vector_type>
234 os <<
"Lie group element in " << *(e.
space()) <<
" represented by vector ("
235 << e.
vector().transpose() <<
")";
Definition: liegroup-element.hh:117
void setNeutral()
Set element to neutral element.
Definition: liegroup-element.hh:168
LiegroupElementBase(const vector_type &value)
Definition: liegroup-element.hh:136
LiegroupElementBase(LiegroupElementBase< vector_type2 > &other)
Casting operator from LiegroupElement to LiegroupElementRef
Definition: liegroup-element.hh:155
const vector_type & vector() const
Const vector representation.
Definition: liegroup-element.hh:162
LiegroupElementBase & operator=(const Eigen::MatrixBase< Vector > &v)
Assignment from a vector.
Definition: liegroup-element.hh:184
LiegroupElementBase(const LiegroupElementConstBase< vector_type2 > &other)
Definition: liegroup-element.hh:142
LiegroupElementConstBase< vector_type > Base
Definition: liegroup-element.hh:119
LiegroupElementBase()
Constructor of trivial element.
Definition: liegroup-element.hh:159
vector_type & vector()
Modifiable vector representation.
Definition: liegroup-element.hh:165
LiegroupElementBase(const LiegroupSpacePtr_t &space)
Definition: liegroup-element.hh:129
LiegroupElementBase & operator=(const LiegroupElementConstBase< vector_type2 > &other)
Assignment from another LiegroupElement.
Definition: liegroup-element.hh:175
LiegroupElementBase(const vector_type &value, const LiegroupSpacePtr_t &space)
Definition: liegroup-element.hh:124
LiegroupElementBase & operator+=(vectorIn_t v)
Inplace integration of a velocity vector.
LiegroupElementBase(const LiegroupElementBase< vector_type2 > &other)
Definition: liegroup-element.hh:150
Definition: liegroup-element.hh:45
LiegroupElementConstBase(const Eigen::EigenBase< Derived > &value, const LiegroupSpacePtr_t &space, void *)
Definition: liegroup-element.hh:99
void check() const
Definition: liegroup-element.hh:83
vector_type value_
Definition: liegroup-element.hh:104
size_type size() const
Size of the vector representation.
Definition: liegroup-element.hh:79
const LiegroupSpacePtr_t & space() const
get reference to vector of Lie groups
Definition: liegroup-element.hh:73
LiegroupElementConstBase(const LiegroupElementConstBase< vector_type2 > &other)
Definition: liegroup-element.hh:69
bool operator!=(const LiegroupElementConstBase< vector_type2 > &other)
Equality operator.
Definition: liegroup-element.hh:93
bool operator==(const LiegroupElementConstBase< vector_type2 > &other)
Equality operator.
Definition: liegroup-element.hh:87
const vector_type & vector() const
Const vector representation.
Definition: liegroup-element.hh:76
LiegroupElementConstBase(const Eigen::EigenBase< Derived > &value)
Definition: liegroup-element.hh:62
LiegroupSpacePtr_t space_
Definition: liegroup-element.hh:105
LiegroupElementConstBase(const Eigen::EigenBase< Derived > &value, const LiegroupSpacePtr_t &liegroupSpace)
Definition: liegroup-element.hh:51
Definition: liegroup-space.hh:101
vector_t operator-(const LiegroupElementConstBase< vector_type1 > &e1, const LiegroupElementConstBase< vector_type2 > &e2)
LiegroupElement operator+(const LiegroupElementConstBase< vector_type > &e, vectorIn_t v)
bool checkNormalized(const LiegroupElementConstBase< vector_type > &e1, const value_type &eps=PINOCCHIO_DEFAULT_QUATERNION_NORM_TOLERANCE_VALUE)
Eigen::Matrix< value_type, Eigen::Dynamic, 1 > vector_t
Definition: fwd.hh:88
std::ostream & operator<<(std::ostream &os, const hpp::pinocchio::Device &device)
Definition: device.hh:366
shared_ptr< LiegroupSpace > LiegroupSpacePtr_t
Definition: fwd.hh:150
matrix_t::Index size_type
Definition: fwd.hh:97
double value_type
Definition: fwd.hh:51
Eigen::Ref< const vector_t > vectorIn_t
Definition: fwd.hh:93
vector_t log(const LiegroupElementConstBase< vector_type > &lge)
Compute the log as a tangent vector of a Lie group element.
Utility functions.
Definition: body.hh:39
Definition: collision-object.hh:40