You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//// This plugin uses Tokio (https://tokio.rs/) for asynchronous programming.
129
+
//// When running as a plugin within a Zenoh router, the plugin creates its own Runtime managing 2 pools of threads:
130
+
//// - worker threads for non-blocking tasks. Those threads are spawn at Runtime creation.
131
+
//// - blocking threads for blocking tasks (e.g. I/O). Those threads are spawn when needed.
132
+
//// For more details see https://github.com/tokio-rs/tokio/discussions/3858#discussioncomment-869878
133
+
//// When running as a standalone bridge the Zenoh Session's Runtime is used and can be configured via the
134
+
//// `ZENOH_RUNTIME` environment variable. See https://docs.rs/zenoh-runtime/latest/zenoh_runtime/enum.ZRuntime.html
135
+
////
136
+
137
+
//// work_thread_num: The number of worker thread in the asynchronous runtime will use. (default: 2)
138
+
//// Only for a plugin, no effect on a bridge.
139
+
// work_thread_num: 2,
140
+
141
+
//// max_block_thread_num: The number of blocking thread in the asynchronous runtime will use. (default: 50)
142
+
//// Only for a plugin, no effect on a bridge.
143
+
// max_block_thread_num: 50,
144
+
},
145
+
146
+
////
147
+
//// REST API configuration (active only if this part is defined)
148
+
////
149
+
// rest: {
150
+
// ////
151
+
// //// The HTTP port number (for all network interfaces).
152
+
// //// You can bind on a specific interface setting a "<local_ip>:<port>" string.
153
+
// ////
154
+
// http_port: 8000,
155
+
// },
156
+
},
157
+
158
+
////
159
+
//// Zenoh related configuration.
160
+
//// Only the most relevant sections are displayed here.
161
+
//// For a complete view of configuration possibilities, see https://github.com/eclipse-zenoh/zenoh/blob/main/DEFAULT_CONFIG.json5
162
+
////
163
+
164
+
/// The identifier (as unsigned 128bit integer in hexadecimal lowercase - leading zeros are not accepted)
165
+
/// that zenoh runtime will use.
166
+
/// If not set, a random unsigned 128bit integer will be used.
167
+
/// WARNING: this id must be unique in your zenoh network.
168
+
// id: "1234567890abcdef",
169
+
170
+
////
171
+
//// mode: The bridge's mode (router, peer or client)
172
+
////
173
+
//mode: "router",
174
+
175
+
////
176
+
//// Which endpoints to connect to. E.g. tcp/localhost:7447.
177
+
//// By configuring the endpoints, it is possible to tell zenoh which remote router or other zenoh-bridge-ros2dds to connect to at startup.
178
+
////
179
+
connect: {
180
+
endpoints: [
181
+
// "<proto>/<ip>:<port>"
182
+
]
183
+
},
184
+
185
+
////
186
+
//// Which endpoints to listen on.
187
+
//// By configuring the endpoints, it is possible to tell zenoh which are the endpoints that other routers,
188
+
//// peers, or client can use to establish a zenoh session.
189
+
//// In 'router' mode (default) the zenoh-bridge-ros2dds is listening by default on `tcp/0.0.0.0:7447` (`0.0.0.0` meaning all the available network interfaces)
190
+
////
191
+
// listen: {
192
+
// endpoints: [
193
+
// // "<proto>/<ip>:<port>"
194
+
// ]
195
+
//},
196
+
197
+
////
198
+
//// Configure the scouting mechanisms and their behaviours
199
+
////
200
+
//scouting: {
201
+
// /// The UDP multicast scouting configuration.
202
+
// multicast: {
203
+
// /// Whether multicast scouting is enabled or not
204
+
// enabled: true,
205
+
// /// The socket which should be used for multicast scouting
206
+
// address: "224.0.0.224:7446",
207
+
// /// The network interface which should be used for multicast scouting
208
+
// interface: "auto", // If not set or set to "auto" the interface if picked automatically
209
+
// /// Which type of Zenoh instances to automatically establish sessions with upon discovery on UDP multicast.
210
+
// /// Accepts a single value or different values for router, peer and client.
211
+
// /// Each value is an array containing values "peer", "router" and "client".
0 commit comments