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

Reply via email to