Robotics StackExchange | Archived questions

Gazebo deb for ROS has wrong GAZEBO_PLUGIN_PATH

Hello,

When installing gazebo with ROS repository (with something like sudo apt install ros-kinetic-desktop-full) we got a wrong GAZEBOPLUGINPATH In fact, in /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake it is define has

if (GAZEBO_CONFIG_INCLUDED)
  return()
endif()
set(GAZEBO_CONFIG_INCLUDED TRUE)
set(GAZEBO_VERSION 7.0)
set(GAZEBO_MAJOR_VERSION 7)

set(GAZEBO_PLUGIN_PATH "/usr/lib/x86_64-linux-gnu/gazebo-7/plugins")

# The media path contains the location on disk where images,
# materials scripts, shaders, and other related resources are stored.
set(GAZEBO_MEDIA_PATH "/usr/share/gazebo-7/media")

set(GAZEBO_PLUGIN_PATH "/usr/lib/x86_64-linux-gnu/gazebo-7.0/plugins")

# The media path contains the location on disk where images,
# materials scripts, shaders, and other related resources are stored.
set(GAZEBO_MEDIA_PATH "/usr/share/gazebo-7.0/media")

We can see that GAZEBOPLUGINPATH is set twice and the second time wrongly as there is nothing in /usr/lib/x86_64-linux-gnu/gazebo-7.0/plugins. But building new plugin will put them in this directory that is wrong...

If we look at the package from OSRF ( following http://gazebosim.org/tutorials?tut=install_ubuntu ) , the GAZEBOPLUGINPATH is well set :

if (GAZEBO_CONFIG_INCLUDED)
  return()
endif()
set(GAZEBO_CONFIG_INCLUDED TRUE)
set(GAZEBO_VERSION 7.6)
set(GAZEBO_MAJOR_VERSION 7)

set(GAZEBO_PLUGIN_PATH "/usr/lib/x86_64-linux-gnu/gazebo-7/plugins")

# The media path contains the location on disk where images,
# materials scripts, shaders, and other related resources are stored.
set(GAZEBO_MEDIA_PATH "/usr/share/gazebo-7/media")

I don't find where to submit a PR to correct this but the fix should be simple

Asked by khancyr on 2017-04-25 05:17:36 UTC

Comments

@jose-luis-rivero, any idea why the variables are being set twice?

Asked by chapulina on 2017-04-25 10:45:17 UTC

@khancyr, you could try ticketing an issue at the Gazebo repo: https://bitbucket.org/osrf/gazebo/issues/new

Asked by chapulina on 2017-04-25 10:46:53 UTC

Hello @chapulina, in the same time I already open an issue on ROS side https://github.com/ros-infrastructure/reprepro-updater/issues/41 The issue is open here on gazebo side : https://bitbucket.org/osrf/gazebo/issues/2258/gazebo-deb-for-ros-has-wrong

Asked by khancyr on 2017-04-25 12:33:28 UTC

Answers

The error was fixed in version 7.3.0 of Gazebo.

As workarounds:

  • Remove the duplicate lines manually from the filesystem, according with the patch merge in the gazebo pull request
  • Use packages.osrfoundation.org as package repository to get the latest version of gazebo7

We are working on solving the issue with the ROS team: https://github.com/ros-infrastructure/reprepro-updater/issues/41

Asked by Jose Luis Rivero on 2017-04-25 13:39:48 UTC

Comments