aboutsummaryrefslogtreecommitdiff
path: root/behaviors/ResponseMover.py
blob: e1faccbff906a7aaf7250f282c0f64272f7ba659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pdb
from operationscore.Behavior import *
import util.ComponentRegistry as compReg
#ResponseMover is a scaffold for behaviors that spawn 'walkers' which act autonomously on input.
#Add a recursive hook to control the movement.  
class ResponseMover(Behavior):
    def processResponse(self, sensorInputs, recursiveInputs):
        newResponses = sensorInputs 
        ret = []
        for recurInput in recursiveInputs:
            outDict = dict(recurInput)
            ret.append(outDict)
        ret += newResponses
        return (ret, ret)