Quaternion of robot given by link state changes slightly

asked 2020-05-13 18:03:35 -0500

namayna gravatar image

I'm subscribing to /gazebo/link_states to get my robot's angle in the world. The angle is given as a quaternion. However, if I'm standing still, it seems the x value of the quaternion is slightly changing as time goes on, which increases my angle slightly over time (around 0.01 degrees every 2 seconds). I'm worried that this problem can add up over time. Any ideas on why this issue is occurring?

edit retag flag offensive close merge delete

Comments

Some noise is unavoidable and due to numeric precision. Is the error accumulating?

fvd gravatar image fvd  ( 2020-05-13 21:19:49 -0500 )edit

Yes, sorry if my wording was bad. The error is accumulating, which is why I'm worried. I'm gaining 0.01 degrees every 2 seconds, which could add up over time.

namayna gravatar image namayna  ( 2020-05-13 23:36:29 -0500 )edit

If you're sure that is what's happening (and it's not self-correcting after a while) you might consider asking on gazebosim. Link the questions if you do.

fvd gravatar image fvd  ( 2020-05-13 23:53:27 -0500 )edit