Robotics StackExchange | Archived questions

RVIz bad visualization of CUBE_LIST

Something strange happens when i try to display CUBELIST in RVIz. As shown in figure: https://dl.dropboxusercontent.com/u/18830822/Images/rvizcubelist.png

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 ?

Asked by m4nh on 2016-11-10 11:18:58 UTC

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.

Asked by gvdhoorn on 2016-11-10 13:04:48 UTC

Answers

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

Asked by m4nh on 2016-11-10 11:59:39 UTC

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.

Asked by gvdhoorn on 2016-11-10 12:55:43 UTC