aboutsummaryrefslogtreecommitdiff
path: root/behaviors/ResponseMover.py
blob: 3d559df448475d86e769a0f96c8b072d42535daf (plain)
1
2
3
4
5
6
7
8
9
10
11
import pdb
from operationscore.Behavior import *
import util.ComponentRegistry as compReg
class ResponseMover(Behavior):
    """ResponseMover is a scaffold for behaviors that spawn 'walkers' which act autonomously on input.
    To control the movment, use the behavior as part of a BehaviorChain and add a recursive hook which
    modulates the location."""

    def processResponse(self, sensorInputs, recursiveInputs):
        return (recursiveInputs, recursiveInputs+sensorInputs)