roslaunch XML env 官方文档 翻译

<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.
    • 用于设置环境变量的值。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值