-
Notifications
You must be signed in to change notification settings - Fork 482
Qos configurability #1408
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
Merged
Merged
Qos configurability #1408
Changes from 5 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c68112c
refactor + tests
ivanpauno 5a1c5c7
Update create_publisher, and others ...
ivanpauno 472a1bd
Add QosOverridingOptions to create_subscription
ivanpauno dc1b075
linters
ivanpauno 6440680
Use new rmw functions
ivanpauno 6d21d39
Simplify code
ivanpauno ffd4659
Add overloads to create_publisher/create_subscription taking both a p…
ivanpauno 95068b5
Make use of qos overrides in some default topics
ivanpauno 730c741
Please linters, add more notes
ivanpauno 875c721
use resolved topic name
ivanpauno aafadb3
Modify macro name
ivanpauno 0cb162a
Rename qpk to policy
ivanpauno fa10924
reorder headers
ivanpauno 58fcecf
Fix bugs, add tests
ivanpauno 2424238
Tests for new create_publisher/create_subscription overloads
ivanpauno 5fdcb04
don't make /clock reconfigurable
ivanpauno 4d83c8b
Add tests for validation callback, cleanup QosOverridingOptions api
ivanpauno 3c5b855
Undo unneeded changes
ivanpauno 5465266
Remove comment
ivanpauno 5507be4
Write docs for QosOverridingOptions
ivanpauno 091b6a2
style
ivanpauno 4121a6b
style
ivanpauno ea604e7
style
ivanpauno aa5ff31
style
ivanpauno 1d168dd
style
ivanpauno 927461a
style
ivanpauno dd92127
Use declare parameter or get
ivanpauno 96ea51a
Improve tests
ivanpauno a36a219
Remove rclcpp/test/detail folder
ivanpauno e7355f7
Use Duration::from_nanoseconds
ivanpauno 22a5412
Modify the qos validation callback signature so a reason of while the…
ivanpauno 71578d2
100% line coverage in rclcpp/detail/qos_parameters.hpp
ivanpauno 17c136f
100% coverage in create_publisher.hpp/create_subscription.hpp
ivanpauno f65e971
100% coverage in test_qos_overriding_options.cpp
ivanpauno 3ee91e6
Delete unnecessary includes
ivanpauno b9d7102
Delete unnecesary test, please linters
ivanpauno 04398a4
Uncomment line
ivanpauno da07423
Delete unneeded include
ivanpauno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| // Copyright 2020 Open Source Robotics Foundation, Inc. | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| #include "gmock/gmock.h" | ||
|
|
||
| #include "rclcpp/qos_overriding_options.hpp" | ||
|
|
||
| TEST(TestQosOverridingOptions, test_overriding_options) { | ||
| rclcpp::QosOverridingOptions options{rclcpp::QosOverridingOptions::kDefaultPolicies}; | ||
| EXPECT_EQ(options.id, ""); | ||
| EXPECT_EQ(options.validation_callback, nullptr); | ||
| EXPECT_THAT( | ||
| options.policy_kinds, testing::ElementsAre( | ||
| rclcpp::QosPolicyKind::History, | ||
| rclcpp::QosPolicyKind::Depth, | ||
| rclcpp::QosPolicyKind::Reliability)); | ||
| } | ||
|
|
||
| TEST(TestQosOverridingOptions, test_qos_policy_kind_to_cstr) { | ||
| EXPECT_THROW( | ||
| rclcpp::qos_policy_kind_to_cstr(rclcpp::QosPolicyKind::Invalid), | ||
| std::invalid_argument); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.