-
Notifications
You must be signed in to change notification settings - Fork 726
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
base: develop
Are you sure you want to change the base?
Conversation
Test PASSed. |
cloud_in.hasLabels()); | ||
static const size_t kMargin = 1000u; | ||
static const size_t kMaxRosMessageSize = 1000000000u; | ||
static const size_t kMaxDataSize = kMaxRosMessageSize - kMargin; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM!
Test FAILed. |
General
This PR cherry-picks the random downsampling that is being applied if the resulting
Pointcloud2
message is above 1GB.