Skip to content

Commit

Permalink
Enable Zenoh UDP transport (#486)
Browse files Browse the repository at this point in the history
(cherry picked from commit 299ddc7)
  • Loading branch information
Hugal31 authored and mergify[bot] committed Feb 28, 2025
1 parent ecf21d4 commit edb39c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ std::shared_ptr<PublisherData> PublisherData::make(
if (adapted_qos_profile.history == RMW_QOS_POLICY_HISTORY_KEEP_ALL) {
pub_opts.congestion_control = Z_CONGESTION_CONTROL_BLOCK;
}
} else {
pub_opts.reliability = Z_RELIABILITY_BEST_EFFORT;
}
adv_pub_opts.publisher_options = pub_opts;

Expand Down
2 changes: 1 addition & 1 deletion zenoh_cpp_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ find_package(ament_cmake_vendor_package REQUIRED)
# Note: We separate the two args needed for cargo with "$<SEMICOLON>" and not ";" as the
# latter is a list separater in cmake and hence the string will be split into two
# when expanded.
set(ZENOHC_CARGO_FLAGS "--no-default-features$<SEMICOLON>--features=shared-memory zenoh/transport_compression zenoh/transport_tcp zenoh/transport_tls")
set(ZENOHC_CARGO_FLAGS "--no-default-features$<SEMICOLON>--features=shared-memory zenoh/transport_compression zenoh/transport_tcp zenoh/transport_udp zenoh/transport_tls")

# Set VCS_VERSION to include latest changes from zenoh/zenoh-c/zenoh-cpp to benefit from :
# - https://github.com/eclipse-zenoh/zenoh/pull/1742, https://github.com/eclipse-zenoh/zenoh/pull/1765
Expand Down

0 comments on commit edb39c0

Please sign in to comment.