ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You are probably not aware that by default, the working directory of all nodes is set to $ROS_HOME
, which in most cases will be $HOME/.ros
, not the base of your catkin workspace.
Some earlier questions and answers about this:
Note: you don't want to go and change the value of ROS_HOME
. Instead, either specify an absolute path, or place data in a package that is on the ROS_PACKAGE_PATH
and use $(find ..)/path/to/data.file
(as you are doing in your launch file). Note that the equivalent of $(find ..)
in your launch file is rospack find ..
on the command line.
2 | No.2 Revision |
You are probably not aware that by default, the working directory of all nodes is set to $ROS_HOME
, which in most cases will be $HOME/.ros
, not the base of your catkin workspace.
Some earlier questions and answers about this:
Note: you don't want to go and change the value of ROS_HOME
. Instead, either specify an absolute path, or place data in a package that is on the ROS_PACKAGE_PATH
and use $(find ..)/path/to/data.file
(as you are doing in your launch file). Note that the equivalent of $(find ..)
in your launch file is rospack find ..
on the command line.
Edit: and a direct link to the wiki page documenting this: roslaunch/XML/node - Attributes. Look for the cwd
attribute.