aboutsummaryrefslogtreecommitdiff
path: root/behaviors/BehaviorChain.py
diff options
context:
space:
mode:
authorGravatar Russell <rcoh@rcoh.(none)>2011-01-10 12:21:19 -0500
committerGravatar Russell <rcoh@rcoh.(none)>2011-01-10 12:21:19 -0500
commitcbdc42af021f898e82d3e78ce7c636d3fb5eece0 (patch)
treef36ca72463702c104dd02f026e9fbcd6de3f0da8 /behaviors/BehaviorChain.py
parent1679719e7ca8ce433c5714474a32c926161dc5b8 (diff)
Some performance improvements. Faster evaluation of range-based queries with
lambda expressions. Faster exp with approximated fastexp. Some changes to the component registry.
Diffstat (limited to 'behaviors/BehaviorChain.py')
-rw-r--r--behaviors/BehaviorChain.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/behaviors/BehaviorChain.py b/behaviors/BehaviorChain.py
index ce161f9..0170fa8 100644
--- a/behaviors/BehaviorChain.py
+++ b/behaviors/BehaviorChain.py
@@ -1,6 +1,6 @@
from operationscore.Behavior import *
import util.ComponentRegistry as compReg
-import logging as main_log
+from logger import main_log
import pdb
class BehaviorChain(Behavior):
def behaviorInit(self):
@@ -8,6 +8,7 @@ class BehaviorChain(Behavior):
self.hooks = self['RecursiveHooks']
if self.hooks == None:
self.hooks = {}
+
def processResponse(self, sensorInputs, recursiveInputs):
response = sensorInputs
for behaviorId in self['ChainedBehaviors']:
@@ -27,6 +28,7 @@ class BehaviorChain(Behavior):
[])
if hookRecurrence != []:
main_log.warn('Hook recurrences are not currently supported. Implement it\
- yourself or bug russell')
+yourself or bug russell')
self.feedback[behaviorId] = recurrence
return response
+