Skip to content

Convert rclpy client functions to pybind11 - #701

Merged
cottsay merged 9 commits into
masterfrom
cottsay/pybind11_client
Mar 9, 2021
Merged

cottsay merged 9 commits into
masterfrom
cottsay/pybind11_client

Conversation

@cottsay

@cottsay cottsay commented Mar 8, 2021 •

Copy link
Copy Markdown
Member

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

@cottsay
cottsay requested a review from sloretz March 8, 2021 20:47
@cottsay cottsay self-assigned this Mar 8, 2021
@cottsay

cottsay commented Mar 8, 2021

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

Signed-off-by: Scott K Logan <[email protected]>
@cottsay

cottsay commented Mar 9, 2021

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

Comment thread rclpy/src/rclpy/client.cpp Outdated
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.

Comment thread rclpy/src/rclpy/client.cpp Resolved
@cottsay
cottsay force-pushed the cottsay/pybind11_client branch from fbe37cd to 0a4f62d Compare March 9, 2021 04:01
@cottsay

cottsay commented Mar 9, 2021

Copy link
Copy Markdown
Member Author

@ros-pull-request-builder retest this please

@cottsay
cottsay requested a review from sloretz March 9, 2021 04:11
Comment thread rclpy/src/rclpy/client.cpp Resolved
Signed-off-by: Scott K Logan <[email protected]>
{
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