DaRL-LibSignal / LibSignal

107 stars 21 forks source link

fixed crash when dealing with empty links for sumo #28

Closed Red-Pheonix closed 4 months ago

Red-Pheonix commented 4 months ago

When running certain configurations like for sumo like sumo1x21, it crashes because of certain links being empty coming from self.world.eng.trafficlight.getControlledLinks(self.id) and trying to access the first element coming from an empty list. Ignoring empty links gets over the issue and the simulation runs as usual.