Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Wrong return value of traci.vehicle.getDrivingDistance if vehicle is on node

I noticed a strange return value from getDrivingDistance in the following situation:

---edge1---| node |---edge2---

if a vehicle is right on the node (on some internal edge) and I call

distance = traci.vehicle.getDrivingDistance(vehicleID, edge2ID, 0.0)

then the distance value is not close to zero  (as I would expect),
but returns approximately the length of edge1.

(I tried this with version r26440 and  older 0.30)

Kind regards,

Check out the vibrant tech community on one of the world's most
engaging tech sites,!
sumo-user mailing list

Back to the top