0
$\begingroup$

I am trying to use audio-common to capture audio on ros2 humble. I am new to ros, below are few methods I tried with out much success.

** Try 1: ** I tried to install using cmd "sudo apt-get install ros-humble-audio-common" but got error "E: Unable to locate package ros-humble-audio-common".

Question : Is there any way to install audio-common for ros2 with out having to download code. ?

** Try 2 : **

I downloaded audio-common code from "https://github.com/ros-drivers/audio_common/tree/ros2" and tried to compile package by running "colcon build --symlink-install" . I am seeing issues while compiling audio_capture and sound_play. Following is snap shot of error

Starting >>> audio_common_msgs
Finished <<< audio_common_msgs [5.86s]                     
Starting >>> audio_capture
Starting >>> audio_play                      
Starting >>> sound_play                                                      
--- stderr: audio_capture                                                                                          
CMake Error at /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:603 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:825 (_pkg_check_modules_internal)
  CMakeLists.txt:17 (pkg_check_modules)

Question: What all packages I have to install to make sure sound_play is compiled?

** Try 3 : **

After I removed sound_play and installed some gstreamer related packages i am able to compile successful. But not able to run.

Question: what are the commands to run audio-capture?

$\endgroup$
2
  • $\begingroup$ Welcome to Robotics Stack Exchange! The following link may help: github.com/ros-drivers/audio_common/issues/227 $\endgroup$
    – ravi
    Oct 3 at 9:21
  • $\begingroup$ There seem to be three questions in this one post. Please ask one question per post. $\endgroup$ Oct 3 at 9:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.