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

Hello,
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,
JOerg

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sumo-user


Back to the top