Re: [sumo-user] Fwd: TraaS, Stop Status

2016-03-04 Thread Mario Krumnow
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*  >
> Date: 2016-03-03 23:24 GMT+01:00
> Subject: RE: [sumo-user] TraaS, Stop Status
> To: Jakob Erdmann  >
>
>
> 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: namdre.s...@googlemail.com 
> To: abeer_ha...@hotmail.com 
>
>
> 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  >:
>
> 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
> mailto:namdre.s...@googlemail.com>>
> wrote:
>
> the latest development version of TraaS supports the vehicle
> command
>
> getStopState
>
>
> 2016-02-29 16:56 GMT+01:00 abeer hakim
> mailto:abeer_ha...@hotmail.com>>:
>
> 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
> sumo-user@lists.sourceforge.net
> 
> 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
sumo-user@lists.sourceforge.net
https://lists.sou

[sumo-user] Fwd: So urgent Please

2016-03-04 Thread abeer hakim


> 
> Hi Mario and Jakob 
> 
> Sorry for my urgent email, but i have a deadline and i'll  become crazy. 
> After i update sumo to test the new TraaS update I faced the same problem as 
> before with  getDistance2D.  The problem is the whole my  project depends on 
> this function. 
> Please Please any help to fix this problem and go back to the old one that it 
> was work :
> 
> this is how i use:
> double driving_distance= (double) 
> conn.do_job_get(Simulation.getDistance2D(AllEligibleVehicle.get(id.get(d)).getDepartPos().x,
>  
> 
>   
> AllEligibleVehicle.get(id.get(d)).getDepartPos().y, 
> CPposition.x,CPposition.y, false, true));
> 
> it.polito.appeal.traci.TraCIException: SUMO error for command 171: Get 
> Simulation Variable: unsupported variable 0x00 specified
> 
>   at de.tudresden.sumo.util.Query.queryAndVerify(Query.java:82)
> 
>   at de.tudresden.sumo.util.Query.queryAndVerifySingle(Query.java:114)
> 
>   at 
> de.tudresden.sumo.util.CommandProcessor.do_job_get(CommandProcessor.java:60)
> 
>   at 
> it.polito.appeal.traci.SumoTraciConnection.do_job_get(SumoTraciConnection.java:320)
> 
> 
> 
> Best regards, 
> I. Abeer M. Hakim
> 
> Lecturer
> 
> Information Technology Department
> Faculty of Computing and Information Technology
> King Abdulaziz University
> 
> 
> 
> > Subject: Re: [sumo-user] TraaS, Stop Status
> > To: abeer_ha...@hotmail.com
> > From: mario.krumnow...@gmail.com
> > Date: Wed, 2 Mar 2016 08:40:05 +0100
> > 
> > Hi,
> > 
> > in the current nightly snapshot there is an updated version of traas
> > which supports different stop states.
> > Link: http://sumo.dlr.de/wiki/Downloads#Nightly_Snapshots
> > 
> > For example:
> > 
> > set stop:
> > 
> > //Definition: SumoStopFlags(boolean parking, boolean triggered, boolean
> > containerTriggered, boolean isBusStop, boolean isContainerStop)
> > 
> > SumoStopFlags sf = new SumoStopFlags(true, false, false, false, false);
> > sumo.do_job_set(Vehicle.setStop("vehicle_name", "gneE0", 60.0, (byte) 0,
> > (byte) 60, sf));
> > 
> > get stop of a vehicle:
> > 
> > boolean b = (boolean) sumo.do_job_get(Vehicle.isStopped("vehicle_name"));
> > 
> > regards,
> > Mario
> > 
> > Am 29.02.2016 um 16:56 schrieb abeer hakim:
> > > 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
> > > sumo-user@lists.sourceforge.net
> > > 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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] Georeferencing existing scenarios

2016-03-04 Thread Jakob Erdmann
You can edit the  element in the .net.xml to get geo-referencing
(the original networks weren't referenced unfortunately).

A while ago, someone reported this location element for the 'joined'
scenario


What you could do is get an OSM network with the same bounding box (i.e.
usuing http://sumo.dlr.de/wiki/Tools/Import/OSM#osmWebWizard.py) and then
copy the location element from that.
You may need to play with the 'netOffset' value to get it to match.

Please report back on your results. (I would like to add this to the
scenario release)

regards,
Jakob


2016-03-04 7:30 GMT+01:00 Maxim CHERNYSHEV :

> Hi,
>
> Is there a way of georeferencing an existing scenario?
>
> For example, taking something like the existing Bologna scenario which
> comes without boundary and parameter definitions. e.g.:
>
>  origBoundary="0.00,0.00,1827.72,1364.86" projParameter="!”/>
>
> And determining what the correct values should be so that
> "--fcd-output.geo true” produces real coordinate information.
>
> Best regards,
> Maxim
>
> This e-mail is confidential. If you are not the intended recipient you
> must not disclose or use the information contained within. If you have
> received it in error please return it to the sender via reply e-mail and
> delete any record of it from your system. The information contained within
> is not the opinion of Edith Cowan University in general and the University
> accepts no liability for the accuracy of the information provided.
>
> CRICOS IPC 00279B
> RTO PROVIDER 4756
>
> --
> 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
> sumo-user@lists.sourceforge.net
> 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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] [simulation using calibrator and sensor information]

2016-03-04 Thread Jakob Erdmann
if the collisions sill occur with the latest development version of sumo,
send me the zipped files of your scenario (sumocfg and all input files)

2016-03-03 21:43 GMT+01:00 Nguyen Nguyen :

> Hi Jakob,
>
> While I run the simulation, there are also initially a lot of collision
> teleporting warnings. "Collisions are assumed to occur due to bugs in the
> simulation". Should and how I report these collisions warnings?
>
> Thank you.
>
> Best,
>
> Tran
>
>
> On Thursday, March 3, 2016 12:37 AM, Jakob Erdmann <
> namdre.s...@googlemail.com> wrote:
>
>
> I can only give you very general advice on this:
> - observe the simulation in sumo-gui and figure out why the traffic slows
> down (likely jamming due to a network/traffic-light problem)
> - check the number of vehicles that are waiting to be inserted into the
> network (network property window). If this number is growing you have a
> problem (network cannot keep up with the traffic demand)
>
> 2016-03-02 19:50 GMT+01:00 Nguyen Nguyen :
>
> Dear All,
> I have been using randomTrips, calibrator and sensor information to try to
> generate the simulation.  I also perform checking vehicle counts and speed
> read by those sensors. I computed the average vehicle counts and speed and
> plot them versus the real information from sensors. However, for vehicle
> counts, the SUMO result matches the real counts in the first initial period
> and then starts to decrease. Moreover, for vehicle speeds, the SUMO speed
> information read by sensors are quite low, roughly half the real speed. Is
> there anyway that I should do to debug this?
> Thank you so much.
> Best regards,Tran
>
> --
> 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
> sumo-user@lists.sourceforge.net
> 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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] (no subject)

2016-03-04 Thread Jakob Erdmann
Tkinter should be fine if you use the python client

2016-03-03 18:01 GMT+01:00 Robbin Blokpoel :

> Hi Pradeep,
>
> You can just use a TRACI command to inject a vehicle, TRACI is very well
> described on the SUMO wiki. Put some code of yourself around it to arrange
> the GUI controls.
>
> Regards,
> Robbin
>
> 
> From: Pradeep Kumar Yadav 
> Sent: 03 March 2016 17:30
> To: sumo-user@lists.sourceforge.net
> Subject: [sumo-user] (no subject)
>
> Dear Users and Experts
>
> I am new to SUMO and I am working on a project which revolves around the
> idea of detecting vehicle count at junctions and providing signal timer
> according to it.
>
> Now i want to show my supervisors how my algorithm react to different
> traffic situations using a graphical user interface. In addition to the GUI
> already provided with package,I want to add some controls which let them
> control traffic arrival rate at the junction.
>
> I am working in python using Traci. My script works but i have to set
> traffic incoming rate at the start of the execution itself. I want to give
> user a range element(like tkinter Scale element) to change traffic arrival
> rate in between running simulation .How should i go about building these
> GUI controls. Can i use python's tkinter library. Can someone please refer
> me to similar projects.
>
> Thank you.
>
> --
> 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
> sumo-user@lists.sourceforge.net
> 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
> sumo-user@lists.sourceforge.net
> 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
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user