Skip to content

Instantly share code, notes, and snippets.

@nevalsar
Last active January 11, 2022 18:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nevalsar/92bf1c68cebc33faa977e12e69e3a56a to your computer and use it in GitHub Desktop.
Save nevalsar/92bf1c68cebc33faa977e12e69e3a56a to your computer and use it in GitHub Desktop.

ROS - Common Issues

Problem

roscd \ rosls \ rosrun commands not found

Solution:

Install rosbash package.

sudo apt install ros-noetic-rosbash

Problem

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 'python-empy

Solution

  1. Make sure you're using python 3 not python 2.

  2. Ensure you're using your system's python installation to run ROS, not python from a conda environment. You can check the currently used python executable path by running

which python
  1. Install python3-empy package. (Do not install empy via pip, install using apt package manager using below command)
sudo apt install python3-empy

Related answer on ROS Wiki


Problem

Command not found: roscore

Solution:

Install package ros-noetic-roslaunch package.

sudo apt install ros-noetic-roslaunch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment