ROS学习笔记(0)

系统:Ubuntu20.04

Python环境:Anaconda3

ROS版本:Noetic

1、编译时报错:

CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message):
Unable to find either executable 'empy' or Python module 'em'...  try
installing the package 'python3-empy'

原因是系统使用了Anaconda的python环境,但是在conda中没有找到python3-empy包,直接使用conda install python3-empy会报错,找不到安装包。因为python3-empy在附加包中所以应使用命令conda install -c conda-forge empy

2、编译时报错:

ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.

原因同1,应使用命令conda install -c conda-forge catkin_make

你可能感兴趣的:(ROS学习笔记(0))