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

Add function for checking QoS profile compatibility #180

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

jacobperron
Copy link
Member

Connected to ros2/rmw#299

Connected to ros2/rmw#299

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
ret = rmw_qos_profile_check_compatible(
rmw_qos_profile_system_default, rmw_qos_profile_unknown, &compatible, nullptr, 0u);
EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT);
}

Choose a reason for hiding this comment

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

I assume the purpose of the tests here are to ensure that the function is vectored properly to its implementation and that the full test suite for QoS compatibility is over in rmw_dds_common.

Copy link
Member Author

@jacobperron jacobperron Feb 20, 2021

Choose a reason for hiding this comment

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

Yes. These tests also are run for every RMW. This is the reason that the tests are not as comprehensive as the tests in rmw_dds_common. I don't think we can make many assumptions about QoS compatibility if we consider a non-DDS RMW.

Unknown values no longer cause errors, but possibly warnings instead.
We can't test this since it is dependent on the RMW.

We can test for compatibility with no default or unknown values as well as invalid input.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

After a discussion in ros2/rmw_dds_common#45 (comment), I had to refactor the tests (e4cf875
). Unknown values no longer result in an error, and the default profiles now cause warnings so we can make any assumptions about them in these tests.

@jacobperron
Copy link
Member Author

CI: ros2/rmw#299 (comment)

@jacobperron
Copy link
Member Author

@ros-pull-request-builder retest this please

2 similar comments
@jacobperron
Copy link
Member Author

@ros-pull-request-builder retest this please

@jacobperron
Copy link
Member Author

@ros-pull-request-builder retest this please

@jacobperron jacobperron merged commit 3dab7b0 into master Mar 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the jacob/compatible_qos_api branch March 2, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants