Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Hi,

A similar error used to appear if you build your plugin against one version of gazebo (for example the binary version that came with ROS) and then you run it on a different version (your case gazebo 1.7.1).

Even though this shouldn't happen if you don't have gazebo added as a dependency in your manifest.xml file.

If you think this could be the case, you should try adding the following lines to the CMakeLists.txt file in your rospackage in order to build against Gazebo 1.7.1.

## link to gazebo libraries 
include (FindPkgConfig)
if (PKG_CONFIG_FOUND)
  pkg_check_modules(GAZEBO gazebo)
endif()
include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

Cheers, Andrei