plugin cannot be call and no error message
I am running gaebo 5.0.1 on ubuntu 14.04.
I want to make a camera plugin,
so , I go to "gazebo / examples / plugins / camera " for example code (https://bitbucket.org/osrf/gazebo/src/430e66533f8810646b90d001fc9c83220ae503e9/examples/plugins/camera?at=gazebo5_5.0.1)
after compiling and execute "gazebo camera.world"
I found that libcamera_dump.s
o and libcamera_move.so
were not be called
(I 'cout' some string in constructor and update() function ,so I knew it)
and there were no error message neither.
I don't how to deal with this problem
Thanks for help
Asked by Zheng yo chen on 2015-06-02 03:39:51 UTC
Answers
You should run out of the build directory. This will allow Gazebo to find the plugins. In gazebo/examples/plugins/camera/build
run gazebo ../camera.world
.
Asked by nkoenig on 2015-06-02 11:43:23 UTC
Comments
If you want Gazebo to find your custom plugins, add the paths to the .so files in the GAZEBO_PLUGIN_PATH environment variable.
Asked by PML on 2015-06-04 20:38:27 UTC
Thank you, I have done with your suggestion, but it doesn't work.
Asked by Zheng yo chen on 2015-06-11 19:26:06 UTC
And,I don't think this problem is caused by PATH issue,Because if it were,when I enter 'gazebo test.world', it would come with some error message such as "cannot find plugin" Thank you~
Asked by Zheng yo chen on 2015-06-11 19:32:04 UTC
By the way. worldplugin works fine,but no matter my sensorplugin or sensorplugin of tutorial ,it doesn't work
Asked by Zheng yo chen on 2015-06-11 19:41:33 UTC
Comments