Cognitive Modeling for Biomimetic Robots