Sourcing workspace generated by a catkin_make install
I'm trying to distribute a binary version of my package. I have the catkin_make install
command create the install
directory in the right place and copy the required libs. The contents of the install
directory are as follows:
include
(contains exported packages with generated header files for messages)
lib
(contains 3rd party dependencies as well as exported packages with executables)
share
(contains exported packages with misc. files such as package.xml)
My problem is that when I copy this directory to a new computer, I can't use ROS to run anything from it. I tried doing the following on the new machine within the distributed install
directory:
- Create a
src
directory - Run
catkin_init_workspace
- Run
catkin_make
to generate thedevel
andbuild
directories - Source the generated
devel/setup.bash
script
rosrun my_package my_package_node
still doesn't find my package. What can I do to get ROS to see my installed packages the way packages in /opt/ros/indigo work?