Ask Your Question
1

How to visualize colored pointclouds in rviz?

asked Mar 29 '11

Kadir Firat Uyanik gravatar image Kadir Firat Uyanik flag of Turkey
143 3 14
http://kadiruyanik.wordpr...

updated Mar 29 '11

Hi folks,

I want to show rgb values of a point cloud in rviz where I store some information inside the rgb channels. However, there is not any choice named "channel", as it is shown here.

I've tried to add various builtin display types, such as PointCloud2, PointCloud and even LaserScan but none of them contains a channel field.

I've tried to add plugins as it is mentioned in this question. But I couldn't add any plugin via the Plugins->Manage tab of the rviz. So, I cannot obtain something like this.

I've checked the rviz folder in case there might be a folder named plugins or anything related to the plugins but no success.

I tried rviz --help but no information there also.

Can someone please tell me how can we do such a simple thing:) ?

Thanks

delete close flag offensive retag edit

Comments

What is the "type" of the points in the PointCloud2 you are publishing? Eric Perko (Mar 29 '11)edit
They are in the type of pcl::PointXYZRGB and I obtain the RBG values in 24bit packaged format. Kadir Firat Uyanik (Mar 29 '11)edit
If you want to treat an arbitrary channel in the PointCloud as an intensity value, there is a patch for that. See https://code.ros.org/trac/ros-pkg/ticket/4610 . If you checkout trunk of the visualization stack and rebuild rviz, you should have access to that functionality to try it out. Eric Perko (Mar 29 '11)edit

2 Answers

Sort by ยป oldest newest most voted
2

answered Mar 29 '11

JediHamster gravatar image JediHamster
623 2 21 44
http://sluggish.homelinux...

If the pointcloud is of type XYZRGB you should be able to select RGB8 under "Color Transformer".

link delete flag offensive edit

Comments

I had tried Color Transformer with RGB, rgb and so on, but not RGB8. Thanks..Btw, does "8" in RGB8 stands for 0-255 scale(= 8bit total) or 8 bit/channel? Because as I said before, pointcloud stores 24bit color value in the rgb field. Kadir Firat Uyanik (Mar 29 '11)edit
I think it does stand for 8 bits per channel. JediHamster (Mar 29 '11)edit
0

answered Mar 29 '11

Kadir Firat Uyanik gravatar image Kadir Firat Uyanik flag of Turkey
143 3 14
http://kadiruyanik.wordpr...

Guys,

Is rviz documentation a little outdated? In the channel section of the wiki-page there is no information like RGB8 as mentioned above.

Besides, I tried to set the Color Transformer to other channels like curvature and curvatures, but no success.

How can we visualize curvature values rather than adding this information to the rgb channel of the pointcloud?

Thanks

link delete flag offensive edit

Comments

Please update your question with any new information instead of posting it as an answer. This will help keep ROS Answers organized and easier to search in the future. Thanks! Eric Perko (Mar 29 '11)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Mar 29 '11

Seen: 321 times

Last updated: Mar 29 '11