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

Include node namespaces in get_node_names() #148

Merged
merged 4 commits into from
Sep 6, 2018

Conversation

mjcarroll
Copy link
Member

@mjcarroll mjcarroll commented Aug 28, 2018

Connects to #142

@mjcarroll mjcarroll added the in progress Actively being worked on (Kanban column) label Aug 28, 2018
@@ -473,7 +473,8 @@ RMW_WARN_UNUSED
rmw_ret_t
rmw_get_node_names(
const rmw_node_t * node,
rcutils_string_array_t * node_names);
rcutils_string_array_t * node_names,
rcutils_string_array_t * node_namespaces);
Copy link
Member

Choose a reason for hiding this comment

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

With the signature becoming more complicated can you please add a docblock to document the semantic of these arguments.

@mjcarroll
Copy link
Member Author

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

/**
* This function will return a list of node names and a list of node namespaces
* that are discovered via the middleware. The list of names and namespaces
* will be the same length.
Copy link
Member

Choose a reason for hiding this comment

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

While kind of obvious maybe the doc should be explicit that these two lists represent pairs of namespace and name for each node.

@@ -468,12 +468,40 @@ rmw_wait(
rmw_wait_set_t * wait_set,
const rmw_time_t * wait_timeout);

/// Return a list of node name and namespaces discovered via a node.
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: either node names and namespaces or node name and namespace pairs?

@mjcarroll
Copy link
Member Author

Enough changes to justify running CI again:

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

@mjcarroll
Copy link
Member Author

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

@mjcarroll
Copy link
Member Author

I fixed the new warnings in rmw_fastrtps

@mjcarroll mjcarroll merged commit e185d65 into master Sep 6, 2018
@mjcarroll mjcarroll removed the in progress Actively being worked on (Kanban column) label Sep 6, 2018
@mjcarroll mjcarroll deleted the get_node_names_and_namespaces branch September 6, 2018 13:06
dabonnie pushed a commit to aws-ros-dev/rmw that referenced this pull request Apr 2, 2019
* Include node namespaces in get_node_names().

* Update documentation for get_node_names.

* Refinement/clarification of documentation.

* wrap after sentence

Signed-off-by: Devin Bonnie <dbbonnie@amazon.com>
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