Ask Your Question

I'm trying to develop an RVIZ plugin and I've error like this one presented in the question below (link). Can someone help me?

asked 2019-06-21 09:07:20 -0500

Hillal gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-22 01:08:13 -0500

abrzozowski gravatar image

updated 2019-06-22 01:08:48 -0500

Based on the sources from attached link, you should looking for hints in error message.

Failed to load library /home/shantengfei/catkin_ws/devel/lib// 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 = /home/shantengfei/catkin_ws/devel/lib// undefined symbol: _ZN19joint_value_monitor11joint_value4loadERKN4rviz6ConfigE)

First of all, we know that we have poroblems with library which should be located in the /home/shantengfei/catkin_ws/devel/lib// path --- but, it looks good

The library code contains PLUGINLIB_EXPORT_CLASS macro and names are consistent between this macro and XML --- Ok

Let's check the last sentence with undefined symbol: _ZN19joint_value_monitor11joint_value4loadERKN4rviz6ConfigE, so we should check if we have implemented this function. If we can't deduce function name from _ZN19joint_value_monitor11joint_value4loadERKN4rviz6ConfigE, we can call:

<$:~$ c++filt _ZN19joint_value_monitor11joint_value4loadERKN4rviz6ConfigE

where output will be

joint_value_monitor::joint_value::load(rviz::Config const&)

So the problem is lack of joint_value_monitor::joint_value::load(rviz::Config const&) definition.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools



Asked: 2019-06-21 09:05:43 -0500

Seen: 209 times

Last updated: Jun 22 '19