diff options
author | Russell Cohen <rcoh@mit.edu> | 2010-11-24 01:09:12 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2010-11-24 01:09:12 -0500 |
commit | b042647b68abdc82490ca6e059993b8eba28904c (patch) | |
tree | a9ee95a38e98b377c251b7b2e9af9cbd8056cf7c /behaviors/EchoBehavior.py | |
parent | 407ac922fc4178021cf3a16dfb1bd875b6083ac4 (diff) |
Refactoring complete! Made modules/packages as appropriate. Finally.
Diffstat (limited to 'behaviors/EchoBehavior.py')
-rw-r--r-- | behaviors/EchoBehavior.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/behaviors/EchoBehavior.py b/behaviors/EchoBehavior.py new file mode 100644 index 0000000..a11558a --- /dev/null +++ b/behaviors/EchoBehavior.py @@ -0,0 +1,12 @@ +from operationscore.Behavior import * +import Util +import pdb +class EchoBehavior(Behavior): + def processResponse(self, sensorInputs, recursiveInputs): + ret = [] + for sensory in sensorInputs: + outDict = {} + outDict[Util.location] = sensory[Util.location] + outDict['Color'] = (255,0,0) + ret.append(outDict) + return ret |