Empty the object of any other objects on/in it to clear it out. Useful when the object is too full to place an object inside it. Returns: bool: True if action successful, otherwise False.
(self)
| 478 | return self.execute_manipulation("Pour", landmark_name) |
| 479 | |
| 480 | def empty(self): |
| 481 | """Empty the object of any other objects on/in it to clear it out. |
| 482 | |
| 483 | Useful when the object is too full to place an object inside it. |
| 484 | |
| 485 | Returns: |
| 486 | bool: True if action successful, otherwise False. |
| 487 | """ |
| 488 | if self.object_id is None: |
| 489 | self.agent.step_success = False |
| 490 | return False |
| 491 | success = self.agent.empty(obj_ID=self.object_id) |
| 492 | if args.use_gt_attributes and args.online_skill_learning: |
| 493 | self.agent.track_dict_before = copy.deepcopy(self.agent.object_tracker.objects_track_dict) |
| 494 | return success |
| 495 | |
| 496 | def clean(self): |
| 497 | """wash the interaction object to clean it in the sink. |