Skip to content

Can't get ROS 2 branch to work in ROS2 humble #227

@dgarcu

Description

@dgarcu

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)

[...]
rosidl_generate_interfaces(${PROJECT_NAME}
[...]

To something like this:

[...]
rosidl_generate_interfaces(<custom_name>
[...]

Essentially, everywhere where ${PROJECT_NAME} appears. This is how I've compiled it, BTW (after doing the same with audio_common_msgs with no issues):

colcon build --symlink-install --packages-select sound_play

I figured out because CMake complained about a duplicate target name, which is sound_play, a directory inside the sound_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions