Skip to content

Commit 092fc34

Browse files
style(pre-commit): autofix
1 parent 92a8d4a commit 092fc34

11 files changed

Lines changed: 13 additions & 9 deletions

File tree

bag2lanelet/scripts/bag2way.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def bag2pose(input_path, interval=[0.1, 10000.0]):
4444
prev_trans = None
4545
# read topic and fix timestamp if lidar, and write
4646
while reader.has_next():
47-
(topic, data, stamp) = reader.read_next()
47+
topic, data, stamp = reader.read_next()
4848
if topic == "/tf":
4949
msg_type = get_message(type_map[topic])
5050
msg = deserialize_message(data, msg_type)
@@ -76,7 +76,7 @@ def bag2point_stamped(input_path, too_close, too_far):
7676
prev_trans = None
7777
# read topic and fix timestamp if lidar, and write
7878
while reader.has_next():
79-
(topic, data, stamp) = reader.read_next()
79+
topic, data, stamp = reader.read_next()
8080
if topic == "/tf":
8181
msg_type = get_message(type_map[topic])
8282
msg = deserialize_message(data, msg_type)

localization/autoware_localization_evaluation_scripts/scripts/plot_diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def parse_diagnostics_msgs(rosbag_dir: str, target_list: list) -> dict:
5656
data_dict: dict = {key: [] for key in target_list}
5757

5858
while reader.has_next():
59-
(topic, data, timestamp_rosbag) = reader.read_next()
59+
topic, data, timestamp_rosbag = reader.read_next()
6060
msg_type = get_message(type_map[topic])
6161
msg = deserialize_message(data, msg_type)
6262
timestamp_header = parse_stamp(msg.header.stamp)

localization/autoware_localization_evaluation_scripts/scripts/utils/parse_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def parse_rosbag(rosbag_dir: str, target_topic_list: list[str], limit: int = 0)
3737
topic_name_to_data = defaultdict(list)
3838
parse_num = 0
3939
while reader.has_next():
40-
(topic, data, t) = reader.read_next()
40+
topic, data, t = reader.read_next()
4141
msg_type = get_message(type_map[topic])
4242
msg = deserialize_message(data, msg_type)
4343
if topic in target_topic_list:

map/autoware_tp_manager/scripts/tp_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def parse_rosbag(bag_path: str, pose_topic: str, tp_topic: str, scan_topic: str)
132132

133133
while reader.has_next():
134134
progress_bar.update(1)
135-
(topic, data, stamp) = reader.read_next()
135+
topic, data, stamp = reader.read_next()
136136

137137
if topic == pose_topic:
138138
pose_msg = deserialize_message(data, PoseWithCovarianceStamped)

planning/autoware_planning_data_analyzer/scripts/add_prefix_to_bag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# cspell:disable
1717

1818
"""Add prefixed trajectory topic to MCAP bag (in-place modification)."""
19+
1920
import argparse
2021
from pathlib import Path
2122
import shutil

planning/autoware_planning_data_analyzer/scripts/evaluate_all_live_trajectories.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616
# cspell:disable
1717
"""Evaluate all LIVE trajectory topics in a bag simultaneously."""
18+
1819
import argparse
1920
import json
2021
from pathlib import Path

planning/autoware_planning_data_analyzer/scripts/evaluate_or_segments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616
# cspell:disable
1717
"""Auto-discover and evaluate all OR segment bags in a directory."""
18+
1819
import argparse
1920
from pathlib import Path
2021
import subprocess

planning/autoware_planning_data_analyzer/scripts/generate_or_visualization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# cspell:disable
1717

1818
"""Generate debug visualization for OR scene trajectory comparison."""
19+
1920
import json
2021
import os
2122
import sys

planning/autoware_planning_data_analyzer/scripts/merge_segment_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# limitations under the License.
1616
# cspell:disable
1717
"""Merge multiple model result bags for a single OR segment."""
18+
1819
import argparse
1920
from pathlib import Path
2021
import shutil

planning/autoware_planning_data_analyzer/scripts/rename_bag_topic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# cspell:disable
1717

1818
"""Rename a topic in a rosbag file."""
19+
1920
import argparse
2021
from pathlib import Path
2122

0 commit comments

Comments
 (0)