Implementing BDI Continual Temporal Planning for Robotic Agents

Alex Zanetti, Devis Dal Moro, Redi Vreto, Marco Robol, Marco Roveri, Paolo Giorgini

TL;DR

This paper introduces a novel BDI (Belief-Desire-Intention) framework that allows robotic agents to interleave planning and execution in real-time. By integrating a new continual temporal planner called CJFF into the ROS2-BDI ecosystem, the authors enable robots to start acting on partial plans and proactively adapt to environmental changes, significantly outperforming traditional "plan-then-act" baselines in dynamic scenarios.

What Problem Does This Paper Address?

In controlled environments like factory floors, robots often follow rigid, pre-computed plans. however, real-world applications—like navigating a busy hospital or a dynamic warehouse—are unpredictable.

Traditional autonomous agents typically follow a "sense-plan-act" cycle. The "plan" phase usually requires computing a complete sequence of actions from start to finish before the robot moves a single inch. If a human walks in front of the robot or a new high-priority task appears, the robot often has to stop entirely and compute a brand-new complete plan. This leads to "replanning loops" where the robot spends more time thinking than doing.

The authors address the need for continual temporal planning: the ability to reason about time-sensitive tasks (deadlines and durations) while simultaneously executing actions and refining the plan as new information arrives.

Methods

The authors propose an architecture that merges the high-level reasoning of BDI agents with the low-level agility of online planning.

1. The CJFF Planner

The core engine is CJFF (Continual JavaFF), a temporal planner built on top of the JavaFF library. Unlike standard planners, CJFF uses search rounds. Instead of searching the entire state space for a perfect solution, it executes a limited number of search iterations to find a "good enough" partial plan. It then "re-roots" the search tree at the end of this partial plan and continues searching while the robot executes the first few steps.

2. Extended ROS2-BDI Architecture

The researchers integrated CJFF into ROS2-BDI, an existing framework for the Robot Operating System (ROS2). Key novel components include:

  • Plan Failure Forecasting: The system continuously runs a simulation of the current plan against the latest sensor data to predict if a future action will fail before it happens.
  • Early Arrest (Safe Termination): If a better plan is found or a goal changes, the "Online Scheduler" can safely interrupt the current execution at a consistent state to switch to the new plan.
  • Goal Revision: The agent can dynamically merge or update goals (e.g., "pick up trash A" becomes "pick up trash A and B because they are close together") without restarting the entire reasoning process.

Datasets

The paper does not use a static dataset; instead, it evaluates the framework using a custom-designed simulation in Webots, a professional-grade robotic simulator.

The scenario involves a "recycling agent" in a 7x7 grid. The environment contains:

  • Static obstacles (walls).
  • Dynamic obstacles (people moving in circular paths unknown to the robot).
  • Randomly appearing litter that the robot must collect and recycle.

The authors compared their "Online" (continual) approach against an "Offline" baseline (using the POPF planner within the standard ROS2-BDI framework).

Key Insights and Ideas

  • Acting on Incomplete Information: The most significant shift is the "proactive" behavior. The robot doesn't wait for a perfect plan; it starts moving toward the goal based on its best current guess, refining the path as it gets closer.
  • The Power of "Search Rounds": By breaking the planning process into discrete chunks, the robot maintains a constant "heartbeat" of activity, avoiding the long pauses typical of complex AI planners.
  • Simulation as a Crystal Ball: Using internal simulations to forecast plan failure allows the robot to be "surprised" less often. It can start looking for a detour before it actually hits a dead end.
  • Temporal PDDL 2.1 Support: While many continual planners only handle "instantaneous" actions, this framework handles durative actions—actions that take a specific amount of time—which is critical for realistic robotic movement.

Key Results

The evaluation showed that the continual planning approach is significantly more efficient than the baseline:

  • Fewer Steps: In almost all test cases, the "Online" agent required fewer steps to complete its tasks. For example, in one configuration, the baseline took 58.5 steps on average, while the new framework took only 36.0 steps.
  • Adaptability: The improvements were most dramatic in scenarios where new litter was discovered while the robot was already moving. The continual planner could seamlessly incorporate the new goal into its current trajectory.
  • Reduced Failure: The baseline often suffered from "replanning loops" when encountering dynamic obstacles, whereas the new framework adapted its path "on the fly" without stopping.

Limitations and Future Work

While promising, the authors acknowledge several areas for improvement:

  • Computational Overhead: Continual planning is CPU-intensive. Future work will look at how to balance planning frequency with the robot's available hardware resources.
  • Advanced Forecasting: The current failure forecasting is a simple simulation. The authors suggest using machine learning or statistical reasoning to better predict environmental changes.
  • Multi-Agent Coordination: The current study focused on a single robot. Extending this to a fleet of robots coordinating in the same space is a major next step.
  • Probabilistic Planning: The current model assumes actions are deterministic. Incorporating uncertainty (e.g., "the robot might slip") would make the system even more robust.

Summary updated

BibTeX
@inproceedings{zanetti2023implementing,
  author = {Alex Zanetti and Devis Dal Moro and Redi Vreto and Marco Robol and Marco Roveri and Paolo Giorgini},
  title = {{Implementing BDI Continual Temporal Planning for Robotic Agents}},
  booktitle = {Wi/iat},
  year = {2023},
  doi = {10.1109/wi-iat59888.2023.00062},
}
Figure