Skip to content

Commit

Permalink
[Minor] Fix compatibility with Eigen 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmirabel committed Oct 25, 2018
1 parent b33a69a commit f99ef04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/hpp/constraints/configuration-constraint.hh
Expand Up @@ -72,6 +72,7 @@ namespace hpp {
vector_t weights_;
EigenBoolVector_t mask_;
mutable vector_t diff_;
mutable Eigen::Matrix<value_type, 1, Eigen::Dynamic> J_;
}; // class ComBetweenFeet
} // namespace constraints
} // namespace hpp
Expand Down
6 changes: 3 additions & 3 deletions src/configuration-constraint.cc
Expand Up @@ -80,13 +80,13 @@ namespace hpp {
matrix_t unused;

LiegroupConstElementRef a (argument, goal_.space());
diff_ = goal_ - a;
J_ = (goal_ - a).transpose();

// Apply jacobian of the difference on the right.
goal_.space()->Jdifference<false> (argument, goal_.vector(), diff_.transpose(), unused);
goal_.space()->Jdifference<false> (argument, goal_.vector(), J_, unused);

jacobian.leftCols (robot_->numberDof ()).noalias() =
weights_.cwiseProduct(diff_).transpose ();
J_.cwiseProduct(weights_.transpose());
}
} // namespace constraints
} // namespace hpp

0 comments on commit f99ef04

Please sign in to comment.