Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jun 7, 2024
1 parent fd33f25 commit 079b985
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ def load_rosbag(self, rosbag2_path: str):
new_msg.stamp = msg.stamp
for traffic_signal in msg.signals:
traffic_light_group = TrafficLightGroup()
traffic_light_group.traffic_light_group_id = traffic_signal.traffic_signal_id
traffic_light_group.traffic_light_group_id = (
traffic_signal.traffic_signal_id
)
for traffic_signal_element in traffic_signal.elements:
traffic_light_element = TrafficLightElement()
traffic_light_element.color = traffic_signal_element.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class PerceptionReproducerV2(PerceptionReplayerCommon):
"""

def __init__(self, args):
self.rosbag_ego_odom_search_radius = args.search_radius # (m) the range of the ego odom to search,
self.reproduce_cooldown = args.reproduce_cooldown # (sec) the cooldown time for republishing published data, please make sure that it's greater than the ego's stopping time.
self.rosbag_ego_odom_search_radius = args.search_radius # (m) the range of the ego odom to search,
self.reproduce_cooldown = args.reproduce_cooldown # (sec) the cooldown time for republishing published data, please make sure that it's greater than the ego's stopping time.

Check warning on line 38 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (cooldown)

Check warning on line 38 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (cooldown)

Check warning on line 38 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (cooldown)

self.rosbag_ego_odom_seach_radius = (

Check warning on line 40 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (seach)
args.seach_radius

Check warning on line 41 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (seach)
) # (m) the range of the ego odom to search,
Expand Down Expand Up @@ -122,7 +122,7 @@ def on_timer(self):

# find a list of ego odoms around the nearest_ego_odom_pos.

Check warning on line 123 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (odoms)
self.stopwatch.tic("find_nearby_ego_odom_indies")
ego_odom_indices = self.find_nearby_ego_odom_indies(nearest_ego_odom_pos,
ego_odom_indices = self.find_nearby_ego_odom_indies(nearest_ego_odom_pos,
self.rosbag_ego_odom_search_radius)
ego_odom_indices = self.find_nearby_ego_odom_indies(
nearest_ego_odom_pos, self.rosbag_ego_odom_seach_radius

Check warning on line 128 in planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer_v2.py

View workflow job for this annotation

GitHub Actions / spell-check-partial

Unknown word (seach)
Expand Down

0 comments on commit 079b985

Please sign in to comment.