New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update travelTime and cost of current stage #11838
Comments
I need this extension for the drtOrtools.py. Can I help somehow? In which file is it calculated? |
libsumo/Person.cpp in |
I added the current travel time of the already traveled way of the current stage. |
I found and adapted a suitable test |
traci.person.getStage(person_id, 0).length
gives the current length of the already travelled way of the current stage.traci.person.getStage(person_id, 0).travelTime
andtraci.person.getStage(person_id, 0).cost
gives the default value-1073741824.0
, due to the stage is not yet finished and will be calculated only when the stage is finished. It would be nice to update these values just as well the length to get the current travel time and current cost of the current stage.The text was updated successfully, but these errors were encountered: