环境配置:

为方便起见,我们可以在每次打开终端时让系统自动配置好ROS环境变量,方法如下:

source /opt/ros/hydro/setup.bash
                                                                             每次使用ROS都要source
source ~/.bashrc

多版本切换:

如果你安装了不止一个ROS版本,那么你应该在~/.bashrc中只source你当前所使用的ROS版本对应的setup.bash文件。

如果你只是想切换当前终端环境下的ROS版本,那么你可以运行:

source /opt/ros/hydro/setup.bash

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2021-08-26
  • 2021-07-05
  • 2022-01-25
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-05-24
  • 2021-12-07
  • 2022-01-05
  • 2021-12-25
相关资源
相似解决方案