-
Notifications
You must be signed in to change notification settings - Fork 463
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
PointCloud XYZRGBL display draws points in incorrect z position relative to camera #1272
Comments
Happening here as well with XYZRGB clouds. |
I noticed something potentially relevant while working with this cloud. Rviz version:
Here's a gif of the effect in addition to the images in my previous message for a better understanding of the issue: We place the camera in a position which produces the issue. The points which are selected are the correct ones - the selection does not include the points which appear to be in the foreground but are actually in the background. This seems to indicate that the point selection tool is correctly checking the Z-values of points relative to the camera, but the rendering is not. |
Is it known that a past version of rviz did not have the issue? If so, I could track down the offending commit with git bisect. |
I downloaded the
The issue is present in that version as well. I checked out version Version I tried version |
Thanks for this validation. So it looks like, the bug was there from the very beginning. |
This may be related to #1184, which I reported recently.
This is using rviz 1.12.16.
When visualising pointclouds with the XYZRGBL type, points which should be obscured by points in front of them from the current camera perspective are visible.
You can check this by starting a roscore, running rviz, adding a
PointCloud2
display subscribed tocloud_pcd
, and then runningWith the following pcd file:
out.pcd.zip
You will then have to set the colour transformer to intensity, and switch to an axis or label colouring (i.e. channel name set to x,y,z or label).
The first picture is a view of the cloud with label colouring, from approximately the same perspective in which it was taken. Blue is wall, pink is furniture and clutter, orange is the floor.
This picture from a different perspective shows the orange floor being displayed in front of the pink furniture/clutter, despite it actually being behind those points from the perspective of the camera.
This is another example, this time with the camera perspective behind the wall. From this view, it should only be possible to see the wall, but actually we can see both the floor and the furniture.
I wondered if this was related to the pointcloud being unorganised, so I got some raw data from the camera and tried to fake an unorganised cloud by simply changing the header from
To
I'm not sure if this is the only change needed for the cloud to be read in as unorganised, but the effect does not appear when using this cloud. That may also be because it is just XYZRGB instead of XYZRGBL, which is another indicator that it might have something to do with the label part specifically.
unorganised_fake.zip
The text was updated successfully, but these errors were encountered: