Skip to content

Use py::class_ for rmw_service_info_t and rmw_request_id_t - #748

Merged
azeey merged 1 commit into
masterfrom
azeey/pybind11_rmw_service_info_t
Apr 2, 2021
Merged

azeey merged 1 commit into
masterfrom
azeey/pybind11_rmw_service_info_t

Conversation

@azeey

@azeey azeey commented Mar 31, 2021

Copy link
Copy Markdown
Contributor

Part of #665

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

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

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

@ahcorde ahcorde 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, but maybe @sloretz or @hidmic should give a second look

@sloretz sloretz mentioned this pull request Apr 1, 2021
32 of 34 tasks
@azeey

azeey commented Apr 1, 2021

Copy link
Copy Markdown
Contributor Author

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

azeey commented Apr 2, 2021

Copy link
Copy Markdown
Contributor Author

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