Installation

Prerequisites

The scripts have been tested with Python 3.10 and pip version 24.0.

Additionally, the following dependencies are required to be installed:

AS2FM Package Installations

Warning

Before proceeding with the installation, make sure that pip’s version is at least 24.0.

  • To check pip’s version: python3 -m pip –version -m pip –version

  • To upgrade pip: python3 -m pip install –upgrade pip

Note

Since we switched from a multi-package to a mono-package setup, make sure to uninstall the previous version of the AS2FM tools. It can be done using the following instructions:

python3 -m pip uninstall as2fm_common
python3 -m pip uninstall jani_generator
python3 -m pip uninstall scxml_converter
python3 -m pip uninstall jani_visualizer
python3 -m pip uninstall trace_visualizer

AS2FM can be installed using pip:

# Non-editable mode
python3 -m pip install AS2FM/
# Editable mode
python3 -m pip install -e AS2FM/

Verify your installation by sourcing your ROS distribution (i.e. running source /opt/ros/<ros-distro>/setup.bash) and then running:

as2fm_scxml_to_jani --help