Skip to content

Commit

Permalink
Issue #3: Updates some formatting
Browse files Browse the repository at this point in the history
- Updates some of the formatting in map_updater script to match PEP8 standard.
  • Loading branch information
exoticDFT committed Oct 3, 2020
1 parent 28525f1 commit 713f83e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions script/map_updater.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python

# map_updater.py
# this node publishes the drivable track center and track with around a circle given current position of a car
# this node publishes the drivable track center and track with around a circle
# given current position of a car
# updates at a certain frequency
# this file is to work with optimization based game-theoretic planner
# author: [email protected]
Expand Down Expand Up @@ -194,8 +195,8 @@ def update_ego_track(self):
for i in range(self.steps):
pose_s = PoseStamped()
pose_s.header = self.ego_track_info.header
pose_s.pose.position.x = track_c[0,i]
pose_s.pose.position.y = track_c[1,i]
pose_s.pose.position.x = track_c[0, i]
pose_s.pose.position.y = track_c[1, i]
self.ego_track_info.poses.append(pose_s)

# append the track width info as the last element of path.poses
Expand All @@ -215,8 +216,8 @@ def update_ado_track(self):
for i in range(self.steps):
pose_s = PoseStamped()
pose_s.header = self.ado_track_info.header
pose_s.pose.position.x = track_c[0,i]
pose_s.pose.position.y = track_c[1,i]
pose_s.pose.position.x = track_c[0, i]
pose_s.pose.position.y = track_c[1, i]
self.ado_track_info.poses.append(pose_s)

# append the track width info as the last element of path.poses
Expand All @@ -242,8 +243,8 @@ def update_ego_track_exit(self):
for i in range(self.steps):
pose_s = PoseStamped()
pose_s.header = self.ego_track_info.header
pose_s.pose.position.x = track_c[0,i]
pose_s.pose.position.y = track_c[1,i]
pose_s.pose.position.x = track_c[0, i]
pose_s.pose.position.y = track_c[1, i]
self.ego_track_info.poses.append(pose_s)

# append the track width info as the last element of path.poses
Expand Down

0 comments on commit 713f83e

Please sign in to comment.