I’m trying to build a python3 ros2 foxy package with my own custom python package inside, but when I’m not sure how to reference it in code.
for example I have the following folder structure
- ros_package_name -> python_package_name -> __init__.py helper.py __init__.py ros_package.py
In my ros_package.py I have
but if I try to run things it says ModuleNotFoundError
Looking into the install path, colcon hasn’t copied python_package_name
I could probably modify PYTHONPATH, but is there a way to tell colcon to just copy things properly instead?