A calculus for robot inner speech and self-awareness