Grounding languages in cognitive agents and robots