gazebo ros Packages - fatal error: gazebo/sensors/DepthCameraSensor.hh: No such file or directory
Running kubuntu 12.04 trying to install gazebo ros Packages with groovy
When I run catkin_make I get for :
[ 53%] Generating Lisp code from gazebo_msgs/GetLinkState.srv
[ 54%] Generating C++ code from gazebo_msgs/GetPhysicsProperties.srv
[ 54%] Building CXX object gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/MultiCameraPlugin.dir/src/MultiCameraPlugin.cpp.o
/home/alex/rcatkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:17:47: fatal error: gazebo/sensors/DepthCameraSensor.hh: No such file or directory
compilation terminated.
make[2]: *** [gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/MultiCameraPlugin.dir/src/MultiCameraPlugin.cpp.o] Error 1
make[1]: *** [gazebo_ros_pkgs/gazebo_plugins/CMakeFiles/MultiCameraPlugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 54%] [ 55%] Generating Lisp code from gazebo_msgs/GetPhysicsProperties.srv
Generating Python from MSG gazebo_msgs/ODEPhysics
[ 55%] Generating Python from MSG gazebo_msgs/WorldState
[ 55%] [ 56%] Generating C++ code from gazebo_msgs/SetJointProperties.srv
Similar to http://answers.gazebosim.org/question/3403/gazebo_ros_pkgs-erro/ However, his solution didn't work for me.
I uninstalled ros-groovy-desktop-full and uninstalled gazebo
Then I installed ros-groovy-desktop (having tried ros-groovy-base and gotten missing dependencies)
Downloaded the mercurial at https://bitbucket.org/osrf/gazebo and installed that as directed and it runs and allows putting models in it.
Finally I cloned: gazeborospkgs roscontrol.git roscontrollers.git controltoolbox.git realtimetools.git into my catkin workspace
When I run:
rosdep install --from-paths src --ignore-src --rosdistro groovy -y
I get: ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies:
gazebo_plugins: Cannot locate rosdep definition for [gazebo]
gazebo_ros: Cannot locate rosdep definition for [gazebo]
Finally env might be relevant so:
ROS_ROOT=/opt/ros/groovy/share/ros
ROS_PACKAGE_PATH=/home/alex/rcatkin_ws/src:/opt/ros/groovy/share:/opt/ros/groovy/stacks:/home/alex/catvehicle2013/trunk/ROSS2JAUS/simpleSim
ROS_MASTER_URI=http://localhost:11311
USER=alex
LD_LIBRARY_PATH=/usr/local/lib/gazebo-1.8/plugins:/home/alex/rcatkin_ws/devel/lib:/opt/ros/groovy/lib
LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/dri:/usr/lib32/fglrx/dri:/usr/lib/i386-linux-gnu/dri
CATKIN_TEST_RESULTS_DIR=/home/alex/rcatkin_ws/build/test_results
CPATH=/home/alex/rcatkin_ws/devel/include:/opt/ros/groovy/include
ROS_TEST_RESULTS_DIR=/home/alex/rcatkin_ws/build/test_results
DEFAULTS_PATH=/usr/share/gconf/default.default.path
GAZEBO_RESOURCE_PATH=/usr/local/share/gazebo-1.8:/usr/local/share/gazebo_models
PATH=/home/alex/rcatkin_ws/devel/bin:/opt/ros/groovy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/alex/andriod/sdk
OGRE_RESOURCE_PATH=/usr/lib/x86_64-linux-gnu/OGRE-1.7.4
GAZEBO_MASTER_URI=http://localhost:11345
ROS_DISTRO=groovy
GAZEBO_PLUGIN_PATH=/usr/local/lib/gazebo-1.8/plugins
PYTHONPATH=/home/alex/rcatkin_ws/devel/lib/python2.7/dist-packages:/opt/ros/groovy/lib/python2.7/dist-packages
GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models
PKG_CONFIG_PATH=/home/alex/rcatkin_ws/devel/lib/pkgconfig:/opt/ros/groovy/lib/pkgconfig
CMAKE_PREFIX_PATH=/home/alex/rcatkin_ws/devel:/opt/ros/groovy
ROS_ETC_DIR=/opt/ros/groovy/etc/ros
Asked by FiliusFortunae on 2013-07-07 01:03:37 UTC
Comments
I'm having the exact same problem. As far as I can tell, gazebo_ros needs to know something about the gazebo installation in order to build, but there is no way to specify this since we built gazebo from source outside of ROS/catkin, etc.
Asked by Robert Brockman on 2013-07-08 12:37:50 UTC
I've managed to get beyond these errors by compiling and installing gazebo to a subdirectory of my home directory rather than the default system directory. I still get the "Cannot locate rosdep definition for [gazebo]" error but catkin_make works for gazebo_ros, I can start gazebo from rosrun, and the correct topics and services appear. Having the correct PKG_CONFIG_PATH, PATH, and LD_LIBRARY_PATH set in .bashrc seems to be necessary for ros to find gazebo properly.
Asked by Robert Brockman on 2013-07-08 14:12:43 UTC
Hi Robert Brockerman, during the catkin_make did you add -DCMAKE_INSTALL_PREFIX=~/some/home/folder? After that what did you add in the PKG_CONFIG_PATH, PATH and LD_LIBRARY_PATH? It would really help if you can post your installation steps as an answer. Thank you!
Asked by Shehzi on 2013-07-10 21:31:43 UTC
Found a solution for this problem. My case was that the required sdf header files were inside /user/include/sdf-1.4/ rather than /user/include/sdf/ Just changed the directory name and catkin_make worked successfully (rosdep still cannot locate dependencies but rosrun now launch gazebo with no problems)
Asked by m.guedes on 2013-07-11 05:41:09 UTC
Hi Filius, we're almost done switching over to a Gazebo standalone debian install for gazebo_ros_pkgs. The last issues should be resolved today but I apologize for your installation woes. I'm not sure what the status of your situation is today, but for your initial problem of
gazebo_plugins: Cannot locate rosdep definition for [gazebo]
did you tryrosdep update
?Asked by davetcoleman on 2013-07-11 10:13:56 UTC
Hi m.guedes, where did you make that change? I have the same issue with sdf headers not loading.
Asked by Shehzi on 2013-07-11 15:57:45 UTC