Towards robots with teleological action and language understanding