ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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 &quot;${ROS_WORKSPACE}/%(%d-%m-%Y_%Ih%Mm%S)T.mp3&quot;'" />

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.