ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

setting sensor port permissions

asked 2014-10-20 11:54:08 -0600

TJump gravatar image

updated 2014-10-20 11:54:25 -0600

I'm working with different sensors that all require I run things like:

$ sudo chmod a+rw /dev/ttyACM0

$ sudo chmod a+rw /dev/ttyUSB0

to set the port permissions before ROS can see the sensor data. I would like to set these permanently (or somehow in a config or launch file) so I don't need to manually process this step with each attempt to run my app.

Please advise.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-20 12:01:10 -0600

Add yourself to the dialout group using sudo adduser MyUser dialout and log out.

edit flag offensive delete link more


Thanks Tony!!

TJump gravatar image TJump  ( 2014-10-20 12:57:24 -0600 )edit

The answer works because those devices you listed are owned by the dialout group. The more general way to do this is with udev rules. See this page:

jarvisschultz gravatar image jarvisschultz  ( 2014-10-20 15:40:15 -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



Asked: 2014-10-20 11:54:08 -0600

Seen: 390 times

Last updated: Oct 20 '14