Allow variable horizon trajectories
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user