Permanently set permissions for /dev/ttyACM0 port using UDEV
Hi all,
I have an Hokuyo URG-04LX laser range finder and I'm using the hokuyo_node to read data from it. In order to use that ROS node, I have to set read-write permissions to the /dev/ttyACM0 port every time I plug in the laser. Searching on the web, I found that there is a way to store these permissions permanently using udev but unfortunately this procedure is not working for me.
This is what I get from lsusb:
Bus 002 Device 005: ID 15d1:0000
and, since I'm in the plugdev group
federico@HP-Compaq-8200:~$ groups
federico adm cdrom sudo dip plugdev lpadmin sambashare
I created a file named 70-hokuyo.rules in /etc/udev/rules.d/, with the following line:
federico@HP-Compaq-8200:~$ cat /etc/udev/rules.d/70-hokuyo.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="15d1", ATTRS{idProduct}=="0000", GROUP="plugdev", MODE:="0666"
but when I plug in the laser, I get always the same result:
federico@HP-Compaq-8200:~$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 gen 13 12:49 /dev/ttyACM0
Please, can someone tell me what I'm doing wrong?
Thanks!