Skip to content
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

Now able to do : traci.vehicle[type].getPersonCapacity() #5519

Closed
wants to merge 9 commits into from

Conversation

@tkchouaki
Copy link
Contributor

commented Apr 25, 2019

Hi,
I needed to retrieve the vehicle's capacity using TraCI. So i implemented this functionality.
In order to achieve that, i did the following:

  • I added the TraCI constant : ** VAR_PERSON_CAPACITY = 0x38**. I checked, of course, that this value wasn't used before.
  • I added the method getPersonCapacity() to both the classes : libsumo::Vehicle and libsumo::VehicleType and using this methos to hande the ** VAR_PERSON_CAPACITY** requests.
  • I added the method getPersonCapacity() in both vehicle and vehicleType domains in TraCI python code.

Regards,
Tarek CHOUAKI.

tarek chouaki added 9 commits Apr 18, 2019
tarek chouaki
added method MSStoppingPlace::getTransportables
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
added method Simulation::getBusStopWaitingIDList
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
added constant VAR_BUS_STOP_WAITING_IDS
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Handling VAR_BUS_STOP_WAITING_IDS get requests
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Added constant VAR_BUS_STOP_WAITING_IDS
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Added method simulation.getBusStopWaitingIDList
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Added constant VAR_PERSON_CAPACITY
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Added getPersonCapacity method & handling VAR_PERSON_CAPACITY get req…
…uests

Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>
tarek chouaki
Added getPersonCapacity
Signed-off-by: tarek chouaki <tarek.chouaki@irt-systemx.fr>

@namdre namdre closed this in 0295bb0 Apr 26, 2019

@namdre

This comment has been minimized.

Copy link
Contributor

commented Apr 26, 2019

Thanks for the contribution! I've added your patch manually because I didn't trust the squash-and-merge with all the extra commits in this pull request.

namdre added a commit that referenced this pull request Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.