Long-Horizon Manipulation of Unknown Objects via Task and Motion Planning with Estimated Affordances