Minimal ROS2 Python package
How looks the structure and the content of a plain ROS2 library level package? The intent of the package is to encapsulate functionality implemented in Python which can be imported into other ROS2 packages.
- no ROS2 dependency (despite for building, linting, etc.)
- no scripts
- no nodes
- no docs
- no tests just plain ament linter checks (copyright, flake8, pep257)
EDIT: Draft on GitHub.
Will be obsolete as soon as https://github.com/ros2/ros2cli/issue... is implemented.
How are Python package dependencies managed in ROS2? I could just find an example where an install_requires dependency is assumed to be pre-installed via
setup.py install
or PyPi.In this case there shouldn't be any limitations w.r.t. Python packaging (Pipfile, etc.) right?
I don't think so. So long as the alternative mechanism (pipfile or requirements.txt or whatever) will avoid installing things that are already installed by the system package manager (like apt).