I am running the stabilizing_highway example from flow/examples/rllib. I noticed that sometimes, during the state calculation in the merge environment:
for i, rl_id in enumerate(self.rl_veh):
this_speed = self.k.vehicle.get_speed(rl_id)
I am getting values of this_speed=-1001 every now and then. This is always the first observation when a new simulation is started (and I guess thats the reason for the warmup_steps parameter in the environment. But later during the simulation, this keeps happening too.
What could be the reasons for sumo giving back the error=-1001 value?