ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Any resource file should have the same relative path from the package.xml file- either in the source package as well as in the install space.

E.g. keep the files in somewhere/myfile in your source repo and install them to $(CATKIN_PACKAGE_SHARE_DESTINATION}/somewhere/myfile.

That way your launch file can reference it with $(find pkg-name/somewhere/myfile which will work in devel space as well as after installation.

You should definitely not use relative paths with .. and "escape" the package folder since that would not work without installing the package.