Hello Jakob,
what do you mean with sim step? I send simulationStep traci command from my HOST application and after that I always send moveToXY traci command for remote controlled entity. But SUMO still evaluates condition hasArrived for this entity as true. How I understand sim step from Sumo sources: * ?sim step proceed in MSNet::simulationStep(). * this sim step can proceed several time, between calling moveToXY TraCi command. And this is the reason why method MSVehicle::isRemoteControlled() evaluates as false. ?Do I understand it correctly? Regards, Petr ________________________________ From: Jakob Erdmann <[email protected]> Sent: Wednesday, June 14, 2017 12:28 To: Kopilcak Petr Cc: [email protected] Subject: Re: [sumo-user] Removing entity on has arrived Hello, remote controlled vehicles should not be removed as long as they are receiving moveToXY commands every sim step (at least since version 0.27.0). To get collisions with remote controlled vehicles, set the options --collision.action remove and optionally --collision.stoptime <SECONDS> This will make uncontrolled vehicles stop for some time and then be removed from the simulation regards, Jakob 2017-06-14 12:05 GMT+02:00 Kopilcak Petr <[email protected]<mailto:[email protected]>>: Hello, I am solving similar issue like in this case https://sourceforge.net/p/sumo/mailman/message/31375856/?. I disabled removing my vehicle(which I controll through TraCi moveToXY command) in MSLane::executeMovements method. At the same time, I made changes in MSVehicle::executeMove method, where I return false at the beggining of this method (for my vehicle controlled by Traci moveToXY). Now it works almost perfectly (I can see correct position and rotation of this vehicle in sumo gui), but other entities does not collide with my vehicle. Is there any simple way how to tell other entities to collide with my vehicle? Or is there any correct way (without making hacks into sources) to forbid SUMO to remove my entity? Regards Petr ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
