From: Pietro N. <pi...@ti...> - 2011-11-24 13:57:11
|
Hello Daniel, Im using a java implementation of TraCI and Im pretty sure the vehicle exits, so since you say that the command is working, Ill double-check the TraCI java code, maybe theres something wrong somewhere. Ill keep you updated. Thanks a lot, Pietro Da: Daniel Krajzewicz [mailto:d.k...@go...] Inviato: giovedì 24 novembre 2011 12:47 A: Pietro Niccoli Cc: sum...@li... Oggetto: Re: [sumo-user] R: R: Removing vehicle using traci Hello Pietro, Hmm, I do not understand why it's not possible for you to remove a vehicle using TraCI; there is a test located in <SUMO>\tests\traci\ChangeVehicleValue\REMOVE which proves it's working... a) are you sure you use the change vehicle state command (http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI/Change_Veh icle_State)? b) are you sure the vehicle exists? Are you using the Python-API. I have to recheck whether the command is included there... sincerely, Daniel 2011/11/23 Pietro Niccoli <pi...@ti...> Hello Daniel, right now I just set the current edge as a destination when I want to remove a car from simulation, but its a workaround that I dont like much. Since I saw in the documentation that the remove command also includes a reason, and among the options theres parking, I think that its perfect for my needs. Please notice that I only remove vehicles when they are supposed to leave simulation. Best, Pietro Da: Daniel Krajzewicz [mailto:d.k...@go...] Inviato: martedì 22 novembre 2011 15:58 A: Pietro Niccoli Cc: sum...@li... Oggetto: Re: [sumo-user] R: Removing vehicle using traci Hello Pietro, ok, I'll try to check the reason... BTW: you are simulating parking vehicles, right? Maybe there is a nicer way to handle them then just removing them. sincerely, Daniel 2011/11/22 Pietro Niccoli <pi...@ti...> Hello Daniel, Im using the dev-SVN-r11511 version. I tried using the 0.13.1 as well, but no dice. Any clue? Best, Pietro Da: Daniel Krajzewicz [mailto:d.k...@go...] Inviato: martedì 22 novembre 2011 12:44 A: Pietro Niccoli Cc: sum...@li... Oggetto: Re: [sumo-user] Removing vehicle using traci Hello Pietro, which version do you use? Should be available in 0.13.1. Is it not? sincerely, Daniel 2011/11/16 Pietro Niccoli <pi...@ti...> Hello everyone. I'd like to remove a vehicle from simulation at runtime, but when I issue the remove command (0x81), sumo returns this error: SUMO error for command 129: Command not implemented in sumo I'm using the svn version of sumo and I use TraCI to send commands. Since I noticed that the changelog reports this option to be implemented since the latest version, I'm wondering if I made a mistake in my code somewhere or there's something I'm missing. Does anyone successfully removed vehicles via traci? Thanks all, Pietro |