Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

RViz POINTS color bug or doing something wrong

Hey,

I am using RViz to vizualize some processed point cloud data. I am using visualization_msgs::Marker::POINTS.

According to tutorials I should me able to do something like this.

visualization_msgs::Marker points;
points.type = visualization_msgs::Marker::POINTS;
points.color.a = 1.0;
points.color.r = 1.0;

or using colors:

std_msgs::ColorRGBA col;
col.a = 1.;
col.r = 1.;
points.colors.push_back(col);

However, none of these two approaches seems to be working. All I get are white points. No change regarding the color.

I just wanted to ask you if I am doing something wrong or it is indeed a bug. (Ubuntu 18.04 - Melodic)

RViz POINTS color bug or doing something wrong

Hey,

I am using RViz to vizualize visualize some processed point cloud data. I am using visualization_msgs::Marker::POINTS.

According to tutorials I should me be able to do something like this.

visualization_msgs::Marker points;
points.type = visualization_msgs::Marker::POINTS;
points.color.a = 1.0;
points.color.r = 1.0;

or using colors:

std_msgs::ColorRGBA col;
col.a = 1.;
col.r = 1.;
points.colors.push_back(col);

However, none of these two approaches seems to be working. All I get are white points. No change regarding the color.

I just wanted to ask you if I am doing something wrong or it is indeed a bug. (Ubuntu 18.04 - Melodic)