opencog/opencog — pull request #24 by shujingke (2012-10-31 10:42:01+00:00)
Title: Fixed the problem: the OAC gets stuck after running for a while

two problem fixed here:
1. The psiPlanner is sometimes go to find a battery which has just been eaten by the robot. The reason is the "disappearance" of the battery need to process the message sent from Unity to notify its disappearing and the opencog need time to process it. Sometimes the planner just begin next planning too quickly that the "battery disappearing" process has not been finish. Solution is to check if it just finish a plan it should skip the current circle, cuz the PAI will deal with the "battery disappearing" in next circle.
2. there is an old agent named "ImportanceDecayAgent" which is doing wrong thing and will delete some important atoms. We are now using a new agent ImportanceUpdatingAgent, so we should not enable this old agent anymore. Solution: just disable this old agent.