Re: [sumo-user] Rerouting Multiple Vehicles

2018-04-11 Thread Jakob Erdmann
Hello,
this is due to the functionality of
rerouteTraveltime(currentTravelTimes=True).
In order to use the current travel times, all edges are queried for their
current travel time and these values are stored for the router to use. This
is only done once per simulattion step but may take some time for large
networks.
If you have a large network where lots of edges receive little traffic it
may be better to set currentTravelTimes=False and perform this update in
your own code for a subset of relevant edges. See the implementation of
rerouteTraveltime() at sumo/tools/traci/_vehicle.py.

regards,
Jakob

2018-04-11 23:34 GMT+02:00 Jonathan Harper via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Hello,
>
> An observation I’ve had when rerouting many vehicles at once (going
> through a list of vehicles and rerouting them one after the other) is that
> the rerouting of the first vehicle seemingly takes by far the longest
> (sometimes being up to 10 seconds), whereas the other vehicles present in
> the lift are rerouted instantaneously without noticeable delay. This has
> been checked with debugging and regardless of any changes made to the code
> the first rerouting always takes a significant amount of time. Even when
> not iterating through vehicles and simply rerouting a single vehicle x
> amount of times (in a while loop), the first rerouting still takes the
> longest.
>
> Have you observed this? And if not, do you think this may be down to some
> type of hardware limitation?
>
> Kind regards,
> Jonathan
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> --
> 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-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] (no subject)

2018-04-11 Thread Jakob Erdmann
Hello,
You can use traci.vehicle.getNextTLS(). As soon as the tls is no longer in
the returned list of upcoming traffic lights, you can be sure that it has
been passed.
regards,
Jakob

2018-04-11 13:27 GMT+02:00 Mouna Karoui via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Dear sumo users,
>
> How  can I verify that vehicles are crossed a traffic light or not ?
>
> In fact, I developed this code;
>
>  verifyPassage(std::string tlsID)
> {
> bool passage;
> double p=0;
> std::vector ctrlLink;
>
> ctrlLink=
> vehicle->getLiteAPI().trafficlights().getControlledLinks(tlsID);
> std::string
> laneId=vehicle->getLiteAPI().vehicle().getLaneID(vehicle->getVehicleId());
>
> if(tlsIndex==1){
> for (int i=0; i <  ctrlLink.size(); ++i)
> {
>   for (int j=0; j <  ctrlLink[i].size(); ++j)
>   {
> if (ctrlLink[i][j].to == laneId) {
> passage=true;
> p=1;
> p_vec.record(p);
> return passage;
>  }
> else
> {
>   passage=false;
>   p=2;
>   p_vec.record(p);
>   return passage;
> }
> }
> }
> }
> }
>
> But it always return false. How can I rectify it ?  I have dificulties to
> understand getControlledLink() code  ??
>
> Best regards,
> 
> --
> 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-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Emission Definitions - HBEFA3

2018-04-11 Thread Manoel J .
Hello there,

My simulation is running normally and my output xml seems to be working fine. 
The problem is that some outputs, like NOx (for vans) and PMx (for trucks) are 
returning 0. These are my vehicle definitions:


  
  
  
  
  


What parameters should I use in place of "HBFEA3/HDV" and "HBFEA3/LDV" to 
define passenger vans' and trucks' emissions?

Regards!


Manoel Joaquim Rodrigues Barroso Neto

Bacharelando em Engenharia Civil

Universidade Federal de Juiz de Fora

(+55) 21-97255-8366
(+55) 32-98418-7950
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] A question about timestep and tau

2018-04-11 Thread Jakob Erdmann
Did you install version 0.32.0 or did you use the latest development
version from here:
http://sumo.dlr.de/wiki/Downloads#SUMO_-_Latest_Development_Version ?

You can obtain queue-length using the lanearea detector:
http://sumo.dlr.de/wiki/Simulation/Output/Lanearea_Detectors_(E2)

A good measure of congestion is time loss. A global value can be obtained
by activating the statistics output:
http://sumo.dlr.de/wiki/Simulation/Output#Aggregated_Traffic_Measures

regards,
Jakob

2018-04-11 19:33 GMT+02:00 Rahimi, Tariq Rahim <
tariqrahim.rah...@rockets.utoledo.edu>:

> I appreciate your response,
>
>
> I installed the newer version just yesterday and I am still getting
> waitSteps in the Tripinfo output and I don't get any waitingTime.
>
>
> Additionally, where can I get a good measure of queue length and
> congestion?
>
>
> Thank you,
>
>
> * - Tariq R Rahimi*
>
> --
> *From:* Jakob Erdmann 
> *Sent:* Tuesday, April 10, 2018 3:00:19 AM
> *To:* Rahimi, Tariq Rahim
> *Cc:* Sumo project User discussions
> *Subject:* Re: A question about timestep and tau
>
> Hello,
> The value of waitSteps counts the number of simulation steps in which a
> vehicle was waiting. So if your vehicle waits for 3 seconds and you
> simulation with --step-length 0.2 that would be 15 waitSteps.
> In the latest development version, the attribute waitSteps is replaced
> with waitingTime which is measured in seconds. (http://sumo.dlr.de/wiki/
> ChangeLog#Git_master
> 
> ).
>
> The value of tau determines the desired time-headway between successive
> vehicles. The exact usage of this value depends on the car following model
> (see http://sumo.dlr.de/wiki/Definition_of_Vehicles,_
> Vehicle_Types,_and_Routes#Car-Following_Models
> 
> )
>
> To model different perception-reaction times, see
> http://sumo.dlr.de/wiki/Car-Following-Models#Model_Parameters
> 
>
> regards,
> Jakob
>
>
>
> 2018-04-10 2:50 GMT+02:00 Rahimi, Tariq Rahim  utoledo.edu>:
>
> Hello everyone,
>
>
> When I output the tripinfo, it says waitSteps= an integer value. How can I
> get this or the total waiting time for each vehicle in seconds? Also, how
> can I calculate a queue length?
>
>
> What is the concept of time Step? when I generate a route file with 12
> vehicles departing at the same time step but in different time frame, such
> as the first vehicle departs at 0 seconds, the second at 3rd second, the
> third one in 6th second but they all are departing at the same time step.
> Here, the time step in 9 seconds. 10 minutes later, there are 5 vehicles
> departing at the same time step and the time step there becomes 5 seconds.
>
>
> What can I make of time step if I want to calculate the waiting time at an
> intersection?
>
>
> Also, any ideas on what does tau trigger? what file can I find it's source
> code and what functions are related to it? I want to simulate different
> perception-reaction times (0.5 second, 1 second, 2 seconds), How should I
> go for it?
>
>
> Thank you,
>
>
> * - Tariq R Rahimi*
> Graduate Student
>
>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] (no subject)

2018-04-11 Thread Mouna Karoui via sumo-user
Dear sumo users,

How  can I verify that vehicles are crossed a traffic light or not ?

In fact, I developed this code;

 verifyPassage(std::string tlsID)
{
bool passage;
double p=0;
std::vector ctrlLink;

ctrlLink=
vehicle->getLiteAPI().trafficlights().getControlledLinks(tlsID);
std::string
laneId=vehicle->getLiteAPI().vehicle().getLaneID(vehicle->getVehicleId());

if(tlsIndex==1){
for (int i=0; i <  ctrlLink.size(); ++i)
{
  for (int j=0; j <  ctrlLink[i].size(); ++j)
  {
if (ctrlLink[i][j].to == laneId) {
passage=true;
p=1;
p_vec.record(p);
return passage;
 }
else
{
  passage=false;
  p=2;
  p_vec.record(p);
  return passage;
}
}
}
}
}

But it always return false. How can I rectify it ?  I have dificulties to
understand getControlledLink() code  ??

Best regards,
--
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-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Using flows after loading a simulation state

2018-04-11 Thread Jakob Erdmann
Hello,
Yesterday we had a broken windows build due to a bad commit and today the
build did not take place due to the repository migration.
It should be back to normal by tomorrow.
regards,
Jakob

2018-04-11 10:26 GMT+02:00 Jakob Kaths :

> Sorry that I have to come back to this. I wanted to try the fix, but the
> current nightly snapshots (today and yesterday) seem to be lacking the SUMO
> and SUMO-GUI executables, while netedit.exe is still available in the bin
> Folder.
>
>
>
> *Von:* Jakob Erdmann 
> *Gesendet:* Montag, 9. April 2018 12:43
> *An:* Jakob Kaths ; Sumo project User discussions <
> sumo-user@eclipse.org>
> *Betreff:* Re: [sumo-user] Using flows after loading a simulation state
>
>
>
> Hello Jakob,
>
> the aforementioned bug is fixed in the latest development version. When
> loading simulation state that contains flows, make sure to load the
> original route files that were used when saving the state. You do not need
> to manage begin and end time as this is handled by sumo. Just define your
> flow as
>
>  begin='0' end='3600' vehsPerHour='1800' type='CarDistribution'
> departLane='random' departPos='base' departSpeed='max'/>
>
> regards,
> Jakob
>
>
>
>
>
> 2018-04-08 21:53 GMT+02:00 Jakob Erdmann :
>
> Hello Jakob,
>
> yes, this is a bug (https://github.com/DLR-TS/sumo/issues/3971).
>
> It should not be necessary to load flows again after saving.
>
> Thank you for bringing this to my attention.
>
> regards,
>
> Jakob
>
>
>
> 2018-04-06 13:20 GMT+02:00 Jakob Kaths :
>
> Hello everybody,
>
> I’m already bothering you with my next question. I tried creating a saved
> simulation state and reloading it afterwards, which works in principle, but
> it seems I can’t use flows afterwards anymore, but would have to define
> every vehicle explicitly. Is that correct?
>
> A part of my demand definition looks as follows:
>
> This would be before saving the state:
>
>  begin='0' end='100' vehsPerHour='1800' type='CarDistribution'
> departLane='random' departPos='base' departSpeed='max'/>
>
> And this after:
>
>  to="-2013000.186.34" begin='110' end='3600' vehsPerHour='1800'
> type='CarDistribution' departLane='random' departPos='base'
> departSpeed='max'/>
>
> So basically, I got the same flows again with a different name and create
> more vehicles after the state is loaded. However, I receive an error
> message that the first vehicle with the ID South_to_North_Car_continuous.0
> has no valid route.
>
> Is this a bug or is it simply not possible to create flows after the
> simulation has already begun?
>
> Thanks
>
> Jakob
>
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
>
>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Using flows after loading a simulation state

2018-04-11 Thread Jakob Kaths
Sorry that I have to come back to this. I wanted to try the fix, but the 
current nightly snapshots (today and yesterday) seem to be lacking the SUMO and 
SUMO-GUI executables, while netedit.exe is still available in the bin Folder.
 
Von: Jakob Erdmann  
Gesendet: Montag, 9. April 2018 12:43
An: Jakob Kaths ; Sumo project User discussions 

Betreff: Re: [sumo-user] Using flows after loading a simulation state
 
Hello Jakob,
the aforementioned bug is fixed in the latest development version. When loading 
simulation state that contains flows, make sure to load the original route 
files that were used when saving the state. You do not need to manage begin and 
end time as this is handled by sumo. Just define your flow as 


regards,
Jakob 
 
 
2018-04-08 21:53 GMT+02:00 Jakob Erdmann :
Hello Jakob,
yes, this is a bug (https://github.com/DLR-TS/sumo/issues/3971).
It should not be necessary to load flows again after saving.
Thank you for bringing this to my attention. 
regards,
Jakob
 
2018-04-06 13:20 GMT+02:00 Jakob Kaths :
Hello everybody,
I’m already bothering you with my next question. I tried creating a saved 
simulation state and reloading it afterwards, which works in principle, but it 
seems I can’t use flows afterwards anymore, but would have to define every 
vehicle explicitly. Is that correct? 
A part of my demand definition looks as follows:
This would be before saving the state:

And this after:

So basically, I got the same flows again with a different name and create more 
vehicles after the state is loaded. However, I receive an error message that 
the first vehicle with the ID South_to_North_Car_continuous.0 has no valid 
route.
Is this a bug or is it simply not possible to create flows after the simulation 
has already begun?
Thanks
Jakob 
 
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Statistics on researches by SUMO

2018-04-11 Thread Jakob Erdmann
Hello,
- there was a comprehensive study in 2013: http://elib.dlr.de/82739/
- Google scholar gives 18k hits one sumo simulation:
  https://scholar.google.de/scholar?hl=en_sdt=0%2C5=
sumo+simulation=
- the combined number of citations for sumo reference publications as
listed on researchgate is 1700
- sourceforge registers 30k+ annual downloads with a nice trendline:
https://sourceforge.net/projects/sumo/files/sumo/
stats/timeline?dates=2005-03-19+to+2018-03-19

regards,
Jakob

2018-04-10 13:59 GMT+02:00 François Vaudrin via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Hallo,
>
> I would like to cite statistics on the approximate number of researches or
> citations in connection with SUMO.
> This information is it available ?
>
> Thank you,
>
> François
> 
> --
> 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-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user