Hello, > 1) I understand the command VAR_BUS_STOP_WAITING is supposed to return the > number of people waiting at a bus stop. On inspecting the code, it seems that > people are not waiting at bus stops, but on edges, therefore this command > always returns 0. Is there a solution to this (e.g., adding a command to > retrieve the number of people waiting on an edge, updating MSPerson to add > waiting people to a stop)?
Retrieving the people waiting on an edge would be easy. See the code in MSPersonControl::boardAnyWaiting(MSEdge* edge, MSVehicle* vehicle) in MSPersonControl.cpp:159 Probably a check for distance to the bus stop would be needed eventually (see http://sumo-sim.org/trac.wsgi/ticket/1058#ticket). > 2) It would be nice to access/update information about persons in the > simulation using TraCI, however this doesn't seem to be possible. Would this > be something I could develop (e.g., working off TraCIServerAPI_Vehicle) or > something that the SUMO team/others would have to implement? You could probably take TraCIServerAPI_Vehicle as a template and build this yourself. If you send us a patch we will include it in the trunk. It would be a good idea to take the TraCI tests for vehicles (see tests/traci) as a template as well and put in some person tests. If you are planning on using the python TraCI API it will need to be extended to cover persons as well. Since it may still be quite a long time until we need TraCI persons ourselves I would encourage you to implement this yourself if you have some development experience. Feel free to discuss questions about the code on the mailing list with us. best regards, Jakob ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
