Re: [sumo-user] Duaiterator and additional files

2020-06-03 Thread Jakob Erdmann
duaIterate.py uses the input files to run duarouter and sumo. Using the
generated configuration files, please check whether the error comes from
duarouter, sumo or both.

also, option -l which you are already using controls the number of
iterations with a hard limit. You could also control the number with a
convergence check (--max-convergence-deviation).

regards,
Jakob

Am Fr., 29. Mai 2020 um 13:56 Uhr schrieb Илья Левашев <
levashev1...@gmail.com>:

> Hi, all!
>
> I`m trying to use duaiterate.py with my .flow.xml file
> When I use just "from", "to" and "via" flow options in duaIterate it`s all
> ok, but when I`m trying to use stops I have a problem "Error: Unknown
> parking area 'parkingArea_-40719651#2.8_1_3' in vehicle 'Parker_N0'." for
> all of my vehicles on different parkings.
>
> My duaIterate command:
> "python "C:\Program Files (x86)\Eclipse\Sumo\tools\assign\duaIterate.py"
> -n myNet.net.xml --additional myAdds.add.xml -t myFlows.flow.xml -l 15"
>
> When I just use these files in simulation without duaIterate it`s all ok
> too. What may be a problem?
> And one more question, how to define amount of iterations?
> --
> regrads,
> Ilia Levashev
> ___
> 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] find follower vehicle ID

2020-06-03 Thread Jakob Erdmann
There is currently no direct function to get the follower.
A workaround would be to get all vehicles behind ego (i.e. with a context
subscription) and call getLeader on them to check whether they return the
ego vehicle.

Am Do., 4. Juni 2020 um 04:50 Uhr schrieb Bae, Jong In :

> Hello,
>
> Is there any way to find the follower vehicle ID (just like the
> 'getLeader' function but for the follower vehicle)?
> It seems like 'getNeighbors (2==0)' function works during a lane-change
> process and returns nothing during the normal driving condition.
>
> I'm trying to get the follower vehicle ID during the normal driving
> condition.
>
> Thank you!
> ___
> 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] find follower vehicle ID

2020-06-03 Thread Bae, Jong In
Hello,

Is there any way to find the follower vehicle ID (just like the 'getLeader' 
function but for the follower vehicle)?
It seems like 'getNeighbors (2==0)' function works during a lane-change process 
and returns nothing during the normal driving condition.

I'm trying to get the follower vehicle ID during the normal driving condition.

Thank you!
___
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] Building a Zipper Merge

2020-06-03 Thread Jakob Erdmann
A zipper merge is commonly built at a lane drop. In your simulation the
'subject' vehicles actually perform a zipper merge to the right lane but
then immediately change back to the left lane (for strategic reason)
because that lane was not dropped. I recommend building a section with just
one lane if you wish to avoid this behavior.

regards,
Jakob

Am Mi., 3. Juni 2020 um 15:13 Uhr schrieb Bae, Jong In :

> Please see the attached file for the sample scenario.
> In this scenario, you will find 2-lane straight road where 5 blue vehicles
> on lane 1 will try to merge into lane 0 at the zipper merge point.
> The zipper merge point is at the end of the edge 'E1' (shortly before the
> angled "exit").
>
> The merging issue occurs around 258s at the zipper merge point.
>
> Please let me know if there is anything else I can provide.
>
> Thank you!
> --
> *From:* sumo-user-boun...@eclipse.org  on
> behalf of Jakob Erdmann 
> *Sent:* Wednesday, June 3, 2020 8:32 AM
> *To:* Sumo project User discussions 
> *Subject:* Re: [sumo-user] Building a Zipper Merge
>
> Cooperation should work by default. Can you provide a small scenario that
> demonstrates your problem?
>
> Am Mi., 3. Juni 2020 um 14:17 Uhr schrieb Bae, Jong In  >:
>
> Thank you, I was able to set up the connection as zipper merge.
> However, the merging vehicles are not still able to merge due to the
> vehicles on the target lane not making enough room for the merging vehicles.
> Setting 'lccooperative = 1' didn't help much.
>
> Is there any way to force the zipper merge? (one vehicle from each lane
> takes turn and merge)
>
> Thank you!
> --
> *From:* sumo-user-boun...@eclipse.org  on
> behalf of Jakob Erdmann 
> *Sent:* Wednesday, June 3, 2020 2:02 AM
> *To:* Sumo project User discussions 
> *Subject:* Re: [sumo-user] Building a Zipper Merge
>
> Hold the Ctrl-Key while clicking in connection mode (
> https://sumo.dlr.de/docs/NETEDIT.html#changing_connections)
>
> Am Di., 2. Juni 2020 um 17:09 Uhr schrieb Bae, Jong In  >:
>
> Hello,
>
> I have two straight edges with 2 lanes. I'm trying to build a zipper merge
> at the node between the two edges.
>
> I've set the node as zipper but it seems like NetEdit is not letting me
> set up the connections as zipper merge.
>
> Is there any way I can set up the connections as shown in the attached
> screenshot?
>
> Thank you.
> ___
> 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] Using PT Stops

2020-06-03 Thread Mirko Barthauer

Hi Joshua,

you get a file called flows.rou.xml containing PT flows (some sort of 
traffic demand & routes file). This can be loaded into SUMO using the 
adequate SUMO cmd line options or the corresponding sumocfg config file. 
See here  for 
a brief introduction on how to do this.


Regards
Mirko

Am 03.06.2020 um 17:14 schrieb Issa, Joshua:


Hi all,

I’ve been following the tutorial 
https://sumo.dlr.de/docs/Tutorials/PT_from_OpenStreetMap.html, but I 
can’t seem to utilize it properly. There doesn’t seem to be any 
instructions on how to use the files generated by the python code. I 
was wondering if I could get some direction on how to apply the files 
generated.


Joshua


___
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] Using PT Stops

2020-06-03 Thread Issa, Joshua
Hi all,

I've been following the tutorial 
https://sumo.dlr.de/docs/Tutorials/PT_from_OpenStreetMap.html, but I can't seem 
to utilize it properly. There doesn't seem to be any instructions on how to use 
the files generated by the python code. I was wondering if I could get some 
direction on how to apply the files generated.

Joshua
___
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] Trouble in setting the opposite direction driving

2020-06-03 Thread Zhang Jackie
Hi Jakob,
Thanks for your explanation.
I revised my road network to one directional lane, and it seems the
opposite direction driving works.
And here I have another question:
As in the real road network, 2 + 2 lanes exists, (for example, Down0,Down1
are 2 lanes from node A to B, and Up0,Up1 are 2 lanes from B to A)

is there any possible ways to allow opposite-overtaking from Down0 to Up0
(closer to each other)
If both Down0 and Down1 are in jam status, is the vehicle on Down0 allowed
to use Up0 or not?
If it's not allowed, is there any user defined function to make it out? the
TraCI or something else.

Thanks a lot.
[image: image.png]


Jakob Erdmann  于2020年6月3日周三 下午4:56写道:

> Hello,
> sumo currently allows opposite-overtaking only on roads that have one
> directional lane. This follows the assumption that vehicles avoid the
> opposite side if they already have a passing lane.
> regards,
> Jakob
>
> Am Mi., 3. Juni 2020 um 06:59 Uhr schrieb Zhang Jackie <
> zhangzuot...@gmail.com>:
>
>> Hi All,
>> I'd like to set the opposite direction driving available in a simple road
>> network like the image below:
>> 100m x 100m, 2 opposite edges and 2 lanes for each edge. (file name:
>> net.net.xml)
>> I use the NETCOVERT tool to generate the net.xml which allows the
>> opposite driving, the command is like this:
>> netconvert --sumo-net-file=net.net.xml --opposites.guess=true
>> --opposites.guess.fix-lengths=true --output-file=opnet.net.xml
>>
>> But after set the vehicle flow
>> > to="B1B0" type="RushCar" />
>> and run the simulation, there's no vehicle run to the opposite lane, any
>> thing wrong  with my configuration? The vehicle' number is not large enough?
>>
>> I put my xml file in the attachments.
>> PS. SUMO verison win 1.6.0, OS: win10 2004 x64
>> Thanks for your help in advance.
>>
>> [image: image.png]
>> ___
>> 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] Building a Zipper Merge

2020-06-03 Thread Bae, Jong In
Please see the attached file for the sample scenario.
In this scenario, you will find 2-lane straight road where 5 blue vehicles on 
lane 1 will try to merge into lane 0 at the zipper merge point.
The zipper merge point is at the end of the edge 'E1' (shortly before the 
angled "exit").

The merging issue occurs around 258s at the zipper merge point.

Please let me know if there is anything else I can provide.

Thank you!

From: sumo-user-boun...@eclipse.org  on behalf 
of Jakob Erdmann 
Sent: Wednesday, June 3, 2020 8:32 AM
To: Sumo project User discussions 
Subject: Re: [sumo-user] Building a Zipper Merge

Cooperation should work by default. Can you provide a small scenario that 
demonstrates your problem?

Am Mi., 3. Juni 2020 um 14:17 Uhr schrieb Bae, Jong In 
mailto:jba...@gatech.edu>>:
Thank you, I was able to set up the connection as zipper merge.
However, the merging vehicles are not still able to merge due to the vehicles 
on the target lane not making enough room for the merging vehicles.
Setting 'lccooperative = 1' didn't help much.

Is there any way to force the zipper merge? (one vehicle from each lane takes 
turn and merge)

Thank you!

From: sumo-user-boun...@eclipse.org 
mailto:sumo-user-boun...@eclipse.org>> on behalf 
of Jakob Erdmann mailto:namdre.s...@gmail.com>>
Sent: Wednesday, June 3, 2020 2:02 AM
To: Sumo project User discussions 
mailto:sumo-user@eclipse.org>>
Subject: Re: [sumo-user] Building a Zipper Merge

Hold the Ctrl-Key while clicking in connection mode 
(https://sumo.dlr.de/docs/NETEDIT.html#changing_connections)

Am Di., 2. Juni 2020 um 17:09 Uhr schrieb Bae, Jong In 
mailto:jba...@gatech.edu>>:
Hello,

I have two straight edges with 2 lanes. I'm trying to build a zipper merge at 
the node between the two edges.

I've set the node as zipper but it seems like NetEdit is not letting me set up 
the connections as zipper merge.

Is there any way I can set up the connections as shown in the attached 
screenshot?

Thank you.
___
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] Building a Zipper Merge

2020-06-03 Thread Jakob Erdmann
Cooperation should work by default. Can you provide a small scenario that
demonstrates your problem?

Am Mi., 3. Juni 2020 um 14:17 Uhr schrieb Bae, Jong In :

> Thank you, I was able to set up the connection as zipper merge.
> However, the merging vehicles are not still able to merge due to the
> vehicles on the target lane not making enough room for the merging vehicles.
> Setting 'lccooperative = 1' didn't help much.
>
> Is there any way to force the zipper merge? (one vehicle from each lane
> takes turn and merge)
>
> Thank you!
> --
> *From:* sumo-user-boun...@eclipse.org  on
> behalf of Jakob Erdmann 
> *Sent:* Wednesday, June 3, 2020 2:02 AM
> *To:* Sumo project User discussions 
> *Subject:* Re: [sumo-user] Building a Zipper Merge
>
> Hold the Ctrl-Key while clicking in connection mode (
> https://sumo.dlr.de/docs/NETEDIT.html#changing_connections)
>
> Am Di., 2. Juni 2020 um 17:09 Uhr schrieb Bae, Jong In  >:
>
> Hello,
>
> I have two straight edges with 2 lanes. I'm trying to build a zipper merge
> at the node between the two edges.
>
> I've set the node as zipper but it seems like NetEdit is not letting me
> set up the connections as zipper merge.
>
> Is there any way I can set up the connections as shown in the attached
> screenshot?
>
> Thank you.
> ___
> 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] Building a Zipper Merge

2020-06-03 Thread Bae, Jong In
Thank you, I was able to set up the connection as zipper merge.
However, the merging vehicles are not still able to merge due to the vehicles 
on the target lane not making enough room for the merging vehicles.
Setting 'lccooperative = 1' didn't help much.

Is there any way to force the zipper merge? (one vehicle from each lane takes 
turn and merge)

Thank you!

From: sumo-user-boun...@eclipse.org  on behalf 
of Jakob Erdmann 
Sent: Wednesday, June 3, 2020 2:02 AM
To: Sumo project User discussions 
Subject: Re: [sumo-user] Building a Zipper Merge

Hold the Ctrl-Key while clicking in connection mode 
(https://sumo.dlr.de/docs/NETEDIT.html#changing_connections)

Am Di., 2. Juni 2020 um 17:09 Uhr schrieb Bae, Jong In 
mailto:jba...@gatech.edu>>:
Hello,

I have two straight edges with 2 lanes. I'm trying to build a zipper merge at 
the node between the two edges.

I've set the node as zipper but it seems like NetEdit is not letting me set up 
the connections as zipper merge.

Is there any way I can set up the connections as shown in the attached 
screenshot?

Thank you.
___
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] Bus seemingliy stuck at bus stop

2020-06-03 Thread Maximilian Socher
Makes sense. Thank you for clearing that up and for your help!



--
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] Bus seemingliy stuck at bus stop

2020-06-03 Thread Jakob Erdmann
If you define stops within a vehicle, they are interpreted as absolute
times.
If you define them in a stand-alone route, they are interpreted relative to
the vehicle departure. This is an important feature as it allows the same
schedule to be used by multiple public transport vehicles starting a
different times (and also by a flow).

Am Mi., 3. Juni 2020 um 11:33 Uhr schrieb Maximilian Socher <
maximilian.soc...@hs-kempten.de>:

> Ok problem is the the until value,as it gets interpreted as "wait until 5
> hours 10 minutes you start route" instead of "wait until 5:10am clock time"
> which was my intention.
> the one working rout conveniently starts at 00:00:00 which is why there
> were
> no problems on that specific route.
>
> Is it possible to define until times as I intended or do they always have
> to
> be relative to the start time of the individal route?
>
>
>
> --
> 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] Bus seemingliy stuck at bus stop

2020-06-03 Thread Maximilian Socher
Ok problem is the the until value,as it gets interpreted as "wait until 5
hours 10 minutes you start route" instead of "wait until 5:10am clock time"
which was my intention.
the one working rout conveniently starts at 00:00:00 which is why there were
no problems on that specific route.

Is it possible to define until times as I intended or do they always have to
be relative to the start time of the individal route?



--
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] Bus seemingliy stuck at bus stop

2020-06-03 Thread Jakob Erdmann
have you tried to set a different 'until' value?
are you using traci to affect stop durations?
are you unloading persons from the bus?

Am Mi., 3. Juni 2020 um 10:53 Uhr schrieb Maximilian Socher <
maximilian.soc...@hs-kempten.de>:

> You are right. That seems to be the problem. Instead of a the defined
> duration of 15 seconds the busses show a wait time of 18000 to 2. But I
> still can't figure out why this is happening.
>
> This is the way I define the individual bus stops:
>
> / until="05:10:00"/>/
>
> The same way I defined it on the one working route.
> Any ideas?
>
>
>
> --
> 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] Bus seemingliy stuck at bus stop

2020-06-03 Thread Maximilian Socher
You are right. That seems to be the problem. Instead of a the defined
duration of 15 seconds the busses show a wait time of 18000 to 2. But I
still can't figure out why this is happening.

This is the way I define the individual bus stops:

//

The same way I defined it on the one working route. 
Any ideas?



--
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] Computing distance and travel time from a bus stop to another bus stop

2020-06-03 Thread Jakob Erdmann
the relationship between lane ids and edge ids is quite trivial but you can
also use traci.lane.getEdgeID(laneID) to get one from the other.

Am Mi., 3. Juni 2020 um 10:07 Uhr schrieb Tripplanner Mumbai <
tripplanner...@gmail.com>:

> Hello,
> I am using the latest development version of SUMO (
> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version).
> However, I found the documentation part (
> https://sumo.dlr.de/daily/pydoc/traci._simulation.html) that the
> signature of findRoute is this:
>
> *findRoute*(self, fromEdge, toEdge, vType=''", depart=-1.0, routingMode=0)
>
> The same signature I got in my local machine where I have installed the
> latest development version. Note that there is no input
> for the lanes as you mentioned. Please clarify.
>
> thanks and regards,
> Dillip Rout
>
>
>
> On Wed, 3 Jun 2020 at 11:27, Jakob Erdmann  wrote:
>
>> If you know the lane and position of the busStops, you can use function
>> traci.simulation.findRoute to get the distance and traveltime between them.
>> You can either parse lane and position from the input xml (i.e. with
>> sumolib.xml.parse) or you can use traci.busstop.getLaneID and
>> traci.busstop.getEndPos.
>> The latter functions are only available in the latest development version.
>>
>> regards,
>> Jakob
>>
>>
>> Am Mo., 1. Juni 2020 um 08:06 Uhr schrieb Tripplanner Mumbai <
>> tripplanner...@gmail.com>:
>>
>>> Hello,
>>> I have a network and all its properties are defined. I am getting all
>>> needed output such as stop information, trip information, person
>>> information, etc.
>>>
>>> However, I would like to know how to calculate or find out the distance
>>> and travel time (as per definition). For example, I have a transit line (or
>>> public transport route) as follows.
>>> 
>>> 
>>> 
>>> 
>>>
>>> Now, if I wanted to find out the distance and travel time from
>>> busStop#35 to busStop#36. TraCI code is preferable to obtain these
>>> requirements.
>>>
>>> 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


Re: [sumo-user] Computing distance and travel time from a bus stop to another bus stop

2020-06-03 Thread Tripplanner Mumbai
Hello,
I am using the latest development version of SUMO (
https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version).
However, I found the documentation part (
https://sumo.dlr.de/daily/pydoc/traci._simulation.html) that the signature
of findRoute is this:

*findRoute*(self, fromEdge, toEdge, vType=''", depart=-1.0, routingMode=0)

The same signature I got in my local machine where I have installed the
latest development version. Note that there is no input
for the lanes as you mentioned. Please clarify.

thanks and regards,
Dillip Rout



On Wed, 3 Jun 2020 at 11:27, Jakob Erdmann  wrote:

> If you know the lane and position of the busStops, you can use function
> traci.simulation.findRoute to get the distance and traveltime between them.
> You can either parse lane and position from the input xml (i.e. with
> sumolib.xml.parse) or you can use traci.busstop.getLaneID and
> traci.busstop.getEndPos.
> The latter functions are only available in the latest development version.
>
> regards,
> Jakob
>
>
> Am Mo., 1. Juni 2020 um 08:06 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> I have a network and all its properties are defined. I am getting all
>> needed output such as stop information, trip information, person
>> information, etc.
>>
>> However, I would like to know how to calculate or find out the distance
>> and travel time (as per definition). For example, I have a transit line (or
>> public transport route) as follows.
>> 
>> 
>> 
>> 
>>
>> Now, if I wanted to find out the distance and travel time from busStop#35
>> to busStop#36. TraCI code is preferable to obtain these requirements.
>>
>> 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


Re: [sumo-user] Trouble in setting the opposite direction driving

2020-06-03 Thread Jakob Erdmann
Hello,
sumo currently allows opposite-overtaking only on roads that have one
directional lane. This follows the assumption that vehicles avoid the
opposite side if they already have a passing lane.
regards,
Jakob

Am Mi., 3. Juni 2020 um 06:59 Uhr schrieb Zhang Jackie <
zhangzuot...@gmail.com>:

> Hi All,
> I'd like to set the opposite direction driving available in a simple road
> network like the image below:
> 100m x 100m, 2 opposite edges and 2 lanes for each edge. (file name:
> net.net.xml)
> I use the NETCOVERT tool to generate the net.xml which allows the opposite
> driving, the command is like this:
> netconvert --sumo-net-file=net.net.xml --opposites.guess=true
> --opposites.guess.fix-lengths=true --output-file=opnet.net.xml
>
> But after set the vehicle flow
>  to="B1B0" type="RushCar" />
> and run the simulation, there's no vehicle run to the opposite lane, any
> thing wrong  with my configuration? The vehicle' number is not large enough?
>
> I put my xml file in the attachments.
> PS. SUMO verison win 1.6.0, OS: win10 2004 x64
> Thanks for your help in advance.
>
> [image: image.png]
> ___
> 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] Novel one-lane road for both directions, and any workarounds

2020-06-03 Thread Jakob Erdmann
Hello,
with the opposite-overtaking approach to model one-lane-for-both-diretion
roads, stopping on the one-lane-road is not possible:
- you cannot park on the opposite side (not downstream the current route)
- you cannot park on the forward side because it's occupied by the blocker
vehicle
I'm not sure why the blue vehicle fails to park in your test. It's working
fine in my own test.

In reality, the pass-by positions are often fixed (the road widens just a
little bit for this purpose). I would recommend to model these spots by
having multiple blocker vehicles with gaps in between at the desired
spacing. This way you can park in the forward direction (and
sumo-controlled vehicles would do this automatically to avoid oncoming
traffic).

If you want to override this behavior with your own code, using
context-subscriptions sounds reasonable.

regards,
Jakob

Am Mi., 3. Juni 2020 um 05:36 Uhr schrieb K M :

> Hello Jacob,
>
> I've been working for while based on your last suggestion, placing cars as
> obstacles on one lane and using TraCI to detect when two opposing vehicles
> are within a range of each other.
>
> 1) My current approach is to make a distance matrix between vehicles to
> know whether car A is within range of car B and then decide which one
> parks. This relies on each car's current lane and the succeeding lane. Do
> you recommend using context subscriptions or any other approaches to detect
> an impending collision?
>
> 2) To test out the simplest case, for now my scenario only has 2 opposing
> vehicles, before moving on to greater complexity. I have vehicles 'Red' and
> 'Blue'. Red is on the wrong lane which is being blocked by long green
> vehicles, and Blue is on the natural lane which is unblocked. All attempts
> to make the vehicles park on the side of the road have failed.
>
> [image: image.png]
>
>
> For some reason, whenever they are in range (150 meters) of each other,
> the TraCI command to park fails. This is the command I used:
>
> traci.vehicle.setStop(vehID=stopping_vehicleID,
>> edgeID=stopping_vehicleEdge, laneIndex=0, duration=duration,
>> flags=traci.constants.STOP_PARKING)
>>
>
> When I force Red to park on the side of the road, I get an error, whether
> the stopping edge is the one it is currently on ( '6to1_0' ) or whether it
> is the neighboring edge ( '1to6_0' ) which is in its route but is of course
> blocked:
>
> Stop for vehicle 'red' ... is not downstream the current route.
>>
>
> I then tried making Blue the vehicle that always parked, but I got the
> same type of error *even though the lane is within the current route*:
>
> route: ['in', '4to5', '5to6', '6to1', '1to2', '2to3', '3to4', 'out']
>>
> traci.exceptions.TraCIException: Stop for vehicle 'blue' on lane '5to6_0'
>> is not downstream the current route.
>>
>
>
> Can you please suggest what is wrong and how I can fix this? Thank you
>
> Below is just raw output from the console.
>
>
> Traceback (most recent call last):
>   File "", line 3, in 
>   File "", line 228, in run
>   File "D:\Program Files\DLR\Sumo\tools\traci\_vehicle.py", line 693, in 
> setStop
> self._connection._sendExact()
>   File "D:\Program Files\DLR\Sumo\tools\traci\connection.py", line 109, in 
> _sendExact
> raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
> traci.exceptions.TraCIException: Stop for vehicle 'red' on lane '6to1_0' is 
> not downstream the current route.
>
>
> stopping_vehicleEdge: 1to6
> route: ['in', '4to3', '3to2', '2to1', '1to6', '6to5', '5to4', 'out']
> Traceback (most recent call last):
>   File "", line 24, in 
>   File "", line 205, in run
>   File "D:\Program Files\DLR\Sumo\tools\traci\_vehicle.py", line 693, in 
> setStop
> self._connection._sendExact()
>   File "D:\Program Files\DLR\Sumo\tools\traci\connection.py", line 109, in 
> _sendExact
> raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
> traci.exceptions.TraCIException: Stop for vehicle 'red' on lane '1to6_0' is 
> not downstream the current route.
>
>
> stopping_vehicleEdge: 5to6
> route: ['in', '4to5', '5to6', '6to1', '1to2', '2to3', '3to4', 'out']
> lanePos: 534.0311930685754
> Traceback (most recent call last):
>   File "", line 3, in 
>   File "", line 229, in run
>   File "D:\Program Files\DLR\Sumo\tools\traci\_vehicle.py", line 693, in 
> setStop
> self._connection._sendExact()
>   File "D:\Program Files\DLR\Sumo\tools\traci\connection.py", line 109, in 
> _sendExact
> raise TraCIException(prefix[1], _RESULTS[prefix[2]], err)
> traci.exceptions.TraCIException: Stop for vehicle 'blue' on lane '5to6_0' is 
> not downstream the current route.
>
>
>
> On Mon, May 18, 2020 at 11:29 AM Jakob Erdmann 
> wrote:
>
>> 1) Sorry for that. You also need to set netconvert/netedit option
>> '--geometry.avoid-overlap false' to make this happen (otherwise netconvert
>> tries it's best to modify geometries and avoid such overlap). In Netedit
>> you can set the option using F10 (see
>> 

Re: [sumo-user] Osm to SUMO

2020-06-03 Thread Jakob Erdmann
By default, netconvert connects all streets (if the permissions are
compatible). If connections are missing, this is typically caused by
restrictions defined in the OSM file. You can often use online route
planners to check if turnings are permitted at a specific location.

Am Di., 2. Juni 2020 um 21:48 Uhr schrieb Raheleh Zarei <
raheleh.za...@gmail.com>:

> Hello,
>
> I exported an OSM file of my city, using osmWebWizard.py. I used
> netconvert to convert this OSM file to SUMO network. I would like to know
> if there is any option that makes connections between all the streets
> meeting at an intersection?
> In the network example in
> https://sumo.dlr.de/docs/OpenStreetMap_file.html , I see that there is a
> connection between streets that are connected through a junction. I used
> the same options that you used to convert the OSM to make this SUMO network
> but my map is still doesn't have connection between streets.
>
> Thanks
>
> --
> *RAZ*
> ___
> 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] weight update inteval

2020-06-03 Thread Jakob Erdmann
At the given interval, the weights are updated and those are used
automatically by Astar and Dijkstra. The reason for 'myValidUntil' is the
unique need to by CHRouter to perform pre-processing once the weights
change.

Am Di., 2. Juni 2020 um 17:58 Uhr schrieb Raheleh Zarei <
raheleh.za...@gmail.com>:

> Thanks.
> So, Could we say that "myValidUntil" parameter in CHRouter.h file, is set
> based on the value given to the option --device.rerouting.adaptation-
> interval?
> How this is used in Astar and Dijkstra?
>
> On Sat, May 16, 2020 at 2:46 PM Jakob Erdmann 
> wrote:
>
>> This is all documented at
>> https://sumo.dlr.de/docs/Demand/Automatic_Routing.html
>>
>> Am Sa., 16. Mai 2020 um 20:16 Uhr schrieb Raheleh Zarei <
>> raheleh.za...@gmail.com>:
>>
>>> Thanks.
>>> May I know how this travel time is calculated?And when rerouting happens?
>>>
>>> On Sat, May 16, 2020 at 1:28 PM Jakob Erdmann 
>>> wrote:
>>>
 It works for all routing algorithms. You can visualize the current
 weights in SUMO-GUI (color by edges "by routing device assumed speed") and
 you can also save the values to xml using option --device.rerouting.output
 FILE



 Am Sa., 16. Mai 2020 um 18:10 Uhr schrieb Raheleh Zarei <
 raheleh.za...@gmail.com>:

> Hello,
>
> Is the option  --device.rerouting.adaptation-interval  works for all
> the routing algorithms or just CH? I can't track its effect
> in DijkstraRouter.h. and AstarRouter.h.
>
> Thanks,
> Raheleh
> --
> *RAZ*
> ___
> 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

>>>
>>>
>>> --
>>> *RAZ*
>>> ___
>>> 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
>>
>
>
> --
> *RAZ*
> ___
> 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] Building a Zipper Merge

2020-06-03 Thread Jakob Erdmann
Hold the Ctrl-Key while clicking in connection mode (
https://sumo.dlr.de/docs/NETEDIT.html#changing_connections)

Am Di., 2. Juni 2020 um 17:09 Uhr schrieb Bae, Jong In :

> Hello,
>
> I have two straight edges with 2 lanes. I'm trying to build a zipper merge
> at the node between the two edges.
>
> I've set the node as zipper but it seems like NetEdit is not letting me
> set up the connections as zipper merge.
>
> Is there any way I can set up the connections as shown in the attached
> screenshot?
>
> Thank you.
> ___
> 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