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

update Rerun API V0.18.2 #16

Merged
merged 7 commits into from
Oct 3, 2024
Merged

update Rerun API V0.18.2 #16

merged 7 commits into from
Oct 3, 2024

Conversation

tfoldi
Copy link
Contributor

@tfoldi tfoldi commented Oct 2, 2024

bump API version, update log calls, fix #17

@tfoldi tfoldi changed the title V0.18.2 update Rerun API V0.18.2 Oct 2, 2024
@tfoldi tfoldi closed this Oct 2, 2024
@tfoldi tfoldi reopened this Oct 2, 2024
rec.log(entity_path, rerun::Image(tensor_shape(img), rerun::TensorBuffer::u8(img)));
rec.log(
entity_path,
rerun::Image::from_rgb24(rerun::Collection<uint8_t>(img), width_height(img))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I honestly don't know what is the proper way to use CollectionAdapters here. Without contstructor/casting it does not compile and I yet to find a recent example that works

@tfoldi
Copy link
Contributor Author

tfoldi commented Oct 3, 2024

since I was here I fixed #17 and added rgb colormap support for PointCloud2 maps (checked with realsense or orbtec)

Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Code LGTM

rec.log(entity_path, rerun::Image(tensor_shape(img), rerun::TensorBuffer::u8(img)));
rec.log(
entity_path,
rerun::Image::from_rgb24(rerun::Collection<uint8_t>(img), width_height(img))
Copy link
Member

Choose a reason for hiding this comment

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

Seems related to this issue:

But I think this code this is fine, since it borrows data that lives longer than rerun::Image

@jleibs jleibs merged commit d4958e8 into rerun-io:main Oct 3, 2024
4 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.

Empty points logged before the real points (PointCloud2)
3 participants