Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbas committed Dec 6, 2022
1 parent 4bd89d7 commit 28e032e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lpsnav/policies/lpsnav.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def update_int_line(self, agents):
long_space = lat_space + min(1, a.speed / self.max_speed) * (long_space - lat_space)
r = self.radius + a.radius
col_width = helper.polar_ellipse(long_space + r, lat_space + r, dtheta)
self.rel_int_lines[k] = helper.rotate(np.array([[0, -col_width], [0, col_width]]), self.int_line_heading)
pts = np.array([[0, -col_width], [0, col_width]])
self.rel_int_lines[k] = helper.rotate(pts, self.int_line_heading)
self.int_lines[k] = self.rel_int_lines[k] + a.pos

def get_interacting_agents(self, agents):
Expand Down

0 comments on commit 28e032e

Please sign in to comment.