ros2 external
Hello, What the best way to get the package/file path of a external library thats not part of my ROS2 project directly without having to hardcode the path in a launch file or node?
I have a node - say 'node_py' which requires a particular data file that part of another git repo that ive added as a submodule to my project. So my directory structure looks like:
src/
+node
++node
+++node.py
+external/
++otherproject/
+++datafileinotherproject.txt
I've tried making 'external' a package by adding a package.xml but I can't figure out a non-hacky way to get a relative path to that txt file.
Any pointers would be appreciated - im okay with changing the structure a bit if it makes ros2 conventions work. Thanks!