Hi Joerg,
Thanks for reporting this!
The returned value is traci constant INVALID_INT_VALUE which may be
returned if the leader vehicle is teleporting or parking (not on a road
lane).
I've pushed something similar to your workaround.

best regards,
Jakob

Am Mi., 9. Juni 2021 um 16:53 Uhr schrieb joerg <[email protected]>:

> For those using or developing simpla,
>
> I encountered an error in simpla's _platoonmanager.py file (while using
> the taxi device, but I also experienced it with a very big scenario without
> taxis).
>
> Then I discovered that in function def _adviseLanes(self) the state
> leader.state.laneIX became negative (a large negative number)
>
> Strange that the error actually occurred in a "try" environment.
>
> Anyway the fix (which is really more a workaround) is to replace the line
>
> traci.vehicle.changeLane(veh.getID(), leader.state.laneIX, self.
> _controlInterval)
>
> with
>
>  ix = leader.state.laneIX
>  if ix >= 0:
>                           traci.vehicle.changeLane(veh.getID(), ix,
> self._controlInterval)
>
>
> No idea why leader.state.laneIX becomes negative, but if there is interest
> I can provide the scenario.
>
> Best,
>
> Joerg
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to