From b2b2abafa2a5cd146fe742f11d402651428831c0 Mon Sep 17 00:00:00 2001 From: Johannes Fischer Date: Fri, 10 Sep 2021 11:34:13 +0200 Subject: [PATCH] Fix typo --- scratch/etienne/intersimple/gail_options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scratch/etienne/intersimple/gail_options.py b/scratch/etienne/intersimple/gail_options.py index 4784890..4593eca 100644 --- a/scratch/etienne/intersimple/gail_options.py +++ b/scratch/etienne/intersimple/gail_options.py @@ -47,11 +47,12 @@ def target_velocity_plan(current_v: float, target_v: float, t: int) # for now, constant acceleration a = (target_v - current_v) / t return a*np.ones((t,)) +Hello def generate_plan(env, i): """Generate input profile for high-level action `i`.""" assert i < len(ALL_OPTIONS), "Invalid option index {i}" - target_v, t = ALL_OPTSIONS[i] + target_v, t = ALL_OPTIONS[i] current_v = env._env.state[env._agent, 1].item() # extract from env plan = target_velocity_plan(current_v, target_v, t) assert len(plan) == t, "incorrect plan length"