[sumo-user] Modelling Public Transport Line (or fixed Route)

2020-05-04 Thread Tripplanner Mumbai
Hello,

I am confused about the implementation of public transport route inside
SUMO.

As per standards, a public transport route (sometimes known as a line) has
a fixed sequence of stops which it has to cover, and a frequency which
means the number of times that route must be served at these stops.

In SUMO, we have a  tag, but I think it is used for deciding a path
not a public transport route (or line). On the other hand, a route is
modelled through  tag using an attribute "line". Well, such
modelling is discouraging as each time we have to repeat the sequence of
stops and related edges, as given below of two instances repeating the same
information unnecessarily.

Instance 1:









Instance 2:









Furthermore, I would like to know about implementing frequency assignment
to a public transport route (or line). Could anyone clarify my doubts or
redirect me to a correct thread.

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


Re: [sumo-user] Modelling Public Transport Line (or fixed Route)

2020-05-04 Thread Tripplanner Mumbai
@Mirko @Jakob: Thank you so much for coming to my rescue. Please clarify if
I have interpreted it the flows correctly.



Does it indicate that a public transport line (or route) with id named
"bus" whose sequence of stops are defined by route named "busRoute".
The frequency of this line is 300 seconds or 5 minutes per hour, that
is in every 5 minutes there will be one vehicle for this line.
However, the service stops at 801 seconds from the simulation time, it
means that there will be only two vehicles started for this line.

@Mirko: osmWebWizard is indeed a great tool, thanks.


On Mon, 4 May 2020 at 21:32, Jakob Erdmann  wrote:

> I recommend that you use osmWebWizard to import a network including public
> transport and then look at the generated file osm_pt.rou.xml as an example
> of succinct public transport modelling. The stops and times are defined
> only once in a named route and the vehicles are defined as flows which
> reference this route.
> See also
> https://sumo.dlr.de/docs/Simulation/Public_Transport.html#stops_in_a_stand-alone_route
> .
>
> regards,
> Jakob
>
> Am Mo., 4. Mai 2020 um 17:56 Uhr schrieb Mirko Barthauer <
> m.bartha...@t-online.de>:
>
>> Hi,
>>
>> have you tried out defining your public transport line as a flow element
>> (see https://sumo.dlr.de/docs/Simulation/Public_Transport.html#flows)?
>> Then you should be able to specify a frequency and reference the route and
>> stops only once.
>>
>> Regards
>> Mirko
>> Am 04.05.2020 um 17:33 schrieb Tripplanner Mumbai:
>>
>> Hello,
>>
>> I am confused about the implementation of public transport route inside
>> SUMO.
>>
>> As per standards, a public transport route (sometimes known as a line)
>> has a fixed sequence of stops which it has to cover, and a frequency which
>> means the number of times that route must be served at these stops.
>>
>> In SUMO, we have a  tag, but I think it is used for deciding a
>> path not a public transport route (or line). On the other hand, a route is
>> modelled through  tag using an attribute "line". Well, such
>> modelling is discouraging as each time we have to repeat the sequence of
>> stops and related edges, as given below of two instances repeating the same
>> information unnecessarily.
>>
>> Instance 1:
>> > line="14">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Instance 2:
>> > line="14">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> Furthermore, I would like to know about implementing frequency assignment
>> to a public transport route (or line). Could anyone clarify my doubts or
>> redirect me to a correct thread.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> ___
>> sumo-user mailing listsumo-u...@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] 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


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

2020-08-17 Thread Tripplanner Mumbai
Hello Jakob,
I tried the version was updated on August 16 and found the same errors.
Then, as per your instructions, I ran "make clean" followed by "make
VERBOSE=1" inside cmake-build folder. Again, the ended in errors.
The output of "make VERBOSE=1" instruction is attached herewith. Note that
I am using Ubuntu 18.04 as operating system.
thanks and regards,
Dillip Rout


On Mon, 17 Aug 2020 at 14:42, Jakob Erdmann  wrote:

> in the cmake-build folder:
> Please run 'make clean'
> and then post the output of
> 'make VERBOSE=1'
>
> Am So., 16. Aug. 2020 um 18:35 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> The message "Makefile:140: recipe for target 'all' failed" is a summary
>> message.
>>
>>> a) post the output of the make-run to the list
>>>
>>> sudo make -j$(grep -c ^processor /proc/cpuinfo) |& tee
>>> makefile-output.txt
>>>
>> Ended in following error:
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>
>>> b) run step 5 twice (the second step compiles only the erroneous step
>>> again, so the second message might show up)
>>>
>>> sudo make -j$(grep -c ^processor /proc/cpuinfo)
>>>
>>> sudo make
>>>
>> Ended in Error:
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>> c) try a newer version
>>>
>> All the above errors are respect to August 15 version.
>>
>> d) Someone else in this user group has an idea
>>>
>>>
>>
>>> Hello Harald,
>>>
>>> No, I did not get any other errors. Should I try other version?
>>> thanks and regards,
>>> Dillip Rout
>>>
>>> On Fri, 7 Aug 2020 at 11:20, Harald Schaefer  wrote:
>>>
>>>> Hello Dillip,
>>>>
>>>> there must be another error in the output of the makefile.
>>>>
>>>> If you run step 5 without the -j option (just sudo make), the other
>>>> error should be at the end too.
>>>>
>>>> Greetings, Harald
>>>> Am 07.08.20 um 07:06 schrieb Tripplanner Mumbai:
>>>>
>>>> Hello Jakob,
>>>> Thank you for taking so much of effort to correct the null pointer.
>>>>
>>>> I downloaded the latest version of August 5 and followed the following
>>>> steps for installing SUMO on my Ubuntu 18.04 machine.
>>>>
>>>>1.
>>>>
>>>>sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
>>>>libgdal-dev libproj-dev libgl2ps-dev swig
>>>>2.
>>>>
>>>>export SUMO_HOME="$PWD/sumo"
>>>>3.
>>>>
>>>>sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
>>>>    4.
>>>>
>>>>sudo cmake ../..
>>>>5.
>>>>
>>>>sudo make -j$(grep -c ^processor /proc/cpuinfo)
>>>>6.
>>>>
>>>>sudo make install
>>>>
>>>> However,Step-5 resulted in the following error while installation:
>>>> [  2%] Linking CXX static library libutils_xml.a [  2%] Built target
>>>> utils_xml Makefile:140: recipe for target 'all' failed make: *** [all]
>>>> Error 2
>>>> Kindly look into the issue.
>>>> with best regards,
>>>> Dillip Rout
>>>>
>>>>
>>>> On Mon, 3 Aug 2020 at 19:19, Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> Please try again with the latest development version tomorrow (
>>>>> https://github.com/eclipse/sumo/issues/7336).
>>>>>
>>>>> Am Mi., 22. Juli 2020 um 14:08 Uhr schrieb Tripplanner Mumbai <
>>>>> tripplanner...@gmail.com>:
>>>>>
>>>>>> 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 <
>>>>>> tripplanner...@gmail.com> wrote:
>>>>>>
>>>>>>> Ag

Re: [sumo-user] Generate ticket data while simulating public transit line (route)

2020-05-28 Thread Tripplanner Mumbai
Yes, the latest version works fine for retrieving the previous stage. It is
especially helpful when two consecutive rides are there.

On Mon, 25 May 2020 at 14:05, Jakob Erdmann  wrote:

> Yes. The error happened when accessing the vehicle (pointer) of a previous
> stage in order to retrieve the vehicle type id of that stage. Instead of
> using a potentially stale pointer, the type id is now stored directly.
>
> Am Mo., 25. Mai 2020 um 10:29 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hi Jackob,
>> I want to point out to your comments at github link- "*when calling
>> traci.person.getNextStage(personID, nextStageIndex) with a negative index,
>> if the vehicle has already left the simulation, traci crashes when trying
>> access the vehicle type*".
>>
>> You may be right that it happened due to the fact the vehicle has left.
>> However, the error is due to accessing the previous stage and the
>> properties of previous stage (not the vehicle type or ID of the current
>> stage).
>>
>> I am attaching a modified TraCI file for your reference. It raises
>> exception on line 66, and a customized error is as follows:
>> Error in Previous Stage retrieval, so, skip this personID: 2229
>> Interestingly, when I followed the person in persontrip.rou.xml, I found
>> the following information.
>>
>> 
>> 
>> 
>> > busStop="busStop#35"/>
>> 
>> 
>> 
>>
>> It means that the error occurred when 2229 waiting for his second ride
>> (lines="89"), and I am trying to get the previous stage information, his
>> first ride (lines="14"), possibly, the corresponding vehicle of his first
>> ride has left the simulation. Hence, we are unable to fetch the previous
>> stage information.
>>
>> Roughly, I guess that this situation might arise whenever there is a
>> consecutive ride (public transit lines) for a passengers, in his plan.
>>
>> thanks and regards,
>> Dillip Rout
>>
>>
>> On Mon, 25 May 2020 at 12:52, Jakob Erdmann 
>> wrote:
>>
>>> Thank you for the example files. The issue has been fixed (
>>> https://github.com/eclipse/sumo/issues/7060)
>>> You can download the updated sumo version* tomorrow* at
>>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>>>
>>> regards,
>>> Jakob
>>>
>>> Am Mo., 25. Mai 2020 um 07:50 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> It is not clear from the log files what error it has. The program stops
>>>> by stating that "FatalTraCIError: connection closed by SUMO". I am sending
>>>> the files as attachment with the following details.
>>>>
>>>>
>>>>- SUMO-version - 1.6.0  and operating system - Ubuntu 18.04 LTS
>>>>- screenshot attached
>>>>- input files attached
>>>>- line 65 in demo.py (attached) creates FatalTraCIError
>>>>
>>>> Kindly try to resolve it.
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Sun, 24 May 2020 at 21:27, Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> Hello,
>>>>> the FatalTraCIError can mean one of two things:
>>>>> 1) Sumo had an error (you will find a reason in the log file if you
>>>>> run sumo with option --log)
>>>>> 2) Sumo encountered a bug and crashed. In that case please send me
>>>>> input files for reproducing the issue (
>>>>> https://sumo.dlr.de/docs/FAQ.html#how_do_i_report_erroneous_behavior_of_a_sumo_application
>>>>> )
>>>>> you can send the files directly to me or you can create an issue on
>>>>> github and attach the files there.
>>>>>
>>>>> regards,
>>>>> Jakob
>>>>>
>>>>> Am Fr., 22. Mai 2020 um 08:07 Uhr schrieb Tripplanner Mumbai <
>>>>> tripplanner...@gmail.com>:
>>>>>
>>>>>> 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 
>>>>>>

Re: [sumo-user] Generate ticket data while simulating public transit line (route)

2020-05-25 Thread Tripplanner Mumbai
Hi Jackob,
I want to point out to your comments at github link- "*when calling
traci.person.getNextStage(personID, nextStageIndex) with a negative index,
if the vehicle has already left the simulation, traci crashes when trying
access the vehicle type*".

You may be right that it happened due to the fact the vehicle has left.
However, the error is due to accessing the previous stage and the
properties of previous stage (not the vehicle type or ID of the current
stage).

I am attaching a modified TraCI file for your reference. It raises
exception on line 66, and a customized error is as follows:
Error in Previous Stage retrieval, so, skip this personID: 2229
Interestingly, when I followed the person in persontrip.rou.xml, I found
the following information.
   








It means that the error occurred when 2229 waiting for his second ride
(lines="89"), and I am trying to get the previous stage information, his
first ride (lines="14"), possibly, the corresponding vehicle of his first
ride has left the simulation. Hence, we are unable to fetch the previous
stage information.

Roughly, I guess that this situation might arise whenever there is a
consecutive ride (public transit lines) for a passengers, in his plan.

thanks and regards,
Dillip Rout


On Mon, 25 May 2020 at 12:52, Jakob Erdmann  wrote:

> Thank you for the example files. The issue has been fixed (
> https://github.com/eclipse/sumo/issues/7060)
> You can download the updated sumo version* tomorrow* at
> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>
> regards,
> Jakob
>
> Am Mo., 25. Mai 2020 um 07:50 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> It is not clear from the log files what error it has. The program stops
>> by stating that "FatalTraCIError: connection closed by SUMO". I am sending
>> the files as attachment with the following details.
>>
>>
>>- SUMO-version - 1.6.0  and operating system - Ubuntu 18.04 LTS
>>- screenshot attached
>>- input files attached
>>- line 65 in demo.py (attached) creates FatalTraCIError
>>
>> Kindly try to resolve it.
>> thanks and regards,
>> Dillip Rout
>>
>> On Sun, 24 May 2020 at 21:27, Jakob Erdmann 
>> wrote:
>>
>>> Hello,
>>> the FatalTraCIError can mean one of two things:
>>> 1) Sumo had an error (you will find a reason in the log file if you run
>>> sumo with option --log)
>>> 2) Sumo encountered a bug and crashed. In that case please send me input
>>> files for reproducing the issue (
>>> https://sumo.dlr.de/docs/FAQ.html#how_do_i_report_erroneous_behavior_of_a_sumo_application
>>> )
>>> you can send the files directly to me or you can create an issue on
>>> github and attach the files there.
>>>
>>> regards,
>>> Jakob
>>>
>>> Am Fr., 22. Mai 2020 um 08:07 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> 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
>>

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

2020-06-01 Thread Tripplanner Mumbai
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


Re: [sumo-user] Defining bidirectional line or bus service

2020-06-01 Thread Tripplanner Mumbai
Hello Jakob,
I am unable to follow your instructions. Could you please modify the
following line (bus route, which is currently unidirectional) as
bidirectional (not cyclic) line?

   



   

thanks and regards,
Dillip Rout

On Tue, 2 Jun 2020 at 00:01, Jakob Erdmann  wrote:

> For the reverse directions you need to define additional busStops (on the
> reverse direction edges).
> Then you can add the stops to the route definition and extend the list of
> edges.
> Once the route has looped back to the start you can either repeat the
> sequences of stops (with different until times) and edges or use route
> attributes 'repeat' and 'period'.  For the latter you should use the latest
> development version due make use of a recent bugfix.
>
> Am Mo., 1. Juni 2020 um 08:25 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> In general, if a transit line (bus service route) is provided then it is
>> bidirectional. That is, a bus assigned to this line, goes from depot A to
>> depot B, and then comes back from depot B to depot A in the exactly reverse
>> path in the opposite direction. This is also known as up and down journey
>> of the line (or bus instance) respectively.
>>
>> I have defined a route and corresponding flow as follows in my input file
>> as follows.  
>> 
>> 
>> 
>>> line="13" type="bus" route="13"/>
>>
>> The above input works fine in a single direction. That is, every vehicle
>> (bus) assigned to this line moves from busStop#35 to busStop#36. However,
>> the same vehicle or any other vehicles do not come back or run from
>> busStop#36 to busStop#35. It does not simulate the real-life scenario of
>> bus service.
>>
>> Kindly, suggest the modification so that I can achieve bidirectional line
>> service and corresponding output.
>>
>> 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] 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


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

2020-08-06 Thread Tripplanner Mumbai
Hello Jakob,
Thank you for taking so much of effort to correct the null pointer.

I downloaded the latest version of August 5 and followed the following
steps for installing SUMO on my Ubuntu 18.04 machine.

   1.

   sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
   libgdal-dev libproj-dev libgl2ps-dev swig
   2.

   export SUMO_HOME="$PWD/sumo"
   3.

   sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
   4.

   sudo cmake ../..
   5.

   sudo make -j$(grep -c ^processor /proc/cpuinfo)
   6.

   sudo make install


However,Step-5 resulted in the following error while installation:
[  2%] Linking CXX static library libutils_xml.a
[  2%] Built target utils_xml
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Kindly look into the issue.

with best regards,
Dillip Rout



On Mon, 3 Aug 2020 at 19:19, Jakob Erdmann  wrote:

> Please try again with the latest development version tomorrow (
> https://github.com/eclipse/sumo/issues/7336).
>
> Am Mi., 22. Juli 2020 um 14:08 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> 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 <
>> tripplanner...@gmail.com> 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 <
>>> tripplanner...@gmail.com> 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 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-08-10 Thread Tripplanner Mumbai
 Hello Harald,
No, I did not get any other errors. Should I try other version?
thanks and regards,
Dillip Rout

On Fri, 7 Aug 2020 at 11:20, Harald Schaefer  wrote:

> Hello Dillip,
>
> there must be another error in the output of the makefile.
>
> If you run step 5 without the -j option (just sudo make), the other error
> should be at the end too.
>
> Greetings, Harald
> Am 07.08.20 um 07:06 schrieb Tripplanner Mumbai:
>
> Hello Jakob,
> Thank you for taking so much of effort to correct the null pointer.
>
> I downloaded the latest version of August 5 and followed the following
> steps for installing SUMO on my Ubuntu 18.04 machine.
>
>1.
>
>sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
>libgdal-dev libproj-dev libgl2ps-dev swig
>2.
>
>export SUMO_HOME="$PWD/sumo"
>3.
>
>sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
>4.
>
>sudo cmake ../..
>5.
>
>sudo make -j$(grep -c ^processor /proc/cpuinfo)
>6.
>
>sudo make install
>
> However,Step-5 resulted in the following error while installation:
> [  2%] Linking CXX static library libutils_xml.a [  2%] Built target
> utils_xml Makefile:140: recipe for target 'all' failed make: *** [all]
> Error 2
> Kindly look into the issue.
> with best regards,
> Dillip Rout
>
>
> On Mon, 3 Aug 2020 at 19:19, Jakob Erdmann  wrote:
>
>> Please try again with the latest development version tomorrow (
>> https://github.com/eclipse/sumo/issues/7336).
>>
>> Am Mi., 22. Juli 2020 um 14:08 Uhr schrieb Tripplanner Mumbai <
>> tripplanner...@gmail.com>:
>>
>>> 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 <
>>> tripplanner...@gmail.com> 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 <
>>>> tripplanner...@gmail.com> 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 mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>
> ___
> sumo-user mailing listsumo-u...@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] stop output and trip output do not match

2020-06-30 Thread Tripplanner Mumbai
Hello,
I ran it again using the TraCI program and the log says the following.
   Persons: [Inserted: 9000, Running: 28, Jammed: 167]
Possibly, you are pointing out to Running: 28 which is the discrepancy.

Furthermore, I share the following counts of rides got from the execution:
  2334 trip-output
  2341 stop-output
  2341 TraCI program log

Clearly, the ride statistics from the simulation matches the trip-output
count:
  Ride Statistics (avg of 2334 rides): [WaitingTime: 205.01,
RouteLength: 505.21, Duration: 100.75, Bus: 2334]

However, the ride count is note balanced as per your recommendation,
i.e., *trip-output
== stop-output - running*. On the other hand, stop-output == TraCI count,
which is only about the completed rides (not the entire trips).
Looks like I have to extract some more information from TraCI to get the
desired result. Meanwhile, if you have some more clarification and
suggestions, please let me know.

thanks and regards,
Dillip Rout

On Mon, 29 Jun 2020 at 17:54, Jakob Erdmann  wrote:

> When I run your simulation (run.sumocfg), I get 2341 loaded/unloaded
> persons in stop-output.
> I used attributeStats.py -e stopinfo -a loadedPersons stops-out.xml -p 5
> and this gives 622 stops with an average of  3.76367 loaded/unloaded
>
> At the end time of 36000 there are still 28 persons in the simulation
> according to the log.
> You can also check this by comparing the input count (9000 persons) to the
> tripinfo output count (8972 persons).
>
> Looking at the simulation reveals that these persons are waiting at a
> busStop after all buses have already left. Some of them such as person 6064
> have already used a bus by that time which creates a discrepancy between
> loadedPersons and ride count in tripinfo-output.
>
> The pedestrian collisions are (among other things) caused by vehicles that
> drive on the sidewalks due to being configured with vClass="ignoring".
> The pedestrian jamming (which could be caused by mis-dimensioned
> sidewalks/crossings) could be responsible for persons missing their buses.
>
> regards,
> Jakob
>
>
>
>
> Am Mo., 29. Juni 2020 um 10:21 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> *"tripinfo-output only contains persons that have completed their whole
>> itinerary (all walks and rides)"*
>> The above may be true, but your later statements explain the issues
>> partially. I changed the time from 3600 to 36000, and also, restored the
>> bus route input file. However, I still find that stop-output contains 2318
>> boarding and alighting, whereas trip-output contains 2310 trips for
>> passengers. I suspected that maybe those 8 passengers are stuck in jams
>> and/or collisions. To my surprise, I found that the number of jams and
>> collisions are certainly more than 8 (at least 5 times of it). Then, what
>> is the reason for having such a gap between stop-output count and
>> trip-output count.
>>
>> When I ran the same simulation using TraCI, I found that total trips on
>> buses 2341.
>>
>> I am attaching the latest network which I used for simulation in the
>> command line as well as in TraCI. Please recheck, there might be some
>> issues in the software itself ( I am using a version which was updated on
>> June 25, 2020).
>>
>> On Mon, 29 Jun 2020 at 11:52, Jakob Erdmann 
>> wrote:
>>
>>> tripinfo-output only contains persons that have completed their whole
>>> itinerary (all walks and rides). Since your configuration ends the
>>> simulation at step 3600 it will prevent output of all persons still
>>> travelling at that time even though they already rode a bus and thus show
>>> up in the stop-output.
>>>
>>> Am Fr., 26. Juni 2020 um 10:35 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>> Again, I tried this with the latest development version of SUMO which
>>>> was updated on June 25, 2020. However, the same issue continues, *i.e.*,
>>>> the number of boarded and alighted persons in stop output is more than the
>>>> number of records in trip output.
>>>> Kindly, look into it at earliest.
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Wed, 24 Jun 2020 at 17:20, Tripplanner Mumbai <
>>>> tripplanner...@gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>> Recently, I implemented public transit lines in SUMO. I encountered
>>>>> that the number of passengers boarded at a stop according to stop output,
>>>>> does not  mat

Re: [sumo-user] stop output and trip output do not match

2020-06-30 Thread Tripplanner Mumbai
Hello Jakob,
My apologies for misinterpreting your statements, thanks for your
clarification. Yes, the analysis is true there are multiple persons with
single or double riding.

Now, I am trying to extract the trip information using TraCI, but not
successful right now. In Particular, 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*
As seen, travel time and depart time are negative, it is hard to interpret.
I guess the distance shown is the distance of the ride covered in previous
stage of the person. Further, depart time is a must field for my objective.

Could you please provide some insights so that I can get the values of all
fields of previous stage?

thanks and regards,
Dillip Rout




On Tue, 30 Jun 2020 at 12:21, Jakob Erdmann  wrote:

> I never claimed that trip-output == stop-output - running, only that
> persons still running are responsible for trip-output != stop-output.
> This is because a person that is still in the simulation may have
> previously taken any number of rides and all of those are missing from the
> trip-output.
>
> As the result of sumo/tools/route/analyzePersonPlans.py -r
> persontrips.rou.xml shows, there are a number of persons with multiple
> rides:
>
> Loaded 9000 persons
>1: walk public public walk public walk
>   31: walk public walk public walk
>   75: walk public public walk
> 2154: walk public walk
> 6739: walk
>
>
> Am Di., 30. Juni 2020 um 08:01 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> I ran it again using the TraCI program and the log says the following.
>>Persons: [Inserted: 9000, Running: 28, Jammed: 167]
>> Possibly, you are pointing out to Running: 28 which is the discrepancy.
>>
>> Furthermore, I share the following counts of rides got from the execution:
>>   2334 trip-output
>>   2341 stop-output
>>   2341 TraCI program log
>>
>> Clearly, the ride statistics from the simulation matches the trip-output
>> count:
>>   Ride Statistics (avg of 2334 rides): [WaitingTime: 205.01,
>> RouteLength: 505.21, Duration: 100.75, Bus: 2334]
>>
>> However, the ride count is note balanced as per your recommendation,
>> i.e., *trip-output == stop-output - running*. On the other hand,
>> stop-output == TraCI count, which is only about the completed rides (not
>> the entire trips).
>> Looks like I have to extract some more information from TraCI to get the
>> desired result. Meanwhile, if you have some more clarification and
>> suggestions, please let me know.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> On Mon, 29 Jun 2020 at 17:54, Jakob Erdmann 
>> wrote:
>>
>>> When I run your simulation (run.sumocfg), I get 2341 loaded/unloaded
>>> persons in stop-output.
>>> I used attributeStats.py -e stopinfo -a loadedPersons stops-out.xml -p 5
>>> and this gives 622 stops with an average of  3.76367 loaded/unloaded
>>>
>>> At the end time of 36000 there are still 28 persons in the simulation
>>> according to the log.
>>> You can also check this by comparing the input count (9000 persons) to
>>> the tripinfo output count (8972 persons).
>>>
>>> Looking at the simulation reveals that these persons are waiting at a
>>> busStop after all buses have already left. Some of them such as person 6064
>>> have already used a bus by that time which creates a discrepancy between
>>> loadedPersons and ride count in tripinfo-output.
>>>
>>> The pedestrian collisions are (among other things) caused by vehicles
>>> that drive on the sidewalks due to being configured with vClass="ignoring".
>>> The pedestrian jamming (which could be caused by mis-dimensioned
>>> sidewalks/crossings) could be responsible for persons missing their buses.
>>>
>>> regards,
>>> Jakob
>>>
>>>
>>>
>>>
>>> Am Mo., 29. Juni 2020 um 10:21 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>> *"tripinfo-output only contains persons that have completed their whole
>>>> itinerary (all walks and rides)"

Re: [sumo-user] Uninstalling SUMO

2020-07-05 Thread Tripplanner Mumbai
Hello,
I tried to execute the first command for uninstalling as per given
instructions in
https://sumo.dlr.de/docs/Installing/Linux_Build.html#uninstalling

   sudo xargs rm < install_manifest.txt

However, I failed to find  install_manifest.txt file. I searched the
entire $SUMO_HOME directory but it does not exist. Mention that I had
installed
the latest development version which was updated on June 25.

Kinldy, recheck the development version if it carries install_manifest.txt file.

thanks and regards,

Dillip Rout


On Fri, 19 Jun 2020 at 11:01, Michael Behrisch  wrote:

> Hi,
> the file is called install_manifest.txt and you find it in the dir where
> you built sumo (something like sumo/build/cmake-build if you followed
> the instructions). It is generated by cmake automatically (at least we
> did nothing in our configuration to trigger the creation explicitly).
>
> Best regards,
> Michael
>
> Am 19.06.20 um 07:21 schrieb Tripplanner Mumbai:
> > @Michael,
> > I noticed that the uninstalling instruction is updated.
> > I am currently using the latest development version (updated on June 15,
> > 2020). I fell to find manifest.txt in my installed sumo directory. Is
> > manifest.txt added recently to the build files?
> > regards,
> > Dillip Rout
> >
> >
> > On Thu, 18 Jun 2020 at 11:53, Michael Behrisch  > <mailto:o...@behrisch.de>> wrote:
> >
> > Hi,
> > cmake does not provide an uninstall make target, so I added
> instructions
> > here:
> > https://sumo.dlr.de/docs/Installing/Linux_Build.html
> > It boils down to running
> > sudo xargs rm < install_manifest.txt
> > from your build dir.
> >
> > Best regards,
> > Michael
> >
> > Am 16.06.20 um 14:05 schrieb Tripplanner Mumbai:
> > > Hello,
> > >
> > > Recently, I installed a sumo (v1_6_0+0676-d20520c106) by the
> > > instructions (cloning and installing) given in the page (on my
> Ubuntu
> > > 18.04) https://sumo.dlr.de/docs/Installing/Linux_Build.html.
> > >
> > > Now, I want to uninstall it and install the latest development.
> > > However, when I tried the command: *sudo apt remove --purge sumo*
> > > It shows that no SUMO is installed. Nonetheless, when I typed the
> > > command: *sumo --version*, it shows me the version of the SUMO.
> > >
> > > Can anyone suggest how to uninstall my current version, which was
> > build
> > > through cmake and all?
> > >
> > > thanks and regards,
> > > Dillip Rout
> > >
> > > ___
> > > sumo-user mailing list
> > > sumo-user@eclipse.org <mailto: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 <mailto: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] Uninstalling SUMO

2020-07-06 Thread Tripplanner Mumbai
Hello Herald,

I just installed the latest development version which was updated on
July 5 (205 MB file) for Ubuntu 18.04.

I followed your instructions, also searched it manually, yet this
install_manifest.txt files not exists in my installation. I guess that
it may for particular

type of installation. The developer may have some insights.

thanks and regards,

Dillip Rout


On Mon, 6 Jul 2020 at 12:08, Harald Schaefer  wrote:

> Hi Dilip,
>
> You have to look in the build-directory, where all your sources are!
>
> $SUMO_HOME points to the runtime-directory
>
> harald@nyc> find . -name 'install*txt'
> ./build/cmake-build/install_manifest.txt
>
> I would prefer
>
> cat install_manifest.txt | xargs sudo rm
>
> Greetings Harald
> Am 06.07.20 um 07:26 schrieb Tripplanner Mumbai:
>
> Hello,
> I tried to execute the first command for uninstalling as per given
> instructions in
> https://sumo.dlr.de/docs/Installing/Linux_Build.html#uninstalling
>
>sudo xargs rm < install_manifest.txt
>
> However, I failed to find  install_manifest.txt file. I searched the entire 
> $SUMO_HOME directory but it does not exist. Mention that I had installed
> the latest development version which was updated on June 25.
>
> Kinldy, recheck the development version if it carries install_manifest.txt 
> file.
>
> thanks and regards,
>
> Dillip Rout
>
>
> On Fri, 19 Jun 2020 at 11:01, Michael Behrisch  wrote:
>
>> Hi,
>> the file is called install_manifest.txt and you find it in the dir where
>> you built sumo (something like sumo/build/cmake-build if you followed
>> the instructions). It is generated by cmake automatically (at least we
>> did nothing in our configuration to trigger the creation explicitly).
>>
>> Best regards,
>> Michael
>>
>> Am 19.06.20 um 07:21 schrieb Tripplanner Mumbai:
>> > @Michael,
>> > I noticed that the uninstalling instruction is updated.
>> > I am currently using the latest development version (updated on June 15,
>> > 2020). I fell to find manifest.txt in my installed sumo directory. Is
>> > manifest.txt added recently to the build files?
>> > regards,
>> > Dillip Rout
>> >
>> >
>> > On Thu, 18 Jun 2020 at 11:53, Michael Behrisch > > <mailto:o...@behrisch.de>> wrote:
>> >
>> > Hi,
>> > cmake does not provide an uninstall make target, so I added
>> instructions
>> > here:
>> > https://sumo.dlr.de/docs/Installing/Linux_Build.html
>> > It boils down to running
>> > sudo xargs rm < install_manifest.txt
>> > from your build dir.
>> >
>> > Best regards,
>> > Michael
>> >
>> > Am 16.06.20 um 14:05 schrieb Tripplanner Mumbai:
>> > > Hello,
>> > >
>> > > Recently, I installed a sumo (v1_6_0+0676-d20520c106) by the
>> > > instructions (cloning and installing) given in the page (on my
>> Ubuntu
>> > > 18.04) https://sumo.dlr.de/docs/Installing/Linux_Build.html.
>> > >
>> > > Now, I want to uninstall it and install the latest development.
>> > > However, when I tried the command: *sudo apt remove --purge sumo*
>> > > It shows that no SUMO is installed. Nonetheless, when I typed the
>> > > command: *sumo --version*, it shows me the version of the SUMO.
>> > >
>> > > Can anyone suggest how to uninstall my current version, which was
>> > build
>> > > through cmake and all?
>> > >
>> > > thanks and regards,
>> > > Dillip Rout
>> > >
>> > > ___
>> > > sumo-user mailing list
>> > > sumo-user@eclipse.org <mailto: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 <mailto: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 listsumo-u...@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] Uninstalling SUMO

2020-07-06 Thread Tripplanner Mumbai
Hi Herald,

Thanks for reverting back.

I downloaded the latest development version, updated on July 5 which is
available at
https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version.
Then. I followed the below instructions to install SUMO into my system
(while at my /home/dillip directory on my Ubuntu 18.04 system).

   1.

   sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
   libgdal-dev libproj-dev libgl2ps-dev swig
   2.

   export SUMO_HOME="$PWD/sumo"
   3.

   sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
   4.

   sudo cmake ../..
   5.

   sudo make -j$(grep -c ^processor /proc/cpuinfo)

After installation I checked all directories and also followed your
instructions to find install_manifest.txt file, however, I did not find it.
Now, could you please point out where the issue is.

thanks and regards,
Dillip Rout

On Mon, 6 Jul 2020 at 13:59, Harald Schaefer  wrote:

> Hi Dilip,
>
> the install_manifest.txt seems to be created only, if you build SUMO on
> Linux on your own and issue at the end an install step.
>
> If you install a pre-compiled development version, this file might be
> missing.
>
> Regards, Harald
> Am 06.07.20 um 09:07 schrieb Tripplanner Mumbai:
>
> Hello Herald,
>
> I just installed the latest development version which was updated on July 5 
> (205 MB file) for Ubuntu 18.04.
>
> I followed your instructions, also searched it manually, yet this 
> install_manifest.txt files not exists in my installation. I guess that it may 
> for particular
>
> type of installation. The developer may have some insights.
>
>
> thanks and regards,
>
> Dillip Rout
>
>
> On Mon, 6 Jul 2020 at 12:08, Harald Schaefer  wrote:
>
>> Hi Dilip,
>>
>> You have to look in the build-directory, where all your sources are!
>>
>> $SUMO_HOME points to the runtime-directory
>>
>> harald@nyc> find . -name 'install*txt'
>> ./build/cmake-build/install_manifest.txt
>>
>> I would prefer
>>
>> cat install_manifest.txt | xargs sudo rm
>>
>> Greetings Harald
>> Am 06.07.20 um 07:26 schrieb Tripplanner Mumbai:
>>
>> Hello,
>> I tried to execute the first command for uninstalling as per given
>> instructions in
>> https://sumo.dlr.de/docs/Installing/Linux_Build.html#uninstalling
>>
>>sudo xargs rm < install_manifest.txt
>>
>> However, I failed to find  install_manifest.txt file. I searched the entire 
>> $SUMO_HOME directory but it does not exist. Mention that I had installed
>> the latest development version which was updated on June 25.
>>
>> Kinldy, recheck the development version if it carries install_manifest.txt 
>> file.
>>
>> thanks and regards,
>>
>> Dillip Rout
>>
>>
>> On Fri, 19 Jun 2020 at 11:01, Michael Behrisch  wrote:
>>
>>> Hi,
>>> the file is called install_manifest.txt and you find it in the dir where
>>> you built sumo (something like sumo/build/cmake-build if you followed
>>> the instructions). It is generated by cmake automatically (at least we
>>> did nothing in our configuration to trigger the creation explicitly).
>>>
>>> Best regards,
>>> Michael
>>>
>>> Am 19.06.20 um 07:21 schrieb Tripplanner Mumbai:
>>> > @Michael,
>>> > I noticed that the uninstalling instruction is updated.
>>> > I am currently using the latest development version (updated on June
>>> 15,
>>> > 2020). I fell to find manifest.txt in my installed sumo directory. Is
>>> > manifest.txt added recently to the build files?
>>> > regards,
>>> > Dillip Rout
>>> >
>>> >
>>> > On Thu, 18 Jun 2020 at 11:53, Michael Behrisch >> > <mailto:o...@behrisch.de>> wrote:
>>> >
>>> > Hi,
>>> > cmake does not provide an uninstall make target, so I added
>>> instructions
>>> > here:
>>> > https://sumo.dlr.de/docs/Installing/Linux_Build.html
>>> > It boils down to running
>>> > sudo xargs rm < install_manifest.txt
>>> > from your build dir.
>>> >
>>> > Best regards,
>>> > Michael
>>> >
>>> > Am 16.06.20 um 14:05 schrieb Tripplanner Mumbai:
>>> > > Hello,
>>> > >
>>> > > Recently, I installed a sumo (v1_6_0+0676-d20520c106) by the
>>> > > instructions (cloning and installing) given in the page (on my
>>> Ubuntu
>>> > > 1

Re: [sumo-user] Uninstalling SUMO

2020-07-06 Thread Tripplanner Mumbai
Hi Harald,
Thank you so much for pointing out that I was missing "make install" step.
Yesterday, I added this step and installed the new version updated on July
25. Also, i have changed the SUMO_HOME as instructed and updated this in my
.bash_profile. The sumo and TraCI are working from the command line.
However, when I am trying to run the TraCI program from Spyder3 (python
IDE), it throws an error that it is unable to connect to TraCI through X
port, where X refers to various port numbers. Could you please suggest, how
to resolve this issue? I would always prefer to run TraCI from Spyder3 as
it suppresses the SUMO warnings and outputs the program related prints and
errors.
thanks and regards,
Dillip Rout

On Mon, 6 Jul 2020 at 15:16, Harald Schaefer  wrote:

> Hi Dillip,
>
> your step 5 is the build step, not the installation step!
>
> Step 6 would be (see
> https://sumo.dlr.de/docs/Installing/Linux_Build.html#installing_the_sumo_binaries
> ):
>
> sudo make install
>
> This step records all installed files in the install_manifest.txt file.
>
> Regards, Harald
>
>
> Am 06.07.20 um 11:01 schrieb Tripplanner Mumbai:
>
> Hi Herald,
>
> Thanks for reverting back.
>
> I downloaded the latest development version, updated on July 5 which is
> available at
> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version.
> Then. I followed the below instructions to install SUMO into my system
> (while at my /home/dillip directory on my Ubuntu 18.04 system).
>
>1.
>
>sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
>libgdal-dev libproj-dev libgl2ps-dev swig
>2.
>
>export SUMO_HOME="$PWD/sumo"
>3.
>
>sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
>4.
>
>sudo cmake ../..
>5.
>
>sudo make -j$(grep -c ^processor /proc/cpuinfo)
>
> After installation I checked all directories and also followed your
> instructions to find install_manifest.txt file, however, I did not find it.
> Now, could you please point out where the issue is.
>
> thanks and regards,
> Dillip Rout
>
> On Mon, 6 Jul 2020 at 13:59, Harald Schaefer  wrote:
>
>> Hi Dilip,
>>
>> the install_manifest.txt seems to be created only, if you build SUMO on
>> Linux on your own and issue at the end an install step.
>>
>> If you install a pre-compiled development version, this file might be
>> missing.
>>
>> Regards, Harald
>> Am 06.07.20 um 09:07 schrieb Tripplanner Mumbai:
>>
>> Hello Herald,
>>
>> I just installed the latest development version which was updated on July 5 
>> (205 MB file) for Ubuntu 18.04.
>>
>> I followed your instructions, also searched it manually, yet this 
>> install_manifest.txt files not exists in my installation. I guess that it 
>> may for particular
>>
>> type of installation. The developer may have some insights.
>>
>>
>> thanks and regards,
>>
>> Dillip Rout
>>
>>
>> On Mon, 6 Jul 2020 at 12:08, Harald Schaefer  wrote:
>>
>>> Hi Dilip,
>>>
>>> You have to look in the build-directory, where all your sources are!
>>>
>>> $SUMO_HOME points to the runtime-directory
>>>
>>> harald@nyc> find . -name 'install*txt'
>>> ./build/cmake-build/install_manifest.txt
>>>
>>> I would prefer
>>>
>>> cat install_manifest.txt | xargs sudo rm
>>>
>>> Greetings Harald
>>> Am 06.07.20 um 07:26 schrieb Tripplanner Mumbai:
>>>
>>> Hello,
>>> I tried to execute the first command for uninstalling as per given
>>> instructions in
>>> https://sumo.dlr.de/docs/Installing/Linux_Build.html#uninstalling
>>>
>>>sudo xargs rm < install_manifest.txt
>>>
>>> However, I failed to find  install_manifest.txt file. I searched the entire 
>>> $SUMO_HOME directory but it does not exist. Mention that I had installed
>>> the latest development version which was updated on June 25.
>>>
>>> Kinldy, recheck the development version if it carries install_manifest.txt 
>>> file.
>>>
>>> thanks and regards,
>>>
>>> Dillip Rout
>>>
>>>
>>> On Fri, 19 Jun 2020 at 11:01, Michael Behrisch  wrote:
>>>
>>>> Hi,
>>>> the file is called install_manifest.txt and you find it in the dir where
>>>> you built sumo (something like sumo/build/cmake-build if you followed
>>>> the instructions). It is generated by cmake automatically (at least we
>>>>

Re: [sumo-user] Uninstalling SUMO

2020-07-07 Thread Tripplanner Mumbai
Hello Harald,
I resolved the below issue by uninstalling and reinstalling Spyder3.

*when I am trying to run the TraCI program from Spyder3 (python IDE), it
throws an error that it is unable to connect to TraCI through X port, where
X refers to various port numbers. *
Thanks for your help.
Dillip Rout

On Tue, 7 Jul 2020 at 10:24, Tripplanner Mumbai 
wrote:

> Hi Harald,
> Thank you so much for pointing out that I was missing "make install" step.
> Yesterday, I added this step and installed the new version updated on July
> 25. Also, i have changed the SUMO_HOME as instructed and updated this in my
> .bash_profile. The sumo and TraCI are working from the command line.
> However, when I am trying to run the TraCI program from Spyder3 (python
> IDE), it throws an error that it is unable to connect to TraCI through X
> port, where X refers to various port numbers. Could you please suggest, how
> to resolve this issue? I would always prefer to run TraCI from Spyder3 as
> it suppresses the SUMO warnings and outputs the program related prints and
> errors.
> thanks and regards,
> Dillip Rout
>
> On Mon, 6 Jul 2020 at 15:16, Harald Schaefer  wrote:
>
>> Hi Dillip,
>>
>> your step 5 is the build step, not the installation step!
>>
>> Step 6 would be (see
>> https://sumo.dlr.de/docs/Installing/Linux_Build.html#installing_the_sumo_binaries
>> ):
>>
>> sudo make install
>>
>> This step records all installed files in the install_manifest.txt file.
>>
>> Regards, Harald
>>
>>
>> Am 06.07.20 um 11:01 schrieb Tripplanner Mumbai:
>>
>> Hi Herald,
>>
>> Thanks for reverting back.
>>
>> I downloaded the latest development version, updated on July 5 which is
>> available at
>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version.
>> Then. I followed the below instructions to install SUMO into my system
>> (while at my /home/dillip directory on my Ubuntu 18.04 system).
>>
>>1.
>>
>>sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
>>libgdal-dev libproj-dev libgl2ps-dev swig
>>2.
>>
>>export SUMO_HOME="$PWD/sumo"
>>3.
>>
>>sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
>>4.
>>
>>sudo cmake ../..
>>5.
>>
>>sudo make -j$(grep -c ^processor /proc/cpuinfo)
>>
>> After installation I checked all directories and also followed your
>> instructions to find install_manifest.txt file, however, I did not find it.
>> Now, could you please point out where the issue is.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> On Mon, 6 Jul 2020 at 13:59, Harald Schaefer  wrote:
>>
>>> Hi Dilip,
>>>
>>> the install_manifest.txt seems to be created only, if you build SUMO on
>>> Linux on your own and issue at the end an install step.
>>>
>>> If you install a pre-compiled development version, this file might be
>>> missing.
>>>
>>> Regards, Harald
>>> Am 06.07.20 um 09:07 schrieb Tripplanner Mumbai:
>>>
>>> Hello Herald,
>>>
>>> I just installed the latest development version which was updated on July 5 
>>> (205 MB file) for Ubuntu 18.04.
>>>
>>> I followed your instructions, also searched it manually, yet this 
>>> install_manifest.txt files not exists in my installation. I guess that it 
>>> may for particular
>>>
>>> type of installation. The developer may have some insights.
>>>
>>>
>>> thanks and regards,
>>>
>>> Dillip Rout
>>>
>>>
>>> On Mon, 6 Jul 2020 at 12:08, Harald Schaefer  wrote:
>>>
>>>> Hi Dilip,
>>>>
>>>> You have to look in the build-directory, where all your sources are!
>>>>
>>>> $SUMO_HOME points to the runtime-directory
>>>>
>>>> harald@nyc> find . -name 'install*txt'
>>>> ./build/cmake-build/install_manifest.txt
>>>>
>>>> I would prefer
>>>>
>>>> cat install_manifest.txt | xargs sudo rm
>>>>
>>>> Greetings Harald
>>>> Am 06.07.20 um 07:26 schrieb Tripplanner Mumbai:
>>>>
>>>> Hello,
>>>> I tried to execute the first command for uninstalling as per given
>>>> instructions in
>>>> https://sumo.dlr.de/docs/Installing/Linux_Build.html#uninstalling
>>>>
>>>>sudo xargs rm < install_manifest.txt
>>&

Re: [sumo-user] stop output and trip output do not match

2020-07-07 Thread Tripplanner Mumbai
Hello,
@Harald, thanks for your tips to improve exceptions and dumping.

@Jakob,  it is suspected that the newer version (updated on July 25) is
having issues in retrieving the previous stage attributes, kindly look into
it and fix it.

thanks and regards,
Dillip Rout

On Tue, 7 Jul 2020 at 11:37, Harald Schaefer  wrote:

> Hi Dillip,
>
> in your try/except construct you should print the exception, here are my
> proposed changes
>
> harald@nyc> diff -C1 -b demo-i*
> *** demo-i_hs.py2020-07-07 07:50:42.456722800 +0200
> --- demo-i.py   2020-07-06 14:24:24.0 +0200
> ***
> *** 8,11 
>   import json  #for writing dumps and combining stuffs
> - import traceback
> -
>   #import StringIO
> --- 8,9 
> ***
> *** 299,304 
>   run()
> ! except Exception as e:
> !   traceback.print_exc()
> !   print(str(e))
> !   print ("Unexpected error:", sys.exc_info()[0])
> print("TraCI program is unable to start the simulation")
> --- 297,299 
>   run()
> ! except:
>   print("TraCI program is unable to start the
> simulation")
> ***
> *** 313 
> --- 308,309 
>   main()
> +
>
> The result is:
>
> Error in Previous Stage retrieval, so, skip this personID:  2229
> Traceback (most recent call last):
>   File "./demo-i_hs.py", line 299, in main
> run()
>   File "./demo-i_hs.py", line 84, in run
> currStage = traci.person.getStage(peopleIDs[i])
>   File "/usr/local/lib/python3.8/dist-packages/traci/_person.py", line
> 159, in getStage
> return self._getUniversal(tc.VAR_STAGE, personID, "i", nextStageIndex)
>   File "/usr/local/lib/python3.8/dist-packages/traci/domain.py", line 167,
> in _getUniversal
> return _parse(self._retValFunc, varID, self._getCmd(varID, objectID,
> format, *values))
>   File "/usr/local/lib/python3.8/dist-packages/traci/domain.py", line 172,
> in _getCmd
> r = self._connection._sendCmd(self._cmdGetID, varID, objID, format,
> *values)
>   File "/usr/local/lib/python3.8/dist-packages/traci/connection.py", line
> 178, in _sendCmd
> return self._sendExact()
>   File "/usr/local/lib/python3.8/dist-packages/traci/connection.py", line
> 83, in _sendExact
> self._socket.send(length + self._string)
> AttributeError: 'Connection' object has no attribute '_socket'
> 'Connection' object has no attribute '_socket'
> Unexpected error: 
> TraCI program is unable to start the simulation
>
> Don't asked my, what to do to fix this
>
> Greetings, Harald
> Am 07.07.20 um 06:41 schrieb Tripplanner Mumbai:
>
> Hello Harald,
> I am extremely sorry to miss that file.
> I am sending the revised network example, please go through it.
> thanks and regards,
> Dillip Rout
>
> On Tue, 7 Jul 2020 at 00:16, Harald Schaefer  wrote:
>
>> Hi Dillip,
>>
>> there is no settings.gui.xml in your example
>>
>> harald@nyc> demo-i.py --nogui
>> TraCI program is unable to load the network
>>  Retrying in 1 seconds
>> Loading configuration ... done.
>> Error: File 'settings.gui.xml' is not accessible (No such file or
>> directory).
>>
>> Greetings, Harald
>> Am 06.07.20 um 11:13 schrieb Tripplanner Mumbai:
>>
>> Hello Jakob,
>> As discussed earlier, I installed a newer version and tried my TraCI
>> program once again. Basically, I was trying to retrieve the previous stage
>> stop results, particularly as follows:
>> *  print("previous
>> stage","type",prevStage.type,"dest",prevStage.destStop,"travel time",
>> prevStage.travelTime, "distance",prevStage.length,"depart  time",
>> prevStage.depart)*
>>
>> Surprisingly, 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.*
>>
>> I am attaching my network again, it contains the same TraCI program
>> (demo-i.py) that I mentioned above. Ideally, it should be able to retrieve
>> the previous stage information for a person who has already boarded or
>> completed a trip by public transport. According to my scenario every person
>> walks to the bus stop prior to boarding any bus.
>>
>> Please investigate further about the inconsistencies.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> On Fri

Re: [sumo-user] Traffic simulation for a month

2020-07-15 Thread 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] Modeling of speed, congestion and flow in SUMO

2020-07-14 Thread Tripplanner Mumbai
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] Traffic simulation for a month

2020-07-14 Thread 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


Re: [sumo-user] stop output and trip output do not match

2020-07-03 Thread Tripplanner Mumbai
Hello,
Oh I see, thankfully, you have fixed the issue.
thanks and regards,
Dillip Rout

On Fri, 3 Jul 2020 at 13:48, Jakob Erdmann  wrote:

> Hello,
> that information was previously missing from the stage output (
> https://github.com/eclipse/sumo/issues/7274).
> You can download the updated version tomorrow at
> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
> regards,
> Jakob
>
> Am Di., 30. Juni 2020 um 09:56 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello Jakob,
>> My apologies for misinterpreting your statements, thanks for your
>> clarification. Yes, the analysis is true there are multiple persons with
>> single or double riding.
>>
>> Now, I am trying to extract the trip information using TraCI, but not
>> successful right now. In Particular, 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*
>> As seen, travel time and depart time are negative, it is hard to
>> interpret. I guess the distance shown is the distance of the ride covered
>> in previous stage of the person. Further, depart time is a must field for
>> my objective.
>>
>> Could you please provide some insights so that I can get the values of
>> all fields of previous stage?
>>
>> thanks and regards,
>> Dillip Rout
>>
>>
>>
>>
>> On Tue, 30 Jun 2020 at 12:21, Jakob Erdmann 
>> wrote:
>>
>>> I never claimed that trip-output == stop-output - running, only that
>>> persons still running are responsible for trip-output != stop-output.
>>> This is because a person that is still in the simulation may have
>>> previously taken any number of rides and all of those are missing from the
>>> trip-output.
>>>
>>> As the result of sumo/tools/route/analyzePersonPlans.py -r
>>> persontrips.rou.xml shows, there are a number of persons with multiple
>>> rides:
>>>
>>> Loaded 9000 persons
>>>1: walk public public walk public walk
>>>   31: walk public walk public walk
>>>   75: walk public public walk
>>> 2154: walk public walk
>>> 6739: walk
>>>
>>>
>>> Am Di., 30. Juni 2020 um 08:01 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>> I ran it again using the TraCI program and the log says the following.
>>>>Persons: [Inserted: 9000, Running: 28, Jammed:
>>>> 167]
>>>> Possibly, you are pointing out to Running: 28 which is the discrepancy.
>>>>
>>>> Furthermore, I share the following counts of rides got from the
>>>> execution:
>>>>   2334 trip-output
>>>>   2341 stop-output
>>>>   2341 TraCI program log
>>>>
>>>> Clearly, the ride statistics from the simulation matches the
>>>> trip-output count:
>>>>   Ride Statistics (avg of 2334 rides): [WaitingTime: 205.01,
>>>> RouteLength: 505.21, Duration: 100.75, Bus: 2334]
>>>>
>>>> However, the ride count is note balanced as per your recommendation,
>>>> i.e., *trip-output == stop-output - running*. On the other hand,
>>>> stop-output == TraCI count, which is only about the completed rides (not
>>>> the entire trips).
>>>> Looks like I have to extract some more information from TraCI to get
>>>> the desired result. Meanwhile, if you have some more clarification and
>>>> suggestions, please let me know.
>>>>
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Mon, 29 Jun 2020 at 17:54, Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> When I run your simulation (run.sumocfg), I get 2341 loaded/unloaded
>>>>> persons in stop-output.
>>>>> I used attributeStats.py -e stopinfo -a loadedPersons stops-out.xml -p
>>>>> 5
>>>>> and this gives 622 stops with an average of  3.76367 loaded/unloaded
>>>>>
>>>>

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

2020-07-11 Thread Tripplanner Mumbai
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] Defining depot in a SUMO network

2020-06-17 Thread Tripplanner Mumbai
Hello,

I need to define a bus depot so that the buses can rest at the depot and
not create congestion on the road if those are parked on the bus stops.
Nonetheless, I could not find a tag/field indicating depot.

Is the depot defined through a parking area? If yes then how to define the
capacity of that parking space? Say, I would like to have a parking area
which can accommodate 10 buses.

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


Re: [sumo-user] repeating public transit routes

2020-06-17 Thread Tripplanner Mumbai
Hello,
I think there must be a simpler way of re-routing using the attribute *line*
of  tag. As per definition, we can set a new line attribute on the
vehicles at this particular stop, it will be triggered automatically.
Also, I observe that there is a *tripId* attribute for  tag. Can it
be used to count or record various trips of a particular vehicle?
thanks and regards,
Dillip Rout

On Tue, 16 Jun 2020 at 14:52, Jakob Erdmann  wrote:

> The problem is with the rerouter that reassigns a new non-repeating route
> and thereby loses all the repeated stops. If you remove the rerouter, the
> vehicle will  stop in each lap.
>
> Am Di., 16. Juni 2020 um 10:27 Uhr schrieb Chris Weinhaupl <
> chrisweinha...@gmail.com>:
>
>>
>> Thanks for the 'repeat' tip, the vehicles are still not stopping on the
>> second lap.
>>
>> This is my version of sumo:  sumo-win64-1.6.0
>>
>> > "10">
>> 
>> 
>> 
>>
>> > "200" type="12passenger"/>
>>
>>
>> On Mon, Jun 15, 2020 at 2:06 AM Jakob Erdmann 
>> wrote:
>>
>>> @Dillip Rout: Please take a look at
>>> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_busstop
>>> @Chris Weinhaupl: You need to add the 'repeat' attribute in your route
>>> definition to define additional laps
>>>
>>> Am Mo., 15. Juni 2020 um 08:30 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello Jakob,
>>>> I tried something similar to your example:
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> It is observed that vehicles assigned to such a line (public transit
>>>> route) are indeed taking multiple trips as per the definition and the
>>>> relative time values are maintained. Each of these assigned vehicles always
>>>> run from start to end terminal, in this example, stop lane="SC_0" is always
>>>> the start and one direction. However, none of the assigned vehicles are
>>>> restarting from the end terminal to the start terminal, in this example,
>>>> stop lane="CN_0" is never a start.
>>>>
>>>> All I am trying to point out is that an assigned vehicle of a line
>>>> starts at one terminal and goes to the other terminal (upstream journey).
>>>> Then, the vehicle starts from the other terminal and comes back to start
>>>> (downstream journey). Nevertheless, the simulation in SUMO always logs only
>>>> the upstream journey although the vehicle is actually making the downstream
>>>> journey as well.
>>>>
>>>> I extended your example (bold) to force the vehicle of the line to halt
>>>> at downstream journey too:
>>>> 
>>>> 
>>>> 
>>>> **
>>>> 
>>>> 
>>>> However, it did not produce the desired result.
>>>>
>>>> I request you to suggest something by which both upstream and
>>>> downstream journey of each vehicle of the route will be captured.
>>>>
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Mon, 15 Jun 2020 at 04:03, Chris Weinhaupl 
>>>> wrote:
>>>>
>>>>>
>>>>> This creates 4 vehicles that will lap the route.
>>>>> The bus will stop at the first stop, however on the second lap the
>>>>> vehicle will not stop at the busStop.
>>>>>
>>>>> Thanks for the assistance, what may I change make the same vehicle
>>>>> repeat and stop at the first stop on the second/third/forth lap etc?
>>>>>
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>
>>>>> >>>> ="200" type="12passenger"/>
>>>>>
>>>>> On Fri, Jun 12, 2020 at 12:30 AM Jakob Erdmann 
>>>>> wrote:
>>>>>
>>>>>> The following example (from
>>>>>> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_stops
>>>>>> ) defines
>>>>>> 2 buses that run a looped route 3 times each (initial run and 2
>>>>>> repeats). The 'until' times are relative to the flow vehicle departures 
>>>>>> (at
>>>>>> time

Re: [sumo-user] Some ideas and proposals for repeated routes

2020-06-16 Thread Tripplanner Mumbai
Hello Jakob,

I understand your concern regarding the change or addition of new classes.
It is absolutely fine till things are working, especially with backward
compatibility. A splendid work has been done by you and your team, no
doubts. We are lucky to have your advice, time to time, majority of the
queries are sorted out within a day.

It is pretty nice to see renaming of the period attribute of route to
cycleTime (also known as round trip time). It will be adopted and
appreciated soon by the users. Just a query regarding the coexistence of
*end* and *number* attributes in flow (see below). As per the current
verion, both cannot be used simultaneously, is it contradictory?


Kudos to your team again for such evolving development of SUMO.

thanks and regards,
Dillip Rout

On Mon, 15 Jun 2020 at 22:27, Jakob Erdmann  wrote:

> Hello Harald,
> Thanks for your suggestions
> a)  I agree that using the same attribute name for two related but subtly
> different things is adding unnecessary confusion (I fact, confusion was
> recently observed).
> Since the 'period' attribute of flows has a lot of history behind it I'll
> keep this unchanged.
> However, I renamed route attribute period to 'cycleTime' (see
> https://github.com/eclipse/sumo/issues/7168).
>
> b) Incidentally, I was thinking about the same thing recently and came up
> with this: https://github.com/eclipse/sumo/issues/7164
> For an example. see
> https://github.com/eclipse/sumo/tree/master/tests/sumo/devices/rerouting/stops/public_transport_implicit_route
>
> c) This is already working with the recent fix:
> https://github.com/eclipse/sumo/tree/master/tests/sumo/devices/rerouting/stops/public_transport_implicit_route_depot
>
>
> @Dillip Rout: I generally avoid adding new input definitions as long as
> the existing ones can be used to achieve the desired results. Also, you may
> find that there is good reason in keeping the edges/stop-list separate from
> definition of the vehicles that run these stops (especially, when the
> departure times of the vehicles are not spaced regularly over the whole
> day).
> In terms of changing ambiguous names, there is a large cost associated
> with changing things that have been used by many people over many years.
> The case of route attribute period / cycleTime is special insofar that the
> feature was added recently and thus will not have been widely adopted yet.
> This is not to dismiss thoughts on improvements but rather to point out
> some of the constraints. Feel free to point out things that are confusing
> and/or inefficient.
>
> regards,
> Jakob
>
>
>
> Am Mo., 15. Juni 2020 um 11:03 Uhr schrieb Harald Schaefer <
> fechs...@gmail.com>:
>
>> Hello
>>
>> here are some proposals for enhancing the repeated route stuff:
>>
>> a) change of attribute names
>>
>>  In route I would rename period to cycletime (German: Umlaufzeit)
>>
>>  In flow I would rename period to headway (German: Taktzeit)
>>
>> b) Can we add the repeat features to trips, if we want to specify only
>> the stops and not the edges or allow an empty edge list?
>>
>> c) If I want to simulate a whole day, I need also the links to the depot
>> in the morning and evening
>>
>> The definition in the testcase
>> tests/sumo/rail/tramwayLoop/input_routes.rou.xml old (it has no
>> intermediate edges)
>>
>>> from="Tdepot_1" to="Tdepot_1" type="RB628">
>>  
>>  
>>  
>>  
>>  
>>
>>
>> might look in the future
>>
>>
>>  
>>
>>
>>
>>  
>>
>>> departSpeed="max" route="startLeft" headway="120"/>
>>
>> What do you think?
>>
>> Greetings,
>>
>> Harald
>>
>> ___
>> 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] repeating public transit routes

2020-06-16 Thread Tripplanner Mumbai
Hello Jakob,
"A  defines a place and direction for stopping, (because it is on
a specific lane and lanes are directional)".

Yes, I missed the direction aspect of a bus stop. In my example, my up and
down stops are the same, so I devised the route with a relevant set of
edges for having a cyclic (upstream and downstream).
As you pointed out, I have to learn a lot about the network file and its
properties. Also, I need to define depots so that layover time can be
defined at depots not at bus stops.
Thanks a lot, I am moving ahead with these inputs, really helpful.

with best regards,
Dillip Rout

On Tue, 16 Jun 2020 at 12:26, Jakob Erdmann  wrote:

> The error is correct because each of the stops must fit into a single loop
> of the route.
> I think there is a misunderstanding on your part abut the nature of
> busStop definitions in SUMO:
> A  defines a place and direction for stopping, (because it is on
> a specific lane and lanes are directional).
>
> Your sequence of stops is:
>
> 
> 
> 
> 
>
> due to the 'repeat=2' this gets turned into:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> As you can see, you have lots of successive stops at the same stop (and
> this was true even without repeat). This schedule doesn't make sense to me.
> Usually successive stops are on different busStops.
> If you are trying to encode the down direction, than you would usually do
> this by driving the vehicle on the other side of the road. This requires
> additional stops on the other side of the road. After defining the
> appropriate busStops You would get something like this:
>
>     
> 
> 
> 
>
> regards,
> Jakob
>
>
>
>
>
> Am Di., 16. Juni 2020 um 07:07 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello @Jakob,
>> I am using Eclipse *SUMO Version v1_6_0+0676-d20520c106* at present.
>> Well, if I do this - edges "22 59 53cd 53[0] 53[1][0] 53[1][1][0]
>> 77[1][0] 77ab 77bc 21a 21b 103 14 9 211 45 44 38 15 24" it works, but  the
>> last stop (which is origin in upstream and destination in downstream,
>> highlighted in bold) has to be excluded from the list of stops, otherwise
>> error  occurs.
>> 
>> 
>> 
>> * (not
>> allowed if edge list is shortened)*
>>
>> Anyway, I am attaching my code with all necessary files, kindly check and
>> suggest.
>>
>> thanks and regards,
>> Dillip Rout
>>
>>
>>
>> On Tue, 16 Jun 2020 at 00:31, Jakob Erdmann 
>> wrote:
>>
>>> Possibly your simulation is running afoul of
>>> https://github.com/eclipse/sumo/issues/7036 (which I hope I mentioned
>>> already).
>>> A route with edges "22 59 53cd 53[0] 53[1][0] 53[1][1][0] 77[1][0] 77ab
>>> 77bc 21a 21b 103 14 9 211 45 44 38 15 24" should work with the latest
>>> development version (not 1.6.0). If not, feel free to send me your
>>> simulation files so I can take a look.
>>>
>>> regards,
>>> Jakob
>>>
>>>
>>> Am Mo., 15. Juni 2020 um 19:05 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello Jakob,
>>>> Thank you for your example, I tried to imitate it and it worked.
>>>> Actually, my intuition was right, but I struggled in understanding the
>>>> network properties. For instance, a connection from an edge to the same
>>>> edge is not trivial, look at the below example. Just notice the bold edges
>>>> which are extra, my actual route ends at 22.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> >>> departLane="best" line="11" type="bus" route="11"/>
>>>> If I remove the edges in bold, then the simulation throws an error that
>>>> there is no connection from 22 to 22. Then, I tried to insert one
>>>> artificial connection in my network file but it was not accepted and the
>>>> simulation stopped due to an error in the network.
>>>>
>>>> The issue in defining such a route is that the travel time or round
>>>> trip time of a public transit line (or route) is not maintained well, some
>>>> void time is unnecessarily used. It may result in additional waiting time,
>>>> and/or unsatisfied demand.
>>>

Re: [sumo-user] repeating public transit routes

2020-06-19 Thread Tripplanner Mumbai
@Jakob,
*Rerouting:* Yes, I am interested in having two routes for a single public
transit line. Any vehicle assigned to this line will swap between the
routes once it reaches the end point at one direction or a depot. I will
make an attempt soo, will inform about the progress, and troubles if any.

*TripId:* I just added tripId information to  of a route. Yes, it is
getting printed in stop-output by default. However, it is not changed if a
vehicle is having multiple trips according to route definition: repeat,
cycleTime, period, number, etc. If this is what the tripId actually does
then it is doing the job of trip direction not tripId. It is due to the
fact that tripId supposed to be incremented after each trip ends and new
trip begins for a vehicle.

On Fri, 19 Jun 2020 at 12:25, Jakob Erdmann  wrote:

> Rerouting currently does not work with stops that follow a fixed schedule
> (attribute 'until').
> However, the use case with depot + cycle1 + cycle2 + ... + cyclen + depot
> was already discussed and is demonstrated in
> https://github.com/eclipse/sumo/blob/master/tests/sumo/devices/rerouting/stops/public_transport_implicit_route_depot
> Another problem with cyclic rerouters is, that you cannot define an end
> condition so vehicles would not reach the destination depot.
> For two vehicles that start on different ends you will need a second route
> definition at the moment.
>
> The tripId in a stop updates the tripId parameter of the vehicle when that
> stop is reached. You should be able to retrieve it with
> vehicle.getParameter(vehID, "tripId"). The tripId is written in stop-output
> after being set to a value other than "".
>
> Am Mi., 17. Juni 2020 um 14:07 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> *Re-routing *may be an alternative idea to implement upstream and
>> downstream for a public transit line (or route). Moreover, it will provide
>> more accurate simulation than implementing a cyclic route. The reason is
>> pretty clear, imagine a line which has two depots at two terminals.
>> Usually, two vehicles start at each end (from each depot) simultaneously
>> for the line in opposite directions. These vehicles swap the direction once
>> these reach their respective destination depot. This is not done when we
>> implement a cyclic route and mimic a bidirectional line. Hence, having two
>> separate routes for upstream and downstream direction, and swapping the
>> vehicle routes after reaching the last designated stop will be helpful in
>> my opinion.
>>
>> *TripID* is important in case of ticket generation and usual operational
>> records. I could not understand what to set in the tripId field while
>> defining a route for a line. Then, I tried to extract *tripId*
>> information using traci.vehicle.getParameter but the simulation stopped,
>> possibly due to an exception I guess. An example of using *tripID* will
>> be really helpful, especially how to set it and retrieve it. Will the
>> simulation update the vehicle's tripId? It will be best if tripId will be
>> available in stop-output, just like it contains the vehicle id.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> On Wed, 17 Jun 2020 at 15:24, Jakob Erdmann 
>> wrote:
>>
>>> Re-routing should not be needed for public transport simulation. The
>>> line attribute is used when matching passengers with rides.
>>> Note, that only the initial line value is currently used for public
>>> transport routing.
>>> The tripId attribute is only there for informational purposes. It can be
>>> used to represent real-life attributes of a pt-vehicle over the course of
>>> it's operation (the value  does not affect the simulation behavior).
>>> You can retrieve the tripId via stop-output and
>>> traci.vehicle.getParameter
>>>
>>> Am Mi., 17. Juni 2020 um 10:11 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>> I think there must be a simpler way of re-routing using the attribute
>>>> *line* of  tag. As per definition, we can set a new line
>>>> attribute on the vehicles at this particular stop, it will be triggered
>>>> automatically.
>>>> Also, I observe that there is a *tripId* attribute for  tag. Can
>>>> it be used to count or record various trips of a particular vehicle?
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Tue, 16 Jun 2020 at 14:52, Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> The problem is with the rerouter that reassigns a new non-repeating
&

Re: [sumo-user] stop output and trip output do not match

2020-06-26 Thread Tripplanner Mumbai
Hello,
Again, I tried this with the latest development version of SUMO which was
updated on June 25, 2020. However, the same issue continues, *i.e.*, the
number of boarded and alighted persons in stop output is more than the
number of records in trip output.
Kindly, look into it at earliest.
thanks and regards,
Dillip Rout

On Wed, 24 Jun 2020 at 17:20, Tripplanner Mumbai 
wrote:

> Hello,
> Recently, I implemented public transit lines in SUMO. I encountered that
> the number of passengers boarded at a stop according to stop output, does
> not  match with the number of passengers making successful trips according
> to trip output. I was assuming that every passenger who boards into some
> bus at any stop has an entry in trip output as well. I tried with TraCI as
> well as a simple command line, but in either case, I found that the
> passenger count varies. Typically, the total number passengers boarded (as
> per stop output) is greater than the total number of passengers in the trip
> output. However, when I extracted additional data through TraCI, then I
> found that the number of passengers at various stops as per stop output is
> the same as the extracted information about each passenger through TraCI.
>
> I am attaching my network along with TraCI code (demo-i.py) to be tested
> by others. Also, I am attaching a few csv files which I have extracted from
> the xml output files for easier reference.
>
> Please clarify if the stop output count of passengers has to be the same
> as the number of trips as per trip output or not.
>
> 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] Uninstalling SUMO

2020-06-16 Thread Tripplanner Mumbai
Hello,

Recently, I installed a sumo (v1_6_0+0676-d20520c106) by the instructions
(cloning and installing) given in the page (on my Ubuntu 18.04)
https://sumo.dlr.de/docs/Installing/Linux_Build.html.

Now, I want to uninstall it and install the latest development.
However, when I tried the command: *sudo apt remove --purge sumo*
It shows that no SUMO is installed. Nonetheless, when I typed the
command: *sumo
--version*, it shows me the version of the SUMO.

Can anyone suggest how to uninstall my current version, which was build
through cmake and all?

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


Re: [sumo-user] repeating public transit routes

2020-06-15 Thread Tripplanner Mumbai
Hello Jakob,
I tried something similar to your example:






It is observed that vehicles assigned to such a line (public transit route)
are indeed taking multiple trips as per the definition and the relative
time values are maintained. Each of these assigned vehicles always run from
start to end terminal, in this example, stop lane="SC_0" is always the
start and one direction. However, none of the assigned vehicles are
restarting from the end terminal to the start terminal, in this example,
stop lane="CN_0" is never a start.

All I am trying to point out is that an assigned vehicle of a line starts
at one terminal and goes to the other terminal (upstream journey). Then,
the vehicle starts from the other terminal and comes back to start
(downstream journey). Nevertheless, the simulation in SUMO always logs only
the upstream journey although the vehicle is actually making the downstream
journey as well.

I extended your example (bold) to force the vehicle of the line to halt at
downstream journey too:



**


However, it did not produce the desired result.

I request you to suggest something by which both upstream and downstream
journey of each vehicle of the route will be captured.

thanks and regards,
Dillip Rout

On Mon, 15 Jun 2020 at 04:03, Chris Weinhaupl 
wrote:

>
> This creates 4 vehicles that will lap the route.
> The bus will stop at the first stop, however on the second lap the vehicle
> will not stop at the busStop.
>
> Thanks for the assistance, what may I change make the same vehicle repeat
> and stop at the first stop on the second/third/forth lap etc?
>
> 
> 
> 
> 
>
>  "200" type="12passenger"/>
>
> On Fri, Jun 12, 2020 at 12:30 AM Jakob Erdmann 
> wrote:
>
>> The following example (from
>> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_stops
>> ) defines
>> 2 buses that run a looped route 3 times each (initial run and 2 repeats).
>> The 'until' times are relative to the flow vehicle departures (at time 0
>> and 200) and the period parameter defines by how much the until times are
>> shifted on each repeat.
>> Taken together there are 12 vehicle stops in this simulation (2 stops per
>> route x 3 repeats x 2 buses).
>>
>> 
>> 
>> 
>> 
>> 
>>
>> Am Fr., 12. Juni 2020 um 06:27 Uhr schrieb Tripplanner Mumbai <
>> tripplanner...@gmail.com>:
>>
>>> Hello,
>>> As per the documentation (
>>> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_routes),
>>> repeat is similar to frequency, am I correct?.
>>> Or, the frequency is similar to vehsPerHour defined in flow (
>>> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_vehicles_flows
>>> )
>>> For any public transit route or line, the fleet size is fixed, those
>>> vehicles make to and fro motion through the designated stops in various
>>> trips.
>>> Please let me know,
>>> thank you,
>>> Dillip Rout
>>>
>>> On Fri, 12 Jun 2020 at 08:33, Tripplanner Mumbai <
>>> tripplanner...@gmail.com> wrote:
>>>
>>>> Hello,
>>>> I have the same issue, that is, tried to simulate bus service. For a
>>>> line (or public transit route), several vehicles (fleet) repeatedly make
>>>> many trips according to headway (period in SUMO) or frequency. As per the
>>>> suggestions @Jackob, I tried the following.
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> 
>>>>  
>>>> >>> line="14" type="bus" route="14"/>
>>>>
>>>> However, it resulted in (i) infinite loop, simulated did not end (ii)
>>>> no lines or vehicles are repeated as per the output files.
>>>> I am also waiting to see a solution to it.
>>>>
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>> On Fri, 12 Jun 2020 at 07:07, Chris Weinhaupl 
>>>> wrote:
>>>>
>>>>> Thanks  @namdre
>>>>>
>>>>> I would like 70 buses to repeat a 40km loop stopping at defined
>>>>&

Re: [sumo-user] Defining depot in a SUMO network

2020-06-17 Thread Tripplanner Mumbai
Hello,
If I set  attribute parking=true, then is it going to be recorded in
stop-output? What if I implement a parking area for the depot, is it going
to be included in stop-output?
regards,
Dillip Rout

On Wed, 17 Jun 2020 at 12:04, Jakob Erdmann  wrote:

> you can define any stop to be out of the way of the main road by setting
> the  attribute parking=true. Parking areas are only needed if you
> want to model parking capacity constraints or parking search.
>
> Am Mi., 17. Juni 2020 um 08:03 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>>
>> I need to define a bus depot so that the buses can rest at the depot and
>> not create congestion on the road if those are parked on the bus stops.
>> Nonetheless, I could not find a tag/field indicating depot.
>>
>> Is the depot defined through a parking area? If yes then how to define
>> the capacity of that parking space? Say, I would like to have a parking
>> area which can accommodate 10 buses.
>>
>> 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] Uninstalling SUMO

2020-06-18 Thread Tripplanner Mumbai
@Michael,
I noticed that the uninstalling instruction is updated.
I am currently using the latest development version (updated on June 15,
2020). I fell to find manifest.txt in my installed sumo directory. Is
manifest.txt added recently to the build files?
regards,
Dillip Rout


On Thu, 18 Jun 2020 at 11:53, Michael Behrisch  wrote:

> Hi,
> cmake does not provide an uninstall make target, so I added instructions
> here:
> https://sumo.dlr.de/docs/Installing/Linux_Build.html
> It boils down to running
> sudo xargs rm < install_manifest.txt
> from your build dir.
>
> Best regards,
> Michael
>
> Am 16.06.20 um 14:05 schrieb Tripplanner Mumbai:
> > Hello,
> >
> > Recently, I installed a sumo (v1_6_0+0676-d20520c106) by the
> > instructions (cloning and installing) given in the page (on my Ubuntu
> > 18.04) https://sumo.dlr.de/docs/Installing/Linux_Build.html.
> >
> > Now, I want to uninstall it and install the latest development.
> > However, when I tried the command: *sudo apt remove --purge sumo*
> > It shows that no SUMO is installed. Nonetheless, when I typed the
> > command: *sumo --version*, it shows me the version of the SUMO.
> >
> > Can anyone suggest how to uninstall my current version, which was build
> > through cmake and all?
> >
> > 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] Some ideas and proposals for repeated routes

2020-06-15 Thread Tripplanner Mumbai
Hello Herald,
Thanks for coming up with a proposal.
In my opinion, the word route is ambiguous since it is used for defining a
path as well as a public transit line (or route). Hence,  a new class named
line or ptLine should be formed. This class will contain all the properties
of a public transit line (or route), may be some of those will be optional.
Broadly, this class should combine route, flow, trip, etc.
I would be happy to share the thoughts.
thanks and regards,
Dillip Rout

On Mon, 15 Jun 2020 at 14:33, Harald Schaefer  wrote:

> Hello
>
> here are some proposals for enhancing the repeated route stuff:
>
> a) change of attribute names
>
>  In route I would rename period to cycletime (German: Umlaufzeit)
>
>  In flow I would rename period to headway (German: Taktzeit)
>
> b) Can we add the repeat features to trips, if we want to specify only
> the stops and not the edges or allow an empty edge list?
>
> c) If I want to simulate a whole day, I need also the links to the depot
> in the morning and evening
>
> The definition in the testcase
> tests/sumo/rail/tramwayLoop/input_routes.rou.xml old (it has no
> intermediate edges)
>
> from="Tdepot_1" to="Tdepot_1" type="RB628">
>  
>  
>  
>  
>  
>
>
> might look in the future
>
>
>  
>
>
>
>  
>
> departSpeed="max" route="startLeft" headway="120"/>
>
> What do you think?
>
> Greetings,
>
> Harald
>
> ___
> 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] repeating public transit routes

2020-06-15 Thread Tripplanner Mumbai
Hello Jakob,
Thank you for your example, I tried to imitate it and it worked.
Actually, my intuition was right, but I struggled in understanding the
network properties. For instance, a connection from an edge to the same
edge is not trivial, look at the below example. Just notice the bold edges
which are extra, my actual route ends at 22.







If I remove the edges in bold, then the simulation throws an error that
there is no connection from 22 to 22. Then, I tried to insert one
artificial connection in my network file but it was not accepted and the
simulation stopped due to an error in the network.

The issue in defining such a route is that the travel time or round trip
time of a public transit line (or route) is not maintained well, some void
time is unnecessarily used. It may result in additional waiting time,
and/or unsatisfied demand.
Kindly, suggest if you have any sort of remedy for it.

Thank you again for your support and examples.

with best regards,
Dillip Rout



On Mon, 15 Jun 2020 at 13:36, Jakob Erdmann  wrote:

> @Dillip Rout: Please take a look at
> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_busstop
> @Chris Weinhaupl: You need to add the 'repeat' attribute in your route
> definition to define additional laps
>
> Am Mo., 15. Juni 2020 um 08:30 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello Jakob,
>> I tried something similar to your example:
>> 
>> 
>> 
>> 
>> 
>>
>> It is observed that vehicles assigned to such a line (public transit
>> route) are indeed taking multiple trips as per the definition and the
>> relative time values are maintained. Each of these assigned vehicles always
>> run from start to end terminal, in this example, stop lane="SC_0" is always
>> the start and one direction. However, none of the assigned vehicles are
>> restarting from the end terminal to the start terminal, in this example,
>> stop lane="CN_0" is never a start.
>>
>> All I am trying to point out is that an assigned vehicle of a line starts
>> at one terminal and goes to the other terminal (upstream journey). Then,
>> the vehicle starts from the other terminal and comes back to start
>> (downstream journey). Nevertheless, the simulation in SUMO always logs only
>> the upstream journey although the vehicle is actually making the downstream
>> journey as well.
>>
>> I extended your example (bold) to force the vehicle of the line to halt
>> at downstream journey too:
>> 
>> 
>> 
>> **
>> 
>> 
>> However, it did not produce the desired result.
>>
>> I request you to suggest something by which both upstream and downstream
>> journey of each vehicle of the route will be captured.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> On Mon, 15 Jun 2020 at 04:03, Chris Weinhaupl 
>> wrote:
>>
>>>
>>> This creates 4 vehicles that will lap the route.
>>> The bus will stop at the first stop, however on the second lap the
>>> vehicle will not stop at the busStop.
>>>
>>> Thanks for the assistance, what may I change make the same vehicle
>>> repeat and stop at the first stop on the second/third/forth lap etc?
>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>> >> "200" type="12passenger"/>
>>>
>>> On Fri, Jun 12, 2020 at 12:30 AM Jakob Erdmann 
>>> wrote:
>>>
>>>> The following example (from
>>>> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_stops
>>>> ) defines
>>>> 2 buses that run a looped route 3 times each (initial run and 2
>>>> repeats). The 'until' times are relative to the flow vehicle departures (at
>>>> time 0 and 200) and the period parameter defines by how much the until
>>>> times are shifted on each repeat.
>>>> Taken together there are 12 vehicle stops in this simulation (2 stops
>>>> per route x 3 repeats x 2 buses).
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> Am Fr., 12. Juni 2020 um 06:27 Uhr schrieb Tripplanner Mumbai <
>>>> tripplanner...@gmail.com>:
>>>>
>>>>> Hello,
>>>>> As per the documentation (
>>>>> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#r

[sumo-user] Extracting bus stops from a set of edges or path

2020-06-09 Thread Tripplanner Mumbai
Hello,
I have a path (route) which is defined as a sequence of edges. For example,
a set of edges is - edges="133 31 115 110 185 92 90 m91 88 187 190 77[0]
53[1][0] 53[1][1][0] 77[1][0] 77[1][1]". Now, how can I derive the set of
bus stops corresponding to this path. I mean all the bus stops which are on
this path, i.e., linked to any of the edges.
Assume that the scenario exists and working correctly.
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


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

2020-06-09 Thread Tripplanner Mumbai
Hello,

traci.busstop.getLaneID("busStop#35") did not work since there is no class
in "busstop" in my installed version, you may verify it from the attachment
which is the list of classes available in my local machine. Note that I am
using the latest development version of SUMO (
https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version).

However, class "busstop" is available in online documentation (
https://sumo.dlr.de/daily/pydoc/). Kindly, verify the latest development
and let me know.

thanks and regards,
Dillip Rout



On Wed, 3 Jun 2020 at 13:40, Jakob Erdmann  wrote:

> 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
>
___
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-09 Thread Tripplanner Mumbai
Nope, I am using ubuntu, and the particular version I installed is -
https://sumo.dlr.de/daily/sumo-all-git.tar.gz
<https://sumo.dlr.de/daily/sumo-all-git.tar.gz>
I rechecked my SUMO_HOME, it is pointing to the desired folder where all
the tools are available and that is configured for use.  If some issues
then I could have unable to find anything. Please see the attachment of
list of classes available, "busstop" class is missing. Other classes like
"lane", "edge", etc., are available.

On Tue, 9 Jun 2020 at 19:22, Jakob Erdmann  wrote:

> The download https://sumo.dlr.de/daily/sumo-win64-git.zip contains the
> file tools/traci/_busstop.py
> Most likely your are importing traci via reference to SUMO_HOME/tools
> where SUMO_HOME points to another version of sumo.
>
> Am Di., 9. Juni 2020 um 15:24 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>>
>> traci.busstop.getLaneID("busStop#35") did not work since there is no
>> class in "busstop" in my installed version, you may verify it from the
>> attachment which is the list of classes available in my local machine. Note
>> that I am using the latest development version of SUMO (
>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>> ).
>>
>> However, class "busstop" is available in online documentation (
>> https://sumo.dlr.de/daily/pydoc/). Kindly, verify the latest development
>> and let me know.
>>
>> thanks and regards,
>> Dillip Rout
>>
>>
>>
>> On Wed, 3 Jun 2020 at 13:40, Jakob Erdmann  wrote:
>>
>>> 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
>>>>>> __

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

2020-06-09 Thread Tripplanner Mumbai
Hello,

I just checked the current version which is updated on June 8. I found that
the class "busstop" is available in it. Looks like I have to uninstall mine
(updated from May) and again reinstall the new one.

thanks and regards,
Dillip Rout

On Tue, 9 Jun 2020 at 19:34, Tripplanner Mumbai 
wrote:

> Nope, I am using ubuntu, and the particular version I installed is -
> https://sumo.dlr.de/daily/sumo-all-git.tar.gz
> <https://sumo.dlr.de/daily/sumo-all-git.tar.gz>
> I rechecked my SUMO_HOME, it is pointing to the desired folder where all
> the tools are available and that is configured for use.  If some issues
> then I could have unable to find anything. Please see the attachment of
> list of classes available, "busstop" class is missing. Other classes like
> "lane", "edge", etc., are available.
>
> On Tue, 9 Jun 2020 at 19:22, Jakob Erdmann  wrote:
>
>> The download https://sumo.dlr.de/daily/sumo-win64-git.zip contains the
>> file tools/traci/_busstop.py
>> Most likely your are importing traci via reference to SUMO_HOME/tools
>> where SUMO_HOME points to another version of sumo.
>>
>> Am Di., 9. Juni 2020 um 15:24 Uhr schrieb Tripplanner Mumbai <
>> tripplanner...@gmail.com>:
>>
>>> Hello,
>>>
>>> traci.busstop.getLaneID("busStop#35") did not work since there is no
>>> class in "busstop" in my installed version, you may verify it from the
>>> attachment which is the list of classes available in my local machine. Note
>>> that I am using the latest development version of SUMO (
>>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>>> ).
>>>
>>> However, class "busstop" is available in online documentation (
>>> https://sumo.dlr.de/daily/pydoc/). Kindly, verify the latest
>>> development and let me know.
>>>
>>> thanks and regards,
>>> Dillip Rout
>>>
>>>
>>>
>>> On Wed, 3 Jun 2020 at 13:40, Jakob Erdmann 
>>> wrote:
>>>
>>>> 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 a

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

2020-06-09 Thread Tripplanner Mumbai
Things are sorted out after I installed the version available currently
which was updated on June 8.

On Tue, 9 Jun 2020 at 20:43, Tripplanner Mumbai 
wrote:

> Hello,
>
> I just checked the current version which is updated on June 8. I found
> that the class "busstop" is available in it. Looks like I have to uninstall
> mine (updated from May) and again reinstall the new one.
>
> thanks and regards,
> Dillip Rout
>
> On Tue, 9 Jun 2020 at 19:34, Tripplanner Mumbai 
> wrote:
>
>> Nope, I am using ubuntu, and the particular version I installed is -
>> https://sumo.dlr.de/daily/sumo-all-git.tar.gz
>> <https://sumo.dlr.de/daily/sumo-all-git.tar.gz>
>> I rechecked my SUMO_HOME, it is pointing to the desired folder where all
>> the tools are available and that is configured for use.  If some issues
>> then I could have unable to find anything. Please see the attachment of
>> list of classes available, "busstop" class is missing. Other classes like
>> "lane", "edge", etc., are available.
>>
>> On Tue, 9 Jun 2020 at 19:22, Jakob Erdmann  wrote:
>>
>>> The download https://sumo.dlr.de/daily/sumo-win64-git.zip contains the
>>> file tools/traci/_busstop.py
>>> Most likely your are importing traci via reference to SUMO_HOME/tools
>>> where SUMO_HOME points to another version of sumo.
>>>
>>> Am Di., 9. Juni 2020 um 15:24 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> Hello,
>>>>
>>>> traci.busstop.getLaneID("busStop#35") did not work since there is no
>>>> class in "busstop" in my installed version, you may verify it from the
>>>> attachment which is the list of classes available in my local machine. Note
>>>> that I am using the latest development version of SUMO (
>>>> https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version
>>>> ).
>>>>
>>>> However, class "busstop" is available in online documentation (
>>>> https://sumo.dlr.de/daily/pydoc/). Kindly, verify the latest
>>>> development and let me know.
>>>>
>>>> thanks and regards,
>>>> Dillip Rout
>>>>
>>>>
>>>>
>>>> On Wed, 3 Jun 2020 at 13:40, Jakob Erdmann 
>>>> wrote:
>>>>
>>>>> 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
>>>>>>>
>>>>>>>
&g

Re: [sumo-user] repeating public transit routes

2020-06-12 Thread Tripplanner Mumbai
Hello Jajob,
As I believe, the following line of code is responsible for dispatching or
starting vehicles. For example, the first vehicle starts at 1 sec and the
second starts at 201. There could be at most two vehicles since the flow
ends at 211 sec.


If my above assumption is correct, then what is the need of adding period
inside route again, it is confusing. Also, note that the period is
mentioned as 100 in this case.
 
Please clarify.
thanks and regards,
Dillip Rout

On Fri, 12 Jun 2020 at 12:00, Jakob Erdmann  wrote:

> The following example (from
> https://github.com/eclipse/sumo/tree/master/tests/sumo/basic/routes/parsing/repeat_flow_stops
> ) defines
> 2 buses that run a looped route 3 times each (initial run and 2 repeats).
> The 'until' times are relative to the flow vehicle departures (at time 0
> and 200) and the period parameter defines by how much the until times are
> shifted on each repeat.
> Taken together there are 12 vehicle stops in this simulation (2 stops per
> route x 3 repeats x 2 buses).
>
> 
> 
> 
> 
> 
>
> Am Fr., 12. Juni 2020 um 06:27 Uhr schrieb Tripplanner Mumbai <
> tripplanner...@gmail.com>:
>
>> Hello,
>> As per the documentation (
>> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_routes),
>> repeat is similar to frequency, am I correct?.
>> Or, the frequency is similar to vehsPerHour defined in flow (
>> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_vehicles_flows
>> )
>> For any public transit route or line, the fleet size is fixed, those
>> vehicles make to and fro motion through the designated stops in various
>> trips.
>> Please let me know,
>> thank you,
>> Dillip Rout
>>
>> On Fri, 12 Jun 2020 at 08:33, Tripplanner Mumbai <
>> tripplanner...@gmail.com> wrote:
>>
>>> Hello,
>>> I have the same issue, that is, tried to simulate bus service. For a
>>> line (or public transit route), several vehicles (fleet) repeatedly make
>>> many trips according to headway (period in SUMO) or frequency. As per the
>>> suggestions @Jackob, I tried the following.
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>>  
>>> >> line="14" type="bus" route="14"/>
>>>
>>> However, it resulted in (i) infinite loop, simulated did not end (ii) no
>>> lines or vehicles are repeated as per the output files.
>>> I am also waiting to see a solution to it.
>>>
>>> thanks and regards,
>>> Dillip Rout
>>>
>>> On Fri, 12 Jun 2020 at 07:07, Chris Weinhaupl 
>>> wrote:
>>>
>>>> Thanks  @namdre
>>>>
>>>> I would like 70 buses to repeat a 40km loop stopping at defined
>>>> busstops along the way.
>>>> I tried re-router but I cant make the bus stop the second time around.
>>>>
>>>> I tried to figure out a config that matches your suggestion.(just
>>>> below).
>>>>
>>>> May I ask for a sample config of a repeating transit bus.
>>>>
>>>>
>>>> Thanks everyone.
>>>> Cheers
>>>>
>>>>
>>>>
>>>>
>>>> Notes from Github:
>>>> I'm not sure what your question is.
>>>>
>>>>- if you want to keep the same vehicle circulation (vehicle id
>>>>stays the same) then you can either
>>>>   - define a vehicle or trip with lots of repeating stops
>>>>   - define a route that loops back to the start once and uses
>>>>   attribute 'repeat'. then assign that route to a vehicle
>>>>- if you want to keep sending a new vehicle on the same route
>>>>repeatedly you can use a flow.
>>>>
>>>> Of course, both things can be combined if you want multiple vehicles
>>>> running the same repeating loop.
>>>>
>>>>
>>>>
>>>> Ref:
>>>> https://github.com/eclipse/sumo/issues/7127
>>>>
>>>> @namdre
>>>>
>>>> For clarification regarding repeating PT.
>>>> I am wanting to have the same type vehicle repeat its route.
>>>>
>>>> I tried repeating edges and stops in rou

Re: [sumo-user] repeating public transit routes

2020-06-11 Thread Tripplanner Mumbai
Hello,
As per the documentation (
https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_routes),
repeat is similar to frequency, am I correct?.
Or, the frequency is similar to vehsPerHour defined in flow (
https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#repeated_vehicles_flows
)
For any public transit route or line, the fleet size is fixed, those
vehicles make to and fro motion through the designated stops in various
trips.
Please let me know,
thank you,
Dillip Rout

On Fri, 12 Jun 2020 at 08:33, Tripplanner Mumbai 
wrote:

> Hello,
> I have the same issue, that is, tried to simulate bus service. For a line
> (or public transit route), several vehicles (fleet) repeatedly make many
> trips according to headway (period in SUMO) or frequency. As per the
> suggestions @Jackob, I tried the following.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>  
>  line="14" type="bus" route="14"/>
>
> However, it resulted in (i) infinite loop, simulated did not end (ii) no
> lines or vehicles are repeated as per the output files.
> I am also waiting to see a solution to it.
>
> thanks and regards,
> Dillip Rout
>
> On Fri, 12 Jun 2020 at 07:07, Chris Weinhaupl 
> wrote:
>
>> Thanks  @namdre
>>
>> I would like 70 buses to repeat a 40km loop stopping at defined
>> busstops along the way.
>> I tried re-router but I cant make the bus stop the second time around.
>>
>> I tried to figure out a config that matches your suggestion.(just below).
>>
>> May I ask for a sample config of a repeating transit bus.
>>
>>
>> Thanks everyone.
>> Cheers
>>
>>
>>
>>
>> Notes from Github:
>> I'm not sure what your question is.
>>
>>- if you want to keep the same vehicle circulation (vehicle id stays
>>the same) then you can either
>>   - define a vehicle or trip with lots of repeating stops
>>   - define a route that loops back to the start once and uses
>>   attribute 'repeat'. then assign that route to a vehicle
>>- if you want to keep sending a new vehicle on the same route
>>repeatedly you can use a flow.
>>
>> Of course, both things can be combined if you want multiple vehicles
>> running the same repeating loop.
>>
>>
>>
>> Ref:
>> https://github.com/eclipse/sumo/issues/7127
>>
>> @namdre
>>
>> For clarification regarding repeating PT.
>> I am wanting to have the same type vehicle repeat its route.
>>
>> I tried repeating edges and stops in router and flow.
>> I think I misunderstood your comments regarding this question:
>> https://github.com/eclipse/sumo/issues/6550
>>
>> ```
>> > type="12passenger">
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ```
>>
>> ```
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ```
>> ___
>> 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] repeating public transit routes

2020-06-11 Thread Tripplanner Mumbai
Hello,
I have the same issue, that is, tried to simulate bus service. For a line
(or public transit route), several vehicles (fleet) repeatedly make many
trips according to headway (period in SUMO) or frequency. As per the
suggestions @Jackob, I tried the following.
















 


However, it resulted in (i) infinite loop, simulated did not end (ii) no
lines or vehicles are repeated as per the output files.
I am also waiting to see a solution to it.

thanks and regards,
Dillip Rout

On Fri, 12 Jun 2020 at 07:07, Chris Weinhaupl 
wrote:

> Thanks  @namdre
>
> I would like 70 buses to repeat a 40km loop stopping at defined
> busstops along the way.
> I tried re-router but I cant make the bus stop the second time around.
>
> I tried to figure out a config that matches your suggestion.(just below).
>
> May I ask for a sample config of a repeating transit bus.
>
>
> Thanks everyone.
> Cheers
>
>
>
>
> Notes from Github:
> I'm not sure what your question is.
>
>- if you want to keep the same vehicle circulation (vehicle id stays
>the same) then you can either
>   - define a vehicle or trip with lots of repeating stops
>   - define a route that loops back to the start once and uses
>   attribute 'repeat'. then assign that route to a vehicle
>- if you want to keep sending a new vehicle on the same route
>repeatedly you can use a flow.
>
> Of course, both things can be combined if you want multiple vehicles
> running the same repeating loop.
>
>
>
> Ref:
> https://github.com/eclipse/sumo/issues/7127
>
> @namdre
>
> For clarification regarding repeating PT.
> I am wanting to have the same type vehicle repeat its route.
>
> I tried repeating edges and stops in router and flow.
> I think I misunderstood your comments regarding this question:
> https://github.com/eclipse/sumo/issues/6550
>
> ```
>  type="12passenger">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ```
>
> ```
> 
> 
> 
> 
> 
> 
> 
> 
> ```
> ___
> 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] Export Sumo data to csv

2020-06-08 Thread Tripplanner Mumbai
What is the issue or error?

On Mon, 8 Jun 2020 at 23:10, lenri001  wrote:

> It is not letting me download it.
>
>
>
> --
> 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] Loading the scenario or simulation using TraCI

2020-06-09 Thread Tripplanner Mumbai
Hello,
I was trying to only load (not start the simulation) the simulation network
or scenario using TraCI, particularly the following code (ref-
https://sumo.dlr.de/daily/pydoc/traci.main.html).

try:
traci.load(['-c', 'run.sumo.cfg']) #only loads the simulation or
scenario, not starts
print("TraCI program loads the network successfully")
except:
print("TraCI program is unable to load the network")

Unfortunately, it always prints the exception part, that is, the program
fails to load the network.

Can anyone let me know how to only load the network, not start is through
TraCI?

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


Re: [sumo-user] Loading the scenario or simulation using TraCI

2020-06-09 Thread Tripplanner Mumbai
With respect to TraCI, I thought that the following line of code loads and
starts the simulation:
   traci.start([sumoBinary, "-c", "run.sumo.cfg"])
However, now I realize that this loads and starts the basic (or zeroth)
step. The actual step by step simulation is executed by the following line
of code:
  stepCount=traci.simulationStep() #capture the steps of
simulation, one step at a time

Please correct me if I am wrong, further comment please.

On Tue, 9 Jun 2020 at 12:47, Tripplanner Mumbai 
wrote:

> Hello,
> I was trying to only load (not start the simulation) the simulation
> network or scenario using TraCI, particularly the following code (ref-
> https://sumo.dlr.de/daily/pydoc/traci.main.html).
>
> try:
> traci.load(['-c', 'run.sumo.cfg']) #only loads the simulation or
> scenario, not starts
> print("TraCI program loads the network successfully")
> except:
> print("TraCI program is unable to load the network")
>
> Unfortunately, it always prints the exception part, that is, the program
> fails to load the network.
>
> Can anyone let me know how to only load the network, not start is through
> TraCI?
>
> 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


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

2020-07-25 Thread Tripplanner Mumbai
Hi Harald,
Thank you for this update. I guess that efforts are being taken to fix this
problem.
Can I comment on the link as well (
https://github.com/eclipse/sumo/issues/7336)?
regards,
Dillip Rout

On Fri, 24 Jul 2020 at 23:25, Harald Schaefer  wrote:

> Hi,
>
> the problem is caused by a crash of SUMO in certain circumstances.
>
> For details see issue 7336
>
> Greetings Harald
>
> Am 22.07.20 um 14:07 schrieb 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 listsumo-u...@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] Traffic simulation for a month

2020-07-15 Thread Tripplanner Mumbai
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  > <mailto:o...@behrisch.de>> 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 <mailto: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 <mailto: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] Variation of maxSpeed

2020-07-21 Thread Tripplanner Mumbai
Hello Harald,
As per your definitions, speed limit of highway = 180 km/h, and vehicle's
speedFactor=0.9 which means that the vehicle can run upto 160km/h on the
highway (of course speedDev and sigma will affect it). Please clarify
and/or rectify my views.
thanks and regards,
Dillip Rout

On Tue, 21 Jul 2020 at 12:08, Harald Schaefer  wrote:

> Hi Simon,
>
> in my own Autobahn-Scenario I want to run cars around 130 km/h.
>
> I used a vehicleType with a maxspeed of 140 km/h like
>
>speedFactor="0.9" speedDev="0.2" sigma="0.5">
> 
>
> The highway has a speed limit of 50 m/s (= 180 km/h)
>
> I get a distribution of speeds according to the fcd-output like
>
> time = 739.0, N =  110 min =   53.3 max =  140.0 mean   =  131.0 dev =
> 13.8
> time = 740.0, N =  110 min =   53.5 max =  139.9 mean   =  131.0 dev =
> 13.9
> time = 741.0, N =  110 min =   55.5 max =  140.0 mean   =  131.2 dev =
> 14.1
> time = 742.0, N =  109 min =   56.0 max =  140.0 mean   =  131.1 dev =
> 14.0
>
> Greetings, Harald
> Am 17.07.20 um 10:32 schrieb simon.frent...@umlaut.com:
>
> Hey Harald,
>
>
>
> thanks for your reply. I’m using exactly this for streets with a speed
> limit, but I’m targeting the special case of the German autobahn.
>
>
>
> As I understand it the simulation works as follows: If there are no speed
> limits, each vehicles drives it’s defined maxSpeed. The speedFactor is
> added to the maxSpeed, but if the driven speed exceeds the maxSpeed value,
> the speed is set back to it. Because of this there is no real speed
> distribution but just a los of cars driving at their maxSpeed.
>
>
>
> Best regards
>
> Simon
>
>
>
> *From:* sumo-user-boun...@eclipse.org 
>  *On Behalf Of *Harald Schaefer
> *Sent:* Freitag, 17. Juli 2020 09:43
> *To:* sumo-user@eclipse.org
> *Subject:* Re: [sumo-user] Variation of maxSpeed
>
>
>
> Hi Simon,
>
> unfortunately I'm not the expert on this question, but there was a
> discussion in this mailing list on 2018-08-23.
>
> Have you read these chapters?
>
>
> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#defining_speed_limit_violations_explicitly
> 
>
>
> https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#additional_remarks_on_speed_distributions
> 
>
> Greetings Harald
>
>
>
> Am 16.07.20 um 09:55 schrieb simon.frent...@umlaut.com:
>
> Hello,
>
>
>
> adjusting vehicle types I came across the problem that the maxSpeed is fix
> and the speedFactor doesn’t increase the speed above this value, but I want
> to get varying speeds even when there is no speed limit and no traffic on
> the German autobahn.
>
>
>
> Is there a way to add variation to the maxSpeed without adding numerous
> vehicle types? (E.g. using a normal distribution like the speedFactor.)
>
>
>
> Thanks and best regards
>
> Simon
>
>
>
>
>
>
>
> ___
>
> 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 listsumo-u...@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] Previous stage output not available in TraCI

2020-08-16 Thread Tripplanner Mumbai
The message "Makefile:140: recipe for target 'all' failed" is a summary
message.

> a) post the output of the make-run to the list
>
> sudo make -j$(grep -c ^processor /proc/cpuinfo) |& tee makefile-output.txt
>
Ended in following error:
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2


> b) run step 5 twice (the second step compiles only the erroneous step
> again, so the second message might show up)
>
> sudo make -j$(grep -c ^processor /proc/cpuinfo)
>
> sudo make
>
Ended in Error:
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

> c) try a newer version
>
All the above errors are respect to August 15 version.

d) Someone else in this user group has an idea
>
>

> Hello Harald,
>
> No, I did not get any other errors. Should I try other version?
> thanks and regards,
> Dillip Rout
>
> On Fri, 7 Aug 2020 at 11:20, Harald Schaefer  wrote:
>
>> Hello Dillip,
>>
>> there must be another error in the output of the makefile.
>>
>> If you run step 5 without the -j option (just sudo make), the other error
>> should be at the end too.
>>
>> Greetings, Harald
>> Am 07.08.20 um 07:06 schrieb Tripplanner Mumbai:
>>
>> Hello Jakob,
>> Thank you for taking so much of effort to correct the null pointer.
>>
>> I downloaded the latest version of August 5 and followed the following
>> steps for installing SUMO on my Ubuntu 18.04 machine.
>>
>>1.
>>
>>sudo apt-get install cmake python g++ libxerces-c-dev libfox-1.6-dev
>>libgdal-dev libproj-dev libgl2ps-dev swig
>>2.
>>
>>export SUMO_HOME="$PWD/sumo"
>>3.
>>
>>sudo mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
>>4.
>>
>>sudo cmake ../..
>>5.
>>
>>sudo make -j$(grep -c ^processor /proc/cpuinfo)
>>6.
>>
>>sudo make install
>>
>> However,Step-5 resulted in the following error while installation:
>> [  2%] Linking CXX static library libutils_xml.a [  2%] Built target
>> utils_xml Makefile:140: recipe for target 'all' failed make: *** [all]
>> Error 2
>> Kindly look into the issue.
>> with best regards,
>> Dillip Rout
>>
>>
>> On Mon, 3 Aug 2020 at 19:19, Jakob Erdmann  wrote:
>>
>>> Please try again with the latest development version tomorrow (
>>> https://github.com/eclipse/sumo/issues/7336).
>>>
>>> Am Mi., 22. Juli 2020 um 14:08 Uhr schrieb Tripplanner Mumbai <
>>> tripplanner...@gmail.com>:
>>>
>>>> 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 <
>>>> tripplanner...@gmail.com> 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 <
>>>>> tripplanner...@gmail.com> 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 i