Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-dev] Remote controlled vehicles clearing

Hello,

I have a running simulation that uses SUMO for traffic, and it has the ability to open / close / create scenarios.  I have had no problem using the libsumo::Simulation::close() function to close the scenario.  However, when I have a vehicle that is being remote controlled, the simulation crashes in the libsumo::Helper::postProcessRemoteControl.  I found that it was holding onto vehicles that were remote controlled when the scenario was closed.  I looked for any place where they were cleared, but couldn't find any.  I put in a small function called clearRemoteControlledVehicles(), which simply clears the myRemoteControlledVehicles.  That seems to do the trick.  Is there another way to do this?  Also - this might be applied to persons as well, since they can be remote controlled.

Thanks,
JB

Back to the top