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

Revision history [back]

Try putting the full path to your file. Normally it should work. If you don't want to put the full path, you can either do as kmhallen commented or move to your package's folder before executing rosrun

roscd your_package
rosrun your_node

If filename.txt is in your package's folder of course.