From b57f1204f574b72f2367f46992dd4bf05bd9c2d0 Mon Sep 17 00:00:00 2001 From: nagasakata Date: Fri, 16 Feb 2024 15:00:48 +0900 Subject: [PATCH] fixed --- manual_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual_control.py b/manual_control.py index b3eda90e..79eae39c 100755 --- a/manual_control.py +++ b/manual_control.py @@ -32,6 +32,8 @@ args = parser.parse_args() if args.env_name and args.env_name.find("Duckietown") != -1: + env = gym.make(args.env_name) +else: env = DuckietownEnv( seed=args.seed, map_name=args.map_name, @@ -43,8 +45,6 @@ camera_rand=args.camera_rand, dynamics_rand=args.dynamics_rand, ) -else: - env = gym.make(args.env_name) env.reset() env.render()