文章目录一瞥
1. ROS 解决catkin_make时 cmake error Invoking “cmake” failed
照着官网教程做的时候执行catkin_make命令时报错
CMakeLists.txt:52 (find_package)
Configuring incomplete, errors occurred!
See also “/home/zym-sf/catin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/zym-sf/catin_ws/build/CMakeFiles/CMakeError.log”.
Invoking “cmake” failed
解决方案:
pip install -U rosdep rosinstall_generator wstool rosinstall six vcstools
2. ROS 解决catkin_make时 Invoking “make -j4 -l4” failed0
问题描述如下:
Traceback (most recent call last):
File "bin/ros1_bridge_generate_factories", line 11, in <module>
from ros1_bridge import generate_cpp
File "/home/ros/ros2_ws/src/ros2/ros1_bridge/ros1_bridge/__init__.py", line 13, in <module>
import genmsg
ImportError: No module named 'genmsg'
stackflow大神给出了解释:
解决方法:
export PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages/
3. ImportError: No module named em
python -m pip install empy
解决
4. Linux Conda找不到命令问题修复
修改环境变量
vim ~/.bashrc
在最后添加:
export PATH=~/anaconda3/bin:$PATH
重启环境变量:
source ~/.bashrc
5 Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component
E: The list of sources could not be read.
ros-latest.list content:-
deb http://packages.ros.org/ros/ubuntu main
查看
lsb_release -sc
在终端输入
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
成功搞定!!!
版权声明:本文为weixin_42462804原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。