Skip to content

Commit 5fcdbc2

Browse files
linear proportional pitch and increased pitch range to 5
1 parent 6910e03 commit 5fcdbc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bitbots_motion/bitbots_quintic_walk/src/parameters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ walking:
112112
type: double
113113
description: "Foot pitch angle before toe-off"
114114
validation:
115-
bounds<>: [0.0, 1.0]
115+
bounds<>: [0.0, 5.0]
116116
default_value: 0.0
117117
trunk_x_offset:
118118
type: double

bitbots_motion/bitbots_quintic_walk/src/walk_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ void WalkEngine::buildTrajectories(WalkEngine::TrajectoryType type) {
518518
foot_spline_.pitch()->addPoint(0.0, foot_orientation_pos_at_last_foot_change_.y(),
519519
foot_orientation_vel_at_last_foot_change_.y(),
520520
foot_orientation_acc_at_foot_change_.y());
521-
foot_spline_.pitch()->addPoint(double_support_length, config_.foot_pitch_angle);
521+
foot_spline_.pitch()->addPoint(double_support_length, config_.foot_pitch_angle * support_to_next_.getOrigin().x());
522522
// foot_spline_.pitch()->addPoint(double_support_length, 0.1);
523523
// foot_spline_.pitch()->addPoint(double_support_length + single_support_length * config_.foot_apex_phase, 0.1);
524524
foot_spline_.pitch()->addPoint(half_period, 0.0);

0 commit comments

Comments
 (0)