Skip to content

Sample Pointclouds before Publishing #364

Open
LBern wants to merge 3 commits intodevelopfrom
feature/viz_downsample
Open

Sample Pointclouds before Publishing #364
LBern wants to merge 3 commits intodevelopfrom
feature/viz_downsample

Conversation

@LBern
Copy link
Copy Markdown
Collaborator

@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
Copy Markdown

Test PASSed.

@LBern LBern requested review from floriantschopp and smauq July 13, 2022 15:24
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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.

3 participants