Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document out parameters for rcl_get_node_names and rcl_get_node_names_with_enclaves #1137

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

FelixPe
Copy link
Contributor

@FelixPe FelixPe commented Mar 15, 2024

No description provided.

Signed-off-by: Felix Penzlin <eeefix@gmail.com>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Thanks for these improvements.

I've left a few wording changes.

rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: Felix Penzlin <eeefix@gmail.com>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Sorry, two more changes for the linters, then I'll run CI.

rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
rcl/include/rcl/graph.h Outdated Show resolved Hide resolved
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: Felix Penzlin <eeefix@gmail.com>
@FelixPe
Copy link
Contributor Author

FelixPe commented Mar 15, 2024

@clalancette Regarding the rcl_allocator_t parameter for rcl_get_node_names in graph.h it looks inconsistent to me: Why is it given for rcl_get_topic_names_and_types as pointer type rcl_allocator_t* ?

(The allocator is not yet in use for rcl_get_node_names, but it might improve consistency to switch to the pointer type here as well.)

@clalancette
Copy link
Contributor

@clalancette Regarding the rcl_allocator_t parameter for rcl_get_node_names in graph.h it looks inconsistent to me: Why is it given for rcl_get_topic_names_and_types as pointer type rcl_allocator_t* ?

This is an ongoing discussion; see #264 . There are tradeoffs between having the parameter be a pointer (where we only have to copy the pointer, but then have to check for NULL pointer in the callee), and having the parameter be a structure (where we have to copy the whole structure, but then don't have to check for NULL in the callee). We still haven't resolved it one way or the other, so I don't think we should get bogged down in it here.

@clalancette
Copy link
Contributor

clalancette commented Mar 15, 2024

CI:

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

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI

@clalancette clalancette merged commit ae0296f into ros2:rolling Mar 18, 2024
2 of 3 checks passed
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.

None yet

3 participants