NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Planimation

Gang Chen, Yi Ding, Hugo Edwards, Chong Hin Chau, Sai Hou, Grace Johnson, Mohammed Sharukh Syed, Haoyuan Tang, Yue Wu, Ye Yan, Gil Tidhar, Nir LipovetzkyarXiv 2020

Abstract

Automated planning often relies on the Planning Domain Definition Language (PDDL), which, while computationally efficient, is difficult for humans to debug and interpret. Planimation addresses this by providing a modular framework to transform abstract PDDL plans into intuitive 2D animations. By decoupling visualization from planning logic through a declarative "animation profile," Planimation facilitates model debugging and enhances the explainability of AI planning.

Introduction

In the field of Automated Planning, PDDL serves as the gold standard for describing domains (the rules of the world) and problems (the starting state and the goal). However, solver outputs are typically text-based sequences of actions that are notoriously difficult for humans to parse. When a plan fails or produces unexpected results due to a modeling error—such as a missing precondition—identifying the "bug" in a wall of text is a significant challenge. This creates a "mental misalignment" between how a human conceptualizes a problem and how the PDDL code actually behaves. Planimation aims to bridge this gap by providing immediate visual feedback through dynamic 2D animations.

The Planimation Framework

The core innovation of Planimation is the decoupling of visualization from planning logic, mirroring the separation of domain models from solvers in PDDL. The system relies on three primary components to generate animations:

  1. The Animation Profile: This is a third PDDL-like file that defines how predicates in the domain should be rendered on a 2D canvas. It specifies properties such as coordinates ($x, y$), color, size, and sprites (via Base64 images).
  2. Triggered Effects: Visual changes are triggered when a predicate becomes true in a given state. For instance, the predicate (on block-a block-b) might trigger a rule that sets the $x$-coordinate of block-a to match block-b and its $y$-coordinate to block-b's height plus a small offset.
  3. Constraint Functions: To handle layouts without hard-coding every position, the authors implemented functions inspired by the Cassowary constraint toolkit. Functions like distributex and distribute_grid_around_point automatically arrange objects (like cities on a map or blocks on a table) based on the current state.
The Planimation Planning Visualiser interface showing a Blocksworld plan execution, including action steps and PDDL metadata.

The architecture utilizes a Unity WebGL engine for browser-based rendering and a Python-based web API to interface with solvers, specifically the solver.planning.domains API. As shown in the figure above, the interface provides a comprehensive view of the plan, including a step-by-step action list, detailed precondition/effect information in the "Step Info" panel, and the synchronized animation.

Evaluation and Benchmarks

The framework was evaluated using several classic benchmarks from the International Planning Competitions (IPC):

  • Blocksworld: Moving blocks into specific stacks.
  • Logistics: Moving packages via trucks and planes across cities.
  • Grid: Navigating a grid to move objects.
  • Towers of Hanoi: The classic mathematical puzzle.

The results demonstrated that a single animation profile is sufficiently expressive to handle any initial state or goal within these domains. By allowing for "custom object declarations," Planimation can also visualize static elements like floors or robot arms that are often omitted from symbolic PDDL models but are crucial for human recognition and spatial context.

Key Insights and Results

Planimation represents a significant step forward in Explainable AI (XAI) for planning. By closing the feedback loop between modeling and visualization, it allows researchers to spot logical errors—such as a block floating in mid-air because a "clear" predicate was missing—that would otherwise remain hidden in text logs. The tool serves as a bridge for non-experts, as a plan "explains itself" when a user can watch a package move from a warehouse to a truck and then to its destination. Recognized with the Best System Demo Award at ICAPS 2019, the project is now a vital part of the web-based planning ecosystem.

Limitations and Future Work

While effective, the current system is limited to a 2D canvas, which may be insufficient for complex 3D robotics simulations. Additionally, animation profiles must currently be written manually. Future work will explore semi-automated ways to generate these profiles and investigate scaling strategies for large-scale problems involving thousands of objects.

Summary updated

BibTeX
@misc{chen2020planimation,
  author = {Gang Chen and Yi Ding and Hugo Edwards and Chong Hin Chau and Sai Hou and Grace Johnson and Mohammed Sharukh Syed and Haoyuan Tang and Yue Wu and Ye Yan and Gil Tidhar and Nir Lipovetzky},
  title = {{Planimation}},
  year = {2020},
  eprint = {2008.04600},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.04600},
}
Figure