Abstract
Sequential multi-step cloth manipulation is a challenging problem in robotic manipulation, requiring a robot to perceive the cloth state and plan a sequence of chained actions leading to the desired state. Most previous works address this problem in a goal-conditioned way, and goal observation must be given for each specific task and cloth configuration, which is not practical and efficient. Thus, we present a novel multi-step cloth manipulation planning framework named Foldformer. Foldformer can complete similar tasks with only a general demonstration and utilize a space-time attention mechanism to capture the instruction information behind this demonstration. We experimentally evaluate Foldsformer on four representative sequential multi-step manipulation tasks and show that Foldsformer significantly outperforms state-of-the-art approaches in simulation. Foldformer can complete multi-step cloth manipulation tasks even when configurations of the cloth (e.g., size and pose) vary from configurations in the general demonstrations. Furthermore, our approach can be transferred from simulation to the real world without additional training or domain randomization. Despite training on rectangular clothes, we also show that our approach can generalize to unseen cloth shapes (T-shirts and shorts).
Introduction
Manipulating cloth represents a "grand challenge" in robotics due to the high deformability and infinite degrees of freedom of the material. Unlike rigid objects, cloth can crumple, self-occlude, and exhibit unpredictable behavior. Current state-of-the-art approaches often rely on goal-conditioned policies, where the robot is provided with a target image of the final state. However, these methods are frequently brittle; variations in cloth size, initial pose, or lighting can cause the goal image to no longer match the current state, leading to failure. Moreover, a single goal image lacks the temporal context—the "how-to"—necessary for complex, multi-step sequences. Foldsformer addresses these limitations by shifting from pixel-matching to instruction-following, enabling a robot to generalize a single general demonstration to diverse cloth configurations.
Methodology: The Foldsformer Framework
The core of the proposed framework is the Foldsformer architecture, which processes a sequence of sub-goals from a general demonstration as a video-like input.
Space-Time Attention Mechanism
Inspired by video processing architectures like TimeSformer, Foldsformer employs a divided attention mechanism to capture both static and dynamic information:
- Spatial Attention: Focuses on the cloth's configuration within individual frames, identifying key features such as corners and edges.
- Temporal Attention: Captures the dynamics across the sub-goal sequence, learning the order and direction of manipulation steps.
- Cross-Attention (TimeMA): A specialized block that fuses features from the current observation with the demonstration sequence to infer the next optimal action.
Action Space and Input
The model operates on depth images rather than RGB to minimize the "sim-to-real gap," as depth data is more consistent across different environments and sensors. The output consists of two heatmaps representing the optimal "pick" and "place" points for a robotic gripper.
Experimental Evaluation
Foldsformer was evaluated in both simulation (SoftGym) and real-world settings. Four benchmark tasks were used: Double Triangle, Double Straight, All Corners Inward, and Corners Edges Inward.
Results and Generalization
In simulation, Foldsformer significantly outperformed baselines such as FabricFlowNet. For instance, in the "Double Triangle" task, Foldsformer achieved a mean particle error of 19.64 mm, a substantial improvement over the baseline's 102.20 mm.
Crucially, the model demonstrated robust generalization. It successfully handled cloths of different sizes and rotations compared to the demonstration. Furthermore, the model exhibited zero-shot sim-to-real transfer, performing effectively on a Franka Emika Panda robot without additional training. Even when presented with unseen shapes like T-shirts (MIoU 0.801) and shorts (MIoU 0.676), the model, trained only on rectangular cloths, maintained high performance.
Discussion and Limitations
While Foldsformer represents a significant step forward, several challenges remain. The current system uses a simple 2D pick-and-place primitive, which can occasionally fail to distinguish between grasping single or multiple layers of cloth. Additionally, the model does not explicitly account for the robot's physical workspace constraints. Future work will explore the integration of tactile feedback to improve grasp precision and the automatic generation of sub-goals to further reduce human intervention.
Summary updated