diff --git a/control_data_collecting_tool/scripts/data_collecting_pure_pursuit_trajectory_follower.py b/control_data_collecting_tool/scripts/data_collecting_pure_pursuit_trajectory_follower.py index 74e7e248..23f92aaf 100755 --- a/control_data_collecting_tool/scripts/data_collecting_pure_pursuit_trajectory_follower.py +++ b/control_data_collecting_tool/scripts/data_collecting_pure_pursuit_trajectory_follower.py @@ -526,9 +526,9 @@ def control(self): # [2] publish cmd control_cmd_msg = AckermannControlCommand() - control_cmd_msg.stamp = ( - control_cmd_msg.lateral.stamp - ) = control_cmd_msg.longitudinal.stamp = (self.get_clock().now().to_msg()) + control_cmd_msg.stamp = control_cmd_msg.lateral.stamp = ( + control_cmd_msg.longitudinal.stamp + ) = (self.get_clock().now().to_msg()) control_cmd_msg.longitudinal.velocity = trajectory_longitudinal_velocity[nearestIndex] control_cmd_msg.longitudinal.acceleration = cmd[0] control_cmd_msg.lateral.steering_tire_angle = cmd[1] diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py index 10f413ba..74fd5406 100644 --- a/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py +++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_replayer_common.py @@ -122,9 +122,11 @@ def load_rosbag(self, rosbag2_path: str): objects_topic = ( "/perception/object_recognition/detection/objects" if self.args.detected_object - else "/perception/object_recognition/tracking/objects" - if self.args.tracked_object - else "/perception/object_recognition/objects" + else ( + "/perception/object_recognition/tracking/objects" + if self.args.tracked_object + else "/perception/object_recognition/objects" + ) ) ego_odom_topic = "/localization/kinematic_state" traffic_signals_topic = "/perception/traffic_light_recognition/traffic_signals" diff --git a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py index b096aa34..197a8d24 100755 --- a/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py +++ b/planning/planning_debug_tools/scripts/perception_replayer/perception_reproducer.py @@ -54,9 +54,9 @@ def __init__(self, args): self.perv_objects_msg, self.prev_traffic_signals_msg = self.find_topics_by_timestamp( pose_timestamp ) - self.memorized_original_objects_msg = ( - self.memorized_noised_objects_msg - ) = self.perv_objects_msg + self.memorized_original_objects_msg = self.memorized_noised_objects_msg = ( + self.perv_objects_msg + ) # start main timer callback