Hi Monika, you should probably do some simulation steps (call traci.simulationStep()) to see your vehicle moving.
Best regards, Michael 2013/12/29 Monika Mitkar <[email protected]>: > Dear All, > > I want to add a vehicle in SUMO using TRACI. Executed runner.py script by > referring traci_tls as follows: > ______________________________________________________ > #!/usr/bin/env python > import os, sys > import optparse > import subprocess > import random > try: > sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..', > '..', "tools")) # tutorial in tests > sys.path.append(os.path.join(os.environ.get("SUMO_HOME", > os.path.join(os.path.dirname(__file__), "..", "..", "..")), "tools")) # > tutorial in docs > from sumolib import checkBinary > except ImportError: > sys.exit("please declare environment variable 'SUMO_HOME' as the root > directory of your sumo installation (it should contain folders 'bin', 'tools' > and 'docs')") > > import traci > > PORT = 8813 > def run(): > traci.init(PORT) > > traci.add("1000",right,5,5,10,1); > traci.setColor("1000",(255,0,0,0)) > traci.close() > > # this is the main entry point of this script > if __name__ == "__main__": > > sumoBinary = checkBinary('sumo-gui') > > sumoProcess = subprocess.Popen([sumoBinary, "-c", > "C:\\Users\\Monika\\Downloads\\Compressed\\sumo-0.19.0\\docs\\tutorial\\traci_tls\\data\\cross.sumocfg", > "--tripinfo-output", "tripinfo.xml"], stdout=sys.stdout, stderr=sys.stderr) > run() > sumoProcess.wait() > ___________________________________________________________ > > However, not able to see added vehicle in SUMO-GUI. > > Request you to please let me know the reason and solution for the same. > > Thank you! > > Regards, > Monika > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > sumo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-devel ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ sumo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-devel
