Bag All You Need: Learning a Generalizable Bagging Strategy for Heterogeneous Objects

Arpit Bahety, Shreeya Jain, Huy Ha, Nathalie Hager, Benjamin Burchfiel, Eric Cousineau, Siyuan Feng, Shuran Song · OpenReview

Abstract

We introduce a practical robotics solution for the task of heterogeneous bagging, requiring the placement of multiple rigid and deformable objects into a deformable bag. This is a difficult task as it features complex interactions between multiple highly deformable objects under limited observability. To tackle these challenges, we propose a robotic system consisting of two learned policies: a rearrangement policy that learns to place multiple rigid objects and fold deformable objects in order to achieve desirable pre-bagging conditions, and a lifting policy to infer suitable grasp points for bi-manual bag lifting. We evaluate these learned policies on a real-world three-arm robot platform that achieves a 70% heterogeneous bagging success rate with novel objects. To facilitate future research and comparison, we also develop a novel heterogeneous bagging simulation benchmark that will be made publicly available.

Introduction

Packing a grocery bag is a trivial task for humans but a significant challenge for robotics. This task, termed "heterogeneous bagging," involves managing complex physical interactions between rigid items (e.g., cans), deformable items (e.g., clothing), and a highly deformable container (the bag). The primary difficulties stem from unpredictable shape changes in deformable objects, limited observability due to occlusions, and complex inter-object interactions where rigid items may slide off folded fabrics.

The heterogeneous bagging pipeline: a) Rearranging objects, b) Lifting the bag, and c) The final state with objects contained.

While prior research often simplified the problem by focusing solely on lifting or using only rigid objects, this work addresses the full pipeline from a cluttered table to a successfully lifted bag.

Methodology

The proposed system utilizes a three-arm robot setup—one arm for rearrangement and two for lifting—guided by two primary learned policies.

Rearrangement and Lifting Policies

The Rearrangement Policy employs sequential pick-and-place actions to strategically move rigid objects and fold deformable ones. The goal is to reach a "pre-bagging" state where items are positioned to fall into the bag upon lifting.

The Lifting Policy determines optimal bi-manual grasp points on the bag's rim. A key innovation is using this policy's confidence score as a "termination signal." If the lifting policy predicts a high probability of success, the robot ceases rearrangement and proceeds to lift, preventing over-manipulation.

Detail of the lifting phase (b) showing the three-arm setup and the top-down visual input used for policy inference.

Perception and Sim-to-Real Transfer

To bridge the sim-to-real gap, a U-Net-based segmentation network was developed for bag detection. During training, it uses color images of bags with dyed rims for automatic label generation. At test time, it relies solely on depth images, allowing it to generalize across various bag colors and textures by focusing on geometry rather than visual noise.

Experimental Results

The policies were trained using Reinforcement Learning in simulation (PyFleX/Nvidia FleX) and transferred to a real-world platform without fine-tuning.

Performance and Generalization

The system was evaluated on packing two to five novel objects, including soft toys and clothing not seen during training.

  • Success Rates: The system achieved an 80% success rate for 2-3 objects and 70% for 4 objects.
  • Comparison: In 5-object scenarios, the learned policy kept 84% of objects inside the bag, significantly outperforming a strong heuristic baseline (22%).
  • Generalization: The use of depth-based perception allowed the system to handle "out-of-distribution" items effectively.

Conclusion and Future Work

This work demonstrates a robust strategy for heterogeneous bagging. However, limitations remain. Approximately 50% of real-world failures occurred when the robot accidentally grasped clothing near the bag's rim. Future work will focus on improving grasping precision, explicitly modeling object stability to prevent items from rolling out, and integrating "bag-opening" primitives to handle initially crumpled or closed bags.

Summary updated

BibTeX
@inproceedings{bahety2023bag,
  author = {Arpit Bahety and Shreeya Jain and Huy Ha and Nathalie Hager and Benjamin Burchfiel and Eric Cousineau and Siyuan Feng and Shuran Song},
  title = {{Bag All You Need: Learning a Generalizable Bagging Strategy for Heterogeneous Objects}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=8K5cSiT79U},
}
Figure