Using <env> tags to parameterize included launch files
According to this roslaunch wiki page:
NOTE: Values set using the <env> tag will not be seen by $(env ...), so the <env> tag cannot be used to parametrize launch files.
However, this is exactly what I need to do. I have been given a launch file which reads environment variables using $(optenv). I need to create another launch file to include this launch file with some specific environment variables set, and some other nodes I want to run. I would very much like for users of my launch file to just be able to run it, instead of me having to instruct them how to source a separate file before running it.
So, if the <env> tag won't do it, is there another way to set environment variables from a launch file such that included launch files will see them?