blob: 0c66f2f2de2750fbd6adbe461ddcb5e376e74606 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from operationscore.Behavior import *
import util.ComponentRegistry as compReg
import pdb
class AllPixelsLeft(Behavior):
def processResponse(self, sensorInputs, recursiveInputs):
for sensory in sensorInputs:
xLoc = sensory['Location'][0]
if type(xLoc) == type(tuple()):
sensory['Location'] = '[{x}<' + str(xLoc) + ']'
return (sensorInputs, recursiveInputs)
|