"frame" : False,
"path" : False,
"traj" : True,
+ "slot" : True,
}
COLOR = {
"node": "lightgrey",
"trajectory-frame": "lightblue",
"obstacle": "black",
"log": ("gold", "orange", "blueviolet", "blue", "navy", "black"),
+ "slot": "red"
}
def car_frame(pose):
except:
print("No trajectory")
+ if PLOT["slot"]:
+ try:
+ plt.plot(*plot_nodes(s["slot"]["polygon"]), COLOR["slot"])
+ except:
+ print("No slot")
+
plt.plot(*car_frame(s["init"]), color="red", lw=2)
plt.plot(*car_frame(s["goal"]), color="red", lw=2)
plt.plot(*plot_nodes([s["init"]]), color="red", marker="+", ms=12)
except:
print("No trajectory")
+ if PLOT["slot"]:
+ try:
+ plt.plot(*plot_nodes(s["slot"]["polygon"]), COLOR["slot"])
+ except:
+ print("No slot")
+
plt.plot(*car_frame(s["init"]), color="red", lw=2)
plt.plot(*car_frame(s["goal"]), color="red", lw=2)
plt.plot(*plot_nodes([s["init"]]), color="red", marker="+", ms=12)