ax.set_xlabel("x [m]")
ax.set_ylabel("y [m]")
- if "init" in scenario and len(scenario["init"]) == 3:
- plt.plot(*plot_car(scenario["init"]), color="red")
- if "goal" in scenario and len(scenario["goal"]) == 3:
- plt.plot(*plot_car(scenario["goal"]), color="green")
- if "slot" in scenario and len(scenario["slot"]) > 0:
- for s in scenario["slot"]:
- plt.plot(*plot_nodes(s), color="gray")
if "obst" in scenario and len(scenario["obst"]) > 0:
for o in scenario["obst"]:
plt.plot(*plot_nodes(o), color="blue")
if "path" in scenario and len(scenario["path"]) > 0:
for n in scenario["path"]:
plt.plot(*plot_car(n), color="orange")
+ if "slot" in scenario and len(scenario["slot"]) > 0:
+ for s in scenario["slot"]:
+ plt.plot(*plot_nodes(s), color="gray")
+ if "init" in scenario and len(scenario["init"]) == 3:
+ plt.plot(*plot_car(scenario["init"]), color="red")
+ if "goal" in scenario and len(scenario["goal"]) == 3:
+ plt.plot(*plot_car(scenario["goal"]), color="green")
print("possible starts:")
if "starts" in scenario and len(scenario["starts"]) > 0:
for p in scenario["starts"]: