Skip to content
Snippets Groups Projects
Commit 7244557f authored by Pierre-Alexandre Leziart's avatar Pierre-Alexandre Leziart
Browse files

Tweak formula for step height depending on contact height

parent 960d56b2
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,8 @@ void FootTrajectoryGenerator::updateFootPosition(int const j, Vector3 const &tar
// Coefficients for z (deterministic)
double Tz = t_swing[j];
if (t0s[j] == 0) {
stepHeight_[j] = maxHeight_ * (1.0 - 0.5 * targetFootstep_(2, j) / maxHeight_);
stepHeight_[j] = maxHeight_ - std::max(0.0, targetFootstep_(2, j)); //* (1.0 - 0.5 * std::max(0.0, targetFootstep_(2, j)) / maxHeight_);
// stepHeight_[j] = maxHeight_ * (1.0 - 0.5 * targetFootstep_(2, j) / maxHeight_);
}
Vector3 Az; // z trajectory is split in two halfs (before/after apex point)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment