Skip to content

Convert Service to use C++ Class - #747

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

ahcorde merged 8 commits into
masterfrom
ahcorde/pybind-service_t

Conversation

@ahcorde

@ahcorde ahcorde commented Mar 31, 2021

Copy link
Copy Markdown
Contributor

Related to #665

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

Signed-off-by: ahcorde [email protected]

@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
32 of 34 tasks
@ahcorde

ahcorde commented Apr 1, 2021

Copy link
Copy Markdown
Contributor Author

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

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

@sloretz sloretz left a comment

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.

Looking good with a few more comments addressed!

Comment thread rclpy/src/rclpy/service.cpp Resolved
Comment thread rclpy/src/rclpy/service.cpp Resolved
Comment thread rclpy/src/rclpy/service.hpp Resolved
Comment thread rclpy/src/rclpy/service.hpp Resolved
Signed-off-by: ahcorde <[email protected]>
@ahcorde

ahcorde commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

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

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

Comment thread rclpy/src/rclpy/service.cpp Outdated
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 <[email protected]>

@sloretz sloretz left a comment

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.

LGTM with a rebase and green CI

@ahcorde

ahcorde commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

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

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

@azeey azeey left a comment

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.

LGTM! Just a couple of minor comments.

Comment thread rclpy/rclpy/service.py Resolved
Comment thread rclpy/test/test_destruction.py Resolved
Signed-off-by: ahcorde <[email protected]>
@ahcorde

ahcorde commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

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