Installation

There are two ways to build/install this package:

  1. Stand-alone installation using pip

  2. As part of a colon workspace

Stand-alone installation using pip

Note

We are developing for Python 3.10. Other versions may work as well but are not officially tested.

To install the latest release:

$ pip install trifinger-simulation

If you run into errors during installation, you may need to update pip first:

$ pip install --upgrade pip

Note

To avoid version conflicts with other packages on your system, it is recommended to install the package in an isolated environment like venv or conda. For example when using venv:

$ python3 -m venv ~/venv_trifinger_simulation
$ . ~/venv_trifinger_simulation/bin/activate

$ pip install --upgrade pip  # make sure the latest version of pip is used
$ pip install trifinger-simulation

Installation from source

To install the latest version from source, follow the same instructions as above but replace pip install trifinger-simulation with

$ git clone https://github.com/open-dynamic-robot-initiative/trifinger_simulation
$ cd trifinger_simulation
$ pip install .

Test Installation

You can test the installation by running the unit tests:

$ python3 -m pytest tests/

or by running one of the demos:

$ python3 demos/demo_trifinger_platform.py

Using colcon

The trifinger_simulation package is also part of the TriFinger software bundle. See How to Install the Software in the TriFinger documentation.