HATP: Hierarchical Agent-based Task Planner

Raphaël Lallement, Lavindra de Silva, Rachid Alami2018

TL;DR

This paper introduces HATP, an open-source Hierarchical Task Network (HTN) planner designed for multi-agent systems. HATP enhances traditional HTN planning by offering a more expressive language, robust control over search, and seamless integration with geometric planning for real-world robotics applications.

What Problem Does This Paper Address?

Traditional AI planning often struggles with complex, real-world tasks that involve multiple agents and require coordination with physical constraints. While Hierarchical Task Network (HTN) planning offers a structured way to break down complex tasks into smaller, manageable steps using "recipes," existing implementations can be limited in expressiveness and integration with the physical world. This paper addresses the need for a more versatile HTN planner that can handle multi-agent coordination, incorporate user-defined behaviors, and bridge the gap between symbolic task planning and geometric motion planning, particularly for robotics.

Methods

HATP is a total-order HTN planner that has undergone significant enhancements and is now available as open-source software. Key methodological contributions include:

  • Expressive Domain Language: HATP employs a structured programming-like syntax for defining HTN methods and operators, including support for structures, conditionals, and typing. It treats agents as "first-class citizens," allowing for distinct agent types and the splitting of solutions into multiple "streams" for concurrent execution by different agents, with mechanisms for synchronization.
  • Control Over Search: HATP provides explicit constructs (SEL, SEL-ORDERED, SEL-ONCE) to manage how variables are bound during planning. This allows for more efficient search by controlling backtracking and potentially reducing the search space, though with a trade-off in completeness. Domain-dependent backtrack preferences can also be encoded for further optimization.
  • Symbolic-Geometric Planning Integration: A core advancement is the tight integration of HATP with geometric planners (GPs). This allows for interleaved planning, where the GP can be consulted during HTN planning to verify the feasibility of actions in a 3D world, apply trajectories, compute symbolic facts (like distance moved), and constrain geometric goals. This is crucial for generating physically viable plans.

Datasets

Not discussed in the paper. The paper focuses on the planner's capabilities and integration with a robotics framework, rather than specific datasets for training or evaluation.

Key Insights and Ideas

  • Agents as First-Class Citizens: Treating agents distinctly within the planning framework is crucial for effective multi-agent coordination, enabling the decomposition of plans into agent-specific streams.
  • Bridging Symbolic and Geometric Planning: The seamless integration of HTN planning with geometric planning is essential for creating realistic and executable plans in robotics. This allows for the verification of physical constraints and the generation of precise motion trajectories.
  • Controlling Search for Efficiency: Providing explicit control over search mechanisms (like variable binding) can significantly improve planning efficiency, even if it means sacrificing some completeness. This is particularly relevant for complex domains.
  • Open-Source for Wider Adoption: Making HATP open-source democratizes access to advanced planning capabilities, fostering wider adoption and community contributions in robotics and AI research.

Key Results

The paper highlights the enhancements and capabilities of HATP, emphasizing its user-friendly language, effective control over decomposition, and integration into a robotics framework. While specific quantitative results (e.g., speedup percentages) are not detailed, the paper presents a new action definition syntax that facilitates interleaved symbolic-geometric planning. This new syntax allows for:

  • Consulting a GP to determine viable trajectories.
  • Applying trajectories to a 3D world.
  • Computing symbolic facts resulting from trajectories.
  • Transparently adding these facts to the HATP state.
  • Constraining geometric goal states.

The paper also mentions case studies involving quadrotor UAVs assembling structures and human-robot collaborative manipulation, demonstrating the practical applicability of HATP's integrated planning capabilities.

Limitations and Future Work

  • Completeness Trade-off: The SEL-ONCE construct, while improving efficiency, can lead to a loss of completeness by disregarding certain bindings.
  • Future Work: The paper implies ongoing development and integration within the LAAS Robotics Architecture (LRA), suggesting continued refinement of HATP's capabilities and its application in more complex robotic scenarios. The availability as open-source software also opens avenues for community-driven extensions and improvements.

Summary updated

Abstract

Hierarchical Task Network (HTN) planning is a proven approach to solving complex, real world planning problems more efficiently than planning from first principles when 'standard operating procedures' (or `recipes') can be supplied by the user. By planning for tasks in the same order that they are later executed, total-order HTN planners always know the complete state of the world at each planning step. This enables writing more expressive planning domains than what is possible in partial-order HTN planning, such as preconditions with calls to external procedures. Such features have facilitated the use of total-order HTN planners in agent systems and seen them excel in AI games. This paper describes the Hierarchical Agent-based Task Planner (HATP), a total-order HTN planner. Since its first implementation, HATP has had various extensions and integrations over the years, such as support for splitting a solution into multiple streams and assigning them to the agents in the domain; modelling their beliefs as distinct world states; allowing 'social rules' to be included by the user to define what kind of agent behaviour is appropriate; allowing tasks to be planned by taking the human's safety and comfort into account; and to interleave HTN and geometric planning. Since many of these implementations have remained prototypes, we have significantly enhanced them as well as HATP itself, and integrated them into a stand-alone distribution, which is now available as open source software (under a BSD 2-Clause License). This paper presents some of our recent improvements to HATP, and gives an overview of its user-friendly language, which treats agents as distinct entities; its mechanisms for effective control over decomposition; and its integration into our larger robotics framework.
BibTeX
@misc{lallement2018hatp,
  author = {Raphaël Lallement and Lavindra de Silva and Rachid Alami},
  title = {{HATP: Hierarchical Agent-based Task Planner}},
  year = {2018},
  doi = {10.65109/vumn1899},
}
Figure