-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get ROS 2 branch to work in ROS2 humble #227
Comments
Hi, the issue can be solved by the following two PRs, but not merged yet. Can you try ros2/rosidl_python#187 and #212 ? |
Sorry, I'm kinda new to Github too and I forget to chek PR's. I'm giving it a try right now. |
I'm stuck again with ros2/rosidl_python#187. Apparently now I lack from a module called rosidl_pycommon. I managed to found it in the source ROS repos, but in the Humble branch this module is missing, hence I do not have it installed. Since I have installed ROS Humble from binaries, I do not know exactly how to proceed. Sorry to bother you, clearly this is not an issue with Thanks for your fast reply, btw. 😄 |
my colcon workspace config is as below yaml. repositories:
audio_common:
type: git
url: https://github.com/knorth55/audio_common.git
version: ros2-idl-bugfix
rosidl:
type: git
url: https://github.com/ros2/rosidl.git
version: 3.3.1
rosidl_python:
type: git
url: https://github.com/knorth55/rosidl_python.git
version: fix-141 You can copy this yaml to
|
I owe you a beer! 😄 thanku.mp4 |
@dgarcu |
Sure, I'm doing it right now. Thanks again. |
Hello, The issue, when executing sound_play command followed by the absolute path of wav file, the play.py prints that it is playing the file. However, no audio can be heard (its the same for a string input). The docker has access to device soundcard. The commands that I have been using: Any suggestion of what mistakes I could have done and its possible solution. In addition, let me know if its no relevant to the above thread and needs a new issue to be raised. Thanks |
@dviral13 it may be different issue so can you open a new issue? |
@knorth55 |
@dviral13 Maybe I am late. But for me to run both of your commands I have to previously run this one: ros2 run sound_play soundplay_node.py Please @knorth55 correct me if I am wrong, but Same goes for Greetings! |
i dont get good response from ros2 idl python repo, so the issue still remains. |
Thanks for the quick response. If your proposed fix is not in line with what the maintainer requested, what is the path forward? |
I propose a path to solve the issue, but i dont get a response. |
Hello everyone! I tried to the workspace configuration suggested by @knorth55, but it seems not working with ros iron.
but I get these errors with
Does it happen to you, too? |
@antbono I just take a look, but it seems
can you try @rolker 's solution? |
@antbono you need this package in your workspace, too. |
@knorth55 thank you for the quick reply. I put here a vcs repos config file for @rolker 's solution
|
My configuration is a bit different I am trying to run the audio_common ros node in a Docker Container... on a RaspberryPi 5.... RUN /bin/bash -c 'source /opt/ros/humble/setup.bash && building with: running it with: I then went through the steps listed in above comments I modify soundplay_node.launch.xml then in a second terminal I am going into the same docker container... Has anyone else figured this out??? Also I would really like to use a Seeed Studio Respeaker Mic Array V2 but that one seems to be yet another "extra challenge" so this is just a USB headset with microphone that I am testing with! I appreciate any help you can provide! |
@kyle-redyeti |
yup I tried playing it just on the Raspberry Pi with arecord and aplay and then inside a Docker Container based on Ubuntu 22.04 and then on the ros:humble-ros-base containers. I rebuilt it again and ran this as a test to make sure that the docker container could record and play wav files to my usb headset... $ arecord -f S16_LE -c 2 -d 10 -r 48000 --device="hw:3,0" /tmp/test-mic.wav $ aplay -f S16_LE -c 2 -d 10 -r 48000 --device="hw:3,0" /tmp/test-mic.wav |
did you change |
While we wait for a proper resolution that everyone accepts, I've forked this package and attempted to incorporate a hotfix/workaround suggested by ament/ament_cmake#514 (comment). |
@teapfw |
Hi there,
I would like to add sounds to my projects. I am trying to use the ROS 2 branch, more precisely the
sound_play
package. I'm working with Humble distro and Ubuntu 22.04.First of all, I cannot manage to compile unless I change from this (In
CMakeLists.txt
)To something like this:
Essentially, everywhere where
${PROJECT_NAME}
appears. This is how I've compiled it, BTW (after doing the same withaudio_common_msgs
with no issues):I figured out because CMake complained about a duplicate target name, which is
sound_play
, a directory inside thesound_play
package root directory, sounds like a duplicate to me. OFC, changing those lines breaks the package so badly that it does not work at all despite of successful build. I've also tried to rename that directory to something else. Trying to run any script results on missed files (Because the path of some modules changed to the<custom_name>
)I'm kinda new to ROS and I do not know how to proceed. I am clearly missing some steps. How can I install
sound_play
in ROS 2 properly? I know this branch is still in development, but I think that I am the issue here.Thanks in advance! Cheers.
The text was updated successfully, but these errors were encountered: