From 566d68a8f80a28760a13203b22c7d9b814b69430 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 05:03:40 +0000 Subject: [PATCH] style(pre-commit): autofix --- control/consistency_checker.py | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/control/consistency_checker.py b/control/consistency_checker.py index 8d9febc7..697a2f67 100644 --- a/control/consistency_checker.py +++ b/control/consistency_checker.py @@ -1,5 +1,6 @@ -import math import argparse +import math + from ament_index_python.packages import get_package_share_directory import yaml @@ -19,13 +20,29 @@ def read_yaml(file_path): default_pid_param_file_path = ( f"{autoware_launch_path}/config/control/trajectory_follower/longitudinal/pid.param.yaml" ) -default_simulator_model_param_file_path = f"{vehicle_description_path}/config/simulator_model.param.yaml" +default_simulator_model_param_file_path = ( + f"{vehicle_description_path}/config/simulator_model.param.yaml" +) -parser = argparse.ArgumentParser(description='Process the parameters of the controllers and simulator.') +parser = argparse.ArgumentParser( + description="Process the parameters of the controllers and simulator." +) -parser.add_argument('--mpc_param_file', help='Override the default MPC parameter file path', default=default_mpc_param_file_path) -parser.add_argument('--pid_param_file', help='Override the default PID parameter file path', default=default_pid_param_file_path) -parser.add_argument('--simulator_model_param_file', help='Override the default simulator model parameter file path', default=default_simulator_model_param_file_path) +parser.add_argument( + "--mpc_param_file", + help="Override the default MPC parameter file path", + default=default_mpc_param_file_path, +) +parser.add_argument( + "--pid_param_file", + help="Override the default PID parameter file path", + default=default_pid_param_file_path, +) +parser.add_argument( + "--simulator_model_param_file", + help="Override the default simulator model parameter file path", + default=default_simulator_model_param_file_path, +) args = parser.parse_args() mpc_param_file_path = args.mpc_param_file