I'm using Python to compute the possible routes of a vehicle from a point to another point of a map drawn in SUMO. I would like to use now TraCI to show these routes on the map by highlighting them. Is it possible via the API to select them and then use the selection
visualisation to see the route in traci ?
Asked
Active
Viewed 382 times
0

Matteo Cardellini
- 876
- 2
- 17
- 41
1 Answers
1
Yes, you can use traci.gui.toggleSelection:
for e in route:
traci.gui.toggleSelection(e, "edge")

Michael
- 3,510
- 1
- 11
- 23