[sumo-user] Setting gui viewports

2020-05-22 Thread Aleksandr Korshunov
Hello,

I want to set several viewports for a sumo-gui simulation.
I prepared XML files for each viewport, but when I defined them in sumo
configuration file, sumo-gui failed.

I tried this way:
__

   
  
  
  
  
  
   
etc...
__

and this way:
__

   
  
  
  
   
etc...
__

How do I need to define them properly?

-- 

*Regards,Korshunov Aleksandr*
Phone number: +972-50-48-50-222, +7-903-906-82-30
korshunov.sa...@gmail.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] Import a osm.pbf to sumo.

2020-05-22 Thread lenri001
Hello all,
I know how to convert a .osm file using this would be the procedure.

netconvert --osm-files map.osm -o test.net.xml 

However, how would I apply that to the osm.pbf file?
Thank you for the 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


[sumo-user] polyconvert - color

2020-05-22 Thread Sasan Amini
I have one shapefile containing more than 300 polygons from a visum
network.  When I use polyconvert to extract the polygons all of them get
the same color. Is it possible to randomly generate different colors for
each polygon?
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Generating routes with ptlines2flows.py

2020-05-22 Thread Issa, Joshua
Hello all,

I am following the tutorial 
https://sumo.dlr.de/docs/Tutorials/PT_from_OpenStreetMap.html and trying to 
replicate it. For some reason I cannot get it working. The following is my 
sumocfg file. I have already tried this with and without the additional-files. 
The SUMO simulation displays the net file with no issue, but despite following 
the tutorial the route file does not do anything.
















___
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] Generate ticket data while simulating public transit line (route)

2020-05-22 Thread Tripplanner Mumbai
As per the discussion, I tried to extract the stage information using TraCI
and combine the log files to generate the ticket data. However, for some of
the cases, I get fatal errors as follows.

File "/home/dhrien/Documents/sumos/Bologna/acosta_persontrips/demo.py",
line 86, in run  prevStage = traci.person.getStage(peopleIDs[i],-1)
File "/usr/share/sumo/tools/traci/_person.py", line 192, in getStage
tc.VAR_STAGE, personID))
File "/usr/share/sumo/tools/traci/connection.py", line 158, in _checkResult
result = self._sendExact()
File "/usr/share/sumo/tools/traci/connection.py", line 101, in _sendExact
raise FatalTraCIError("connection closed by SUMO")
FatalTraCIError: connection closed by SUMO

The above error is due the following code segment written inside run method
of TraCI program.
currStage = traci.person.getStage(peopleIDs[i])
if currStage.type == 3: #record only if driving or riding

try:
prevStage = traci.person.getStage(peopleIDs[i],-1)
except FatalTraCIError:
print("Previous Stage Error for Person",peopleIDs[i])
continue

Note that previous stage is retrieved only if a person is boarded into a
vehicle. Also, l am trying handle the exception but the program stops.
Further, I do check if previous stage is null (None) and then operate but
unfortunately nothing works at this moment.

Please suggest.

thanks and regards,
Dillip Rout

On Thu, 7 May 2020 at 12:46, Jakob Erdmann  wrote:

> Yes. If you need to retrieve data while the simulation is still running,
> you generally need to use traci. If you can wait until the simulation is
> finished you can retrieve the ticket information from the xml outputs as
> well.
>
> Am Do., 7. Mai 2020 um 09:06 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello Jackob,
>> Do you mean that I should retrieve person data using TraCI (links-
>> https://sumo.dlr.de/docs/TraCI/Person_Value_Retrieval.html,
>> https://sumo.dlr.de/pydoc/traci._person.html#PersonDomain-getStage)?
>> Thanks in advance.
>>
>> On Thu, 7 May 2020 at 12:13, Jakob Erdmann  wrote:
>>
>>> Hello,
>>> during the simulation, you can use traci.person.getStage to access past,
>>> current and future stage information including the destination busStop of
>>> each stage (which is the origin stop for the subsequent stage).
>>> regards,
>>> Jakob
>>>
>>> Am Do., 7. Mai 2020 um 08:36 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
 Hello,
 I am trying to capture the origin and destination bus stops of each
 passenger (or on aggregate for a group) and issue tickets accordingly. I
 found that  has information about the line, number of passengers
 boarded and the source bus stop, as given below.

 >>> parking="0" started="983.00" ended="1080.00" delay="0.00"
 initialPersons="18" loadedPersons="3" unloadedPersons="12"
 initialContainers="0" loadedContainers="0" unloadedContainers="0"
 busStop="busStop#34"/>

 Also, it can be noted that  has information about the
 destination stop while riding, as given below.

 

  >>> busStop="busStop#31"/>

  

 


 Now, the question is how to capture both origin and destination
 information while the simulation is going on. Just like the stop
 information, is there any way to generate the ticket information.


 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