Software
FlexBE
By FlexBE, from github.com/FlexBE/flexbe_behavior_engine (opens in a new tab)
- Middleware
- Framework
- BSD-3-Clause
FlexBE is a behavior engine that coordinates a robot's capabilities to solve complex tasks, modeling behaviors as hierarchical state machines for ROS 2.
Facts
- GitHub stars
- 78read on 28 Nov 2026
- Last update
- 20 May 2026Newest commit on ros2-devel
- Maintenance
- Maintaineda commit in the last 12 months
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 0e9c0ae (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Behaviors are hierarchical state machines where states map to active actions and transitions respond to outcomes.
- Operators can run behaviors autonomously, restrict certain transitions, or trigger them manually.
- The structure of a behavior can be modified during execution without restarting it.
- Includes a runtime control interface and a graphical editor for state machines via the FlexBE WebUI.
- Behavior packages can be created with a project template, with separate folders for custom states and behaviors.
- Requires FlexBE WebUI 4.1+ for the operator control station; version 4+ is incompatible with the older FlexBE App.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Maintained, last commit on 20 May 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/FlexBE/flexbe_behavior_engine (opens in a new tab)
- The version Robotheca read0e9c0ae (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by FlexBE, at commit 0e9c0ae, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
FlexBE Behavior Engine
FlexBE is a high-level behavior engine coordinating the capabilities of a robot in order to solve complex tasks. Behaviors are modeled as hierarchical state machines (HFSM) where states correspond to active actions and transitions describe the reaction to outcomes.
The main advantage of FlexBE over similar approaches is the good operator integration and an intuitive user interface. Besides executing behaviors in full autonomy, the operator can restrict execution of certain transitions or trigger them manually. Furthermore, FlexBE supports modifying the whole structure of a behavior during its execution without restarting it. The user interface features a runtime control interface as well as a graphical editor for state machines.
Please refer to the FlexBE Homepage (flexbe.github.io (opens in a new tab)) for further information, tutorials, application examples, and much more.
You may also want to check out the quick start tutorial demonstrations at FlexBE Turtlesim Demo (opens in a new tab).
Jazzy Image: Jazzy ROS Build Status (opens in a new tab) (opens in a new tab)
Kilted Image: Kilted ROS Build Status (opens in a new tab) (opens in a new tab)
Rolling Image: Rolling ROS Build Status (opens in a new tab) (opens in a new tab)
Note: This version 4+ breaks compatibility with the FlexBE App. You must use the FlexBE WebUI flexbe_webui (opens in a new tab) now.
Installation
For released versions, FlexBE is available as apt install package ros-<DISTRO>-flexbe-*
To build from source, execute the following commands to install FlexBE for ROS 2 systems:
cd "ros2_ws"/src
git clone https://github.com/FlexBE/flexbe_behavior_engine.git
Next, navigate to the "ros2_ws" top-level directory and build FlexBE:
colcon build
Creating new FlexBE Behavior packages
To begin, create your own repository for behavior development in the ${WORKSPACE_ROOT}/src folder:
ros2 run flexbe_widget create_repo [your_project_name] <meta_package_name> <--non-interactive>
This will clone a project template (requires internet access) that contains examples and proper package definitions, and create the ROS 2 package structure and three subfolders.
For example, running
ros2 run flexbe_widget create_repo my_project my_flexbe_project
from the ${WORKSPACE_ROOT}/src folder will create:
${WORKSPACE_ROOT}/src/my_flexbe_project${WORKSPACE_ROOT}/src/my_flexbe_project/my_flexbe_project- the ROS meta package${WORKSPACE_ROOT}/src/my_flexbe_project/my_project_flexbe_behaviors${WORKSPACE_ROOT}/src/my_flexbe_project/my_project_flexbe_states
These are intended to contain your custom FlexBE state implementations and HFSM-based behaviors.
This release of the FlexBE Behavior Engine requires version 4.1+ of the FlexBE UI. This breaks compatibility with the older FlexBE App and now requires use of the FlexBE WebUI tool.
It is recommended to install the FlexBE WebUI user interface:
FlexBE WebUI (opens in a new tab) - Python-based webserver version
Usage
Use the following launch file for running the onboard engine:
ros2 launch flexbe_onboard behavior_onboard.launch.py
Use the following launch file for running the operator control station (requires the FlexBE WebUI v4.1+):
ros2 launch flexbe_webui flexbe_ocs.launch.py
During testing is is recommended to start the base nodes and the UI client separately:
ros2 launch flexbe_webui flexbe_ocs.launch.py headless:=True
ros2 run flexbe_webui webui_client
See the flexbe_webui README for more details.
Use the following launch file to run the entire FlexBE system, both onboard and OCS, e.g., for testing on a single computer:
ros2 launch flexbe_webui flexbe_full.launch.py
For running tests use:
colcon test --ctest-args --packages-select <flexbe_package>
Next Steps
-
Do some of the tutorials (opens in a new tab).
-
Visit the FlexBE GitHub Organization (opens in a new tab) for additional available states.
-
If you are converting an existing system from ROS 1 to ROS 2, we provide a ROS 2 Conversion Best Practices Guide (opens in a new tab) to assist in converting any custom FlexBE state implementations.
Publications
Please use the following publications for reference when using FlexBE:
-
Philipp Schillinger, Stefan Kohlbrecher, and Oskar von Stryk, "Human-Robot Collaborative High-Level Control with Application to Rescue Robotics" (opens in a new tab), IEEE International Conference on Robotics and Automation (ICRA), Stockholm, Sweden, May 2016.
-
Joshua Zutell, David C. Conner and Philipp Schillinger, "ROS 2-Based Flexible Behavior Engine for Flexible Navigation ," (opens in a new tab), IEEE SouthEastCon, April 2022.
Further Publications
Refer to the following publications to get an impression about ways to use FlexBE. Let us know if you know a paper which should be added to the list.
-
Stefan Kohlbrecher et al. "A Comprehensive Software Framework for Complex Locomotion and Manipulation Tasks Applicable to Different Types of Humanoid Robots." (opens in a new tab) Frontiers in Robotics and AI 3 (2016): 31.
-
Spyros Maniatopoulos, Philipp Schillinger, Vitchyr Pong, David C. Conner, and Hadas Kress-Gazit, "Reactive High-level Behavior Synthesis for an Atlas Humanoid Robot" (opens in a new tab), IEEE International Conference on Robotics and Automation (ICRA), Stockholm, Sweden, May 2016.
-
Alberto Romay et al., “Collaborative autonomy between high-level behaviors and human operators for remote manipulation tasks using different humanoid robots,” (opens in a new tab) Journal of Field Robotics, September 2016.
-
David C. Conner and Justin Willis, "Flexible Navigation: Finite state machine-based integrated navigation and control for ROS enabled robots," (opens in a new tab) SoutheastCon 2017.
Maintainers
- Philipp Schillinger (@pschillinger (opens in a new tab), Contact (opens in a new tab))
- David Conner (@dcconner (opens in a new tab)) Contact (opens in a new tab)
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.