Skip to content

Use py::class_ for rmw_service_info_t and rmw_request_id_t#748

Merged
azeey merged 1 commit intomasterfrom
azeey/pybind11_rmw_service_info_t
Apr 2, 2021
Merged

Use py::class_ for rmw_service_info_t and rmw_request_id_t#748
azeey merged 1 commit intomasterfrom
azeey/pybind11_rmw_service_info_t

Conversation

@azeey
Copy link
Copy Markdown
Contributor

@azeey azeey commented Mar 31, 2021

Part of #665

This refactors the code using rmw_service_info_t and rmw_request_id_t to use a py::class_ definition.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
if (!header) {
throw std::bad_alloc();
}
rmw_service_info_t header;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I opted for using a variable on the stack since this is a fairly small struct. Let me know if heap allocation would be preferred.

@azeey
Copy link
Copy Markdown
Contributor Author

azeey commented Mar 31, 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

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe @sloretz or @hidmic should give a second look

@sloretz sloretz mentioned this pull request Apr 1, 2021
34 tasks
@azeey
Copy link
Copy Markdown
Contributor Author

azeey commented Apr 1, 2021

There were CI failures that I believe were fixed in other repos.
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
Copy link
Copy Markdown
Contributor Author

azeey commented Apr 2, 2021

The macOS build failure and the windows warning are unrelated. Merging.

@azeey azeey merged commit 946c8e0 into master Apr 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the azeey/pybind11_rmw_service_info_t branch April 2, 2021 15:14
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