Setting roslaunch param via command with specific env var set

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

dornhege gravatar image

updated 2016-08-08 06:13:21 -0600

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 and clean way to do this?

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

edit retag flag offensive close merge delete