Installing Python module in ROS2 package
Hello all!
I have a GitHub repo in which I want to distribute a pure Python module and a ROS2 wrapper around that. So think:
my_package/
- submoduleA/
- submoduleB/
- setup.py
- COLCON_IGNORE
my_package_ros/
- scripts/
- CMakeLists.txt
- package.xml
At the moment, I have a bash script that creates a Python virtualenv that installs my_package
and some other dependencies, but I would like to automate this for ROS workflows.
Specifically, is there a way I can ensure that when running colcon build
, I can install the my_package
module when installing my_package_ros
?
Thanks!