Set domain id to 0 if it is RMW_DEFAULT_DOMAIN_ID (#719)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
f172071469
commit
fd5e56a0e6
2 changed files with 6 additions and 0 deletions
|
@ -152,6 +152,9 @@ rcl_init(
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (RMW_DEFAULT_DOMAIN_ID == *domain_id) {
|
||||||
|
*domain_id = 0u;
|
||||||
|
}
|
||||||
|
|
||||||
rmw_localhost_only_t * localhost_only =
|
rmw_localhost_only_t * localhost_only =
|
||||||
&context->impl->init_options.impl->rmw_init_options.localhost_only;
|
&context->impl->init_options.impl->rmw_init_options.localhost_only;
|
||||||
|
|
|
@ -260,6 +260,9 @@ rcl_node_init(
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (RMW_DEFAULT_DOMAIN_ID == domain_id) {
|
||||||
|
domain_id = 0u;
|
||||||
|
}
|
||||||
RCUTILS_LOG_DEBUG_NAMED(ROS_PACKAGE_NAME, "Using domain ID of '%zu'", domain_id);
|
RCUTILS_LOG_DEBUG_NAMED(ROS_PACKAGE_NAME, "Using domain ID of '%zu'", domain_id);
|
||||||
node->impl->actual_domain_id = domain_id;
|
node->impl->actual_domain_id = domain_id;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue