Hello,
regarding a)
- yes. you cannot define stops when adding
- setting a stop at a parkingArea is not implemented in 0.29.0 (see
http://sumo.dlr.de/trac.wsgi/ticket/2963). This should be fixed soon in the
development version.
- the '!' must be used for routes that are defined as child element of a
vehicle. It is also possible to define stand-alone routes where you can
simply use the id directly.
- stops should be maintained after calling changeTarget(). If you can send
a small failing example I will take a look.

regarding b)
- the vehicle still returns its roadID even when parked. As long as you
ensure that there is at most 1 parkingArea per edge (i.e. by splitting an
edge) you can do this mapping.
- I'm taking up your suggestion to return the current stopID (
http://sumo.dlr.de/trac.wsgi/ticket/2964)

regards,
Jakob

2017-03-17 16:07 GMT+01:00 Robert Chisholm <[email protected]>:

> 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
>
------------------------------------------------------------------------------
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

Reply via email to