ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

RVIz bad visualization of CUBE_LIST

asked 2016-11-10 10:18:58 -0500

m4nh gravatar image

Something strange happens when i try to display CUBE_LIST in RVIz. As shown in figure: https://dl.dropboxusercontent.com/u/1...

First of all you can see that cubes are a little bit transparent since world grid is visible under them, despite alpha setted to one per cubes:

voxels_marker.colors[i].r = voxels[i].data->r;
voxels_marker.colors[i].g = voxels[i].data->g;
voxels_marker.colors[i].b = voxels[i].data->b;
voxels_marker.colors[i].a = 1;

And you can see that right part of cube list seems to be (almost) correct, but left part has some problem with z-buffer because furthest cubes are drawn before nearest.

How can i figure out ?

edit retag flag offensive close merge delete

Comments

I've given you some karma so you can attach the image to this question. That is preferable over using dropbox, as if you ever remove the file from there, no one will be able to see the image any more.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-10 12:04:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-11-10 10:59:39 -0500

m4nh gravatar image

I found the problem!! It's a very strange bug... if you do:

voxels_marker.points.resize(N)

and for some reason you iterate over only

M < N

points.. this strange z_buffer problem happens

edit flag offensive delete link more

Comments

If you feel this is a bug, I'd encourage you to report this to the appropriate tracker. Only that way do we know that something is broken.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-10 11:55:43 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-11-10 10:18:58 -0500

Seen: 331 times

Last updated: Nov 10 '16