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] committed Mar 27, 2024
1 parent 40f6354 commit 566d68a
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions control/consistency_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import math
import argparse
import math

from ament_index_python.packages import get_package_share_directory
import yaml

Expand All @@ -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
Expand Down

0 comments on commit 566d68a

Please sign in to comment.