Supplying filename arguments to launch files
I have a node that has a filename as a private parameter. The files can be located anywhere and have really long filenames. What I would like to do is
$ roslaunch package_name launch_file.launch file:=reallylongfilename12345932.txt
where I running this command from the directory containing the file, so I can take advantage of tab-completing the filenames. I have an arg
in my launch file called file
that accepts this filename, but not the path. As a result, my node cannot open the file because it doesn't have the full path, just the name.
Short of hardcoding in the path in the launch file, and being able to tab-complete the long file names, is there a way I can pass the full path of the file to my parameter?