Direct Robot Configuration Space Construction using Convolutional Encoder-Decoders

Christopher Benka, Judah Goldfeder, Carl Gross, Riya Gupta, Hod LipsonarXiv 2023

TL;DR

This paper introduces a novel approach to robotic motion planning by using a convolutional encoder-decoder to directly map images of a 2D workspace to its corresponding configuration space (C-space). By treating C-space construction as a semantic segmentation task, the model achieves high accuracy (97.5% F1-score) and significant speedups, constructing C-spaces in roughly 1 microsecond per configuration while demonstrating impressive zero-shot transferability to new obstacle types.

What Problem Does This Paper Address?

In robotics, motion planning involves finding a path for a robot from point A to point B without hitting anything. This is typically done in Configuration Space (C-space), where the robot is represented as a single point. The C-space is divided into $C_{free}$ (safe areas) and $C_{clsn}$ (collision areas).

The bottleneck in modern motion planning is often the construction of this C-space. Traditional sampling-based methods (like RRT or PRM) rely on expensive, repetitive collision-checking procedures. While recent machine learning efforts have tried to speed up individual collision checks, they often require retraining whenever an obstacle moves or changes. The authors tackle the challenge of constructing the entire C-space map efficiently and accurately for dynamic environments without needing constant retraining.

Methods

The authors propose a "Direct C-space Construction" framework. Instead of checking points one by one, they use a Convolutional Encoder-Decoder to perform an image-to-image translation: the input is a top-down image of the workspace, and the output is a pixel-map of the C-space.

The proposed framework maps a workspace image through a convolutional encoder-decoder to produce a C-space map.

Key technical details include:

  • Architecture: They adapted SegNet, a model originally designed for semantic scene segmentation. Their version uses 7 encoder and 7 decoder blocks, totaling 38 convolutional layers.
  • Loss Function: To optimize the weights, they alternated between $L_1$ and $L_2$ pixel-wise regression losses across training epochs. This combination was found to minimize both validation loss and the dangerous "undetected collisions" metric.
  • Inference: The model outputs a 512x512 image where each pixel represents a specific joint configuration. A threshold $\eta$ is applied to classify pixels as either $C_{free}$ or $C_{clsn}$.
Figure 2. Illustration of model architecture. Modified from the original SegNet architecture, our convolutional encoder-decoder utilizes 7 encoders and 7 decoders for a total of 38 convolutional layers.

Datasets

The study focused on a 2-DOF dual-arm robot (visualized below) and curated four distinct datasets, each containing 10,000 workspace/C-space image pairs:

  1. 3 Circle Obstacles: Simple circles randomly translated.
  2. 1-3 Circle Obstacles: Introduces the removal/addition of obstacles.
  3. 3 Convex Obstacles: Uses different shapes (square, circle, triangle) randomly translated.
  4. 3 Convex Obstacles Rotated: The most complex set, involving translation, rotation, and different shapes.
Figure 3. Sample workspace from 3 convex obstacles rotated dataset. The gray boxes represent the rigid dual-arm robot. The arms can rotate freely, but the robot cannot perform translational movement. The circle, square, and triangle are obstacles in the workspace.

Key Insights and Ideas

  • C-Space as Semantic Segmentation: The most powerful idea here is reframing a geometric/kinematic problem as a visual one. By treating the C-space as an image, the model can leverage the spatial reasoning capabilities of CNNs to "learn" the robot's kinematics and how they interact with physical boundaries.
  • High Transferability: The model doesn't just memorize maps; it learns features of the robot-environment interaction. The authors demonstrated that a model trained only on translated circles could perform "zero-shot" (without further training) on workspaces where obstacles were removed or rotated, maintaining an F1-score above 96%.
  • Parallelized Collision Checking: Because the CNN processes the entire workspace image at once, it effectively performs thousands of collision checks in parallel. This results in a construction time of ~1.08 $\mu$s per configuration, nearly 9x faster than traditional methods.

Key Results

  • Accuracy: The model achieved an average 97.5% F1-score across all datasets.
  • Safety: Undetected collisions (the most critical failure mode for a robot) were limited to less than 2.5%.
  • Efficiency: The entire C-space for a 2-DOF robot is constructed in approximately 283 milliseconds.
  • Zero-Shot Performance: When tested on entirely new transformations (like rotation) without fine-tuning, the model still achieved a 97.01% average F1-score, proving that the learned features are highly robust.

Limitations and Future Work

  • Dimensionality: The current work is limited to 2D workspaces and 2-DOF robots. Scaling this to 3D workspaces and high-DOF industrial robots (typically 6+ DOF) would require moving from 2D images to 3D volumes or higher-dimensional tensors, which significantly increases computational complexity.
  • Safety Criticality: While 2.5% undetected collisions is low, in real-world industrial settings, any undetected collision is potentially catastrophic. The authors suggest using these approximate C-spaces as a starting point, followed by exact collision checking on the final computed path to ensure safety.
  • Future Directions: The authors propose extending the technique to 3D workspaces and exploring the integration of these convolutional encoders directly into existing sampling-based motion planning (SBMP) pipelines.

Summary updated

BibTeX
@misc{benka2023direct,
  author = {Christopher Benka and Judah Goldfeder and Carl Gross and Riya Gupta and Hod Lipson},
  title = {{Direct Robot Configuration Space Construction using Convolutional Encoder-Decoders}},
  year = {2023},
  eprint = {2303.05653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.05653},
}
Figure