wip
This commit is contained in:
parent
c2e1ab49f7
commit
fb3614fb56
|
@ -153,10 +153,10 @@ class State():
|
||||||
if ctrl.input_label not in self.envdata['sensors'].keys():
|
if ctrl.input_label not in self.envdata['sensors'].keys():
|
||||||
print(f'Missing sensor {ctrl.input_label}')
|
print(f'Missing sensor {ctrl.input_label}')
|
||||||
continue
|
continue
|
||||||
|
response = ctrl.apply(self.envdata['sensors'][ctrl.input_label][0])
|
||||||
|
actuators[controller].enable(response)
|
||||||
except:
|
except:
|
||||||
print("UNKNOWN BUG HERE in run_step")
|
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.check():
|
||||||
if self.next() is None:
|
if self.next() is None:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue