include problem because of gazebo-config.cmake ?
Hi, We are using gazebo-4.1, ros-indigo and ubuntu 14.04. When I added a plugin and catkin_make, I got this error.
/home/user/getit_robot/src/getit_robot_gazebo/include/getit_robot_gazebo/gazebo_ros_planar_move_delay.h:32:35: fatal error: gazebo/common/common.hh: No such file or directory #include <gazebo common="" common.hh=""> ^ compilation terminated.
The build/CMakeCache.txt file does not include GAZEBOINCLUDEDIRS or other parameters, which should be defined in gazebo-config.cmake. $ locate gazebo-config.cmake /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake
I added in CMakeLists.txt:
set(GAZEBOINCLUDEDIRS /usr/include;/usr/include/gazebo-4.1;/usr/include/sdformat-2.2) set(GAZEBOLIBRARYDIRS /usr/lib/x8664-linux-gnu;/usr/lib/x8664-linux-gnu/gazebo-4.1/plugins)
(reference: http://answers.gazebosim.org/question/6328/cmake-gazebo-package-not-found-when-installing/ )
Then it compiled. It seems gazebo-config.cmake is not recognized. Why does it happen? Thanks in advance.
(note) If I add this in CMakeLists.txt: find_package(catkin REQUIRED COMPONENTS gazebo REQUIRED # <- added line gazebo_ros roscpp )
Then I received this error.
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package): Could not find a package configuration file provided by "gazebo" with any of the following names: gazeboConfig.cmake gazebo-config.cmake 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. Call Stack (most recent call first): getit_robot_gazebo/CMakeLists.txt:7 (find_package)