<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.
- 用於設置環境變量的值。