Hi Vincent, why don't you check speed and position of the vehicle before adding the stop? You will need to add a safe brake gap of course but you can simply copy the code from sumo/src/microsim/cfmodels/MSCFModel.h or ignore the discretization errors and calculate the physics of the braking process yourself (which is not hard, I promise :-). It should not crash the GUI though, so if you can extract a small example it would be helpful for a bug report.
Best regards, Michael 2013/10/27 <[email protected]>: > Hi, > > I'm getting this crash below, > > [java] it.polito.appeal.traci.TraCIException: SUMO error for > command 196: V > ehicle is too close or behind the stop on 14394795_1 > [java] at > it.polito.appeal.traci.Utils.checkStatusResponse(Utils.java:60) > [java] at > it.polito.appeal.traci.ChangeStateQuery.pickResponses(ChangeStateQuery.java:83) > [java] at > it.polito.appeal.traci.Vehicle$5.pickResponses(Vehicle.java:385) > [java] at it.polito.appeal.traci.MultiQuery.run(MultiQuery.java:106) > [java] at > it.polito.appeal.traci.ChangeStateQuery.run(ChangeStateQuery.java:94) > [java] at edu.bath.sumoVehicles.sumoXMPPSim.run(Unknown Source) > [java] at edu.bath.sumoVehicles.sumoXMPPSim.main(Unknown Source) > > It's only recently started occurring, I think because I'm running the > vehicles at 70mph rather than about 30 - so the distance they cover > each sim step is significantly greater, and so maybe its gone past a > stop while commands from the AI are processed inbetween sim steps.. > > I can guess from the message what's going on, but unlike other errors, > this seems to totally crash out the SUMO GUI. > > Is there anything I can do to handle this cleanly? At the moment it > brings down the entire sim. > > Thanks > > Vincent > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
