Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2022
1 parent a30232b commit 40d267c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def CalcArcLength(self, traj):
p1 = traj.points[i]
dx = p1.pose.position.x - p0.pose.position.x
dy = p1.pose.position.y - p0.pose.position.y
ds = np.sqrt(dx ** 2 + dy ** 2)
ds = np.sqrt(dx**2 + dy**2)
s_sum += ds
s_arr.append(s_sum)
return s_arr
Expand All @@ -408,7 +408,7 @@ def CalcArcLengthPathWLid(self, traj):
p1 = traj.points[i].point
dx = p1.pose.position.x - p0.pose.position.x
dy = p1.pose.position.y - p0.pose.position.y
ds = np.sqrt(dx ** 2 + dy ** 2)
ds = np.sqrt(dx**2 + dy**2)
s_sum += ds
s_arr.append(s_sum)
return s_arr
Expand All @@ -426,7 +426,7 @@ def CalcArcLengthPath(self, traj):
p1 = traj.points[i]
dx = p1.pose.position.x - p0.pose.position.x
dy = p1.pose.position.y - p0.pose.position.y
ds = np.sqrt(dx ** 2 + dy ** 2)
ds = np.sqrt(dx**2 + dy**2)
s_sum += ds
s_arr.append(s_sum)
return s_arr
Expand Down Expand Up @@ -459,7 +459,7 @@ def CalcAcceleration(self, traj):
v = 0.5 * (v1 + v0)
dx = p1.pose.position.x - p0.pose.position.x
dy = p1.pose.position.y - p0.pose.position.y
ds = np.sqrt(dx ** 2 + dy ** 2)
ds = np.sqrt(dx**2 + dy**2)
dt = ds / max(abs(v), 0.001)
a = (v1 - v0) / dt
a_arr.append(a)
Expand All @@ -480,11 +480,11 @@ def CalcJerk(self, traj):

dx0 = p1.pose.position.x - p0.pose.position.x
dy0 = p1.pose.position.y - p0.pose.position.y
ds0 = np.sqrt(dx0 ** 2 + dy0 ** 2)
ds0 = np.sqrt(dx0**2 + dy0**2)

dx1 = p2.pose.position.x - p1.pose.position.x
dy1 = p2.pose.position.y - p1.pose.position.y
ds1 = np.sqrt(dx1 ** 2 + dy1 ** 2)
ds1 = np.sqrt(dx1**2 + dy1**2)

dt0 = ds0 / max(abs(0.5 * (v1 + v0)), 0.001)
dt1 = ds1 / max(abs(0.5 * (v2 + v1)), 0.001)
Expand Down

0 comments on commit 40d267c

Please sign in to comment.