From d1215a57167f15a55c079cf6e0fb5d4b066ac8fd Mon Sep 17 00:00:00 2001 From: rcoh Date: Wed, 22 Dec 2010 15:07:19 -0500 Subject: Done with pixel regions, with demo in behaviors/AllPixelsLeft.py. Need to finish up support for multiple mappers. --- behaviors/AllPixelsLeft.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 behaviors/AllPixelsLeft.py (limited to 'behaviors') 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) -- cgit v1.2.3