Skip to content

Commit

Permalink
Issue #6: Updates the visualization
Browse files Browse the repository at this point in the history
- Adjusts the visualization of the route to match the coordinate system of Carla (left-handed.)
  • Loading branch information
exoticDFT committed Oct 21, 2020
1 parent 9442541 commit 17f6df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/visualization_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def ego_track_cb(self, msg):

for i in range(len(msg.poses)-2):
pos_x = msg.poses[i].pose.position.x
pos_y = msg.poses[i].pose.position.y
pos_y = -msg.poses[i].pose.position.y
pos_x_n = msg.poses[i+1].pose.position.x
pos_y_n = msg.poses[i+1].pose.position.y
pos_y_n = -msg.poses[i+1].pose.position.y
yaw = np.arctan2(pos_y_n - pos_y, pos_x_n - pos_x)

mk = Marker()
Expand Down

0 comments on commit 17f6df7

Please sign in to comment.