Perspective taking in robots: A framework and computational model