Gazebo | Ignition | Community
Ask Your Question
0

Error in Setup gazebo plugin paths - GAZEBO_PLUGIN_PATH

asked 2014-03-12 15:01:44 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I am trying to add a controller to my robot, (using plugin). So I am going to follow the tutorials Mobile Base Control and Plugin Hello World. But I have three problem: 1 - /grad/hadi.kazemi/myplugin/myplugin.cc:2:21: fatal error: gazebo.hh: No such file or directory so I add a /gazebo/ to all include lines and the error vanished.

2 - error: ‘ConnectWorldUpdateStart’ is not a member of ‘gazebo::event::Events’ when I try to make, so I delete this line (this line was in the first tutorial).

3 - after removing the make worked well but when I try to run this command: export GAZEBOPLUGINPATH=pwd:$GAZEBOPLUGINPATH or export GAZEBOPLUGINPATH=${GAZEBOPLUGINPATH}:~/myplugin/build/ it gave me this error: GAZEBOPLUGINPATH: Undefined variable. and so when I add my model to the world (using insert) I have: Error [Plugin.hh:152] Failed to load plugin libmyplugin.so: libmy_plugin.so: cannot open shared object file: No such file or directory

how can I handle these errors?

edit retag flag offensive close merge delete

Comments

did you source your bashrc after setting the plugin path? you can verify it by running $ echo $GAZEBO_PLUGIN_PATH, and see if the path where the plugin .so is included

AndreiHaidu gravatar imageAndreiHaidu ( 2014-03-12 16:46:53 -0600 )edit

I did not install gazebo in the computer by myself. I am a PhD student and the university tech group installed it for me. I have not a root access and I don't know what is bachrc? I did your command : echo $GAZEBOPLUGINPATH and the same error: GAZEBOPLUGINPATH: Undefined variable.

Hadi Kazemi gravatar imageHadi Kazemi ( 2014-03-13 16:07:26 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-03-18 10:52:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I solve my problem by adding "setenv GAZEBO_PLUGIN_PATH ~/my_plugin/build" to .cshrc

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-12 15:01:44 -0600

Seen: 2,476 times

Last updated: Mar 25 '14