From 64a8af1119e11e59bfe2e25e2609deffad39ee98 Mon Sep 17 00:00:00 2001 From: kosuke55 Date: Fri, 28 Jun 2024 20:25:47 +0900 Subject: [PATCH] run pre-commit Signed-off-by: kosuke55 --- bag2lanelet/scripts/bag2map.py | 1 + ...lecting_pure_pursuit_trajectory_follower.py | 7 ++++--- .../data_collecting_trajectory_publisher.py | 18 ++++++++++++------ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/bag2lanelet/scripts/bag2map.py b/bag2lanelet/scripts/bag2map.py index f3e6300a..f6075b37 100755 --- a/bag2lanelet/scripts/bag2map.py +++ b/bag2lanelet/scripts/bag2map.py @@ -6,6 +6,7 @@ from bag2way import bag2point_stamped import folium + from tools.bag2lanelet.scripts.lanelet_xml import LaneletMap 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 b6e70080..7c1aa04b 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 @@ -14,19 +14,20 @@ # See the License for the specific language governing permissions and # limitations under the License. -import numpy as np -import rclpy from autoware_adapi_v1_msgs.msg import OperationModeState from autoware_control_msgs.msg import Control as AckermannControlCommand from autoware_planning_msgs.msg import Trajectory from autoware_vehicle_msgs.msg import GearCommand from geometry_msgs.msg import Point from nav_msgs.msg import Odometry +import numpy as np from rcl_interfaces.msg import ParameterDescriptor +import rclpy from rclpy.node import Node from scipy.spatial.transform import Rotation as R from std_msgs.msg import Bool -from visualization_msgs.msg import Marker, MarkerArray +from visualization_msgs.msg import Marker +from visualization_msgs.msg import MarkerArray debug_matplotlib_plot_flag = False if debug_matplotlib_plot_flag: diff --git a/control_data_collecting_tool/scripts/data_collecting_trajectory_publisher.py b/control_data_collecting_tool/scripts/data_collecting_trajectory_publisher.py index 5160fb5b..6b068f95 100755 --- a/control_data_collecting_tool/scripts/data_collecting_trajectory_publisher.py +++ b/control_data_collecting_tool/scripts/data_collecting_trajectory_publisher.py @@ -14,16 +14,22 @@ # See the License for the specific language governing permissions and # limitations under the License. -import numpy as np -import rclpy -from autoware_planning_msgs.msg import Trajectory, TrajectoryPoint -from geometry_msgs.msg import Point, PolygonStamped +from autoware_planning_msgs.msg import Trajectory +from autoware_planning_msgs.msg import TrajectoryPoint +from geometry_msgs.msg import Point +from geometry_msgs.msg import PolygonStamped from nav_msgs.msg import Odometry -from numpy import arctan, cos, pi, sin +import numpy as np +from numpy import arctan +from numpy import cos +from numpy import pi +from numpy import sin from rcl_interfaces.msg import ParameterDescriptor +import rclpy from rclpy.node import Node from scipy.spatial.transform import Rotation as R -from visualization_msgs.msg import Marker, MarkerArray +from visualization_msgs.msg import Marker +from visualization_msgs.msg import MarkerArray debug_matplotlib_plot_flag = False if debug_matplotlib_plot_flag: