打包/opt/ros
打包项目文件install
到一台没有安装ros环境的机器上启动项目
source ros/indigo/setup.bash
source install/setup.bash
macname@ubuntu:~/Desktop$ roslaunch black
rospack: error while loading shared libraries: libtinyxml.so.2.6.2: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/home/macname/Desktop/ros/indigo/bin/roslaunch", line 34, in <module> import roslaunch File "/home/macname/Desktop/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 48, in <module> import rospkg ImportError: No module named rospkg
解决方法:
下载库:http://archive.ubuntu.com/ubuntu/pool/universe/t/tinyxml/
或者
链接:https://pan.baidu.com/s/1B4ioxSOioQNT4mN1jxAQ2w
提取码:hn1w
安装:sudo dpkg -i libtinyxml2.6.2_2.6.2-1build1_amd64.deb
解决!