Ask Your Question
0

robot_upstart with root permission

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

Nann Nguyen gravatar image

Hi,

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
1

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

No, here is a detailed explanation https://github.com/clearpathrobotics/...

edit flag offensive delete link more
0

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

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

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:

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

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

Stats

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

Seen: 473 times

Last updated: Mar 03 '17