Hi Sharif,
this happens when a vehicle is currently out of the road network. You get
INVALID_DOUBLE_VALUE = -1073741824.0 returned. The taxi might be parked /
pick up a passenger. In this case, the distance cannot be calculated
because e.g. a parking lot can be placed freely in the net without caring
much about its access lanes.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Total Distance Traveled using traci
Datum: 2023-07-14T00:42:21+0200
Von: "Sharifullah Asady via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
Hi,
I am using traci.vehicle.getDistance(VehID) to calculate the total distance
traveled by taxis. For some of the taxis, I get a very large negative
value. As I have a fleet of taxis so the number of getting invalid numbers
changes every time I run the simulation.
Thanks for the assistance.
Best regards,
Sharif
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user