Error in urdf libraries

asked 2016-10-29 05:30:57 -0500

ghkraju gravatar image

updated 2016-10-29 08:10:26 -0500

gvdhoorn gravatar image

I have multiple urdf libraries in my system and when compiling the following message occurs

CMake Warning at visualization_tutorials-kinetic-devel/rviz_plugin_tutorials/CMakeLists.txt:49 (add_library):
  Cannot generate a safe linker search path for target rviz_plugin_tutorials
  because files in some directories may conflict with libraries in implicit
  directories:

    link library [liburdfdom_sensor.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/ros/kinetic/lib
    link library [liburdfdom_model_state.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/ros/kinetic/lib
    link library [liburdfdom_model.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/ros/kinetic/lib
    link library [liburdfdom_world.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /opt/ros/kinetic/lib

  Some of these libraries may not be found correctly.

My system configuration is Ubuntu 16.04 64bit, ROS Kinetic

Please let me know if there any way to solve this issue.


Edit: I have the following versions: image description

When I tired to remove from usr library.... they actually linked to one another and if I remove I am not sure that my other installations will get affected

edit retag flag offensive close merge delete

Comments

Well, the easiest would be to remove the files under /usr, but I'm guessing you need them for something?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-29 05:51:34 -0500 )edit

Please don't post answers unless you are actually answering your own question. Whenever you want to add information, please edit your question. Use the edit link/button below your question for that.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-29 08:11:14 -0500 )edit

re: /usr: how did those libraries get there? Have you ever sudo make install-ed a version of liburdfdom? Why?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-29 08:11:57 -0500 )edit

I am sorry... I will try to edit the question. About liburdfdom I have messed with them while compiling moveit from sources but even moveit i cant able to install successfully. Always they show errors with urdf and srdf. I dont know what steps i need to follow further.

ghkraju gravatar image ghkraju  ( 2016-10-29 08:29:47 -0500 )edit

I would recommend (but it's up to you) to try and clean out /usr to remove all urdfdom related files from there. Don't just delete entire directories, as /usr is / may be used by other programs on your system.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-29 08:47:24 -0500 )edit

I have one question, urdfdom-headers define "typedef std::shared_ptr<class>" and urdf defines "typedef boost::shared_ptr<model>" doesn't it seem like an error? I receive the error: no matching function for call to ‘urdf::ModelInterface::getLink(std::__cxx11::string&, boost::shared_ptr<urdf::link>&)’

ghkraju gravatar image ghkraju  ( 2016-11-04 08:12:22 -0500 )edit

I think you are mixing older and newer versions. Various libraries (MoveIt fi) have recently changed to using C++11 everywhere, resulting in the std::shared_ptr pointers you see. Older dependencies might not have done that yet, but compatibility shims have been put in place in MoveIt.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-05 07:22:11 -0500 )edit