Hi everyone,
The sumo version is sumo Version 1.18.0.
in my setting, there is a compulsory 3s yellow time and 2s all red time when the light changes from one green light to another green light. When I was running my simulation, I zoomed in to see the traffic light. However, when the light changed from yellow to all red, the simulation just quit and I met Error: No color defined for LinkState '' from the terminal. If it changes from green to yellow, everything is fine.
Does anyone have any suggestions based on my case?
below are the phases setting and the error from terminal:
Error: No color defined for LinkState ''
Quitting (on error).
Traceback (most recent call last):
File "experiments/deep_q_learning.py", line 482, in <module>
s, r, selected_action, done, _ = env.step(actions,random_,predict_q, current_state,args.norm_delay,args.consider_yellow_red) # postion arguments, s is next state
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line 379, in step
self._run_steps(norm_delay)
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line 501, in _run_steps
self._sumo_step()
File "/Users/linlyu/Desktop/DRL3_8LT2/sumo_rl/environment/env.py", line 739, in _sumo_step
self.sumo.simulationStep()
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py", line 316, in simulationStep
result = self._sendCmd(tc.CMD_SIMSTEP, None, None, "D", step)
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py", line 181, in _sendCmd
return self._sendExact()
File "/opt/anaconda3/lib/python3.7/site-packages/traci/connection.py", line 91, in _sendExact
raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO