Hi friends,
As shown below in the code, I am trying to create a route file ('route_abc.xml') using .net file ('simexp.net.xml') and an additional file ('vdis100.add.xml') and then use the generated 'route_abc.xml' to run the SUMO simulation. And before running every simulation I just change the additional files (I have them already prepared in a folder and they are named vdis10, vdis20 and so on)
#CODE START---------------
randomTrips.main(randomTrips.get_options([
'--net-file', 'simexp.net.xml',
'--min-distance', '1500',
'--period', 4,
'--binomial', '1', #uniform arrival
'--seed', 8123,
'--trip-attributes', 'type = \"vdis\" departLane = \"random\" departSpeed = \"max\"',
'--additional-file', 'vdis100.add.xml',
'--route-file', 'route_abc.xml']))
subprocess.Popen(["C:\Program Files (x86)\Eclipse\Sumo\\bin\sumo-gui.exe", "-c", "simexp.sumo.cfg",
"--log", "log_file.xml",
"-r", "route_abc.xml",
"--remote-port", str(now_port), "-S", "true", "-Q", "true",
"--emission-output", "CoEMS19ms.xml",
"--tripinfo-output", "SummaryOP.xml",
"--fcd-output", "CoTrace19ms.xml",
"--output-prefix", op_path_file], stdout=sys.stdout, stderr=sys.stderr)
#CODE END---------------
But for some reason, Randomtrips or duarouter is not generating a new
'route_abc.xml' and the simulation keeps running the simulation with the old 'route_abc.xml' which was already there in the folder previously. Please help me what am I doing wrong and how I can solve this.
P.S: I have the SUMO 1.1.0 Installed