Cannot connect ros master when run with sudo
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.