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

I'm also trying the do the same thing. My currently, ugly, workaround is this:

test.launch just expects an argument:

<launch> <arg name="run_id"/> ... <param name="run_id" value="$(arg run_id)"/> </launch>

and from the command line, the gross part:

$ roscore & COREPID=$! ; sleep 1; roslaunch test.launch run_id:=$(roslaunch-logs | rev | cut -d/ -f1 | rev) ; kill $COREPID

You might also use the $(eval script) syntax, though it's only available in Kinetic. There should be a better 'official' way to do this, like value="$(run_id)".