Re: [sumo-user] Charging data using TraCI subscriptions

2020-08-05 Thread Padisala, Shanthan Kumar
*** Clarification to my previous question ***

I am currently using the command - traci.vehicle.getParameter('Vehicle', 
'device.battery.actualBatteryCapacity')  to get the information on the battery 
capacity at the current time step. However, I would like to use TraCI 
subscriptions for the same task.

I understand that using TraCI subscriptions I can get data of the vehicle like  
speed using the commands - traci.vehicle.subscribe('Vehicle', (tc.VAR_ROAD_ID)) 
and traci.vehicle.getSubscriptionResults('Vehicle'). So now basically I would 
like to use the same logic to get data from a device- battery.

Thank you,
PSK

From: Padisala, Shanthan Kumar
Sent: Wednesday, August 5, 2020 6:53 PM
To: Sumo project User discussions 
Subject: Charging data using TraCI subscriptions

Dear Jakob,

Greetings!

I am trying to use subscriptions to get the charging data (energy input or any 
other relevant data) of an electric vehicle when it is being charged at the 
charging station. But I am unable to figure out the TraCI subscription commands 
that are used to do this. Could you kindly help me out with this?

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


[sumo-user] Charging data using TraCI subscriptions

2020-08-05 Thread Padisala, Shanthan Kumar
Dear Jakob,

Greetings!

I am trying to use subscriptions to get the charging data (energy input or any 
other relevant data) of an electric vehicle when it is being charged at the 
charging station. But I am unable to figure out the TraCI subscription commands 
that are used to do this. Could you kindly help me out with this?

Thank you,
PSK
___
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] The definition of time loss in tripinfo output

2020-08-05 Thread Jakob Erdmann
The formula I wrote corresponds to the value of v_max in Michaels formula
(to explain that your change in driving speed triggers timeLoss whenever
your set v differs from v_max).

Am Mi., 5. Aug. 2020 um 18:44 Uhr schrieb Radha Reddy <
radha.reddy@gmail.com>:

> But for me Michael sent the following formulation. Now I am confused.
>
> Hi,
> the time loss in a single time step is calculated as
>  step_length * (1 - v / v_max)
> where v_max takes into account the speedFactor, maxSpeed on the lane and
> the vType. For a time interval it is simply summed up.
>
> Best regards,
> Michael
>
> Regards
> Radha
>
> On Tue, Aug 4, 2020 at 2:39 AM MohamadReza-Haghani 
> wrote:
>
>> Thank you very much for your answer.
>>
>>
>>
>> --
>> 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
>
___
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] The definition of time loss in tripinfo output

2020-08-05 Thread Radha Reddy
But for me Michael sent the following formulation. Now I am confused.

Hi,
the time loss in a single time step is calculated as
 step_length * (1 - v / v_max)
where v_max takes into account the speedFactor, maxSpeed on the lane and
the vType. For a time interval it is simply summed up.

Best regards,
Michael

Regards
Radha

On Tue, Aug 4, 2020 at 2:39 AM MohamadReza-Haghani 
wrote:

> Thank you very much for your answer.
>
>
>
> --
> 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


[sumo-user] help

2020-08-05 Thread NaolyTech
Dear my friends, how are you doing? I really miss you. Thank you for your
kindly response really.

In my vanet simulation work, i confused on the following things to go
forward:
   But before that:
1) I created highway road of 2500 length with two direction with 4
lanes per   direction.
2) I created the routes for 300 vehicles and some attributes
3) I created SUMO configuration file for two files above
4) Then I created SUMO trace file from .sumocfg file created above
using:
   "sumo -c name.sumocfg --fcd-output sumoTrace.xml"
5) Then I generated ns2mobility file using:
   "python traceExporter.py --fcd-input sumoTrace.xml
--ns2mobility-output mobility.tcl"

After all these work done, i stopped where to go because my targets are:
  1) applying BSM (Basic Safety Mesaage) application on the scenario i
created above highway road 2500m long with 300 vehicle above.

   2) storing produced vehicles bsm trace file in "anyName.csv file"  from
communication taken place among vehicles I created on the above scenarios.

 ..So how can make these all
???..
I hope you have got my idea and help me on these points.

Thank you
Naol
___
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] Manually controlled vehicles

2020-08-05 Thread Jakob Erdmann
I hope one of our VEINS experts can answer this because I don't know.

Am Mi., 5. Aug. 2020 um 13:23 Uhr schrieb Traboulsi, Abdullah <
at...@njit.edu>:

> Thank you so much Jakob.
>
> If I want to run the command *"traci.vehicle.getLeader(vehID, 1000)"* in
> VEINS instead of python, is it possible?
> How may I know what template for VEINS to use?
> It is a bit confusing.
>
> Thank you again and best regards
>
>
>
>
> On Wed, Aug 5, 2020 at 7:08 AM Jakob Erdmann 
> wrote:
>
>> The getLeader function limits it's lookahead range to the braking
>> distance by default. You could try calling traci.vehicle.getLeader(vehID,
>> 1000)
>>
>> Am Fr., 3. Juli 2020 um 12:52 Uhr schrieb Traboulsi, Abdullah <
>> at...@njit.edu>:
>>
>>> Thanks Jakob,
>>>
>>> I have set the speedMode = 7 (Regard Safe Speed, Regard Max
>>> Acceleration, Regard Max Deceleration).
>>> But still the vehicle wouldn't speed up to join the fron vehicle platoon.
>>> If I check the leader distance for this vehicle using getLeader()
>>> function, then this vehicle has None as Leader.
>>>
>>> I really appreciate your help.
>>>
>>> Best regards
>>>
>>>
>>> On Fri, Jul 3, 2020 at 4:26 AM Jakob Erdmann 
>>> wrote:
>>>
 see
 https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3

 Am Do., 2. Juli 2020 um 20:53 Uhr schrieb Traboulsi, Abdullah <
 at...@njit.edu>:

> Thank you for your reply.
>
> I am using the TraCI commands to create vehicles and control them by
> changing tau, setSpeed. But it is not moving a vehicle closer to the
> leading vehicle.
>
> Best regards
>
> On Thu, Jul 2, 2020 at 2:48 PM Padisala, Shanthan Kumar <
> padisal...@buckeyemail.osu.edu> wrote:
>
>> You can instead use TraCI commands to define the vehicle and control
>> it.
>>
>> -PSK
>> --
>> *From:* sumo-user-boun...@eclipse.org 
>> on behalf of Traboulsi, Abdullah 
>> *Sent:* Thursday, July 2, 2020 2:43:49 PM
>> *To:* Sumo project User discussions 
>> *Subject:* [sumo-user] Manually controlled vehicles
>>
>> Hi,
>>
>> I am trying to take complete control of vehicle speed acceleration
>> ..etc.
>> But whenever I define vehicles using  tags in routes
>> and run the simulation, it will be automatically assigned with Car
>> Following Model and LCModel.
>> These models will control the vehicle using the defined algorithm.
>>
>> Is it possible to define vehicles with no control from simulator?
>> If yes, then how to do so please?
>>
>> Thank you and regards
>> ___
>> 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
>
 ___
 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
>>>
>> ___
>> 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
>
___
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] Manually controlled vehicles

2020-08-05 Thread Traboulsi, Abdullah
Thank you so much Jakob.

If I want to run the command *"traci.vehicle.getLeader(vehID, 1000)"* in
VEINS instead of python, is it possible?
How may I know what template for VEINS to use?
It is a bit confusing.

Thank you again and best regards




On Wed, Aug 5, 2020 at 7:08 AM Jakob Erdmann  wrote:

> The getLeader function limits it's lookahead range to the braking distance
> by default. You could try calling traci.vehicle.getLeader(vehID, 1000)
>
> Am Fr., 3. Juli 2020 um 12:52 Uhr schrieb Traboulsi, Abdullah <
> at...@njit.edu>:
>
>> Thanks Jakob,
>>
>> I have set the speedMode = 7 (Regard Safe Speed, Regard Max Acceleration,
>> Regard Max Deceleration).
>> But still the vehicle wouldn't speed up to join the fron vehicle platoon.
>> If I check the leader distance for this vehicle using getLeader()
>> function, then this vehicle has None as Leader.
>>
>> I really appreciate your help.
>>
>> Best regards
>>
>>
>> On Fri, Jul 3, 2020 at 4:26 AM Jakob Erdmann 
>> wrote:
>>
>>> see
>>> https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3
>>>
>>> Am Do., 2. Juli 2020 um 20:53 Uhr schrieb Traboulsi, Abdullah <
>>> at...@njit.edu>:
>>>
 Thank you for your reply.

 I am using the TraCI commands to create vehicles and control them by
 changing tau, setSpeed. But it is not moving a vehicle closer to the
 leading vehicle.

 Best regards

 On Thu, Jul 2, 2020 at 2:48 PM Padisala, Shanthan Kumar <
 padisal...@buckeyemail.osu.edu> wrote:

> You can instead use TraCI commands to define the vehicle and control
> it.
>
> -PSK
> --
> *From:* sumo-user-boun...@eclipse.org 
> on behalf of Traboulsi, Abdullah 
> *Sent:* Thursday, July 2, 2020 2:43:49 PM
> *To:* Sumo project User discussions 
> *Subject:* [sumo-user] Manually controlled vehicles
>
> Hi,
>
> I am trying to take complete control of vehicle speed acceleration
> ..etc.
> But whenever I define vehicles using  tags in routes
> and run the simulation, it will be automatically assigned with Car
> Following Model and LCModel.
> These models will control the vehicle using the defined algorithm.
>
> Is it possible to define vehicles with no control from simulator?
> If yes, then how to do so please?
>
> Thank you and regards
> ___
> 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

>>> ___
>>> 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
>>
> ___
> 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] Manually controlled vehicles

2020-08-05 Thread Jakob Erdmann
The getLeader function limits it's lookahead range to the braking distance
by default. You could try calling traci.vehicle.getLeader(vehID, 1000)

Am Fr., 3. Juli 2020 um 12:52 Uhr schrieb Traboulsi, Abdullah <
at...@njit.edu>:

> Thanks Jakob,
>
> I have set the speedMode = 7 (Regard Safe Speed, Regard Max Acceleration,
> Regard Max Deceleration).
> But still the vehicle wouldn't speed up to join the fron vehicle platoon.
> If I check the leader distance for this vehicle using getLeader()
> function, then this vehicle has None as Leader.
>
> I really appreciate your help.
>
> Best regards
>
>
> On Fri, Jul 3, 2020 at 4:26 AM Jakob Erdmann 
> wrote:
>
>> see
>> https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3
>>
>> Am Do., 2. Juli 2020 um 20:53 Uhr schrieb Traboulsi, Abdullah <
>> at...@njit.edu>:
>>
>>> Thank you for your reply.
>>>
>>> I am using the TraCI commands to create vehicles and control them by
>>> changing tau, setSpeed. But it is not moving a vehicle closer to the
>>> leading vehicle.
>>>
>>> Best regards
>>>
>>> On Thu, Jul 2, 2020 at 2:48 PM Padisala, Shanthan Kumar <
>>> padisal...@buckeyemail.osu.edu> wrote:
>>>
 You can instead use TraCI commands to define the vehicle and control it.

 -PSK
 --
 *From:* sumo-user-boun...@eclipse.org 
 on behalf of Traboulsi, Abdullah 
 *Sent:* Thursday, July 2, 2020 2:43:49 PM
 *To:* Sumo project User discussions 
 *Subject:* [sumo-user] Manually controlled vehicles

 Hi,

 I am trying to take complete control of vehicle speed acceleration
 ..etc.
 But whenever I define vehicles using  tags in routes
 and run the simulation, it will be automatically assigned with Car
 Following Model and LCModel.
 These models will control the vehicle using the defined algorithm.

 Is it possible to define vehicles with no control from simulator?
 If yes, then how to do so please?

 Thank you and regards
 ___
 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
>>>
>> ___
>> 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
>
___
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] RouteSampler.py demand generation problems

2020-08-05 Thread Jakob Erdmann
routeSampler only uses the routes that you already provide as input. Of
course, you can use implausibleRoutes.py before running routeSampler to
analyze and tailor the input.

Looking at your scenario, I see the following issues
- uncoordinated/unjoined traffic light in the city center
- missing acceleration lanes at your motorway on-ramps. This turns highway
on-ramps into normal junctions and reduces flow significantly.  (add ramps
manually or rebuild your network with option --ramps.guess. This may split
some edge which invalidates routes so afterwards you will have to
regenerated your route files or repair them with duarouter option --repair

regards,
Jakob


Am Mi., 8. Juli 2020 um 08:08 Uhr schrieb Anil Baral :

> Thanks Barry. I tried to remove some routes that created traffic jams in
> the network due to U-turn, but it only reduces some traffic jams. It
> doesn't solve the jam in other parts of the network. I would like to know
> if there is any other way to generate and check the implausible routes. Is
> there a way to use implausibleRoute.py with routeSampler to improve the
> traffic flow?
>
>
> Thanks,
> Anil
>
> On Mon, Jul 6, 2020 at 4:35 AM Evans, Barry  wrote:
>
>> Hi Anil,
>>
>> I haven't looked over the data but I had a similar problem when I was
>> using routeSampler.py. One of causes I found for sever jams was to do with
>> some vehicle routes either starting with or ending with a U-turn manoeuvre.
>>
>> What I did was run the model in the GUI and visually look for where these
>> jams are occurring and then click on the car that I believe to be causing
>> the jam to see if it is attempting a U-turn either at the start of its
>> journey or the end. If it is I'd then go into the rou.xml file in a text
>> editor like notepad++ and look at the id of the vehicle causing the jam and
>> trim either the beginning or the end of its route accordingly to remove the
>> U-turn manoeuvre.
>>
>> If this is the issue, removing these U-turns will help reduce jams.  I
>> hope this helps but if not maybe someone else who is more familiar with
>> routeSampler.py could help.
>>
>> All the best,
>>
>> Barry
>>
>>
>> -Original Message-
>> From: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org]
>> On Behalf Of anilbaral
>> Sent: 06 July 2020 19:23
>> To: sumo-user@eclipse.org
>> Subject: [sumo-user] RouteSampler.py demand generation problems
>>
>> CAUTION: This email originated from outside of the organisation. Do not
>> click links or open attachments unless you recognise the sender and know
>> the content is safe.
>>
>>
>> Hi all,
>> I have use routeSampler.py to generate demand with edge count data. The
>> edge data was generated from the flow file and contains the hourly count on
>> the edges with detectors.  I was successfully able to generate the vehicle
>> using routeSampler, and the mismatch was almost negligible. However, when I
>> run the simulation, I find a lot of jam during *peak hours*.  I have used
>> the actuated traffic light and most probably traffic light is not the cause
>> of traffic jams.  I am not sure how to deal with this problem. I think it
>> is due to the routes that are being generated by routeSampler.py.  Please
>> suggest how can I deal with these issues and what can be the probable
>> causes?
>>
>> Attached is the file: FILES_Sumo.rar
>> <
>> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsumo-user-mailing-list.90755.n8.nabble.com%2Ffile%2Ft411%2FFILES_Sumo.rardata=02%7C01%7CB.Evans%40exeter.ac.uk%7C21cdeb20d03d445fb35b08d8217d9104%7C912a5d77fb984eeeaf321334d8f04a53%7C0%7C0%7C637296170474282354sdata=Imeub1WorD8Cy04cUhEtgngsIbizggA6V8SApLjcIew%3Dreserved=0
>> >
>>
>> Thanks
>> Anil
>>
>>
>>
>>
>> --
>> Sent from:
>> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsumo-user-mailing-list.90755.n8.nabble.com%2Fdata=02%7C01%7CB.Evans%40exeter.ac.uk%7C21cdeb20d03d445fb35b08d8217d9104%7C912a5d77fb984eeeaf321334d8f04a53%7C0%7C0%7C637296170474282354sdata=6rUASrTC93DTcLxEnU2x3WrQsK6%2FZYfvO%2BfJPzNXhLE%3Dreserved=0
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-userdata=02%7C01%7CB.Evans%40exeter.ac.uk%7C21cdeb20d03d445fb35b08d8217d9104%7C912a5d77fb984eeeaf321334d8f04a53%7C0%7C0%7C637296170474282354sdata=y5I1%2FYUxroZ2ar8JVjxG1B34WWC3WFBoGTqCuuzpFb0%3Dreserved=0
>> ___
>> 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
>
___
sumo-user mailing list

Re: [sumo-user] fundamental diagram

2020-08-05 Thread Jakob Erdmann
1) can you post your VSS definition?
2) Since density is increased by vehicle insertions which are discrete
events there is some limit to the achievable smoothness. You could "cheat"
by using more VSS though.

Am Fr., 3. Juli 2020 um 23:28 Uhr schrieb Amirhosein Karbasi <
amirhosein.karbas...@gmail.com>:

> hello,
> I want to build a fundamental diagram for 2 lane freeway. I don't have any
> problem with the free-flow branch but I have a problem with the congested
> branch.
> 1.for the congested branch, I used VSS to increase density but it does not
> work correctly. for example, VSS from 1000 to 1500 is 23 and from 1501 to
> 2000 is 22 and from2001 to 2500 is 21. but in my simulation from 1000 to
> 1500 is okay but from 1500 to 2500 speed returns to the situation without
> VSS.
> 2. is there any way to decrease flow smoothly to zero after it reaches its
> capacity?
> ___
> 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] Is collision detected if step lenght is high?

2020-08-05 Thread Jakob Erdmann
In addition to what Michael said, note that you have to enable detection of
junction collisions explicitly with **--collision.check-junctions**.

Am Mi., 8. Juli 2020 um 22:24 Uhr schrieb Michael Behrisch :

> Hi,
> the moving vehicle will not keep the high speed unless it is forced via
> an external trigger (traci) to do so or the other vehicle is not in the
> way. If it is forced to move fast, the collision will not be detected.
>
> Best regards,
> Michael
>
> Am 08.07.20 um 00:10 schrieb user1000:
> > Distance (position on the edge) is discrete and depends on step length.
> Is
> > collision detected, when car has high speed?
> > Imagine that one car doesn't move and stands on the intersection. Second
> car
> > has high speed and step length is too high, so when it comes to the
> > intersection it will jump over the first car. Is collision detected in
> this
> > case?
> >
> >
> >
> > --
> > 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
>
___
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] fcd output and time step accuracy

2020-08-05 Thread Jakob Erdmann
A main source of differences between simulations with different step
lengths is vehicle insertion (more frequent insertion attempts lead to
higher insertion flow). See
https://sumo.dlr.de/docs/Simulation/VehicleInsertion.html

To achieve vehicle behavior closer to the 1-second simulation, run the
simulation with --step-length 0.1 --action-step-length 1
Make sure that all vehicles depart at full seconds or this will be another
source for scenario divergence.

Am Sa., 11. Juli 2020 um 00:47 Uhr schrieb Tetris <
schmel...@campus.tu-berlin.de>:

> behrisch wrote
> > Am 06.07.20 um 09:24 schrieb Tetris:
> >> I used fcd output to get the acceleration and speed data of a
> simulation.
> >> The total travel time is 168 seconds longer with --step-length 1 than
> >> with
> >> --step-length 0.1.
> >
> > This sounds like a lot. What is the absolute value of the total travel
> > time?
>
> Hi,
>
> I compared another simulation with step length 1 and step length 0.1:
>
> <
> http://sumo-user-mailing-list.90755.n8.nabble.com/file/t300/steplength_comparison.png>
>
>
> The vehicle in the simulation with step length 0.1 can drive while in the
> step length 1 simulation it has to stand still. For example around 300
> samples in the step length 1 simulation compared to arond 3000 samples in
> the step length 0.1 simulation.
>
> So the behaviour is different.
>
> https://sumo.dlr.de/docs/Simulation/Safety.html#action_step_length
> 
> The wiki says the reaction time is set by step time. What I actually wanted
> was the same simulation with the same behaviour but more frequent output
> values.
>
>
>
>
> --
> 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] Modeling of speed, congestion and flow in SUMO

2020-08-05 Thread Jakob Erdmann
The default microscopic model does not compute congestion. Instead,
congestion is an emergent feature of individual vehicle behavior (i.e.
slowing down for leading cars).

Am Mi., 15. Juli 2020 um 06:25 Uhr schrieb Tripplanner Mumbai <
tripplanner...@gmail.com>:

> Hello,
> I am curious to know how SUMO models the speed of a road segment at a
> given period. Furthermore, the congestion computation is critical, so, what
> is the default model to calculate the congestion rate in SUMO?
> It will be really useful if some links to documentation and articles are
> provided.
> Thanks and 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 mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Reouter: Can it be used to run vehicles multiple times along a same route?

2020-08-05 Thread Jakob Erdmann
also see
https://sumo.dlr.de/docs/FAQ.html#how_do_i_maintain_a_constant_number_of_vehicles_in_the_net

Am Mi., 15. Juli 2020 um 08:01 Uhr schrieb :

> Hey PSK,
>
>
>
> there are two more options, so maybe they also can solve the problem:
>
> flow:
> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_vehicles_flows
>
> route repeat:
> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#routes
>
>
>
> regards,
>
> Melanie
>
>
>
> *Von:* sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org]
> *Im Auftrag von *Padisala, Shanthan Kumar
> *Gesendet:* Dienstag, 14. Juli 2020 19:29
> *An:* Sumo project User discussions
> *Betreff:* [sumo-user] Reouter: Can it be used to run vehicles multiple
> times along a same route?
>
>
>
> Hello Everyone!
>
>
>
> I am trying to run a simulation in which I would like to run a vehicle in
> a certain loop multiple times. I have attached the image of the route file
> I am currently using. I have manually defined the path of my vehicle from
> point A to point B along the blue lines, as shown in the image attached.
> Now, after reaching point B, can I use rerouters (if possible via TraCI) to
> send the vehicle again along the same path A to B?
>
>
>
> If yes, can I have the link to get ideas on solving this problem?
>
>
>
> Thanks and Regards,
>
> PSK
>
>
> ___
> 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] Braking for turns

2020-08-05 Thread Jakob Erdmann
The cars brake ahead of the turn so that they reach the slower section at
the permitted speed (it works the same for regular speed limits).

Am Mi., 15. Juli 2020 um 17:48 Uhr schrieb Zev Nicolai-Scanio <
znicolaisca...@college.harvard.edu>:

> Hi,
>
> I’m working on my first major SUMO project and I read in the NETEDIT
> instructions that the speeds on turns will be reduced based upon the
> radius. I’m interested in one detail about how cars brake when there is a
> speed limit for a turn that is lower than that of the main road. Do they
> brake while they are in the turn or do they brake right before the turn.
> Also when they brake do they brake at the max deceleration? I’m trying to
> make some calculations using Newtonian mechanics to calculate the times
> that cars get to certain points and I want to make sure I am modeling the
> situation correctly.
>
> Thank you very much!
> Best,
> Zev
> ___
> 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] setSpeed acceleration/deceleration

2020-08-05 Thread Jakob Erdmann
At the moment, most models use uniform acceleration when setSpeed is
called. The only exceptions are carFollowModel "rail" and "KraussPS" which
have degressive acceleration at higher speeds.
There are plans to make this more flexible:
https://github.com/eclipse/sumo/issues/3920

Am Mi., 15. Juli 2020 um 18:28 Uhr schrieb Zev Nicolai-Scanio <
znicolaisca...@college.harvard.edu>:

> Hi,
>
> I’m interested in the details of how the setSpeed function in TraCI
> accelerates/decelerates a given vehicle to the target speed. Is this done
> uniformly at the max acceleration / deceleration or is there some other
> acceleration / deceleration curve used?
>
> Thank you!
>
> Best,
> Zev
> ___
> 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] Traffic simulation for a month

2020-08-05 Thread Jakob Erdmann
The differences are up to you. By providing different route files for the
different days (i.e. less traffic on weekends) you have full control over
the variability. SUMO itself will not perform replanning based on past
experiences. Unless you have jams that are not resolved during the night,
each simulated day should be pretty much independent of the previous day
(though you will see different random numbers when running the simulation
for multiple days compared to running these days separately).

Am Do., 16. Juli 2020 um 06:55 Uhr schrieb Tripplanner Mumbai <
tripplanner...@gmail.com>:

> Hello,
> Yes, segregating the routes data as per suggestion will be helpful.
> However, I am clueless about the underlying theory of simulation in SUMO.
> That is, how it simulates each day differently (given the network file and
> separate routes files). What are the attributes it takes into account to
> imitate the real-time scenario?
> Thanks and regards,
> Dillip Rout
>
> On Wed, 15 Jul 2020 at 13:24, Michael Behrisch  wrote:
>
>> Hi,
>> it is entirely up to you how you organize the files. I would expect the
>> network to be quite stable so there is no need for several network
>> files. You can also put all routes in one file but if you need fast
>> access to a specific day or even hour or want to do parallel simulations
>> of different time periods you should split the route files according to
>> that requirement. But this is not enforced it is just optimization.
>>
>> Best regards,
>> Michael
>>
>> Am 15.07.20 um 09:14 schrieb Tripplanner Mumbai:
>> > Hello,
>> > Let us assume that a machine with sufficient computing power is
>> available.
>> >
>> > Now, there are two bare minimum input files for the simulation (1)
>> > city.net.xml - contains the structure of the underlying network  (2)
>> > city.rou.xml - contains the vehicles and respective routes (paths) and
>> > possibly schedule.
>> >
>> > Do you mean that we should have separate files of (1) and (2) for each
>> > day of the month?
>> >
>> > thanks and regards,
>> > Dillip Rout
>> >
>> >
>> >
>> >
>> > On Wed, 15 Jul 2020 at 11:56, Michael Behrisch > > > wrote:
>> >
>> > Hi,
>> > if you have the input data it only requires enough computing power
>> (or
>> > patience ;-). Nothing stops you from running sumo for a month or
>> more.
>> >
>> > Best regards,
>> > Michael
>> >
>> > Am 15.07.20 um 06:55 schrieb Tripplanner Mumbai:
>> > > Hello,
>> > >
>> > > SUMO is pretty nice in simulating traffic and getting the relevant
>> > > parameters given a scenario including traffic and network.
>> However,
>> > > these simulations are only for a short period of time or a day.
>> > > What more is required to simulate the traffic movement for a
>> > month? Note
>> > > that the traffic pattern differs from day to day, e.g., weekends
>> will
>> > > have less traffic as compared to weekdays. Hence, we will get
>> > different
>> > > kinds of simulations on weekends. Mostly, I am looking to extract
>> a
>> > > network from OSM through the interface provided by SUMO.
>> > >
>> > > thanks and 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 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
>> >
>>
>>
>> ___
>> 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
>
___
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] Stopping a vehicle on a road for a certain amount of time

2020-08-05 Thread Jakob Erdmann
Use sumo-gui to check why the vehicle is still stopping:
https://sumo.dlr.de/docs/sumo-gui.html#showing_routes_and_route-related_information

Am Do., 16. Juli 2020 um 17:32 Uhr schrieb Padisala, Shanthan Kumar <
padisal...@buckeyemail.osu.edu>:

> Dear All,
>
> I am trying to stop a certain vehicle when on a certain road, for a
> specific duration of time. May I know how I can achieve this?
>
> I tried this command:
> traci.vehicle.setStop(vehID = 'V_main',edgeID = 'gneE454',duration = 300)
>
> But somehow even after 300 secs, the vehicle is not moving again.
>
> Thank you,
> PSK
> ___
> 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] TraCI slowDown function

2020-08-05 Thread Jakob Erdmann
It's a bug: see https://github.com/eclipse/sumo/issues/7361

Am Mi., 5. Aug. 2020 um 09:40 Uhr schrieb Proyash Podder :

> Hi!
> I was trying to play with TraCI’s slowDown API and facing an issue. For my
> simulation, say, I need to reduce my speed to 2 unit. So, I write this:
> *traci.slowDown(speed-2,1).*
>
> But the result I got is: If at 5.00 Second, the speed is 20, at 6.00
> second, I see the speed to be 19 and at 7.00 second, I see the speed to be
> 18.. But theoretically, the speed should become 18 at 6.00 second.
>
> One case might be if the max deceleration rate is low so that it cannot
> reduce the speed so fast. But then, I rewrite the slowDown function to
> that: *raci.slowDown(speed-4,1).  *Now I see that, at 6.00 second, I got
> the speed 18 and the speed become 16 at 7.00.
>
> So, in summary although I try to reduce the speed by x unit at 1 second,
> it takes 2 seconds to make so.
> Can anyone explain to me, what I am getting wrong here?
>
>
> ___
> 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


[sumo-user] TraCI slowDown function

2020-08-05 Thread Proyash Podder
Hi!
I was trying to play with TraCI’s slowDown API and facing an issue. For my 
simulation, say, I need to reduce my speed to 2 unit. So, I write this: 
traci.slowDown(speed-2,1).

But the result I got is: If at 5.00 Second, the speed is 20, at 6.00 second, I 
see the speed to be 19 and at 7.00 second, I see the speed to be 18.. But 
theoretically, the speed should become 18 at 6.00 second.

One case might be if the max deceleration rate is low so that it cannot reduce 
the speed so fast. But then, I rewrite the slowDown function to that: 
raci.slowDown(speed-4,1).  Now I see that, at 6.00 second, I got the speed 18 
and the speed become 16 at 7.00.

So, in summary although I try to reduce the speed by x unit at 1 second, it 
takes 2 seconds to make so.
Can anyone explain to me, what I am getting wrong here?


___
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 in SUMO using TraCI

2020-08-05 Thread Jakob Erdmann
1) most likely, no vehicle ever reaches a waiting time of 600s. By default
vehicles are teleported after being jammed for 300s
2) the difference is in the way travel times are estimated. The rerouting
device averages speeds (and thus travel times) over time with a
configurable algorithm. In contrast, rerouteTraveltime uses current travel
times by default and is therefore more sensitive to short-lived
fluctuations (i.e. from traffic lights).

Am Sa., 18. Juli 2020 um 19:39 Uhr schrieb Padisala, Shanthan Kumar <
padisal...@buckeyemail.osu.edu>:

> Hi,
>
> I am trying to use rerouters to change dynamically my route (keeping the
> destination fixed). I have initialized my network with multiple vehicles
> with a specific route to each vehicle, that are added into the network at
> multiple intervals of time.  The next step is to reroute all the vehicles
> dynamically, using TraCI. For this, I can see two of the possible options
> listed on the documentation:
>
>1. Using *rerouteTravelTime*
>if traci.vehicle.getWaitingTime(VID[v]) > 600:
>   traci.vehicle.rerouteTraveltime(VID[v],True)
>But, I dont know where I am going wrong, I am unable to reroute.
>
>where VID is a list of all my vehicles.
>2. Using *device.rerouting. *as listed on the webpage
>https://sumo.dlr.de/docs/Demand/Automatic_Routing.html But, I do not
>understand how exactly I must use these commands. Also, how different are
>these two methods. I would really appreciate it if anyone comments on the
>exact syntax, the difference in two methods, and also any other suggestions
>to serve my main purpose.
>
> Thank you,
> PSK
>
>
>
> ___
> 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] Problem with laneChange command in TraCI

2020-08-05 Thread Jakob Erdmann
Did you trigger the change with vehicle.changeLane or with
vehicle.changeSublane?

Am So., 19. Juli 2020 um 17:58 Uhr schrieb MohamadReza-Haghani <
haghani@gmail.com>:

> In order to make my modeling more close to reality I need to use the
> sublane
> model. However, I was wondering to know if there is any way to force two
> vehicles not to occupy the same lane in the same distance from the origin.
> In this way, when a vehicle intends to change its lane, it does not trigger
> lane changing while there is another vehicle in the target lane and in the
> same distance form the origin. As you see in the attached image, the
> current
> problem is that the yellow vehicle with white margin around it started
> changing its lane too soon. Afterwards, when it found there is no open
> space
> space in the right lane, it stopped. Thank you very much in advance.
>
> Regards,
> Reza.
>
> <
> http://sumo-user-mailing-list.90755.n8.nabble.com/file/t374/InkedCapture1_LI.jpg>
>
>
>
>
> --
> 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