Skip to content

Commit

Permalink
Make choice of query_target explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Aug 29, 2024
1 parent 41ff2b9 commit 57d1efd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,8 @@ rmw_create_subscription(
// This allows us to selectively query certain PublicationCaches when defining the
// set_querying_subscriber_callback below.
sub_options.query_accept_replies = ZCU_REPLY_KEYEXPR_ANY;
// As this initial query is now using a "*", the query target is not COMPLETE.
sub_options.query_target = Z_QUERY_TARGET_ALL;
// We set consolidation to none as we need to receive transient local messages
// from a number of publishers. Eg: To receive TF data published over /tf_static
// by various publishers.
Expand Down

0 comments on commit 57d1efd

Please sign in to comment.