Hello, You can add a <stop> definition for the arrival position of the ego vehicle with a long duration. This way the vehicle is kept in the simulation either on the road (or at the side of the road if you set the stop attribute parking="true"). See http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Stops regards, Jakob
2017-05-31 17:40 GMT+02:00 Yiqun Xia <[email protected]>: > Hi there, > > > I'm currently working on TraCI and am confronting with a small problem, > could you help me? > > I want to use the matlab function getPosition to get the position of one > specific vehicle with the ID "ego" > > > traci.vehicle.getPosition('ego') > > > However the simulation ended when this specific vehicle reached the > pre-defined arrival edge with the following error: > > > Error: Answered with error to command 0xa4: Vehicle 'ego' is not known > > > Could you give me some advice how to let the simulation continue even > after the specific vehicle reached the pre-defined arrival edge? Thank you > in advance. > > > Best regrads > > Yiqun > > ------------------------------------------------------------ > ------------------ > 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 > ------------------------------------------------------------------------------ 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
