diff options
Diffstat (limited to 'behaviors/AllPixelsLeft.py')
-rw-r--r-- | behaviors/AllPixelsLeft.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/behaviors/AllPixelsLeft.py b/behaviors/AllPixelsLeft.py new file mode 100644 index 0000000..7f731e9 --- /dev/null +++ b/behaviors/AllPixelsLeft.py @@ -0,0 +1,11 @@ +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()): + pdb.set_trace() + sensory['Location'] = '[{x}<' + str(xLoc) + ']' + return (sensorInputs, recursiveInputs) |