Skip to content

Commit

Permalink
Change the overtake scenario's parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbas committed Dec 5, 2022
1 parent 8e34e2a commit 80f76b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lpsnav/env/scenario_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def get_init_configuration(s_conf, e_conf, a_conf, rng):
starts = np.array([[-x, 0], [-y / 2, x], [y / 2, -x]])
goals = np.array([[-1, 1], [1, -1], [1, -1]]) * starts
elif s_conf["configuration"] == "overtake":
starts = np.array([[-x - 2, 0], [-x, 0]])
starts = np.array([[-x - 1, 0], [-x + 1, 0]])
goals = np.array([-1, 1]) * starts
max_speeds = np.array([a_conf["max_speed"], 0.6 * a_conf["max_speed"]])
max_speeds = np.array([a_conf["max_speed"], 0.4 * a_conf["max_speed"]])
else:
raise ValueError(f"Scenario {s_conf['configuration']} is not recognized")
starts += rng.uniform(-s_conf["uniform_bnd"], s_conf["uniform_bnd"], np.shape(starts))
Expand Down

0 comments on commit 80f76b5

Please sign in to comment.