Skip to content

Make create_client accept rclcpp::QoS#1964

Merged
sloretz merged 2 commits intorollingfrom
sloretz__create_client_qos
Jul 11, 2022
Merged

Make create_client accept rclcpp::QoS#1964
sloretz merged 2 commits intorollingfrom
sloretz__create_client_qos

Conversation

@sloretz
Copy link
Copy Markdown
Contributor

@sloretz sloretz commented Jul 7, 2022

This adds a version of create_client that accepts rclcpp::QoS instead of rmw_qos_profile_t. It's available via rclcpp::create_client, rclcpp::Node::create_client, and rclcpp_lifecycle::LifecycleNode::create_client.

While here I also made the implementation of rclcpp_lifecycle::LifecycleNode::create_client use the free function rclcppp::create_client.

Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
@sloretz sloretz added the enhancement New feature or request label Jul 7, 2022
@sloretz sloretz self-assigned this Jul 7, 2022
@alsora
Copy link
Copy Markdown
Collaborator

alsora commented Jul 7, 2022

Should we deprecate the old signature?

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

the fix looks good to me, but i got the same question #1964 (comment).
rmw_qos_profile_t should not be used in rclcpp?
the follow-up would be ParametersQoS?

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Jul 8, 2022

Should we deprecate the old signature?

25ef848 deprecates the old signature, and ros2/system_tests#506 uses the new signature downstream.

the follow-up would be ParametersQoS?

Once this goes in I'll follow up with similar changes to create_service. I see ParameterService and Sync/AsyncParameterClient have the same issue, so those would be a good follow up too. I opened an issue for those in case I don't get time #1967

@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Jul 8, 2022

CI (build: --packages-above-and-dependencies rclcpp rclcpp_lifecycle test: --packages-select rclcpp rclcpp_lifecycle test_rclcpp test_quality_of_service)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@sloretz sloretz merged commit f6056be into rolling Jul 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the sloretz__create_client_qos branch July 11, 2022 17:09
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.

4 participants