Skip to content
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

Workaround ros2/rosidl_typesupport#120 #284

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Jun 13, 2023

This works around ros2/rosidl_typesupport#120.

When the ROS workspace has multiple typesupports, and the RMW implementation uses the introspection typesupport, and rosidl_interfaces_group() is given given a value for group, the introspection typesupport fails to load language specific shared libraries at runtime.

This works around the bug by making the generated target names use the group name as their prefix, and then making alias() targets with name used as the prefix. This makes sure the generated shared libraries have the name that the introspection type support expects.

If the upstream issue is fixed, this workaround will continue to work.

@IanTheEngineer FYI


This change is Reviewable

@sloretz sloretz added the bug Something isn't working label Jun 13, 2023
@sloretz sloretz self-assigned this Jun 13, 2023
Copy link
Member

@IanTheEngineer IanTheEngineer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:LGTM: This workaround looks reasonable to me, and passes our CI.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @sloretz)

@sloretz sloretz merged commit 425b017 into RobotLocomotion:main Jun 20, 2023
@sloretz sloretz deleted the sloretz__interfaces-with-group-name-multi-typesupport branch June 20, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants