Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Sep 8, 2023
1 parent dcac3ae commit ae72597
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ada_feeding/ada_feeding/behaviors/move_to.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,13 @@ def scale_velocity(traj: JointTrajectory, scale_factor: float) -> None:
point.time_from_start.nanosec = int(nsec - sec * 10.0**9)

# Scale the velocities
for i in range(
len(point.velocities)
): # pylint: disable=consider-using-enumerate
# pylint: disable=consider-using-enumerate
# Necessary because we want to destructively modify the trajectory
for i in range(len(point.velocities)):
point.velocities[i] *= scale_factor

# Scale the accelerations
for i in range(
len(point.accelerations)
): # pylint: disable=consider-using-enumerate
for i in range(len(point.accelerations)):
point.accelerations[i] *= scale_factor**2


Expand Down

0 comments on commit ae72597

Please sign in to comment.