Skip to content

Commit 4557ca0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 198e24d commit 4557ca0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nodes/control_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def calc_target_index(self, state, cx, cy, cyaw):
5858
dx_vec = fx - np.asarray(cx).reshape([-1, 1])
5959
dy_vec = fy - np.asarray(cy).reshape([-1, 1])
6060
dist = np.hstack([dx_vec, dy_vec])
61-
dist_2 = np.sum(dist ** 2, axis=1)
61+
dist_2 = np.sum(dist**2, axis=1)
6262
target_idx = np.argmin(dist_2)
6363

6464
# Project RMS error onto front axle vector

nodes/planning_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def create_trajectory(
103103
Z = np.array([lane_coeff.W, lane_coeff.Y_offset, lane_coeff.dPhi, lane_coeff.c0])
104104

105105
for i, u in enumerate(x):
106-
u2 = u ** 2
106+
u2 = u**2
107107
y[i] = np.dot(np.array([0, -1, -u, 0.5 * u2]), Z)
108108

109109
tran_mat = tf_listener.asMatrix("map", lane_coeff.header)

0 commit comments

Comments
 (0)