Ask Your Question

robot_upstart with root permission

asked 2014-08-04 04:37:02 -0600

Nann Nguyen gravatar image


My question is: when the .launch file is launched by using robot_upstart set up, does it have root access? I have not tested yet because my package it not ready. Our project uses a headless robot, and there is a package that would use the PRU of the Beaglebone. At the moment, we need to do rosrun from root, in order for this package to work. If the answer is no, could you please suggest some solution to us?

Best regards,

Nhan Nguyen

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-03-03 15:23:48 -0600

No, here is a detailed explanation

edit flag offensive delete link more

answered 2017-03-03 16:26:25 -0600

updated 2017-03-03 16:27:52 -0600

You can make one node of your launch run as root - using launch-prefix - while keeping the rest running as user. Here is an example launch file:

<node pkg="i2cpwm_board" name="i2cpwm_board_node" type="i2cpwm_board" output="screen" launch-prefix="sudo -E ">

In this example, we need root access for the I2C device on a Raspberry Pi.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-04 04:36:28 -0600

Seen: 624 times

Last updated: Mar 03 '17