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 29, 2024
1 parent f58d692 commit 851a26e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions control_src/consistency_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def read_yaml(file_path):
"--simulator_model_param_file", help="Override the default simulator model parameter file path"
)

def main():

def main():
args = parser.parse_args()

autoware_launch_path = get_package_share_directory("autoware_launch")
Expand Down Expand Up @@ -63,7 +63,8 @@ def main():
),
(
"[MPC] steer_time_constant_difference: {}, (controller: {}, simulator: {})".format(
simulator_model_params["steer_time_constant"] - mpc_params["vehicle_model_steer_tau"],
simulator_model_params["steer_time_constant"]
- mpc_params["vehicle_model_steer_tau"],
mpc_params["vehicle_model_steer_tau"],
simulator_model_params["steer_time_constant"],
)
Expand Down Expand Up @@ -124,9 +125,7 @@ def main():
or "accelerate_delay_difference" in item
):
if value != 0.0:
error_message = (
"[ERROR] The parameters of the controller and simulator should be identical.\033[0m"
)
error_message = "[ERROR] The parameters of the controller and simulator should be identical.\033[0m"
if (
"acceleration_limit_difference" in item
or "max_steer_rate_lim_difference_by_curvature" in item
Expand All @@ -141,5 +140,6 @@ def main():
if error_message:
print(f"\033[91m{error_message}\033[0m\n")

if __name__ == '__main__':
main()

if __name__ == "__main__":
main()

0 comments on commit 851a26e

Please sign in to comment.