Hello, - the issue in line 1396 has been addressed in revision 20892. The warning is now issued in all cases. Thanks for pointing it out - unless you can provide evidence against it, I would assume that the vehicle is not removed due to failure of moveToXY but due to reaching the end of its route. Once you move a vehicle onto an edge that is not on it's route, the vehicle gets a new route that consists only of that edge. It's easy for the vehicle to reach the end of that edge and be removed (currently, the only work-around is to set the vehicle speed to 0, which isn't always desirable). - If you want to move the vehicle off the road, you can do any of the following things: a) add a stop with parking=true (can be done via TraCI) b) enable the sublane-model (if you add the sumo option --lateral-resolution 3.2 everything will behave as before but moveToXY can move vehicles to the side of the road) c) wait until the implementation of http://sumo.dlr.de/trac.wsgi/ticket/2258
regards, Jakob 2016-06-06 9:53 GMT+02:00 Erik Newton <[email protected]>: > Using C++ TraCI, I've been looking at the new moveToXY functionality such > that our VTD_EGO vehicle can leave the road. I may be misunderstanding what > it is meant to do, but I'm struggling to get it to do what I would like it > to do. > > Firstly I think there is an error on line 1396 of > TraCIServerAPI_Vehicle.cpp. I think it should be: > if (keepRoute) { > So it only generates the error if keepRoute was true. > > Assuming I have understood that correctly, then it appears that the logic > for the rest of it is: > When I say don't keepRoute, move to the required position, then if within > 100 metres of a road snap back onto it. If >100 meters from a road then it > appears to remove the vehicle from the sim altogether, which means I lose > the subscription to all the other vehicle positions. > > What I would like to be able to do, is pull to the side of the road, and > allow traffic to proceed. I can see that I could reduce the 100m > (maxRouteDistance) but then I still have the issue of the ego vehicle being > removed, which is beyond my current understanding of the code. > > Am I understanding everything correctly? > > Cheers, > Erik > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > _______________________________________________ > sumo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-devel > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
