I'm attempting to perform interaction with SUMO via Traci. For my requirements I need to create vehicles which will park within a specified AreaPark, with Traci I need to detect this state change to trigger some events within python which eventually result in resuming the vehicles journey.
In briefly producing a test implementation I've found two potential limitations, I was hoping to clarify whether these are truly limitations or my limited understanding of SUMO/Traci. a) If I create a vehicle using `traci.vehicle.add()` or `traci.vehicle.addFull()`, it's not possible to make them stop at a parkingArea stop during their route. Passing the parkingArea id to `traci.vehicle.setStop()` and `traci.vehicle.setBusStop()` both fail to recognise the parkingArea's id. Similarly, if I create a vehicle on a route defined in the rou.xml file (for some reason I have to prepend "!" to the flow's id), it won't include the stop unlike when vehicles are spawned via the xml (this is potentially a consequence of me needing to call `traci.vehicle.changeTarget()` to actually build the route between edges). b) I can't find a reasonable method to subscribe to vehicles within a parkingArea. I can subscribe to individual vehicle's and track whether they are stopped due to parking, however once parked it doesn't appear possible to find the ID of the parking area in which they've stopped (without manually comparing a vehicles x,y location to that of the car park), when polled the laneId returned is simply emptystring. Is there a method to achieve either of the above using Traci? Thanks Robert -- Robert Chisholm PhD Candidate under the supervision of Dr Paul Richmond <http://www.paulrichmond.staff.shef.ac.uk/> Visual Computing <http://www.shef.ac.uk/dcs/research/groups/visual-computing/home> Research Group Member Research Student The Department of Computer Science Regent Court, 211 Portobello Sheffield S1 4DP UK http://www.dcs.shef.ac.uk/~rob/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
