Shell bash used in a roslaunch[SOLVED]
Hi! I am having a problem when trying to execute a comand from a roslaunch file which I dont have when running it directly from the shell.
When I execute rosbag play *.bag
from the shell it plays every rosbag in the folder.
However when I do the following from a roslaunch file
<arg name="path" default="/home/kailegh/Descargas/Custom/20Jul16/" />
<node pkg="rosbag" type="play" name="player" output="screen" args="--clock $(arg path)*.bag">
</node>
It does not work, I obtain the following error
[ INFO] [1475572463.796418638]: Opening /home/kailegh/Descargas/Custom/20Jul16/*.bag
[FATAL] [1475572463.796604618]: Error opening file: /home/kailegh/Descargas/Custom/20Jul16/*.bag
I think the problem is that the roslaunch interpret the * as a normal character, instead of the bash meaning everything. Is there any way to use the '*' in a launch file as it where in the command line?
Thanks a lot from your help!!