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

Just as some additional information to the answer of Thomas D: the 'current working directory' of the nodes launched via roslaunch gets set to the $HOME/.ros directory by default. See 'Is there a way for roslaunch to run nodes in the current directory?' on ros-users for a discussion.

The cwd attribute of the node tag in a launch file can be used to change this behaviour:

cwd="ROS_HOME|node"(optional)

If 'node', the working directory of the node will be set to the same directory as the node's executable. In C Turtle, the default is 'ROS_HOME'. In Box Turtle (ROS 1.0.x), the default is 'ros-root'. The use of 'ros-root' is deprecated in C Turtle.

See the roslaunch/XML/node#Attributes wiki page and also this ticket.