Gazebo | Ignition | Community
Ask Your Question
0

Gazebo "Inserting Models Plugin" loading error, fail to load plugin.

asked 2013-07-06 09:39:09 -0600

SalmaanAhmed gravatar image

Hi, I am new to Gazebo and learning it as i have to do my Final Year Project in it. I am following the tutorials from the official site of gazebo and now i am stuck at Inserting Models Plugin.

When at the end i run server it shows error.

salmaan@ubuntu:~$ gzserver ~/gazeboplugintutorial/factory.sdf Gazebo multi-robot simulator, version 1.8.6 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

Warning [parser.cc:361] Converting a deprecated SDF source[/home/salmaan/gazeboplugintutorial/factory.sdf]. Warning [Converter.cc:58] Version[1.3] to Version[1.4] Please use the gzsdf tool to update your SDF files. $ gzsdf convert [sdf_file] Msg Waiting for master Msg Connected to gazebo master @ http://127.0.0.1:11345 Msg Publicized address: 192.168.1.6

Error [Plugin.hh:126] Failed to load plugin libfactory.so: libfactory.so: cannot open shared object file: No such file or directory

I discovered that the directory is build/libfactory.so, i changed the directory in the world file but still it gives me the same error. :/

NOTE: I am making the files and folders on my home directory, not in gazebo directory. But previous 2 examples of plugins worked fine.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-07-07 06:49:06 -0600

AndreiHaidu gravatar image

Hi,

you have to set up the GAZEBO_PLUGIN_PATH to your plugin file:

export GAZEBO_PLUGIN_PATH=<path_to_your_lib>/:${GAZEBO_PLUGIN_PATH}

you should add this line to your ~/.bashrc file, and then source it.


Another thing, you should fix the sdf since it is an older version, you could run this tool for that:

$ gzsdf convert <path_to_sdf>/factory.sdf

Cheers, Andrei

edit flag offensive delete link more

Comments

i copied > export GAZEBOMODELPATH=$HOME/gazeboplugintutorial/models:$GAZEBOMODELPATH at end of the .bashrc file... But it gives me the same error .... Dont know why ???

SalmaanAhmed gravatar imageSalmaanAhmed ( 2013-07-08 16:23:55 -0600 )edit

What is the exact path of your plugin?

Ben B gravatar imageBen B ( 2013-07-08 19:23:53 -0600 )edit

it is /home/salmaan/gazeboplugintutorial/factory.cc

SalmaanAhmed gravatar imageSalmaanAhmed ( 2013-07-09 04:51:00 -0600 )edit

export GAZEBO_PLUGIN_PATH as well, <path>/lib

AndreiHaidu gravatar imageAndreiHaidu ( 2013-07-09 06:38:40 -0600 )edit

It worked. Thanks, You rock :)

SalmaanAhmed gravatar imageSalmaanAhmed ( 2013-07-09 08:51:43 -0600 )edit

Question Tools

Stats

Asked: 2013-07-06 09:39:09 -0600

Seen: 2,121 times

Last updated: Jul 07 '13