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

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

roskinetic gravatar image

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

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 image gvdhoorn  ( 2019-07-12 10:08:27 -0600 )edit

Can you show a full rostopic echo of the message?

ChuiV gravatar image ChuiV  ( 2019-07-15 22:08:03 -0600 )edit

Hi, how did you fix this ?

Shanika gravatar image Shanika  ( 2020-06-23 07:21:36 -0600 )edit

Hi, any update?

lyh458 gravatar image lyh458  ( 2022-04-18 01:44:49 -0600 )edit