Skip to content

Commit

Permalink
pass qos to rmw create pub/sub (ros2#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood authored Jun 21, 2016
1 parent 8cd81a5 commit 5733d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rcl/src/rcl/publisher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion rcl/src/rcl/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5733d36

Please sign in to comment.