ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
To do it directly inside the command
in the param tag, you can use this:
<param name="start_time" command="bash -c 'printf "${ROS_WORKSPACE}/%(%d-%m-%Y_%Ih%Mm%S)T.mp3"'" />
The printf
won't introduce the annoying \n
at the end of the parameters. However, you can not directly use printf
because when called inside the roslaunch, it calls the /usr/bin/printf
which does not accept the %
formatting. Hence, the use of bash -c
.