[ros-users] Nodes with root privileges

Josh Faust jfaust at willowgarage.com
Fri Mar 26 04:33:21 UTC 2010


>
> I would like to run privileged code from within the callbacks, how can
> I do this?  Are the callbacks being executed from a separate thread
> which does not have privileges?  What am I missing here?
>

Callbacks are made from whatever thread you're calling spin()/spinOnce()
from.


>
> Or is there a better, different method to run a node with root privileges?
>
>
> The pr2_etherCAT (http://www.ros.org/wiki/pr2_etherCAT) node uses root
> privelges.  A program called pr2_grant runs the chmod command similar
> to what I did.  But pr2_etherCAT does not subscribe to any topics, nor
> does it include <sys/io.h> so I couldn't get more help there.
>

pr2_etherCAT loads plugins which do subscribe to many topics.

Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100325/e8324646/attachment-0003.html>


More information about the ros-users mailing list