ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I finally find out how to access to usb without typing sudo. First of all, I create a new file in /etc/udev/rules.d named 10-mydevice.rules and added this line inside:
ATTRS{idProduct}=="[VENDOR_ID]", ATTRS{idVendor}=="[PRODUCT ID]", MODE="666", GROUP="plugdev"
where VENDOR_ID and PRODUCT_ID are specified by
lsusb -v
Then I simply checked if my user was part of plugdev group by typing
groups USERNAME
Finally I saved and closed my file and entered the following in the terminal window for refreshing the rules:
sudo udevadm trigger
Right now I can run my node by using rosrun without root privileges or run the node from inside QtCreator!!! Hope this could help other people!
2 | No.2 Revision |
I finally find out how to access to usb without typing sudo. First of all, I create a new file in /etc/udev/rules.d named 10-mydevice.rules and added this line inside:
ATTRS{idProduct}=="[VENDOR_ID]", ATTRS{idVendor}=="[PRODUCT ATTRS{idProduct}=="[PRODUCT_ID]", ATTRS{idVendor}=="[VENDOR ID]", MODE="666", GROUP="plugdev"
where VENDOR_ID and PRODUCT_ID are specified by
lsusb -v
Then I simply checked if my user was part of plugdev group by typing
groups USERNAME
Finally I saved and closed my file and entered the following in the terminal window for refreshing the rules:
sudo udevadm trigger
Right now I can run my node by using rosrun without root privileges or run the node from inside QtCreator!!! Hope this could help other people!