Gazebo 1.9 Failed to load Plugin even with exporting $GAZEBO_PLUGIN_PATH
I am currently doing the model manipulation plugin tutorial.
I was able to do the World Control tutorial with no problems.
But on this tutorial I am getting:
Error [Plugin.hh:127] Failed to load plugin build/libmodel_push.so: build/libmodel_push.so: cannot open shared object file: No such file or directory
I have correctly exported the directory with
export GAZEBO\_PLUGIN\_PATH=*path to build dir*:$GAZEBO\_PLUGIN\_PATH
and checked.
I checked previous similar questions but they all seem to say to export the directory. In this case the directory is exported but I am getting the same error.
I was trying running exactly the instructions as they appear in the document and it is working for me. Key point is to be sure that you are calling gzserver from one directory under build (../build).
Actually the code on this page: http://gazebosim.org/wiki/Tutorials/1.9/plugins/modelmanipulationplugin has an error on the sdf file. Instead of <plugin name="modelpush" filename="build/libmodelpush.so"/> it should be <plugin name="modelpush" filename="libmodelpush.so"/>
It says: """To start simulation, run cd ~/gazeboplugintutorial/ && gzserver -u model_push.sdf""" So it should be ok to leave the path as build/libmodelpush.so. Did you change directory before run?