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

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

2020-05-25 Thread Jakob Erdmann
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 <

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

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

2020-05-25 Thread Jakob Erdmann
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

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

2020-05-24 Thread Jakob Erdmann
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 (

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 =

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

2020-05-07 Thread Jakob Erdmann
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 <

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

2020-05-07 Thread Jakob Erdmann
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 <