Affordance-based planning for assisting humans in daily activities