Commit e7cc5556 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

[LiegroupElement] Add operators == and !=.

parent 363fdd2e
Pipeline #12842 failed with stage
in 2 minutes and 24 seconds
......@@ -85,6 +85,20 @@ namespace hpp {
assert (value_.size () == space_->nq ());
}
/// Equality operator
template <typename vector_type2>
bool operator==(const LiegroupElementConstBase<vector_type2>& other)
{
return ((*space_ == *(other.space_)) && (value_ == other.value_));
}
/// Equality operator
template <typename vector_type2>
bool operator!=(const LiegroupElementConstBase<vector_type2>& other)
{
return ((*space_ != *(other.space_)) || (value_ != other.value_));
}
protected:
template <typename Derived>
LiegroupElementConstBase (const Eigen::EigenBase<Derived>& value,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment