The described behavior sounds like a bug but the code looks OK to me. It should return maxSpeed when there are no vehicles. Can you please check whether the function getLastStepVehicleIDs really returns an empty list whenever the invalid travel time value is returned? Also, what version of sumo are you using?
2016-05-30 14:50 GMT+02:00 Arslane Hamza Cherif <[email protected]>: > Hello, > > I tried to use the TraCI method for edge data retrieval (getTravelTime), > but it is returning a strange value (100000.0) which correspond to computed > value when lastStepMeanSpeed = 0.0. > > What is very strange, it is the fact that even if no vehs traversed the > edge the lastStepMeanSpeed is set to 0.0, and not set to max allowed speed > on the edge. > > This behaviour corrupts the system by setting travelTime to a high value > that take a while to return normal values. > > My question is, is there any build in solution to change the travelTime > value when it returns 100000.0 and no vehs traversed this edge in the > lastStep? > > Thank you for your time, > > Best regards, > Arslane > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
