SkillAgentSearch skills...

RAFCON

RAFCON (RMC advanced flow control) uses hierarchical state machines, featuring concurrent state execution, to represent robot programs. It ships with a graphical user interface supporting the creation of state machines and contains IDE like debugging mechanisms. Alternatively, state machines can programmatically be generated using RAFCON's API.

Install / Use

/learn @DLR-RM/RAFCON
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RAFCON

.. figure:: documents/assets/Screenshot_Drill_Skill_Scaled.png :figwidth: 100% :width: 800px :align: left :alt: Screenshot showing RAFCON with a big state machine :target: documents/assets/Screenshot_Drill_Skill_Scaled.png?raw=true

  • Documentation: Hosted on Read the Docs <http://rafcon.readthedocs.io/en/latest/>_
  • Homepage: DLR-RM.github.io/RAFCON/ <https://dlr-rm.github.io/RAFCON/>_
  • License: EPL <https://github.com/DLR-RM/RAFCON/blob/master/LICENSE>_
  • Cheatsheet: Download Cheatsheet <doc/_static/rafcon_cheatsheet.pdf>_

Develop your robotic tasks using an intuitive graphical user interface

RAFCON uses hierarchical state machines, featuring concurrent state execution, to represent robot programs. It ships with a graphical user interface supporting the creation of state machines and contains IDE like debugging mechanisms. Alternatively, state machines can programmatically be generated using RAFCON's API.

Universal application

RAFCON is written in Python, can be extended with plugins and is hard- and middleware independent.

Visual programming

The sophisticated graphical editor can be used for the creation, execution and debugging of state machines.

Collaborative working

Share and reuse your state machines in form of libraries, stored as JSON strings in text files.

.. figure:: https://raw.githubusercontent.com/DLR-RM/RAFCON/master/documents/assets/RAFCON-sm-creation-preview.gif :figwidth: 100% :width: 570px :align: left :alt: Example on how to create a simple state machine

Installation preparations

Before installing RAFCON, Python >=3.9, pip and setuptools are required on your system. Most of the other dependencies are automatically resolved by pip/setuptools, but not all of them. Those need be be installed manually, too:

General requirements ^^^^^^^^^^^^^^^^^^^^

  • Python >=3.9
  • pip (recent version required)
  • pdm (recent version required)

Installation requirements ^^^^^^^^^^^^^^^^^^^^^^^^^ Tested under Ubuntu 24.04

.. code-block:: bash

sudo apt update sudo apt install python3-dev python3-pip python3-setuptools sudo apt install libcairo2-dev pkg-config libgirepository1.0-dev sudo apt install gir1.2-gtk-3.0 gir1.2-gtksource-3.0

Installing RAFCON

Tested under Ubuntu 24.04

It is recommended to install RAFCON inside a virtual environment. Once created, make sure setuptools is installed:

.. code-block:: bash

pip install setuptools

Then, simply install RAFCON with:

.. code-block:: bash

pip install rafcon --user

The --user flag is optional. If not set, RAFCON is installed globally (in this case you normaly need to have root privileges).

If you run into any problems installing and starting RAFCON, please let us know in the issues!

Of course you can also directly use the RAFCON sources from GitHub.

.. code-block:: bash

cd /install/directory git clone https://github.com/DLR-RM/RAFCON.git rafcon

Start RAFCON

No matter which installation option you choose, RAFCON can be started from any location using (make sure /usr/local/bin or ~/.local/bin is in your PATH environment variable):

.. code-block:: bash

rafcon

On a multi-python setup start rafcon using:

.. code-block:: bash

python<your-version> -m rafcon

Uninstallation

If you want to uninstall RAFCON, all you need to do is call

.. code-block:: bash

pip uninstall rafcon

View on GitHub
GitHub Stars204
CategoryDevelopment
Updated8d ago
Forks37

Languages

Python

Security Score

100/100

Audited on Mar 18, 2026

No findings