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

Create a point cloud iterator package #245

Open
nnmm opened this issue Aug 2, 2022 · 3 comments
Open

Create a point cloud iterator package #245

nnmm opened this issue Aug 2, 2022 · 3 comments

Comments

@nnmm
Copy link
Contributor

nnmm commented Aug 2, 2022

There should be something like https://gitlab.com/ApexAI/point_cloud_msg_wrapper in the Rust ecosystem – i.e. a convenient and as-safe-as-possible way to interact with point clouds that doesn't incur a copy.

This requires good knowledge of unsafe and transmutation.

@nnmm
Copy link
Contributor Author

nnmm commented Aug 2, 2022

fyi @ruffsl

@stelzo
Copy link

stelzo commented May 1, 2023

@nnmm I created something like this last week for using it with rosrust but it is a general solution for sensor_msgs/PointCloud2 and rosrust_msg is just an optional feature. There is also no unsafe at all. It should work with other packages as long as the byte buffer data can be easily converted to Vec without a copy. Here it is: https://github.com/stelzo/ros_pointcloud2.

Hopefully this helps - I started learning Rust 2 months ago, so the code is probably not up to some standards but I am willing to learn!

@stelzo
Copy link

stelzo commented Mar 25, 2024

ros_pointcloud2 supports rclrs now. A better integration could be made when #11 is done. So I think this issue can be closed @nnmm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants