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

PointCloud XYZRGBL RGB8 colour transformer does not show cloud #1184

Open
heuristicus opened this issue Jan 9, 2018 · 2 comments
Open

PointCloud XYZRGBL RGB8 colour transformer does not show cloud #1184

heuristicus opened this issue Jan 9, 2018 · 2 comments

Comments

@heuristicus
Copy link

heuristicus commented Jan 9, 2018

I have a pointcloud with XYZRGBL fields generated in PCL, whose display does not seem to work correctly in rviz. If I view the cloud in pcl_viewer I can see the following colour handlers:

List of available color handlers for actor out.pcd-0: [random](1) x(2) y(3) z(4) rgb(5) label(6)

The cloud (attached below) has specific RGB values for each label and is received as a PointCloud2 type. However, when displaying this cloud in rviz, if the RGB8 colour transformer is selected, nothing appears. This is also true for the MONO8 transformer.

Selecting any of the other colour transformers shows that there are indeed points coming through. With the intensity transformer, using the label channel correctly displays the cloud, with different label regions having different colours. However, the rgb values given by the label display are different to the rgb values given in the original instantiation of the labelled cloud, so if the user has set specific rgb values for each point with a certain label, they will not be displayed with this method.

This is in rviz 1.12.13 (also on 1.12.16), on Ubuntu 16.04. I'd like to help fix this but there are no error or warning messages which I can use to point me to where the problem might lie.

You can check this by starting a roscore, running rviz, adding a PointCloud2 display subscribed to cloud_pcd, and then running

rosrun pcl_ros pcd_to_pointcloud out.pcd 1

With the following pcd file:

out.pcd.zip

You will be able to see messages coming in, but because the default transformer is rgb8, you will not see anything.

@jediofgever
Copy link

having same issue after 2 years

@rhaschke
Copy link
Contributor

@jediofgever, you are cordially invited to debug this issue and provide a fixing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants