<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.
<env>标记允许您在启动的节点上设置环境变量。 此标记只能在<launch>,<include>,<node>或<machine>标记的范围内使用。 在<launch>标记内使用它时,<env>标记仅适用于之后声明的节点。
NOTE: Values set using the <env> tag will not be seen by $(env ...), so the <env> tag cannot be used to parametrize launch files.
注意:使用<env>标记设置的值,不会对$(env ...)可见,因此<env>标记不能用于参数化启动文件。
Attributes
-
name="environment-variable-name"
- Environment variable you are setting.
- 您正在设置的环境变量。
value="environment-variable-value"
- Value to set the environment variable to.
- 用于设置环境变量的值。