ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

RViz Motion Planning Error: Failed to load motion planning plugin library

asked 2017-06-09 14:47:23 -0500

anonymous user


updated 2017-06-09 16:06:19 -0500

I was running a Moveit tutorial on Motion Planning (ROS Indigo version) when I got the error,

The class required for this display, 'moveit_rviz_plugin/MotionPlanning', could not be loaded.
Failed to load library /opt/ros/indigo/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 = cannot open shared object file: No such file or directory)

The first time when I launched the tutorial, I got a similar error and fixed it by

sudo apt-get update
sudo apt-get dist-upgrade

as suggested in Rviz motion_planning Error: Failed to load library, but has not worked since.

I have installed opencv3.2.0, is that the reason why this isn't working? Or is the opencv plugin a part of ROS? I checked the library files in Moveit and this is the output:-

>> ls /opt/ros/indigo/lib | grep open

>> ls /opt/ros/indigo/lib | grep motion

>> ls /usr/local/lib | grep

Is there a way to make RViz use the 3.2 version instead?

Any help would be appreciated. Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-09 17:42:01 -0500

ahendrix gravatar image

It looks like the plugin is compiled against packages that use OpenCV 2.4, and can't be used with a different version. You may be able to recompile the moveit rviz plugin with the updated version of OpenCV

edit flag offensive delete link more

Question Tools



Asked: 2017-06-09 14:47:23 -0500

Seen: 3,590 times

Last updated: Jun 09 '17