Gazebo | Ignition | Community
Ask Your Question
0

Custom transport message: where do I put the shared library?

asked 2016-04-20 22:14:43 -0500

pcdangio gravatar image

updated 2016-04-20 22:16:36 -0500

I made a custom gazebo message using the official tutorial. After building the custom message, I wind up with a shared library "libCustomMessage.so". I'm able to successfully compile and link a gazebo plugin using the custom message and its shared library.

Where do I put the shared library so that my gazebo plugin can load the it at runtime? I know I can just add the shared library's path to LD_LIBRARY_PATH, but this seems dirty considering only this one plugin will use the custom message and its library. Is there any other way to get it to work?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-20 23:34:50 -0500

wangshanren gravatar image

I think you can try to edit the GAZEBO_PLUGIN_PATH in .bashrc

edit flag offensive delete link more

Comments

I tried putting the shared library in the gazebo plugin path as well... had no luck. I could only get it to work if the shared library's directory was in LD_LIBRARY_PATH. I'm at work right now, but will retry putting it in the plugin path one more time when I get home.

pcdangio gravatar imagepcdangio ( 2016-04-21 08:59:26 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-20 22:14:43 -0500

Seen: 470 times

Last updated: Apr 20 '16