https://github.com/DLR-RM/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.
https://github.com/DLR-RM/RAFCON
graphical-programming robotics state-machine
Last synced: 1 day ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/DLR-RM/RAFCON
- Owner: DLR-RM
- License: epl-1.0
- Created: 2017-02-25T18:39:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T09:41:25.000Z (6 months ago)
- Last Synced: 2024-10-25T07:28:44.306Z (6 months ago)
- Topics: graphical-programming, robotics, state-machine
- Language: Python
- Homepage: https://dlr-rm.github.io/RAFCON/
- Size: 109 MB
- Stars: 181
- Watchers: 19
- Forks: 35
- Open Issues: 157
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.rst
- Citation: CITATION.cff
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-robotic-tooling - RAFCON - Uses hierarchical state machines, featuring concurrent state execution, to represent robot programs. (Behavior and Decision / Vector Map)
- awesome-robotic-tooling - RAFCON - Uses hierarchical state machines, featuring concurrent state execution, to represent robot programs (Behavior and Decision / SLAM)
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 `_
* Homepage: `DLR-RM.github.io/RAFCON/ `_
* License: `EPL `_
* Cheatsheet: `Download Cheatsheet `_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 machineInstallation preparations
-------------------------Before installing RAFCON, Python >=3.7, 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:Installation requirements
^^^^^^^^^^^^^^^^^^^^^^^^^.. code-block:: bash
sudo apt-get install python-dev python-pip build-essential glade python-gi-cairo
sudo -H pip install --upgrade pip
sudo -H pip install --upgrade setuptoolsGeneral requirements
^^^^^^^^^^^^^^^^^^^^* Python >=3.7
* pip (recent version required: v23 known to be working)
* pdm (recent version required: v2.9.3 known to be working)Installing RAFCON
-----------------.. 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 during the installation the error ``ImportError: No module named cairo`` occurs, please install pycairo directly
via:.. code-block:: bash
pip install --user "pycairo==1.19.1"
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 rafconStart 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 -m rafcon
Uninstallation
--------------If you want to uninstall RAFCON, all you need to do is call
.. code-block:: bash
pip uninstall rafcon