Skip to content

Convert rclpy client functions to pybind11#701

Merged
cottsay merged 9 commits intomasterfrom
cottsay/pybind11_client
Mar 9, 2021
Merged

Convert rclpy client functions to pybind11#701
cottsay merged 9 commits intomasterfrom
cottsay/pybind11_client

Conversation

@cottsay
Copy link
Copy Markdown
Member

@cottsay cottsay commented Mar 8, 2021

Part of #665

Converts:

  • rclpy_create_client
  • rclpy_send_request
  • rclpy_service_server_is_available
  • rclpy_take_response

CI (build: --packages-up-to rclpy test: --packages-select rclpy)

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

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay requested a review from sloretz March 8, 2021 20:47
@cottsay cottsay self-assigned this Mar 8, 2021
cottsay added 2 commits March 8, 2021 15:07
Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay
Copy link
Copy Markdown
Member Author

cottsay commented Mar 8, 2021

@ros-pull-request-builder retest this please

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay
Copy link
Copy Markdown
Member Author

cottsay commented Mar 9, 2021

@ros-pull-request-builder retest this please

return pycli;
}

uint64_t
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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, good catch. Done in 97b35b8.

cottsay added 3 commits March 8, 2021 19:56
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay force-pushed the cottsay/pybind11_client branch from fbe37cd to 0a4f62d Compare March 9, 2021 04:01
@cottsay
Copy link
Copy Markdown
Member Author

cottsay commented Mar 9, 2021

@ros-pull-request-builder retest this please

@cottsay cottsay requested a review from sloretz March 9, 2021 04:11
Signed-off-by: Scott K Logan <logans@cottsay.net>
Signed-off-by: Scott K Logan <logans@cottsay.net>
{
auto cli = static_cast<rclpy_client_t *>(p);
if (!cli) {
// Warning should use line number of the current stack frame
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.

There was a PyErr_Clear() in the _rclpy.c code. I assume it was removed on purpose?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It doesn't really make sense to me why that was there in the first place. None of the other _rclpy_destroy_* functions have it.

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