Skip to content

Commit

Permalink
Merge pull request #215 from Gauss-Robotics/fix/cartesian_admittance_…
Browse files Browse the repository at this point in the history
…task

Allow desired twists in velocity/CartesianAdmittance
  • Loading branch information
EnricoMingo authored Aug 2, 2024
2 parents 50ce7e9 + d92c6a7 commit 3e114c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tasks/velocity/CartesianAdmittance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ void CartesianAdmittance::_update()
_wrench_filt = Eigen::Vector6d::Map(_filter.process(_tmp).data(), CHANNELS);


_desiredTwist = _C.asDiagonal()*_wrench_filt;
// Adding to the desired twist allows to still use a desired twist additionally
// given by Cartesian::setReference(..., const Eigen::Vector6d& desiredTwist)
_desiredTwist += _C.asDiagonal()*_wrench_filt;

Cartesian::_update();
}
Expand Down

0 comments on commit 3e114c4

Please sign in to comment.