blob: 15f7d74bef7124e13b0ac08d52cbfc5c6040ad32 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from operationscore.Behavior import *
import Util
import pdb
class BehaviorChain(Behavior):
def processResponse(self, sensorInputs, recursiveInputs):
response = sensorInputs
for behaviorId in self['ChainedBehaviors']:
behavior = Util.getComponentById(behaviorId)
response = behavior.immediateProcessInput(response)
return response
|