Rviz Status Warn: Scale of 0 in one of x/y/z

asked 2019-07-12 09:59:07 -0500

roskinetic gravatar image

updated 2019-07-12 10:07:38 -0500

gvdhoorn gravatar image

Hi,

I am getting a status warning message in Rviz.

Although the scale of markers are not 0, I keep getting the status warn in Rviz saying "Scale of 0 in one of x/y/z".

I set the markers to be

a.pose.position.x = lon_position;
a.pose.position.y = lateral_position;
a.pose.position.z = 0;
a.pose.orientation.x = 0.0;
a.pose.orientation.y = 0.0;
a.pose.orientation.z = 0.0;
a.pose.orientation.w = 0.0;
a.scale.x = 2;
a.scale.y = 2;
a.scale.z = 2;
a.color.r = 0.0;
a.color.g = 0.0;
a.color.b = 1.0;
a.color.a = 1.0;

I will appreciate any kind of help regarding this.

Thank you.

edit retag flag offensive close merge delete

Comments

I don't know about the rest, but this doesn't seem legal:

a.pose.orientation.w = 0.0;

that is not a properly normalised quaternion. You'll want to set that to 1.0.

gvdhoorn gravatar imagegvdhoorn ( 2019-07-12 10:08:27 -0500 )edit

Can you show a full rostopic echo of the message?

ChuiV gravatar imageChuiV ( 2019-07-15 22:08:03 -0500 )edit