This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
dora-rs
/
dora
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
124
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Add a zenoh logger executable to debug the missed stop messages
tags/v0.0.0-test.4
Philipp Oppermann
3 years ago
parent
9d1c7ad199
commit
2a272e349c
4 changed files
with
30 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
Cargo.lock
+1
-0
Cargo.toml
+10
-0
zenoh-logger/Cargo.toml
+11
-0
zenoh-logger/src/main.rs
+ 8
- 0
Cargo.lock
View File
@@ -3044,6 +3044,14 @@ dependencies = [
"zenoh-sync",
]
[[package]]
name = "zenoh-logger"
version = "0.1.0"
dependencies = [
"zenoh",
"zenoh-config",
]
[[package]]
name = "zenoh-macros"
version = "0.6.0-dev.0"
+ 1
- 0
Cargo.toml
View File
@@ -14,6 +14,7 @@ members = [
"common",
"runtime",
"runtime/examples/example-operator",
"zenoh-logger",
]
[dependencies]
+ 10
- 0
zenoh-logger/Cargo.toml
View File
@@ -0,0 +1,10 @@
[package]
name = "zenoh-logger"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
zenoh = { git = "https://github.com/eclipse-zenoh/zenoh.git" }
zenoh-config = { git = "https://github.com/eclipse-zenoh/zenoh.git" }
+ 11
- 0
zenoh-logger/src/main.rs
View File
@@ -0,0 +1,11 @@
use zenoh::prelude::{Receiver, ZFuture};
fn main() {
let zenoh = zenoh::open(zenoh_config::Config::default()).wait().unwrap();
let mut sub = zenoh.subscribe("/**").wait().unwrap();
loop {
let msg = sub.receiver().recv().unwrap();
println!("{}", msg.key_expr);
}
}
Write
Preview
Loading…
Cancel
Save