ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You should really not use sudo
with rosrun. It leads to all sorts of nastiness with permissions.
For serial ports (and access to other hardware through /dev/xxx
) you just need to give the relevant user (most likely your user) access to the device file (fi: /dev/ttyS0
). This is not ROS specific.
See How do I allow a non-default user to use serial device ttyUSB0? on the Ubuntu stack-exchange for instance.
For ROS specific answers: google: linux serial ports udev access, which gives you:
2 | No.2 Revision |
You should really not use sudo
with rosrun. It leads to all sorts of nastiness with permissions.
For serial ports (and access to other hardware through /dev/xxx
) you just need to give the relevant user (most likely your user) access to the device file (fi: /dev/ttyS0
). This is not ROS specific.
See How do I allow a non-default user to use serial device ttyUSB0? on the Ubuntu stack-exchange for instance.
For ROS specific answers: google: linux serial ports udev access, which gives you:
Edit: and just for completeness (and for the lazy), a quote from the first answer to the question on the Ubuntu stack-exchange:
As you've noticed, the
/dev/ttyUSB0
device has the group ofdialout
. All you need to do is add the second user to thedialout
group:
sudo adduser USERNAME dialout
3 | No.3 Revision |
You should really not use sudo
with rosrun. It leads to all sorts of nastiness with permissions.
For serial ports (and access to other hardware through /dev/xxx
) you just need to give the relevant user (most likely your user) access to the device file (fi: /dev/ttyS0
). This is not ROS specific.
See How do I allow a non-default user to use serial device ttyUSB0? on the Ubuntu stack-exchange for instance.
For ROS specific answers: google: linux serial ports udev access, which gives you:
Edit: and just for completeness (and for the lazy), a quote from the first answer to the question on the Ubuntu stack-exchange:
As you've noticed, the
/dev/ttyUSB0
device has the group ofdialout
. All you need to do is add the second user to thedialout
group:
sudo adduser USERNAME dialout
Note: you need to log out and back in for your user groups to be reloaded.