Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] libsumo using vehicle.isAtBusStop

isAtBusStop is not part of the TraCI API but rather a convenience function provided by the python client.
You can replace it with (getStopState(vehID) % 16 == 16)

Am Fr., 26. Apr. 2019 um 14:51 Uhr schrieb Patrick Goldschmidt <Patrick.Goldschmidt@xxxxxxxxxxxxxxxx>:

Dear SUMO-Community,

 

I switched from traci to libsumo and now it looks like that vehicle.isAtBusStop() is not working anymore.

 

I get an error: type object ‘vehicle’ has no attribute ‘isAtBusStop’

 

Here is what I do:

import libsumo as traci

vehicle_list = traci.vehicle.getIDList()

 

        for veh in vehicle_list:

 

            if traci.vehicle.isAtBusStop(veh):

                              …

 

Libsumo does not support subscription. Is isAtBusStop a “hidden” subscription maybe?

 

Thanks

 

Patrick Goldschmidt

 




Pflichtangaben anzeigen

Nähere Informationen zur Datenverarbeitung im DB-Konzern finden Sie hier: http://www.deutschebahn.com/de/konzern/datenschutz
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top