ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

setting sensor port permissions

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

TJump gravatar image

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

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
3

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

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

edit flag offensive delete link more

Comments

Thanks Tony!!

TJump gravatar image TJump  ( 2014-10-20 12:57:24 -0500 )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: http://www.reactivated.net/writing_ud...

jarvisschultz gravatar image jarvisschultz  ( 2014-10-20 15:40:15 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 549 times

Last updated: Oct 20 '14