Skip to content

Commit

Permalink
Add audio support
Browse files Browse the repository at this point in the history
Matches the API of furushchev/respeaker_ros#19, but bumped to Python3 and
with less string-y handling of audio data
Drops dynamic reconfigure, as params are dynamic by default in ROS 2
  • Loading branch information
nickswalker committed Aug 29, 2023
1 parent b47f3da commit 1eedfa1
Show file tree
Hide file tree
Showing 37 changed files with 457 additions and 1,849 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,5 @@ $RECYCLE.BIN/

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

.vscode
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Nick Walker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Respeaker DOA Publisher
# respeaker_ros

A ROS2 node which periodically publishes the DOA of a Respeaker microphone array.
ROS2 wrapper for the ReSpeaker 4 Mic Array. Publishes audio, direction-of-arrival information and allows control over the LED ring.

Based on [previous](https://github.com/furushchev/respeaker_ros) [wrappers](https://github.com/machinekoder/respeaker).

## Usage

You need to build [audio_common](https://github.com/ros-drivers/audio_common) from source until it gets released into ROS2.

Copy the udev rules from `respeaker_ros/config` into `/etc/udev/rules.d/`.

14 changes: 11 additions & 3 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<package format="2">
<name>respeaker</name>
<name>respeaker_ros</name>
<version>1.0.0</version>
<description>ROS interface for respeaker.</description>
<maintainer email="alex@machinekoder.com">Alex Roessler</maintainer>
<license>Apache License 2.0</license>
<maintainer email="nswalker@cs.washington.edu">Nick Walker</maintainer>
<license>MIT</license>

<exec_depend>rclpy</exec_depend>
<exec_depend>std_msgs</exec_depend>
Expand All @@ -16,6 +16,14 @@
<test_depend>rclpy</test_depend>
<test_depend>std_msgs</test_depend>

<depend>angles</depend>
<depend>audio_common_msgs</depend>
<depend>geometry_msgs</depend>
<depend>portaudio19-dev</depend>
<depend>python3-pyaudio</depend>
<depend>python3-spidev</depend>
<depend>tf_transformations</depend>

<export>
<build_type>ament_python</build_type>
</export>
Expand Down
Binary file removed respeaker/firmware/1_channel_firmware.bin
Binary file not shown.
Binary file removed respeaker/firmware/1_channel_firmware_12.06dB.bin
Binary file not shown.
Binary file removed respeaker/firmware/1_channel_firmware_6.02dB.bin
Binary file not shown.
Binary file removed respeaker/firmware/48k_1_channel_firmware.bin
Binary file not shown.
Binary file not shown.
Binary file removed respeaker/firmware/48k_6_channels_firmware.bin
Binary file not shown.
Binary file not shown.
Binary file removed respeaker/firmware/6_channels_firmware.bin
Binary file not shown.
Binary file removed respeaker/firmware/6_channels_firmware_12.06dB.bin
Binary file not shown.
Binary file removed respeaker/firmware/6_channels_firmware_6.02dB.bin
Binary file not shown.
201 changes: 0 additions & 201 deletions respeaker/firmware/LICENSE

This file was deleted.

90 changes: 0 additions & 90 deletions respeaker/firmware/README.md

This file was deleted.

Empty file removed respeaker/firmware/__init__.py
Empty file.
Loading

0 comments on commit 1eedfa1

Please sign in to comment.