Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
improve usage of foot_distance parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Feb 10, 2021
1 parent f1619ea commit 4aff5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitbots_dynamic_kick/src/kick_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ void KickEngine::calcSplines(const Eigen::Isometry3d &flying_foot_pose, const Ei
flying_foot_spline_.x()->addPoint(phase_timings_.move_trunk_back, 0);

flying_foot_spline_.y()->addPoint(0, flying_foot_pose.translation().y());
flying_foot_spline_.y()->addPoint(phase_timings_.move_trunk, kick_foot_sign * params_.foot_distance);
flying_foot_spline_.y()->addPoint(phase_timings_.move_trunk, flying_foot_pose.translation().y());
flying_foot_spline_.y()->addPoint(phase_timings_.raise_foot, kick_foot_sign * params_.foot_distance);
flying_foot_spline_.y()->addPoint(phase_timings_.windup, windup_point_.y(), 0, 0);
flying_foot_spline_.y()
->addPoint(phase_timings_.kick, ball_position_.y(), speed_vector.y() * kick_speed_, 0);
flying_foot_spline_.y()->addPoint(phase_timings_.move_back, kick_foot_sign * params_.foot_distance);
flying_foot_spline_.y()->addPoint(phase_timings_.lower_foot, kick_foot_sign * params_.foot_distance);
flying_foot_spline_.y()->addPoint(phase_timings_.move_trunk_back, kick_foot_sign * params_.foot_distance);
flying_foot_spline_.y()->addPoint(phase_timings_.move_trunk_back, flying_foot_pose.translation().y());

flying_foot_spline_.z()->addPoint(0, flying_foot_pose.translation().z());
flying_foot_spline_.z()->addPoint(phase_timings_.move_trunk, 0);
Expand Down

0 comments on commit 4aff5ac

Please sign in to comment.