|
From: <vb...@ba...> - 2013-09-07 08:47:59
|
Hi All, I got the 'move to' working now, so I can have a vehicle simulated elsewhere, but updating in SUMO. Which is great. But, another problem now. If the vehicle being controlled in the other sim, has been moved forward a little to say x2,y2, and so SUMO calculated the appropriate move to for those coords, if original location x1 y1 were close to x2,y2 then SUMO things the vehicle has arrived, and removes it. So, is there anyway to disable this behaviour of deleting vehicles on arrival? I thought I could grab the list of IDs of arrived vehicles in this time step via traci, and then if its the ID of an externally simulated vehicle, then add it back in? But, would that affect other vehicles, for example if the vehicle arrived and was removed, a vehicle behind it might now think there's space to move forward into, and then if the removed vehicle is reinserted, we have a collision? Or would it be ok? I guess it's a sync issue - if the vehicle is removed after that space reasoning has been done, and inserted before the next sim step, maybe it would work.. THanks Vincent |