audio_common for ROS2
Hi everyone, is there any audio_common equivalent package for ROS2?
Thanks in advance, Cheers, G.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi everyone, is there any audio_common equivalent package for ROS2?
Thanks in advance, Cheers, G.
I'm trying to build that now.
The ROS topic bridges aren't working yet, but it'll happily stream audio from a robot's sound card to a remote machine or play canned audio
https://github.com/BrettRD/ros-gst-br...
Audio-common was too limited for my application, I've used image messages for audio with a custom encoding string in the past, but I'm about to define some new messages. I'd be glad to have some input.
Hi BrettRD, thanks for starting and sharing such an ambitious project! My use-case is closer to the original audio_common: Play one from a set of audio files located on disk through ROS commands. Do you have a tutorial or instructions on how to do this with your project? I failed to find this on the linked github page. Cheers!
I don't have many examples of using ROS for audio. I have some improvements penciled in for this year though, that includes more docs.
Off the top of my head, A pipeline like this should do something, (something might include eating all of your network bandwidth with raw audio):
Machine with the mic:
gst-launch-1.0 --gst-plugin-path=install/gst_bridge/lib/gst_bridge/ alsasrc ! audioconvert ! rosaudiosink ros-name="mic_node" ros-topic="very_noise"
Machine with the speakers:
gst-launch-1.0 --gst-plugin-path=install/gst_bridge/lib/gst_bridge/ rosaudiosrc ros-name="spk_node" ros-topic="very_noise" ! audioconvert ! alsasink sync=false
If you have a burning need for compressed audio in ROS, I'd love to field a pull request (even one that doesn't yet work) for a ROS message wrapper and bridge nodes that handle raw GST buffers.
rosrawsink
and rosrawsrc
are on my wish-list.
At the moment, I use GStreamer's UDP elements to move H264 video, not ROS topics.
I have ended up creating my own custom message to wrap audio data.
Cheers, g.
Hi, I'm a maintainer of audio_common. Now, I have no time to implement ROS2 version of audio_common, but I can do it after these busy days. If you are interested in helping me, please visit audio_common repo and have a discussion there. https://github.com/ros-drivers/audio_...
I look forward to seeing your contribution to audio_common repo.
Asked: 2020-06-04 02:55:50 -0500
Seen: 1,467 times
Last updated: Feb 08 '22
Can I pass in node options (e.g., IPC=true) when composing nodes using the CLI or launch files
How to start ros2 publisher right after boot
[ROS2] extend env vars in launch file instead of overwriting
how to use a header only package?
Utm->odom tf is not being published (robot_localization eloquent-devel)
ROS2 sending multiple inputs msg
ros2 transient_local durability (late joiners policy) does not work when using ros2 topic echo
Difference between 'ros2 launch' and 'ros2 run' from a program point of view
I have the same question and am not sure whether the project linked in the accepted answer actually addresses this. Hence, I opened a question on the github of github_common: https://github.com/ros-drivers/audio_...