Ask Your Question
0

How to run sudo rosrun

asked 2014-10-06 03:12:27 -0500

vd77 gravatar image

updated 2018-04-13 12:33:09 -0500

130s gravatar image

How can I launch rosrun and roslaunch commands with sudo? Why It is not possible by default? Please help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2014-10-06 04:47:58 -0500

Wolf gravatar image

Its not possible because sudo is calling the command as root; and your enviroment variables (source setup.bash) are not set for user root!

Theoretically you could log in as root (sudo su) then source and setup everything and then run your nodes as root; However, I'd highly recommend not to do that and find a way to run your nodes as normal user...

edit flag offensive delete link more

Comments

Thanq.. I was searching for this only

KDROS gravatar image KDROS  ( 2015-01-28 03:55:53 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2014-10-06 03:12:27 -0500

Seen: 6,100 times

Last updated: Apr 13 '18