Skip to content
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

Adds a Zenoh Implementation Designed to work with zenoh-ros1-bridge #209

Merged
merged 18 commits into from
Dec 9, 2024

Conversation

Carter12s
Copy link
Collaborator

@Carter12s Carter12s commented Dec 2, 2024

Description

Adds a roslibrust_zenoh crate (not yet published) that provides an implementation of the TopicProvider trait for working with zenoh_ros1_bridge.

Fixes

Checklist

  • Update CHANGELOG.md

@ssnover
Copy link
Collaborator

ssnover commented Dec 2, 2024

Description on this looks pretty sus, I don't know...

@Carter12s
Copy link
Collaborator Author

lol, sorry you looked so fast, I started putting this up for review and then decided to add services as well.

Close your eyes for a bit

@Carter12s
Copy link
Collaborator Author

Okay I hit a bug when dealing with services (#210) so I'm going to punt on that and go ahead and merge this.

@Carter12s Carter12s mentioned this pull request Dec 3, 2024
1 task
@Carter12s
Copy link
Collaborator Author

#210 has unblocked the services impl for this, so I'm plowing forward with adding that and cleaning this up.

@Carter12s
Copy link
Collaborator Author

@ssnover Okay this is really ready for a review now.

I haven't added CI tests yet, but have tested everything manually for first pass.

Note: this ONLY works with zenoh-bridge-ros1 and not "generic zenoh".

roslibrust_zenoh/Cargo.toml Outdated Show resolved Hide resolved
roslibrust/examples/ros1_service_server.rs Outdated Show resolved Hide resolved
@@ -730,7 +730,7 @@ pub fn generate_rust_ros_message_definitions(
}
Ok(())
})
.collect::<Result<_, Error>>()?;
.collect::<Result<(), Error>>()?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note these changes were the result of new Rust lint about deprecation of implicit conversion of the never type to null type ! -> ()

roslibrust_zenoh/examples/service_call.rs Show resolved Hide resolved
roslibrust_zenoh/src/lib.rs Outdated Show resolved Hide resolved
@lucasw
Copy link
Contributor

lucasw commented Dec 4, 2024

Note: this ONLY works with zenoh-bridge-ros1 and not "generic zenoh".

Is it possible to make that configurable later, be able to turn off the zenoh-bridge-ros1 features? (I saw the topic mangling but I'm curious what else is involved)

@Carter12s
Copy link
Collaborator Author

Note: this ONLY works with zenoh-bridge-ros1 and not "generic zenoh".

Is it possible to make that configurable later, be able to turn off the zenoh-bridge-ros1 features? (I saw the topic mangling but I'm curious what else is involved)

There are only two things that really tie this to zenoh-bridge-ros1: the topic mangling, and the serde_rosmsg usage for serializing and de-serializing. So it is definitely possible to make a more generic version, but at that point I'm not sure why someone isn't directly using the Zenoh API? As far as I know no-one in the Zenoh ecosystem is using the TCPROS serialization format for message passing (and frankly I wouldn't recommend it).

I built this mostly to work around this issue: eclipse-zenoh/zenoh-plugin-ros1#131.

@Carter12s Carter12s merged commit 81b4a3e into master Dec 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants