Behavior Trees (BTs) provide designers with an intuitive graphical interface to construct long-horizon plans for autonomous systems. To ensure their correctness and safety, rigorous formal models and verification techniques are essential. Temporal BTs (TBTs) offer a promising approach by leveraging existing temporal logic formalisms to specify and verify the executions of BTs. However, this analysis is currently limited to offline post hoc analysis and trace repair. In this paper, we reformulate TBTs using a ternary-valued Signal Temporal Logic (STL) amenable to control synthesis. Ternary logic introduces a third truth value Unknown, formally capturing cases where a trajectory has neither fully satisfied nor violated a specification. We propose mixed-integer linear encodings for partial trajectory STL and TBTs over ternary logic, allowing for correct-by-construction control strategies for linear dynamical systems via mixed-integer optimization. We demonstrate the utility of our framework by solving optimal control problems.
Figures & tables
Fig. 1: Example BT for a mobile robot task. BTs are read from left to right with the colored nodes representing the BT control operators and the leaf nodes representing execution nodes. This BT specifies that the mobile robot must first navigate to goal A . Then, if the battery is greater than or equal to 80% , proceed to goal B . Otherwise, if the battery is less than 80% , navigate to goal C then proceed to goal B .
Fig. 2: Synthesized Robot Trajectories satisfying the TBT formula ( 10 ) for two different initial battery levels. When the battery level is below 80% , the robot must return to the charger (location C ) before proceeding to location B . In both cases the robot starts at the center of location C and is initially at rest.
Fig. 3: Synthesized trajectories for three agents satisfying the TBT formula ( 11 ) with maximum finite horizon N=20 time steps and time interval δt=0.5 s. Sub-level formula φ1 specifies that eventually agent 1 ( blue ) shall reach goal C , agent 2 ( red ) shall reach goal A , and agent 3 ( green ) shall reach goal B . Sub-level formula φ2 specifies that eventually agent 1 shall reach goal B , agent 2 shall reach goal C , and agent 3 shall reach goal A . The model has 354 continuous variables, 2040 integer variables, 2040 linear constraints, and 114 quadratic objective terms. The model was solved to global optimality in 307.75 seconds on an Ubuntu 22.04 machine with an AMD Ryzen 9 7950X 16 Core CPU and 128GB of memory.
Fig. 4: The synthesized multi-agent trajectories elicit a queuing phenomenon when passing through the obstacles.
Behavior Trees (BTs) are widely adopted for complex task execution in robotics, providing modular, reactive control but lacking formal guarantees. However, existing correct-by-construction synthesis from Linear Temporal Logic (LTL) cannot express quantitative timing constraints. This letter synthesizes correct-by-construction BTs from Signal Temporal Logic (STL) specifications. The workspace is modeled as a timed transition system and abstracted into a zone graph, and an augmented state space tracking both logical progress and timing constraints is introduced. A hierarchical fixed-point algorithm computes winning sets for an STL fragment encompassing safety, reachability, response, recurrence, and persistence, yielding BT subtrees with a runtime constraint function. Correctness guarantees are proven and complexity bounds are derived. Simulations demonstrate specification satisfaction with strictly positive robustness, and a physical quadrotor experiment with six STL specifications validates practical deployability.
Jiaheng Dong, Jingyi Huang, Liang Han
Sino-French Engineer School,Beihang University, Beijing 100191, China
Temporal logic provides designers a formal reasoning tool for specifying complex spatio-temporal behaviors and tasks for autonomous systems. Many techniques exist for control synthesis according to temporal logic specifications, spanning a large variety of systems, including robotics. However, the vast majority of implementations are limited to Boolean temporal logics. Boolean temporal logic does not have an innate mechanism for quantifying abstention, rather verdicts are either definitively True or False. Recent work demonstrates that ternary logic is a capable formalism for reasoning about robotic behaviors, with the natural ability to classify uncertainty with the Unknown literal. Ternary temporal logic is still in its infancy, with work limited to synthesis for linear systems and monitoring. This work proposes a probabilistic relaxation of ternary temporal logic that allows for value and gradient computation through the same network while retaining exact verdicts on actual data. The relaxed network can be used as an objective in gradient-based control synthesis for both offline and online robotic control applications. We demonstrate the utility of our framework with two robotic manipulator tasks, one offline and one online, involving intermediate checking and sequencing of subtasks to demonstrate the benefit of our approach in terms of correct and timely execution.
Ryan Matheu, Sai Sandeep Damera, John S. Baras +1
Institute for Systems Research, University of Maryland, College Park, USA
As robots move from controlled environments into real-world settings, it becomes increasingly crucial to ensure that they perform as expected. A key step toward that goal is a rigorous specification of the desired robot behavior, capturing intricate temporal, spatial, and logical requirements. Complementing this, plan and control synthesis methods are needed to fulfill these specifications with provable guarantees. This manuscript presents temporal logics - particularly linear and signal temporal logic - as expressive specification languages for robot behavior over time. We then discuss principles of formal synthesis, from discrete graph- and game-based approaches to sampling-based motion planning, trajectory optimization, and control-certificate-based synthesis. Finally, we outline challenges in deploying formal synthesis in real-world robotics, emphasizing the interplay between modeling fidelity, computational tractability, and the types of rigorous guarantees that can be achieved.