Skip to content

Commit

Permalink
[major] Point out update of contact reference velocities
Browse files Browse the repository at this point in the history
Thanks to @Saeed-Mansouri for pointing it out!

See jrl-umi3218#37
  • Loading branch information
stephane-caron committed Jun 22, 2022
1 parent 336424a commit 542597c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/lipm_walking/FootstepPlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ struct FootstepPlan
*
* \param initHeight Height of first two contacts after transform.
*
* \note This function does not, but should update contacts_[i].refVel as
* well. Thanks to @Saeed-Mansouri for pointing out this issue
* <https://github.com/jrl-umi3218/lipm_walking_controller/issues/37>.
*/
void updateInitialTransform(const sva::PTransformd & X_0_lf, const sva::PTransformd & X_0_rf, double initHeight);

Expand Down
4 changes: 4 additions & 0 deletions src/FootstepPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ void FootstepPlan::updateInitialTransform(const sva::PTransformd & X_0_lf,
const sva::PTransformd & X_0_rf,
double initHeight)
{
// Note that this function does not, but should update contacts_[i].refVel as
// well. Thanks to @Saeed-Mansouri for pointing out this issue
// <https://github.com/jrl-umi3218/lipm_walking_controller/issues/37>.

sva::PTransformd X_0_mid = sva::interpolate(X_0_lf, X_0_rf, 0.5);
sva::PTransformd X_0_old = sva::interpolate(contacts_[0].pose, contacts_[1].pose, 0.5);
sva::PTransformd X_delta = makeHorizontal(X_0_old.inv() * X_0_mid);
Expand Down

0 comments on commit 542597c

Please sign in to comment.