Skip to content

Commit

Permalink
Fixed a bug in the footsteps interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Jan 4, 2024
1 parent afbba1d commit 3510083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hippopt/robot_planning/utilities/interpolators.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def append_swing_phase(
next_phase = phases_copy[i + 1]

stance_points = int(
np.ceil((phase.deactivation_time - phase.activation_time) / dt)
np.ceil((phase.deactivation_time - max(phase.activation_time, t0)) / dt)
)
stance_points = min(stance_points, remaining_points)

Expand Down

0 comments on commit 3510083

Please sign in to comment.