3

I've written a little code in python for getting connected to sumo as follows:

    import traci
    traci.start(sumoCmd)
    step = 0
    while step < 200:
       traci.simulationStep()
       traci.vehicle.add('x', typeID='DEFAULT_VEHTYPE')
       step += 1
    traci.close()

1 - The GUI's answer is:

  • Loading is done.
  • Simulation started with time: 0.00** I want to know why nothing is shown in GUI?

2 - Is there any order in TraCi to say sumo do something? (describing lane, edge, route, vehicle, etc?) p.s. Sorry for my mistake in the title

astrochun
  • 1,642
  • 2
  • 7
  • 18
Ali
  • 115
  • 5
  • Did you press the green "Play" button in the GUI? – Michael May 02 '21 at 06:52
  • Yes of course. I found what the point is. I increased the departure time because my route was not long enough to get the car in the simulation. – Ali May 05 '21 at 10:53

0 Answers0