Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-08-08 06:13:02 -0500

dornhege gravatar image

Setting roslaunch param via command with specific env var set

I need to specify a parameter in a launch file via <param name="test" command="mycommand"/>, where command requires an environment variable to be set. Is there a simple an clean way to do this?

Until now I have only come up with ... command="bash -c 'X=true mycommand'" />, which seems somewhat hacky.

Setting roslaunch param via command with specific env var set

I need to specify a parameter in a launch file via <param name="test" command="mycommand"/>, where command requires an environment variable to be set. Is there a simple an and clean way to do this?

Until now I have only come up with ... command="bash -c 'X=true mycommand'" />, which seems somewhat hacky.