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

Make rosidl_get_typesupport_target return -NOTFOUND instead of FATAL_ERROR #672

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Mar 24, 2022

This is in support of conditionally using typesupport targets: ros2/common_interfaces#183

It allows using rosidl_get_typesupport_target even if the target doesn't exist. If it doesn't, the function sets the output variable to the expected target name ending in -NOTFOUND. That allows it to be checked with if() which evaluates any string ending with that suffix as a false constant.

…ERROR

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz sloretz added the enhancement New feature or request label Mar 24, 2022
@sloretz sloretz requested a review from pablogs9 March 24, 2022 16:18
@sloretz sloretz self-assigned this Mar 24, 2022
Copy link
Member

@pablogs9 pablogs9 left a comment

Choose a reason for hiding this comment

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

LGTM

@sloretz
Copy link
Contributor Author

sloretz commented Mar 24, 2022

CI (build: --packages-above-and-dependencies rosidl_cmake test: --packages-select rosidl_cmake)

  • Linux Build Status - Edit Infrastructure issue? Will wait a bit and re-run
  • Linux-aarch64 Build Status
  • Windows Build Status

@gbiggs
Copy link
Member

gbiggs commented Mar 25, 2022

Re-run of Linux CI (now that the failing CI node has been excised): Build Status

@gbiggs gbiggs merged commit bbed536 into master Mar 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the sloretz__rosidl_get_typesupports_NOTFOUND branch March 25, 2022 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants