How to save file to the current directory with roslaunch?
i write a simple C++ program to save an image
cv::imwrite(filename,visual_img);
when i run it directly from Eclipse, the image is saved in the current directory (the directory where the Eclipse project file is in). but when i run it with roslaunch
<node pkg="testProg" type="testProg" name="testProg" />
the image is saved in home/.ros
so what should i do to save it to the current directory?
p.s. i encounter the same problem when i try to load the image. always fail to load if i put the image in the current directory when i run it by roslaunch.