-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updates some of the formatting in map_updater script to match PEP8 standard.
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|