Allow variable horizon trajectories

This commit is contained in:
Johannes Fischer
2021-09-10 11:34:36 +02:00
parent b2b2abafa2
commit 544ea4d15a
3 changed files with 3 additions and 2 deletions

View File

@@ -47,8 +47,7 @@ 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}"