-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Bug in CropBox regarding keep organized? #3471
Comments
Technically it can be considered a bug, but I suspect is is simply a not implemented functionality. In the case of a CropBox filter which takes organized point clouds as input, it is definitely possible to filter points and preserve the organization by inserting |
I looked a bit into it to see which filters offer the keep-organized functionality (I only looked at |
A little update: |
|
meet same bug, 1.9.1.99 cropbox return wrong, but 1.7.2 is ok. |
@yzl96 Are you sure? I don't think that the keep-organized functionality was ever implemented in those classes. |
|
@yzl96 What do you mean exactly by "wrong"? Did you use my code from above? The topic of this issue is that the filtered clouds are not organized, meaning the height is 1. Is that what you are experiencing, too? I think this problem is present in every PCL version, because the relevant source code has not been changed for years. So I am wondering if we are talking about the same issue. |
Since the two PRs are now merged, the problem should be fixed and this issue can, as far as I am concerned, be closed. |
This could be backported to 1.9 and 1.8 if the policy allows for that. If not, then the cropbox and other affected classes should at least issue a warning about missing functionality, shouldn't they? |
Unfortunately, we don't have resources to backport and make additional patch releases. Please update to 1.10.1, 1.10.1, or current HEAD. |
The CropBox filter (possibly other filters too) on
pcl::PCLPointCloud2
seems to not keep the cloud organized, even if requested withsetKeepOrganized(true)
.Your Environment
Context
First noticed in pcl ros, see ros-perception/perception_pcl#216
Expected Behavior
The height and width of the output cloud should be the same as of the organized input cloud, meaning it is still organized.
Current Behavior
The height of the output cloud is 1, meaning it is not organized any more. The code below has this output:
Code to Reproduce
CMakeLists.txt:
Download the pcd file here: https://github.com/PointCloudLibrary/pcl/blob/master/test/milk_cartoon_all_small_clorox.pcd?raw=true
Possible Solution
Is this a bug or do I have false expectations?
The text was updated successfully, but these errors were encountered: