Open Spydrouge opened 9 years ago
@Spydrouge @shujingke's planner will roll back to a previous planning step as it is evaluating rules when it has exhausted all options (my understanding is that it's at what is effectively a leaf node of a tree of rule evaluation), so this isn't altogether surprising by itself. It may be possible, though, that deleting the battery mid-plan causes issue with the rule evaluation/traversal, since she probably assumes that the world is static during initial planning (not necessarily execution). In this case, maybe it can evaluate the "walkToPositionToGetCloseToButNotStandingOnIt" rule (best guess) but not the "grab" or "eat" rules because the battery is deleted just before those rules are evaluated.
@Nemquae This wasn't the specific case where I deleted the battery mid execution; though it is the specific case where the robot grabs the block and moves it. So perhaps the 'grab and move block,' being elderly and somewhat deprecated, is causing a discrepancy of sorts where the battery block and the battery object are... say... no longer in the same position? And therefore make the eat/grab impossible. And therefore result in an identical hang to if I delete the block midmotion.
I have seen this hang occur in two cases:
If the robot runs out of batteries, I have been able to get him to resume eating batteries again in the future. However, this is only some of the time. In other instances, embodiment seems to hang, and although the Unity game world keeps sending out messages, embodiment/opencog side nothing responds.
The last messages the opencog side printed out for one of these hangs (specifically one caused by the setup in #67 ) are...
And then it hangs.