A Parallel Blackboard System for Robot Control

TL;DR

This paper presents a parallelized blackboard architecture designed for controlling complex robot cells. By modifying a traditional blackboard system to support concurrent execution of knowledge sources, the authors enable more efficient and flexible control of multiple independent robotic devices, paving the way for advanced robot cell simulation and prototyping.

What Problem Does This Paper Address?

Robot cells, which consist of a robot arm working in conjunction with various other devices like sensors, processors, and operators, require sophisticated control to manage the interactions between these components. A key challenge in controlling such cells is the need for a supervisor that can handle:

  • Multiple, independent devices: Each device has its own functionality and may represent its knowledge in different ways.
  • Dynamic task allocation: The supervisor must decide which device performs which task at any given moment, based on the current state of the cell and the overall goal.
  • Error handling: The system needs to detect and manage errors that may arise from device interactions.
  • Modifiability: The control logic should be easily adaptable to experiment with different strategies.
  • Concurrency: Crucially, multiple devices need to execute their tasks simultaneously to achieve efficient operation.

Traditional sequential blackboard systems, while powerful for expert systems, struggle with the concurrency requirement essential for modern robot cell control. This paper addresses this gap by proposing modifications to a blackboard architecture to enable parallel execution of its knowledge sources (KSs).

Methods

The authors adapt a blackboard shell, built on principles from Hearsay-II, Hearsay-III, and BB1, to support parallel execution of Knowledge Sources (KSs). The core modifications focus on three main aspects:

  1. Monitoring Scheduling Mechanism:
    • Instead of the control unit directly executing KSs, it now delegates KS execution to available processors.
  2. When a processor finishes a task, it signals the control unit.
  3. The control unit then updates its understanding of the blackboard state and identifies new KSs that can be executed by free processors.
  4. KSs are prioritized, and the highest-priority KS is assigned to an available processor. The control unit does not wait for KS completion before assigning new tasks.
  5. Blackboard Handler:
    • The blackboard handler is implemented as a process that manages a queue of requests (read, write, modify) to the blackboard. This sequentializes incoming requests, preventing conflicts.
  6. To maintain data consistency during concurrent access, the paper discusses three potential adjustments:
  7. Locking: KSs can lock units or even entire blackboards to prevent other KSs from accessing them.
  8. Tagging: KSs can tag units they are using, receiving notifications if other KSs modify them.
  9. Assumption Checking: Before writing, a KS checks if its assumptions about the blackboard state are still valid. If so, it requests a write lock; otherwise, the write is cancelled.
  10. The authors favor the third option, noting it requires similar locking mechanisms as the first but for shorter durations. They also suggest that for many applications, concurrent KSs operating on disjoint blackboard sections can minimize interference.
  11. Concurrent Process Execution:
    • The system is divided into multiple processes: one for the control unit, one for the blackboard handler, and one for each processor representing a device.
  12. For simulation purposes, they used a VAX system under UNIX, running these processes in timesharing mode.
  13. In a real-world robot cell control scenario, the controlling processor would have processes acting as gateways to the actual processors executing the KSs.

Datasets

Not discussed in the paper. The paper focuses on the architecture and its application to a simulated robot cell.

Key Insights and Ideas

  • Concurrency is Key for Robot Cells: The paper strongly emphasizes that for efficient robot cell operation, concurrent execution of tasks by multiple devices is not just beneficial but essential.
  • Blackboard Flexibility for Parallelism: The inherent flexibility of the blackboard architecture makes it a suitable candidate for modification to support parallelism, unlike more rigid control structures.
  • Decoupling Control and Execution: By delegating KS execution to processors and having a dedicated control unit manage task assignment, the system achieves a more robust and scalable parallel execution model.
  • Balancing Concurrency and Consistency: The paper highlights the critical challenge of maintaining blackboard data consistency when multiple KSs access it concurrently and proposes practical solutions.
  • Prototyping and Simulation Value: The authors posit that a parallel blackboard system is particularly valuable for prototyping and simulating robot cell configurations before deploying them in real-time environments.

Key Results

The paper describes the successful modification of a blackboard shell to support parallel KS execution. While specific quantitative results (e.g., speedup percentages) are not detailed, the authors demonstrate that their modified architecture can:

  • Accommodate concurrent KS execution: The system is designed to handle multiple KSs running simultaneously.
  • Manage task assignment to free processors: The monitoring scheduling mechanism effectively assigns tasks to available processing units.
  • Address data consistency issues: The proposed blackboard handler mechanisms aim to prevent data corruption during concurrent access.
  • Facilitate simulation: The system was implemented and simulated in a UNIX environment, demonstrating its feasibility.

Limitations and Future Work

  • Real-time Control Efficiency: The authors acknowledge that while the blackboard architecture is excellent for prototyping and simulation, it "might not be efficient enough for real time robot cell control." This suggests that for high-speed, time-critical applications, further optimizations or alternative architectures might be necessary.
  • Future Work: The immediate next step proposed is to implement the developed parallel blackboard system for actual robot cell control. This would involve transitioning from simulation to a real-world application and evaluating its performance in a practical setting.

Summary updated

BibTeX
@inproceedings{1987parallel,
  title = {{A Parallel Blackboard System for Robot Control}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure