使用 ROS 的几个注意事项

使用 ROS 的几个注意事项

  • ZSH 问题
  • Conda 问题

ZSH 问题

  1. sudo rosdep init && rosdep update 时,提示 “rosdep: command not found”。
    解决方式:老老实实安装 rosdep

    sudo apt-get install python3-rosdep

  2. 因为使用的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 问题

  1. 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

你可能感兴趣的:(错误日志,ROS,自动驾驶,人工智能,中间件)