Home | Tutorials | Wiki | Issues
Ask Your Question
0

Gazebo deb for ROS has wrong GAZEBO_PLUGIN_PATH

asked 2017-04-25 05:17:36 -0600

khancyr gravatar image

Hello,

When installing gazebo with ROS repository (with something like sudo apt install ros-kinetic-desktop-full) we got a wrong GAZEBO_PLUGIN_PATH 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 GAZEBO_PLUGIN_PATH 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=in... ) , the GAZEBO_PLUGIN_PATH 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

edit retag flag offensive close merge delete

Comments

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

chapulina gravatar imagechapulina ( 2017-04-25 10:45:17 -0600 )edit

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

chapulina gravatar imagechapulina ( 2017-04-25 10:46:53 -0600 )edit
1

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

khancyr gravatar imagekhancyr ( 2017-04-25 12:33:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-04-25 13:39:48 -0600

Jose Luis Rivero gravatar image

The error was fixed in version 7.3.0 of Gazebo.

As workarounds:

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-04-25 05:17:36 -0600

Seen: 118 times

Last updated: Apr 25 '17