ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
When you run it with roslaunch, it's running in a different environment and (probably) trying to write the file somewhere else in the file system (and probably somewhere you don't have permissions). In Python, try opening the file with it's full pathname (probably starting with /home) and see if that works. If it does, then that's your problem.