Skip to content

Commit fb9736d

Browse files
Merge pull request #253 from traversaro/addzenoh
Add rmw_zenoh_cpp and de-vendor zenoh_cpp_vendor
2 parents ff88d81 + 1c18078 commit fb9736d

9 files changed

+69
-1
lines changed

conda_build_config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ cxx_compiler:
4141
cxx_compiler_version: # [unix]
4242
- 13 # [linux]
4343
- 18 # [osx]
44+
45+
libzenohc:
46+
- 1.1.1
47+
libzenohcxx:
48+
- 1.1.1

patch/dependencies.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,8 @@ rosx_introspection:
179179
octomap_ros:
180180
add_host: ["octomap"]
181181
octomap_rviz_plugins:
182-
add_host: ["octomap"]
182+
add_host: ["octomap"]
183+
zenoh_cpp_vendor:
184+
add_host: ["libzenohc", "libzenohcxx"]
185+
rmw_zenoh_cpp:
186+
add_host: ["libzenohc", "libzenohcxx"]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
diff --git a/zenoh_cpp_vendor/CMakeLists.txt b/zenoh_cpp_vendor/CMakeLists.txt
2+
index 2d3ae046..de971841 100644
3+
--- a/zenoh_cpp_vendor/CMakeLists.txt
4+
+++ b/zenoh_cpp_vendor/CMakeLists.txt
5+
@@ -10,35 +10,10 @@ endif()
6+
find_package(ament_cmake REQUIRED)
7+
find_package(ament_cmake_vendor_package REQUIRED)
8+
9+
-# Disable default features and enable only the most useful ones. This reduces build time and footprint.
10+
-# For a complete list of features see: https://github.com/eclipse-zenoh/zenoh/blob/main/zenoh/Cargo.toml
11+
-# Note: We separate the two args needed for cargo with "$<SEMICOLON>" and not ";" as the
12+
-# latter is a list separater in cmake and hence the string will be split into two
13+
-# when expanded.
14+
-set(ZENOHC_CARGO_FLAGS "--no-default-features$<SEMICOLON>--features=shared-memory zenoh/transport_compression zenoh/transport_tcp zenoh/transport_tls")
15+
-
16+
-ament_vendor(zenoh_c_vendor
17+
- VCS_URL https://github.com/eclipse-zenoh/zenoh-c.git
18+
- VCS_VERSION 57d5e4d31d9b38fef34d7bcad3d3e54869c4ce73
19+
- CMAKE_ARGS
20+
- "-DZENOHC_CARGO_FLAGS=${ZENOHC_CARGO_FLAGS}"
21+
- "-DZENOHC_BUILD_WITH_UNSTABLE_API=TRUE"
22+
- "-DZENOHC_CUSTOM_TARGET=${ZENOHC_CUSTOM_TARGET}"
23+
-)
24+
-
25+
+find_package(zenohc REQUIRED)
26+
ament_export_dependencies(zenohc)
27+
28+
-# Set VCS_VERSION to include latest changes from zenoh-c to benefit from :
29+
-# - https://github.com/eclipse-zenoh/zenoh-cpp/pull/342 (Fix include what you use)
30+
-ament_vendor(zenoh_cpp_vendor
31+
- VCS_URL https://github.com/eclipse-zenoh/zenoh-cpp
32+
- VCS_VERSION 964b64dc8b935a43147287199e7bb12da7b141e6
33+
- CMAKE_ARGS
34+
- -DZENOHCXX_ZENOHC=OFF
35+
-)
36+
-
37+
-externalproject_add_stepdependencies(zenoh_cpp_vendor configure zenoh_c_vendor)
38+
-
39+
+find_package(zenohcxx REQUIRED)
40+
ament_export_dependencies(zenohcxx)
41+
42+
ament_package()

robostack.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ cartographer:
4343
robostack: [cartographer]
4444
ca-certificates:
4545
robostack: [ca-certificates]
46+
cargo:
47+
robostack: [rust]
4648
clang-format:
4749
robostack: [clang-format]
4850
clang-tidy:

vinca_linux_64.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ packages_select_by_deps:
181181
# requested in https://github.com/RoboStack/ros-humble/issues/249
182182
- twist_mux
183183

184+
# requested in https://github.com/RoboStack/ros-humble/issues/252
185+
- rmw_zenoh_cpp
186+
184187
# ----- end of package support -----
185188

186189
# - rtabmap

vinca_linux_aarch64.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ packages_select_by_deps:
110110
# requested in https://github.com/RoboStack/ros-humble/issues/249
111111
- twist_mux
112112

113+
# requested in https://github.com/RoboStack/ros-humble/issues/252
114+
- rmw_zenoh_cpp
115+
113116
# Used to work, now needs fixes
114117
# - rtabmap
115118
# - webots-ros2

vinca_osx.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ packages_select_by_deps:
132132
# requested in https://github.com/RoboStack/ros-humble/issues/249
133133
- twist_mux
134134

135+
# requested in https://github.com/RoboStack/ros-humble/issues/252
136+
- rmw_zenoh_cpp
137+
135138
patch_dir: patch
136139
rosdistro_snapshot: rosdistro_snapshot.yaml

vinca_osx_arm64.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,8 @@ packages_select_by_deps:
122122
# requested in https://github.com/RoboStack/ros-humble/issues/249
123123
- twist_mux
124124

125+
# requested in https://github.com/RoboStack/ros-humble/issues/252
126+
- rmw_zenoh_cpp
127+
125128
patch_dir: patch
126129
rosdistro_snapshot: rosdistro_snapshot.yaml

vinca_win.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,8 @@ packages_select_by_deps:
246246
# requested in https://github.com/RoboStack/ros-humble/issues/249
247247
- twist_mux
248248

249+
# requested in https://github.com/RoboStack/ros-humble/issues/252
250+
- rmw_zenoh_cpp
251+
249252
patch_dir: patch
250253
rosdistro_snapshot: rosdistro_snapshot.yaml

0 commit comments

Comments
 (0)