<env> tag

The <env> tag allows you to set environment variables on nodes that are launched. This tag may only be used within the scope of a <launch>, <include>, <node> or <machine> tag. When it is used inside of a <launch> tag, the <env> tag only applies to nodes declared after. Some environment variables can be found in EnvironmentVariables.

NOTE: Values set using the <env> tag will not be seen by $(env ...), so the <env> tag cannot be used to parametrize launch files.

Attributes

  • name="environment-variable-name"

    • Environment variable you are setting.

    value="environment-variable-value"

    • Value to set the environment variable to.

Wiki: roslaunch/XML/env (last edited 2021-01-13 14:24:00 by AvneeshMishra)