ZSH 问题
-
sudo rosdep init && rosdep update 时,提示 “rosdep: command not found”。
解决方式:老老实实安装 rosdepsudo apt-get install python3-rosdep
-
因为使用的zsh,如果直接使用以下命令,
echo “source /opt/ros/noetic/setup.bash” >> ~/.bashrc
source ~/.bashrc会报错:
/opt/ros/noetic/setup.bash:.:8: no such file or directory: /home/yj/setup.sh
最好在 zsh 内修改为:
alias ros-=`source /opt/ros/noetic/setup.zsh && echo “ros source”`
Conda 问题
-
在
catkin_make
时报错: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’这是因为 catkin 找的 python 版本为 anaconda 下面的版本,所以需要改为指定采用下面的命令:
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3