Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Launch node with root permissions

Hi guys,

I need to launch a specific node with root permissions. The reason is that I need to reset a USB device under specific circumstances (sometimes the device crashes and requires to be reset). Invoking the appropriate ioctl system call requires root permissions.

I'd like to launch that node through roslaunch. However it should be the only node to get into god mode.

The user ROS runs under is in a sudoer. Any idea on how to acheive that?

Thanks a lot!

Cheers, Hendrik