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

Sample Pointclouds before Publishing #364

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

LBern
Copy link
Contributor

@LBern LBern commented Jul 13, 2022

General

This PR cherry-picks the random downsampling that is being applied if the resulting Pointcloud2 message is above 1GB.

@LBern LBern mentioned this pull request Jul 13, 2022
3 tasks
@ethzasl-jenkins
Copy link

Test PASSed.

@LBern LBern changed the base branch from feature/merge_alice to develop November 1, 2022 09:32
cloud_in.hasLabels());
static const size_t kMargin = 1000u;
static const size_t kMaxRosMessageSize = 1000000000u;
static const size_t kMaxDataSize = kMaxRosMessageSize - kMargin;
Copy link
Member

Choose a reason for hiding this comment

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

Just a question and a comment. Why define a margin? instead of just writing the operation there kMaxDataSize = 1000000000u - 1000u;. And would it make sense to also make it a flag? Like that you could subsample also when publishing scan by scan, no?

Copy link
Member

@smauq smauq left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM!

@ethzasl-jenkins
Copy link

Test FAILed.

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.

None yet

3 participants