-
Notifications
You must be signed in to change notification settings - Fork 4
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
Trying to convert from Pointcloud2Msg to r2r::msg::PointCloud2 #21
Comments
Hi! Did you activate the
A full list of features can be found in the docs. Since you said you are new to Rust, I think that could be the problem. Every library has the ability to give features that are mostly additive, so you could add |
The feature is active |
Ok, I don't know enough about your code to see what happened. Could you share more? You also can compare it with the r2r CI test. |
I found the problem! The problem was that the version imported by cargo for r2r was 9.0.0, I had not specified a certain version, and the dependency for ros_pointcloud2 was 0.8.4 so something weird happend there- So I specified the version to download for r2r to 0.8.4 and now it works! Thank you for your work, now the package works great |
I just had the same problem with a different tool (tf_r2r) in a node of mine and thought this package will have the same problem for diverging major versions. Since the message types are highly likely to not change over time. I could do some macro things here, but that would still be hacky and won't assure compatibility. I think a better solution would be for the ROS client implementations to depend on a centralized message crate(s) for the system messages. Then we could have tooling regardless of the ROS library. This is also discussed here. For now, I'll update the dependency to the newest version. You can change to |
Cool thank you |
Hi
Im trying publish a PointCloud2 message in the r2r library, but I am having trouble getting it to compile correctly.
xyz is a vector with PointXYZ types. When I compile I get the error:
I have imported
use ros_pointcloud2::prelude::*;
use r2r::{
QosProfile, sensor_msgs::msg::PointCloud2,
};
I am using 0.5.0-rc.1 since there were going to be so many changes anyway.
Im a new to Rust so I am not sure what exactly I am doing wrong
Thank you!
The text was updated successfully, but these errors were encountered: