Integrating Task and Motion Planning Using Semantic Attachments