roslaunch XML env 官方文档 翻译

大兔子大兔子 提交于 2020-03-02 11:44:03

<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.
    • 用于设置环境变量的值。
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!