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 bfa607c commit 615775d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions control/consistency_checker.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import math

import yaml
from ament_index_python.packages import get_package_share_directory
import yaml


def read_yaml(file_path):
"""Read YAML file and return the data."""
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"]
Expand Down

0 comments on commit 615775d

Please sign in to comment.