Robotics StackExchange | Archived questions

Has anyone been successfull in using gazebo2rviz package?

When I try to compile it using catkin_make I get the following error:

Could not find a package configuration file provided by "pysdf" with any of   the following names:
     pysdfConfig.cmake
     pysdf-config.cmake

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

Asked by Humberto Beltrao on 2015-10-20 09:53:55 UTC

Comments

I would suggest changing the title from using to building, because this is really a build issue.

Asked by gvdhoorn on 2015-10-20 13:06:57 UTC

Answers

Have you run

rosdep update
rosdep install --from-paths /path/to/your/catkin_ws/src --ignore-src

to make sure you have all its dependencies installed?


Edit: looks like gazebo2rviz is declaring rospy and pysdf both as build_depend and run_depend in package.xml and CMakeLists.txt. That is not necessary for Python only packages (see the catkin documentation).

Quick fix: remove those lines (but leave the run_depend elements).

Nicer: report upstream and provide a Pull Request against andreasBihlmaier/gazebo2rviz.

Asked by gvdhoorn on 2015-10-20 11:40:26 UTC

Comments

Yes, I have checked it already and the error still remains

Asked by Humberto Beltrao on 2015-10-20 12:02:03 UTC

I have searched for pysdf and installed it through a git clone so I could solve the problem.

Thanks anyway!

Asked by Humberto Beltrao on 2015-10-20 14:02:22 UTC