From 615775dbf7d57eef47a7c72617aad0cecdc769d4 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 04:34:41 +0000 Subject: [PATCH] style(pre-commit): autofix --- control/consistency_checker.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/control/consistency_checker.py b/control/consistency_checker.py index ec9a17ec..03ab7746 100644 --- a/control/consistency_checker.py +++ b/control/consistency_checker.py @@ -1,7 +1,7 @@ import math -import yaml from ament_index_python.packages import get_package_share_directory +import yaml def read_yaml(file_path): @@ -9,11 +9,16 @@ def read_yaml(file_path): with open(file_path, "r") as file: return yaml.safe_load(file) -autoware_launch_path = get_package_share_directory('autoware_launch') -vehicle_description_path = get_package_share_directory('j6_gen1_description') -mpc_param_file_path = f"{autoware_launch_path}/config/control/trajectory_follower/lateral/mpc.param.yaml" -pid_param_file_path = f"{autoware_launch_path}/config/control/trajectory_follower/longitudinal/pid.param.yaml" +autoware_launch_path = get_package_share_directory("autoware_launch") +vehicle_description_path = get_package_share_directory("j6_gen1_description") + +mpc_param_file_path = ( + f"{autoware_launch_path}/config/control/trajectory_follower/lateral/mpc.param.yaml" +) +pid_param_file_path = ( + f"{autoware_launch_path}/config/control/trajectory_follower/longitudinal/pid.param.yaml" +) simulator_model_param_file_path = f"{vehicle_description_path}/config/simulator_model.param.yaml" mpc_params = read_yaml(mpc_param_file_path)["/**"]["ros__parameters"]