Robotics StackExchange | Archived questions

Error in urdf libraries

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

Asked by ghkraju on 2016-10-29 05:30:57 UTC

Comments

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

Asked by gvdhoorn on 2016-10-29 05:51:34 UTC

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.

Asked by gvdhoorn on 2016-10-29 08:11:14 UTC

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

Asked by gvdhoorn on 2016-10-29 08:11:57 UTC

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.

Asked by ghkraju on 2016-10-29 08:29:47 UTC

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.

Asked by gvdhoorn on 2016-10-29 08:47:24 UTC

I have one question, urdfdom-headers define "typedef std::shared_ptr" and urdf defines "typedef boost::shared_ptr" 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_ptrurdf::Link&)’

Asked by ghkraju on 2016-11-04 08:12:22 UTC

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.

Asked by gvdhoorn on 2016-11-05 07:22:11 UTC

Answers