Ask Your Question
0

Cannot connect ros master when run with sudo

asked 2016-08-18 04:11:09 -0600

xyz gravatar image

updated 2016-08-18 12:17:26 -0600

gvdhoorn gravatar image

As the title, I can run well a bag normally, but when I add sudo, it says

[FATAL] [1471510924.482740850]: ROS_MASTER_URI is not defined in the environment.

which is the same as no master exists. But I really have to add sudo to open a usb camera.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-18 04:25:34 -0600

mgruhler gravatar image

Check out the following answers:

Reason why what you want to do is not working: http://answers.ros.org/question/19424...

Possible workaround for exact same usecase you have: http://answers.ros.org/question/16524...

edit flag offensive delete link more

Comments

1

I'd actually suggest not to run anything as root (so don't use sudo). In most cases it's not necessary, and only the access rights of the user need to be changed. See Rosrun as super user fi (but there are many more).

gvdhoorn gravatar image gvdhoorn  ( 2016-08-18 12:17:02 -0600 )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

1 follower

Stats

Asked: 2016-08-18 04:11:09 -0600

Seen: 365 times

Last updated: Aug 18 '16