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

The executables are saved in the folder <catkin_ws>/devel/lib . However, if you wish to load some other files in your code (what you intent to do) this does not matter. I you use relative pathes for the file you load they need ot be somewhere relatively to your current working directory, i. e. the folder in which your call rosrun like rosrun your_pkg your_node. rosrun automatically locates your executables and runs them in the folder where you call rosrun.

Addition: If you use roslaunch your current working directory, i. e. the folder where your nodes run, will always be <home>/.ros, regardless where it is called....