0
$\begingroup$

I cloned a gazebo ROS package from https://github.com/YugAjmera/omni3ros_pkg and if I try to do catkin_make,I get the following error. I am using Gazebo 11 and ROS Noetic and i've made sure to source the shell. error

I am new to ROS and Gazebo. It will be helpful if someone help me resolve this, Thanks!

$\endgroup$
4
  • $\begingroup$ Welcome to Robotics, Abhinandan K. There are two suggested solutions given in your screenshot. Did you try either of them? What happened? $\endgroup$ – Chuck Oct 31 '20 at 22:23
  • $\begingroup$ run the command rospack list and check if you have gazebo items (ex: gazebo-dev, gazebo-msgs, etc...). What happens when you type gazebo into the terminal? does Gazebo start? At first blush it looks like you are missing Gazebo. How did you install ROS? I recommend the full-desktop-install. $\endgroup$ – Mike Oct 31 '20 at 23:46
  • $\begingroup$ @Mike Yes I have installed gazebo, it runs when I type gazebo in the terminal, gazebo runs when I run a different gazebo launch file from a different package, I might be missing something in the current package $\endgroup$ – Abhinandan K Nov 1 '20 at 6:47
  • $\begingroup$ @Chuck I did not know what to do for the solutions mentioned in the error, I'd be helpful if someone shed more light on that, Thanks! $\endgroup$ – Abhinandan K Nov 1 '20 at 6:50
1
$\begingroup$

From the error screenshot you posted:

Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set "gazebo_DIR" to a directory containing one of the above files. If "gazebo" provides a separate development package or SDK, be sure it has been installed.

Since you said that you have gazebo installed, do you have the reference set in gazebo_DIR? Find what gazebo_DIR is currently set to, find where the gazeboConfig.cmake or gazebo-config.cmake files are located on your computer, and check that the two directories match.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.