cmu-rss-lab / roswire

A library for static and dynamic analysis of ROS applications via Docker 🔌
http://christimperley.co.uk/roswire
Apache License 2.0
8 stars 0 forks source link
docker python ros testing

.. --restructuredtext--

roswire

.. image:: https://github.com/rosqual/roswire/actions/workflows/mypy-flake8.yml/badge.svg :target: https://github.com/rosqual/roswire/actions/workflows/mypy-flake8.yml .. image:: https://badge.fury.io/py/roswire.svg :target: https://badge.fury.io/py/roswire .. image:: https://img.shields.io/pypi/pyversions/roswire.svg :target: https://pypi.org/project/roswire .. image:: https://gitq.com/badge.svg :target: https://gitq.com/ChrisTimperley/roswire

Read the documentation <https://christimperley.github.io/roswire> or check out the forum <https://gitq.com/ChrisTimperley/roswire>

ROSWire is a Python library for static and dynamic analysis of containerised Robot Operating System (ROS) <https://ros.org> applications. Given a Docker <https://docker.org> image, ROSWire provides an interface for statically querying the application (e.g., by automatically discovering its types, packages, messages, service, actions, etc.), as well as an interface for dynamically generating and interacting with instances of that application in the form of Docker containers (e.g., service calls, bag recording, topic publishing and subscribing, catkin builds, etc.).

Features

Development

For code formatting, we now use black <https://github.com/psf/black>_. To install black:

.. code:: shell

$ pip install black

Before checking code in, black should be run to reformat the code. To run black:

.. code:: shell

$ black -l 79 src test

This will reformat your code in src and test, with the maximum line length set to 79 (the PEP8 standard length)

Installation

roswire requires Python 3.6+

To avoid interfering with the rest of your system (i.e., to avoid Python's equivalent of DLL hell), we strongly recommend that ROSWire is installed within a virtualenv <https://virtualenv.pypa.io/en/latest/> or pipenv <https://pipenv.readthedocs.io/en/latest/> (pipenv is preferred).

From within the virtual environment (i.e., the virtualenv or pipenv), the latest stable release of ROSWire on PyPI <https://pypi.org>_ can be installed via:

.. code:: shell

(roswire) $ pip install roswire

ROSWire can also be installed from source:

.. code:: shell

$ git clone git@github.com:ChrisTimperley/roswire roswire $ cd roswire $ pipenv shell (roswire) $ pip install .