Ask Your Question
0

image_rotate fails to load libimage_rotate.so in ROS Groovy

asked 2014-11-06 15:43:08 -0500

updated 2014-11-06 16:13:44 -0500

I'm attempting to use image_rotate in ROS Groovy (working with a PR2) but whenever I try to run image_rotate I get the following error. I have tested this on three different machines all running ROS Groovy. Any ideas how to resolve this?

$ rosrun image_rotate image_rotate image:=l_forearm_cam/image_color rotated/image:=l_forearm_cam/image_color_rotated __name:=image_rotater

[ERROR] [1415309064.421543229]: Failed to load nodelet [/image_rotater] of type [image_rotate/image_rotate]: Failed to load library /opt/ros/groovy/lib//libimage_rotate.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library (Poco exception = /opt/ros/groovy/lib//libimage_rotate.so: undefined symbol: _ZTVN3tf212BufferClientE)
edit retag flag offensive close merge delete

Comments

cross-posted to the issue tracker at https://github.com/ros-perception/ima...

ahendrix gravatar image ahendrix  ( 2014-11-06 16:46:00 -0500 )edit

Were you able to patch image_rotate for groovy? If so, could you please share what needs to be done?

Sudarshan gravatar image Sudarshan  ( 2015-01-26 19:44:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-06 17:24:36 -0500

ahendrix gravatar image

This looks like the image_rotate library isn't linked against tf2 properly.

Since Groovy is EOL, it is no longer possible to do a release to correct this issue.

I recommend upgrading to Hydro if possible. Otherwise, you can try building the Groovy version of image_rotate from source, and patching the bug yourself.

edit flag offensive delete link more

Comments

I can confirm ahendrix answer:

simply adding tf2 tf2_ros to the find_package statement did the trick. It would be interesting how ahendrix could find this out.

kilmarnock gravatar image kilmarnock  ( 2015-08-31 08:53:03 -0500 )edit

I suspected a linking error against tf2 because the error message indicated that it couldn't find the tf2::BufferClient class when loading the library at run-time. (once you pass the undefined reference error through a name demangler).

ahendrix gravatar image ahendrix  ( 2015-08-31 11:45:32 -0500 )edit

Thank you. My mom did not tell me about name demanglers.

kilmarnock gravatar image kilmarnock  ( 2015-09-01 02:20:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-11-06 15:43:08 -0500

Seen: 94 times

Last updated: Aug 31 '15