Hi, Am 22.08.2014 15:18, schrieb Gabriel de Oliveira Ramos - UFRGS: > In my research, I am controlling vehicles using TraCI, creating/changing > their routes on-the-fly. When a vehicle is created, it does yet not have a > route.
That is the first potential problem. Strictly speaking you cannot create a vehicle without a route in SUMO. It can of course be a dummy route which will be changed afterwards. > The problem here is that routes are made of edges, not nodes. A > simple adjust to overcome this issue would be to place (while creating) the > vehicles in the end of one of the incoming edges (those that are arriving > in their origin node). However, in order to do that I would need to change > the network to allow uturns (otherwise the vehicle would not take the edge > it is coming from). But changing the network would not be an elegant way of > solving the problem. Why does your vehicle need to start at an intersection? If you want it to have the choice between a number of starting edges you could use districts http://sumo-sim.org/userdoc/Demand/Importing_O/D_Matrices.html#Describing_the_TAZ, although I do not know how well they interact with TraCI. Maybe you can also wait with inserting the vehicle until you know the route because finally it needs one anyway. Furthermore you can also use the moveto command of TraCI to move the vehicle someplace not on its initial route. > If no better alternative is available, I would like to suggest an > improvement in SUMO. I have an idea for this: allow nodes to have an > special kind of "internal lane", which could allow drivers to start there. > The idea is to allow drivers to enter the network with no need to know > their routes in advance. Would this improvement be possible? Not with the current implementation. Best regards, Michael ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
