-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align to v1.6.0-alpha.3 spec #26
Align to v1.6.0-alpha.3 spec #26
Conversation
example-utils/integration-test-utils/src/integration_test_utils.rs
Outdated
Show resolved
Hide resolved
* Update to up-rust crates.io release * Update up-linux-streamer and up-linux-streamer-plugin * Update examples * Update to match Zenoh 1.0.0-alpha.6 API * Zenoh Config ListenConfig based on alpha.6 API * Add Zenoh plugins feature as it's now behind a feature flag * Update UPTransportZenoh uses since it takes a "uri" instead of a UUri * Made ustreamer_uuri configurable from config file Implements [#25]
39ddd8a
to
fcb39e1
Compare
|
||
// Add the IPv4 endpoint to the Zenoh configuration | ||
zenoh_config | ||
.listen | ||
.endpoints | ||
.push(ipv4_endpoint.expect("FAIL")); | ||
.set_endpoints(zenoh::config::ModeDependentValue::Unique(vec![ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a mouthful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe should import the enum to shorten the line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
trace!("streamer_uuri: {streamer_uuri:#?}"); | ||
let streamer_uri: String = (&streamer_uuri).into(); | ||
// TODO: Remove this once the error reporting from UPTransportZenoh no longer "hides" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got your point here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
authority: "linux", | ||
// Determines the ue_id of the streamer | ||
// Used when initializing host transport | ||
ue_id: 78, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you are using json5, you might also want to write this as a hex number (as we do all across the Rust code) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point
authority: "linux", | ||
// Determines the ue_id of the streamer | ||
// Used when initializing host transport | ||
ue_id: 78, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see previous commment
if let Some(first_msg) = group.first() { | ||
let mut prev_msb = first_msg.attributes.as_ref().unwrap().id.msb; | ||
let mut prev_timestamp = first_msg.attributes.as_ref().unwrap().id.msb >> 16; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe https://docs.rs/up-rust/0.1.5/up_rust/struct.UUID.html#method.get_time comes in handy here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I should use this. Will do in follow-up
Implements [#25]
TODO: