Abstract
Robotic cloth folding is traditionally limited by open-loop planning that fails to account for varying physical properties and environmental noise. We present AdaFold, a model-based feedback-loop framework that enables real-time adaptation of folding trajectories. By integrating semantic perception—labeling cloth layers as "upper" and "bottom"—with a learned dynamics model and Model Predictive Control (MPC), AdaFold achieves high-precision folding across diverse materials and shapes.
Introduction
Manipulating deformable objects like cloth is a "grand challenge" in robotics due to the object's high-dimensional state space and complex, non-linear dynamics. Most existing robotic folding methods rely on open-loop planning—executing a pre-defined "triangular" or linear path. These fail when the cloth's physical properties (like stiffness or friction) differ from the model or when the cloth slips during the process.
The core difficulty in moving to a closed-loop (feedback) system is perception. From a camera's perspective, a point cloud of a partially folded cloth is often ambiguous; it is hard to distinguish between the top layer being moved and the bottom layer resting on the table. Without knowing which points belong to which layer, a robot cannot accurately assess folding progress or re-plan its path effectively.
Methodology
AdaFold introduces a pipeline that couples semantic perception with data-driven trajectory optimization to resolve these ambiguities and adapt to material variations.
Semantic Cloth Perception
To maintain accurate state estimation, the system segments the cloth into Upper (active) and Bottom (stationary) layers. At the start ($t=0$), the system uses Grounding-DINO and Segment Anything (SAM) to mask the cloth, fits a geometric polygon to identify fold lines, and separates the mask into layers. To maintain these labels during manipulation, it employs XMEM, a video object tracking model, to track the masks across frames. This allows the robot to label every point in a 3D point cloud as either part of the top or bottom layer.
Learned Dynamics and Adaptation
The system utilizes a Graph Neural Network (GNN) with a PointNet++ backbone to predict how the cloth's particles will move. An adaptation module ($g_\psi$) encodes the recent history of observations into a latent vector ($z_t$) that captures the cloth's specific physical properties (e.g., stiffness), allowing the model to adjust its predictions for different materials on the fly.
Trajectory Optimization (MPC)
The robot uses Model Predictive Path Integral (MPPI) control. It samples multiple candidate action sequences, simulates them using the learned dynamics model, and evaluates them using a cost function based on the Intersection over Union (IoU) of the two cloth halves. The best action is executed, and the process repeats at the next time-step in a continuous feedback loop.
Experimental Results
AdaFold was trained in the PyBullet simulation environment and evaluated on a set of seven distinct real-world cloths, including polyester, cotton, and wool, with varying sizes and stiffness.
Superior Accuracy and Robustness
In real-world tests, AdaFold achieved an average IoU of 0.78, significantly outperforming the standard fixed Triangular trajectory (0.41) and a model-free DDPG baseline (0.48). The feedback loop allows the robot to compensate for the cloth's tendency to bunch up or slip, leading to much tighter, more accurate folds.
Furthermore, AdaFold maintained high performance (0.72 IoU) even when the cloth's starting position was randomly rotated by up to ±45°, whereas fixed trajectories are highly sensitive to initial placement. The system also successfully folded complex items like pants without specific training on those shapes, demonstrating the flexibility of the geometric-semantic approach.
Discussion and Limitations
While AdaFold significantly improves folding reliability, it currently assumes quasi-static movements where the cloth is always in static equilibrium. It cannot handle dynamic actions like "flinging" a cloth flat. Additionally, the semantic labeling currently requires the cloth to start in a relatively flat configuration. Future work will explore bimanual coordination to allow for more complex folding tasks, such as shirts.
Summary updated