Skip to content

Convert Service to use C++ Class#747

Merged
ahcorde merged 8 commits intomasterfrom
ahcorde/pybind-service_t
Apr 2, 2021
Merged

Convert Service to use C++ Class#747
ahcorde merged 8 commits intomasterfrom
ahcorde/pybind-service_t

Conversation

@ahcorde
Copy link
Copy Markdown
Contributor

@ahcorde ahcorde commented Mar 31, 2021

Related to #665

This converts the Service functions to a C++ class.

Signed-off-by: ahcorde ahcorde@gmail.com

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from sloretz March 31, 2021 19:19
@ahcorde ahcorde self-assigned this Mar 31, 2021
@ahcorde ahcorde mentioned this pull request Mar 31, 2021
34 tasks
ahcorde added 3 commits April 1, 2021 09:13
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Apr 1, 2021

CI (build: --packages-above-and-dependencies rclpy test: --packages-above rclpy)

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

Copy link
Copy Markdown
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

Looking good with a few more comments addressed!

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Apr 2, 2021

CI (build: --packages-above-and-dependencies rclpy test: --packages-above rclpy)

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

taken_request.release();

return std::move(result_list);
return result_list;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like there's a new clang warning here.

https://ci.ros2.org/job/ci_osx/11897/clang-tidy/new/source.dce8798b-3637-471a-8bb9-b4b3454f5026/#156

I think it can be fixed by returning result_tuple instead of result_list (to match the py::tuple return type)

Signed-off-by: ahcorde <ahcorde@gmail.com>
Copy link
Copy Markdown
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

LGTM with a rebase and green CI

@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Apr 2, 2021

CI (build: --packages-above-and-dependencies rclpy test: --packages-above rclpy)

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

Copy link
Copy Markdown
Contributor

@azeey azeey left a comment

Choose a reason for hiding this comment

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

LGTM! Just a couple of minor comments.

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Apr 2, 2021

The Windows failure is unrelated. Merging!

@ahcorde ahcorde merged commit c239666 into master Apr 2, 2021
@ahcorde ahcorde deleted the ahcorde/pybind-service_t branch April 2, 2021 20:37
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.

3 participants