Skip to content

Commit

Permalink
add udev rule
Browse files Browse the repository at this point in the history
  • Loading branch information
furushchev committed Jun 13, 2018
1 parent 976ffd5 commit 6d814c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -27,6 +27,21 @@ A ROS Package for Respeaker Mic Array
source ~/catkin_ws/devel/setup.bash
```

1. Register respeaker udev rules

Normally, we cannot access USB device without permission from user space.
Using `udev`, we can give the right permission on only respeaker device automatically.

Please run the command as followings to install setting file:

```bash
roscd respeaker_ros
sudo cp -f $(rospack find respeaker_ros)/config/60-respeaker.rules /etc/udev/rules.d/60-respeaker.rules
sudo systemctl restart udev
```

And then re-connect the device.

1. Install python requirements

```bash
Expand Down
1 change: 1 addition & 0 deletions config/60-respeaker.rules
@@ -0,0 +1 @@
SUBSYSTEM=="usb", ATTR{idProduct}=="0018", ATTR{idVendor}=="2886", MODE:="0666"
2 changes: 1 addition & 1 deletion launch/respeaker.launch
Expand Up @@ -2,5 +2,5 @@
<node name="respeaker_node" pkg="respeaker_ros" type="respeaker_node.py"/>

<node name="static_transformer" pkg="tf" type="static_transform_publisher"
args="0 0 0 0 0 map respeaker_base 100"/>
args="0 0 0 0 0 0 map respeaker_base 100"/>
</launch>

0 comments on commit 6d814c1

Please sign in to comment.