红联Linux门户
Linux帮助

UBUNTU将新路径添加到ROS_PACKAGE_PATH中

发布时间:2017-05-30 10:06:17来源:linux网站作者:holiday_chan
first,查看路径
chen@chen-HP:~$ echo $ROS_PACKAGE_PATH
/opt/ros/indigo/share:/opt/ros/indigo/stacks
 
添加
chen@chen-HP:~$ echo "export ROS_PACKAGE_PATH=~/dev/rosbook:${ROS_PACKAGE_PATH}">>~/.bashrc
chen@chen-HP:~$ . ~/.bashrc
 
最后查看环境变量:env
UBUNTU将新路径添加到ROS_PACKAGE_PATH中
可以看到多了ROS_PATHAGE_PATH的路径多了一个分号。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31158.html