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

PolygonArray is always rendered as black color. #685

Closed
pxlong opened this issue Jan 24, 2018 · 5 comments
Closed

PolygonArray is always rendered as black color. #685

pxlong opened this issue Jan 24, 2018 · 5 comments

Comments

@pxlong
Copy link

pxlong commented Jan 24, 2018

Hi, thanks for sharing this great rviz plugin.

I use jsk_recognition_msgs::PolygonArray in Ubuntu 16.04 + ROS Kinetic.
The polygon array is always filled with black color in rviz when I disable "only border" and change "coloring" to Flat color, no matter what color I picked.

@pxlong pxlong changed the title PolygonArray is rendered as black color. PolygonArray is always rendered as black color. Jan 24, 2018
@k-okada
Copy link
Member

k-okada commented Jan 24, 2018

Sorry that I can not reproduce this problem
Can you try with this sample code to publish jsk_recognition_msgs::PolygonArray ?

rosrun jsk_rviz_plugins polygon_array_sample.py

and could visualize in rviz, I have tested in both deb (2.1.1) and latest source (2.1.3+)
screenshot from 2018-01-24 19-57-03

@pxlong
Copy link
Author

pxlong commented Jan 24, 2018

Hi @k-okada, many thanks for the quick reply.

I recorded a video to show the problem. Please check: https://youtu.be/NufN7DZCzYU
It will not always be rendered in black, the color will change according to the viewpoint. At some viewpoints, the color seen by human's eye is black.

The polygon in my case is vertical to the ground (grid). Is this a reason to cause this issue?

@k-okada
Copy link
Member

k-okada commented Jan 24, 2018

OK, though I can not see your video as follows
screenshot from 2018-01-24 23-00-19

I think I can understand your situation, how about #686 ? Will this solve your problem?
I'm not sure about your usecases, but in some situation, for example display float plane in 3D point cloud scene,current setting will help, so I added 'enable lighting' property

screenshot from 2018-01-25 00-37-12
screenshot from 2018-01-25 00-37-17

@pxlong
Copy link
Author

pxlong commented Jan 25, 2018

@k-okada, sorry for the unplayable video, I am sure you can see it now: https://youtu.be/NufN7DZCzYU.
Thanks

@pxlong
Copy link
Author

pxlong commented Jan 25, 2018

Hi @k-okada, thanks so much, #686 perfectly solve my issue.

@pxlong pxlong closed this as completed Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants