Hi, i've checked in a new bugfixe for the retrieval of Vehicle.getDrivingDistance and Vehicle.getDrivingDistance2D. It's available in the svn repository. Tomorrow you can get the compiled version (traas.jar) within the nightly build release.
Link: http://sumo.dlr.de/daily/sumo-msvc12Win32-svn.zip (windows) For me the values of Simulation.getDistance2D and Vehicle.getDrivingDistance2D are equal (so maybe you can replace if it's necessary). Some example in java just to illustrate the usage: SumoPosition2D sp = (SumoPosition2D) sumo.do_job_get(Vehicle.getPosition(id)); System.out.println(id + " -> " + sp.x +" -> " + sp.y); double x = 23.05; double y = 42; double dist = (double) sumo.do_job_get(Simulation.getDistance2D(sp.x, sp.y, x, y, false, true)); System.out.println("dist="+dist); double dist1 = (double) sumo.do_job_get(Vehicle.getDrivingDistance(id, "gneE0", 100, (byte) 0)); System.out.println("dist1="+dist1); double dist2 = (double) sumo.do_job_get(Vehicle.getDrivingDistance2D(id, x, y)); System.out.println("dist2="+dist2); double dist3 = (double) sumo.do_job_get(Simulation.getDistanceRoad("gneE0", 10, "gneE0", 100, false)); System.out.println("dist3="+dist3); boolean b = (boolean) sumo.do_job_get(Vehicle.isStopped(id)); System.out.println("isstoped: " + b); =============================================================== Best regards Mario Am 04.03.2016 um 09:01 schrieb Jakob Erdmann: > Hi Mario, > can you help out please? > > > ---------- Forwarded message ---------- > From: *abeer hakim* <[email protected] > <mailto:[email protected]>> > Date: 2016-03-03 23:24 GMT+01:00 > Subject: RE: [sumo-user] TraaS, Stop Status > To: Jakob Erdmann <[email protected] > <mailto:[email protected]>> > > > Hi > I have tried with isStopped method but still give me the same error :( > > > Best regards, > I. Abeer M. Hakim > > Lecturer > > Information Technology Department > Faculty of Computing and Information Technology > King Abdulaziz University > > > > ------------------------------------------------------------------------ > Date: Wed, 2 Mar 2016 09:37:36 +0100 > Subject: Re: [sumo-user] TraaS, Stop Status > From: [email protected] <mailto:[email protected]> > To: [email protected] <mailto:[email protected]> > > > There was an update by Mario yesterday in the afternoon. Please try > again with the very latest version. If there is still a bug let me know > > 2016-03-01 16:49 GMT+01:00 abeer hakim <[email protected] > <mailto:[email protected]>>: > > Hi Jakob > Sorry fir that but i think still getStopState and isStoppedParking > doesn't work well. I have tried them but they return error 181 > Thanks > > Sent from my iPhone > > On Mar 1, 2016, at 3:02 AM, Jakob Erdmann > <[email protected] <mailto:[email protected]>> > wrote: > > the latest development version of TraaS supports the vehicle > command > > getStopState > > > 2016-02-29 16:56 GMT+01:00 abeer hakim > <[email protected] <mailto:[email protected]>>: > > Hi everyone > > I set the Stop to the vehicle but i wanna my program to > test if the vehicle in the stop situation or not? > How can i do that please !!!! > > Sent from my iPhone > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application > Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just > $35/Month > Monitor end-to-end web transactions and take corrective > actions now > Troubleshoot faster and improve end-user experience. > Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > sumo-user mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
