pass qos to rmw create pub/sub (#65)

This commit is contained in:
William Woodall 2016-06-21 14:53:11 -07:00 committed by GitHub
parent 8cd81a5a9a
commit 5733d36ed2
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ rcl_publisher_init(
rcl_node_get_rmw_handle(node),
type_support,
topic_name,
&rmw_qos_profile_default);
&(options->qos));
if (!publisher->impl->rmw_handle) {
RCL_SET_ERROR_MSG(rmw_get_error_string_safe());
goto fail;

View file

@ -70,7 +70,7 @@ rcl_subscription_init(
rcl_node_get_rmw_handle(node),
type_support,
topic_name,
&rmw_qos_profile_default,
&(options->qos),
options->ignore_local_publications);
if (!subscription->impl->rmw_handle) {
RCL_SET_ERROR_MSG(rmw_get_error_string_safe());