Robotics StackExchange | Archived questions

how can I set the library search path for the pluginlib?

I am trying to create an rqt plugin and I have used the imageviewer as a template where I changed all the names and the code to get an empty plugin. This generally worked and I can find my plugin in the dropdown menue of rqt, but when I want to start it it says that it cannot find the library. I have checked that the library is really generated in ~/catkinws/devel/lib and when I manually copy the library to /opt/ros/indigo/lib it suddenly finds the library. Where can I extend the search path for the pluginlib?

( in the plugin.xml the path tag is: <library path="lib/librqt_grip_ui"> which should be correct accordingly to all the tutorials that I could find online. "rqtgripui" is the name )

Asked by thunderbug on 2016-08-08 05:05:12 UTC

Comments

Shouldn't the library path include a ${prefix} bit?

Asked by gvdhoorn on 2016-08-08 11:55:03 UTC

I found the Problem. You have to source the setup.bash in /op/ros/(your_distro) AND the setup.bash in your ~/catkin_ws/devel

I only had the first one in my .bashrc and so it didn't look for rqt Plugins and rosnodes in my carkin Workspace.

Asked by thunderbug on 2016-08-08 12:50:29 UTC

The second setup file will implicitly source the first one if you have build the workspace with the first one being sourced in the first place.

Asked by Dirk Thomas on 2016-08-08 13:06:35 UTC

I am having a similar issue: one of my plugins is dependent on the MPI library. I can use the code anywhere except I cant use it in RViz. The plugin compiles, but when running the code I get an error about Pluginlib not finding the MPI symbol. Is there a way to set the include path manually?

Asked by jp on 2018-01-24 10:30:10 UTC

Answers