This commit is contained in:
Nicolò Balzarotti 2023-01-05 13:05:18 +01:00
parent c2e1ab49f7
commit fb3614fb56
1 changed files with 2 additions and 2 deletions

View File

@ -153,10 +153,10 @@ class State():
if ctrl.input_label not in self.envdata['sensors'].keys():
print(f'Missing sensor {ctrl.input_label}')
continue
response = ctrl.apply(self.envdata['sensors'][ctrl.input_label][0])
actuators[controller].enable(response)
except:
print("UNKNOWN BUG HERE in run_step")
response = ctrl.apply(self.envdata['sensors'][ctrl.input_label][0])
actuators[controller].enable(response)
if self.check():
if self.next() is None:
return True