Skip to content

Commit

Permalink
debug angle loss
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaaaavin committed Oct 26, 2024
1 parent e2dc456 commit ad5bf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pl_modules/urban_nav_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,5 +386,5 @@ def waypoints_to_polar(self, waypoints):
# Compute relative differences
deltas = torch.diff(waypoints, dim=1, prepend=torch.zeros_like(waypoints[:, :1, :]))
distance = torch.norm(deltas, dim=2)
angle = torch.atan2(deltas[:, :, 1], deltas[:, :, 0]) * 180 / torch.pi
angle = torch.atan2(deltas[:, :, 1], deltas[:, :, 0])
return distance, angle

0 comments on commit ad5bf65

Please sign in to comment.