[sumo-user] (no subject)

2020-07-22 Thread Eugene Vinitsky
Dear all,

I have configured an on-ramp merge but am regularly seeing collisions on it
as well as an odd phenomenon where the vehicles move incredibly slowly on
the junction,
I've tried both:
1. setting speed mode to make sure it's set to 25
2. increasing the length of the merge section

Is there anything else that could be causing it? I can provide a picture if
it's helpful.

Thanks!
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Change the volume of traffic flows in TraCI

2020-07-22 Thread MohamadReza-Haghani
Hi,

I am writing a code in TraCI module of Python. I was wondering to know
whether there is any way to change the traffic volume of a flow in TraCI. I
appreciate for any help.

Best,
Reza.



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] speedFactor does not change the speed and travel time

2020-07-22 Thread Solmaz Razmi Rad - CITG
Dear Laura,

I could not see the speed difference because the speedfactor was not working. I 
had defined the speed factor as a vehicle attribute and this was the problem.
I used the “createVehTypeDistribution.py” and generated a series of speed 
factors. Then I used the type generated by this python code in my route file.

Regards,
Solmaz

From: sumo-user-boun...@eclipse.org  On Behalf 
Of Laura Bieker
Sent: woensdag 22 juli 2020 13:42
To: Sumo project User discussions 
Subject: Re: [sumo-user] speedFactor does not change the speed and travel time

Dear Solmaz,

did you have a look in sumo-gui to check whether the vehicle are able to drive 
with a higher speed for a short time or is there maybe a traffic light or other 
vehicles blocking so that the travel time is not chaging?

Best regards,
Laura

Am Di., 21. Juli 2020 um 17:02 Uhr schrieb Solmaz Razmi Rad - CITG 
mailto:s.razmi...@tudelft.nl>>:
Dear all,

I am trying to understand the following sentence in the wiki:

Using speedFactor="normc(1,0.1,0.2,2)" will result in a speed distribution 
where 95% of the vehicles drive between 80% and 120% of the legal speed limit.

Let’s say the legal speed limit is defined as 100 kph in the net file. From 
what I understood, if I increase the first number which is the mean (for 
example from 1 to 2) the speed should be increased to 200% of the legal speed 
limit (200kph) for 95% of the vehicles. The min and max (0.2 and 2 
respectively) make sure the chosen speed is not lower than 20%  (20kph) and 
higher than 200% (200kph) of the legal speed limit.
I tried to change the speed factor to increase the speed and expected lower 
travel time and higher speed. But changing the speed factor does not change the 
travel time at all.
I even used the normal distribution without cut-off. speedFactor="norm(2,0)" 
should increase the speed by 200kph for all vehicles (given that the std is 
zero). But again, there is no change in travel time and speed.

Regards,
Solmaz
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] speedFactor does not change the speed and travel time

2020-07-22 Thread Solmaz Razmi Rad - CITG
Hi Giuliana,

Thanks for your helpful answer. I had defined the speed factor as a vehicle 
attribute and this was the problem.
I used the "createVehTypeDistribution.py" and generated a series of speed 
factors. Then I used the type generated by this python code in my route file. 
It works :)

Regards,
Solmaz


From: sumo-user-boun...@eclipse.org  On Behalf 
Of maria.armell...@dlr.de
Sent: woensdag 22 juli 2020 15:36
To: sumo-user@eclipse.org
Subject: Re: [sumo-user] speedFactor does not change the speed and travel time

Hi Solmaz,

you should see changes in the travel time. How are you defining the speed 
factor?

I think there are some problems if you use a distribution for speed factor as a 
vehicle attribute, like this:

or



But if you define a vehicle type with the desired speed factor distribution and 
then use this type for the vehicles or flows, it should work:


or




Regards,
Giuliana

From: sumo-user-boun...@eclipse.org 
[mailto:sumo-user-boun...@eclipse.org] On Behalf Of Solmaz Razmi Rad - CITG
Sent: Dienstag, 21. Juli 2020 17:02
To: Sumo project User discussions
Subject: [sumo-user] speedFactor does not change the speed and travel time

Dear all,

I am trying to understand the following sentence in the wiki:

Using speedFactor="normc(1,0.1,0.2,2)" will result in a speed distribution 
where 95% of the vehicles drive between 80% and 120% of the legal speed limit.

Let's say the legal speed limit is defined as 100 kph in the net file. From 
what I understood, if I increase the first number which is the mean (for 
example from 1 to 2) the speed should be increased to 200% of the legal speed 
limit (200kph) for 95% of the vehicles. The min and max (0.2 and 2 
respectively) make sure the chosen speed is not lower than 20%  (20kph) and 
higher than 200% (200kph) of the legal speed limit.
I tried to change the speed factor to increase the speed and expected lower 
travel time and higher speed. But changing the speed factor does not change the 
travel time at all.
I even used the normal distribution without cut-off. speedFactor="norm(2,0)" 
should increase the speed by 200kph for all vehicles (given that the std is 
zero). But again, there is no change in travel time and speed.

Regards,
Solmaz
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] speedFactor does not change the speed and travel time

2020-07-22 Thread Maria.Armellini
Hi Solmaz,

you should see changes in the travel time. How are you defining the speed 
factor?

I think there are some problems if you use a distribution for speed factor as a 
vehicle attribute, like this:

or



But if you define a vehicle type with the desired speed factor distribution and 
then use this type for the vehicles or flows, it should work:


or




Regards,
Giuliana

From: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] On 
Behalf Of Solmaz Razmi Rad - CITG
Sent: Dienstag, 21. Juli 2020 17:02
To: Sumo project User discussions
Subject: [sumo-user] speedFactor does not change the speed and travel time

Dear all,

I am trying to understand the following sentence in the wiki:

Using speedFactor="normc(1,0.1,0.2,2)" will result in a speed distribution 
where 95% of the vehicles drive between 80% and 120% of the legal speed limit.

Let's say the legal speed limit is defined as 100 kph in the net file. From 
what I understood, if I increase the first number which is the mean (for 
example from 1 to 2) the speed should be increased to 200% of the legal speed 
limit (200kph) for 95% of the vehicles. The min and max (0.2 and 2 
respectively) make sure the chosen speed is not lower than 20%  (20kph) and 
higher than 200% (200kph) of the legal speed limit.
I tried to change the speed factor to increase the speed and expected lower 
travel time and higher speed. But changing the speed factor does not change the 
travel time at all.
I even used the normal distribution without cut-off. speedFactor="norm(2,0)" 
should increase the speed by 200kph for all vehicles (given that the std is 
zero). But again, there is no change in travel time and speed.

Regards,
Solmaz
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Rerouting the vehicle due to lane blockage

2020-07-22 Thread Laura Bieker
Dear Anil,

for question 1: please have a look here:
https://sumo.dlr.de/docs/FAQ.html#how_to_simulate_an_accident

and for your 2: https://sumo.dlr.de/docs/Demand/Automatic_Routing.html or
you can use TraCI to for rerouting
https://sumo.dlr.de/pydoc/traci._vehicle.html

If you use TraCI the changes are only during the runtime of the current
simulation and not permanent in the configuration files.

Best regards,
Laura

Am Fr., 17. Juli 2020 um 20:06 Uhr schrieb anilbaral :

> Hi all,
> I have generated the vehicle using routeSampler.py. I want to study the
> time
> delay that can be caused due to blockage of certain lanes in the network. I
> am having two problems:
> 1. How can we create a lane blockage in SUMO?
> 2. The vehicles that I generated using routeSampler.py won't reroute
> itself.
> What options are available to reroute the vehicle in case of lane blockage
> or traffic congestion?
>
> Also, Is there any TRACI function to determine the travel time of the
> vehicles?
> If I change the vehicle state or lane state using TRACI, is it permanently
> changed in the network file?
>
> Thanks,
> Anil
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Previous stage output not available in TraCI

2020-07-22 Thread Tripplanner Mumbai
Finally, I installed SUMO through the command line (sudo apt install SUMO)
and tried to get the previous stage data through TraCI but again the same
issues persist here, i.e., it goes for exception and the program stops.
It is a prolonged question which is yet to be answered by anyone, will I
get an answer for it?

On Sat, 11 Jul 2020 at 11:53, Tripplanner Mumbai 
wrote:

> Again, accessing previous stage data leads to error when I tried with the
> latest development version which was updated on July 9.
>
> On Thu, 9 Jul 2020 at 17:20, Tripplanner Mumbai 
> wrote:
>
>> Hello,
>>
>> I had raised this question long time ago that the TraCI program is unable
>> to find the  previous stage information incase the current stage has been
>> completed successfully. Particularly I was trying to extract the following
>> information from the previous stage.
>>
>> * print("previous
>> stage","type",prevStage.type,"dest",prevStage.destStop,"travel time",
>> prevStage.travelTime, "distance",prevStage.length,"depart  time",
>> prevStage.depart)*
>>
>> Unfortunately, the output does not contain all the required information,
>> as shown below.
>>  *previous stage type 3 dest busStop#12 travel time -1.0
>> distance 672.437702712895 depart time -0.001*
>>
>> @Jakob replied: that information was previously missing from the stage
>> output (https://github.com/eclipse/sumo/issues/7274). You can download
>> the updated version tomorrow and find out the desired result.
>>
>> Surprisingly, when I tried to execute the TraCI code (demo-i.py) after
>> installing the latest version (updated on July 5),  I got some
>> exceptions now which were not there in the previous versions. In particular
>> I am getting the following error:
>>   *Error in Previous Stage retrieval, so, skip this personID:
>>  2229*
>> * , *which is due to line number 97 in my TraCI program.
>>
>> Kindly check the issues in the development version and suggest to me. I
>> am enclosing the network and corresponding codes for tracing the issue.
>>
>> regards,
>> Dillip Rout
>>
>>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] The moto stops after moveToXY

2020-07-22 Thread 謝昀宸
I want to let moto avoid vehicle which parked on the road and this
avoidance is in the same lane

Using Traci's moveToXY (traci.vehicle.moveToXY(veh, edge, lane, x, y + 2,
angle=tc.INVALID_DOUBLE_VALUE,keepRoute=2) (tried all keepRoute
But after the y-coordinate of moto is shifted, it doesn’t move forward
anymore, and it doesn’t move forward together until the car is moving.

How can I  solve this problem?

Many thanks,
Yun
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] speedFactor does not change the speed and travel time

2020-07-22 Thread Laura Bieker
Dear Solmaz,

did you have a look in sumo-gui to check whether the vehicle are able to
drive with a higher speed for a short time or is there maybe a traffic
light or other vehicles blocking so that the travel time is not chaging?

Best regards,
Laura

Am Di., 21. Juli 2020 um 17:02 Uhr schrieb Solmaz Razmi Rad - CITG <
s.razmi...@tudelft.nl>:

> Dear all,
>
>
>
> I am trying to understand the following sentence in the wiki:
>
>
>
> *Using speedFactor="normc(1,0.1,0.2,2)" will result in a speed
> distribution where 95% of the vehicles drive between 80% and 120% of the
> legal speed limit.*
>
>
>
> Let’s say the legal speed limit is defined as 100 kph in the net file.
> From what I understood, if I increase the first number which is the mean
> (for example from 1 to 2) the speed should be increased to 200% of the
> legal speed limit (200kph) for 95% of the vehicles. The min and max (0.2
> and 2 respectively) make sure the chosen speed is not lower than 20%
>  (20kph) and higher than 200% (200kph) of the legal speed limit.
>
> I tried to change the speed factor to increase the speed and expected
> lower travel time and higher speed. But changing the speed factor does not
> change the travel time at all.
>
> I even used the normal distribution without cut-off.
> speedFactor="norm(2,0)" should increase the speed by 200kph for all
> vehicles (given that the std is zero). But again, there is no change in
> travel time and speed.
>
>
>
> Regards,
>
> Solmaz
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Access vehicles that arrive in the next step

2020-07-22 Thread Laura Bieker
Hello Marcel,

you could use also use he function getDepartedIDList (
https://sumo.dlr.de/pydoc/traci._simulation.html#SimulationDomain-getDepartedIDList)
to receive the Vehicle IDs which were inserted into the simulation and
change then the parameter for these vehicles and maybe back if you only
want this for a specific period of time.

Best regards,
Laura

Am Di., 21. Juli 2020 um 09:58 Uhr schrieb marcelreppi <
marcelre...@gmail.com>:

> Hello,
>
> I wanted to add a parameter to vehicles that have arrived based on a
> certain
> condition using TraCI so that it shows up in the routes-info output.
> However, when I iterate through traci.simulation.getArrivedIDList() and try
> to add a parameter I get an error because the vehicle was already removed
> from the simulation.
>
> Is there a way to access these vehicles one step before they arrive?
> Or would it be possible to move the actual removal of the vehicles to the
> following simulation step?
>
> Thank you very much!
>
> Best regards
> Marcel
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Issues with Vehicles in Simulation

2020-07-22 Thread Maria.Armellini
Hi,

sorry for the delay in response.



*Regarding the lane problem, have you checked the vehicle routes and 
the connections at the junction in the picture you send and at the next 
junction? In this picture you can see an example of what I mean.

[cid:image003.jpg@01D66008.F4910D40]

If you have a net like that and your vehicles want to go from edge gneE0 to 
gneE3, they will use only the middle lane on the edge gneE0, because if they 
take the right lane, then on the edge gneE1 they will not be able to go 
straight, they can only turn right towards edge gneE5. I hope this is 
understandable.



* I don't understand this error, could you explain it a bit more?  Are 
they stopping because of congestion? "I've also had vehicles stopping in the 
middle of intersections, which I would like to avoid."

Regards,
Giuliana

From: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] On 
Behalf Of Elliot W
Sent: Donnerstag, 9. Juli 2020 10:26
To: sumo-user@eclipse.org
Subject: [sumo-user] Issues with Vehicles in Simulation

Hi all,

When I run the simulation, the vehicles do not use all the lanes available, as 
shown.
[cid:image004.png@01D66008.F4910D40]
I'm currently generating individual Vehicles in my rou.xml file, similar to the 
TraCI tutorial (not using Flows).
I've tried adding a vType with [lcStrategic="100" lcKeepRight="100" 
lcSpeedGain="100" lcCooperative="1" lcSublane = "100"], and setting all the 
generated vehicles to be of that type, but to no luck.
I've also had vehicles stopping in the middle of intersections, which I would 
like to avoid.

Please let me know how I can resolve these issues.

TIA
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user