Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Include node namespaces in get_node_names #243

Merged
merged 3 commits into from Sep 6, 2018

Conversation

mjcarroll
Copy link
Member

@mjcarroll mjcarroll commented Aug 28, 2018

Connects to ros2/rmw#142

@mjcarroll mjcarroll added the in progress Actively being worked on (Kanban column) label Aug 28, 2018
dp_factory->get_default_participant_qos(dpqos);
dpqos.user_data.value.length(static_cast<DDS::ULong>(length));
snprintf(reinterpret_cast<char *>(dpqos.user_data.value.get_buffer(false)), length, "name=%s;",
name);
snprintf(reinterpret_cast<char *>(dpqos.user_data.value.get_buffer(false)),
Copy link
Member

Choose a reason for hiding this comment

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

Return code.

rcutils_ret = rcutils_string_array_init(&ns_list, length, &allocator);
if (rcutils_ret != RCUTILS_RET_OK) {
RMW_SET_ERROR_MSG(rcutils_get_error_string_safe())
return rmw_convert_rcutils_ret_to_rmw_ret(rcutils_ret);
Copy link
Member

Choose a reason for hiding this comment

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

I think node_list needs to be cleaned up here.

if (rcutils_ret != RCUTILS_RET_OK) {
RCUTILS_LOG_ERROR_NAMED(
"rmw_opensplice_cpp",
"failed to cleanup during error handling: %s", rcutils_get_error_string_safe())
Copy link
Member

Choose a reason for hiding this comment

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

Should the return code not change here if the clean up failed?

@mjcarroll mjcarroll merged commit e18dcf0 into master Sep 6, 2018
@mjcarroll mjcarroll deleted the get_node_names_and_namespaces branch September 6, 2018 13:04
@mjcarroll mjcarroll removed the in progress Actively being worked on (Kanban column) label Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants