Giter Site home page Giter Site logo

Comments (6)

shadowmanos avatar shadowmanos commented on July 18, 2024

possible solution would be to reuse pr2-grant program.
we should test by getting the source of this program building it and if it succeeds replace the bash script by this program.
shadow-robot/sr-ros-interface-ethercat#36

from ros_ethercat.

guihomework avatar guihomework commented on July 18, 2024

code is here :
https://code.ros.org/svn/pr2debs/trunk/packages/pr2/pr2-grant
and compiles fine on ubuntu precise and trusty as long as libcap-dev is installed.
a make install is not sufficient for user to execute pr2grant, additionally "chmod u+s /usr/bin/pr2-grant" must be used to set the sticky bit. I guess this can be done in an installation package [EDIT] actually this is done in the svn repository already in the debian folder. One should maybe consider keeping this package completely but have it installed in indigo ?[/EDIT].

from ros_ethercat.

ugocupcic avatar ugocupcic commented on July 18, 2024

@shadowmanos Are you happy with this:

This should be low maintenance (hopefully release it once per ros distro).

from ros_ethercat.

toliver avatar toliver commented on July 18, 2024

As far as I can see, using the xxx-grant will not solve the issue of not finding the linked lib. As the only thing grant does is allow you to set capabilities without being sudo.

from ros_ethercat.

ugocupcic avatar ugocupcic commented on July 18, 2024

Comment from @shadowmanos (not sure why it's not appearing here)

Seems fine. Comments :

  • We will also need a hydro-devel branch for our ronex drivers.
  • If it's added in the launch files it should also be a runtime dependency in CMakeLists.txt and package.xml for every package that uses it in a launch file.
  • If we are happy we should release this ASAP so that when we release a modified indigo-devel version of our hand bloom will find ros_grant in the servers.

from ros_ethercat.

toliver avatar toliver commented on July 18, 2024

I have found the cause (and a solution) to this issue.

When using capabilities (and also when using other things like setuid and setgid), the LD_LIBRARY_PATH variable is ignored, so the ROS linked libraries are not found.

The way this was solved for the pr2_ethercat executable is by using rpath when linking the executable or libraries used by it that will have to find other libraries. (See following link)

http://wiki.ros.org/hydro/Migration#pr2_robot.2BAC8-HydroMigration.Controllers_and_RPath

from ros_ethercat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.