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] authored and maxime-clem committed Mar 29, 2024
1 parent c3602bf commit 4770843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
import sys

from PyQt5.QtWidgets import QApplication
from geometry_msgs.msg import PoseWithCovarianceStamped, PoseStamped
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import PoseWithCovarianceStamped
from perception_replayer_common import PerceptionReplayerCommon
import rclpy
from time_manager_widget import TimeManagerWidget
Expand Down Expand Up @@ -174,7 +175,8 @@ def publish_recorded_ego_pose(self):
print("Published recorded ego pose as /initialpose")

def publish_goal(self):
if (not self.rosbag_ego_odom_data): return
if not self.rosbag_ego_odom_data:
return

goal_pose = PoseStamped()
goal_pose.header.stamp = self.get_clock().now().to_msg()
Expand All @@ -183,6 +185,7 @@ def publish_goal(self):
self.goal_pose_publisher.publish(goal_pose)
print("Published last recorded ego pose as /planning/mission_planning/goal")


if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-b", "--bag", help="rosbag", default=None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
from autoware_auto_perception_msgs.msg import TrackedObjects
from autoware_auto_perception_msgs.msg import TrafficSignalArray as AutoTrafficSignalArray
from autoware_perception_msgs.msg import TrafficSignalArray
from geometry_msgs.msg import PoseWithCovarianceStamped, PoseStamped
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import PoseWithCovarianceStamped
from nav_msgs.msg import Odometry
import psutil
from rclpy.node import Node
Expand Down

0 comments on commit 4770843

Please sign in to comment.