Home | Tutorials | Wiki | Issues
Ask Your Question
0

PID slider joint in gazebo 1.3 / 1.5

asked 2013-04-01 09:57:34 -0600

Davinci gravatar image

I tried to follow the tutorial for the pid joint. With ROS groovy and Gazebo 1.3. If I add the build dir to the ROS_PACKAGE_PATH and run using: rosrun gazebo gazebo -u ../pid_joints.world It can find the plugin..

Error [Plugin.hh:126] Failed to load plugin libpid_joints.so: libpid_joints.so

I also tried it using the standalone Gazebo 1.5. Then the box is spawned but Gazebo crashes as I push the play button.

gazebo: symbol lookup error: /home/user/gazebo_pid_joints/build/libpid_joints.so: undefined symbol: _ZN6gazebo6common7Console8InstanceEv
edit retag flag offensive close merge delete

Comments

also could you change the questions title because it is not very relevant to the errors

AndreiHaidu gravatar imageAndreiHaidu ( 2013-04-01 10:59:49 -0600 )edit

hello, so did you get it to work? for the second issue?

gazer gravatar imagegazer ( 2013-05-20 00:09:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-01 10:36:44 -0600

AndreiHaidu gravatar image

Hi,

For the first issue using gazebo 1.3 most probably you are missing the GAZEBO PATHS to the plugin.

Here is an example how to add yout package plugin library:

$ export GAZEBO_PLUGIN_PATH=/<path>/your_package/lib:${GAZEBO_PLUGIN_PATH}


For the second issue when you run your code with gazebo 1.5, this might appear because your code could be built against the gazebo 1.3 libraries from groovy, that's why you get that error when you run the plugin.

To avoid this when you build your package you should comment out <depend package="gazebo"/> line from your manifest.xml file. Afterwards in the CMakeLists.txt file add the following lines to link against yout gazebo 1.5 libraries:

## 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

edit flag offensive delete link more

Comments

Thanks for your response! The build dir with the libpid_joints.so is both in the gazebo and ros path. But that does not help. I builded these not as a ros package, will try that later.

Davinci gravatar imageDavinci ( 2013-04-01 17:08:45 -0600 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-04-01 09:57:34 -0600

Seen: 1,179 times

Last updated: Apr 01 '13