ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

IMU: What is the "w" in the IMU data

asked 2018-09-03 09:01:42 -0500

vonunwerth gravatar image

Hello there, i use the Gazebo IMU-Plugin to generate sensor data of an IMU for my robot. An IMU message looks like the following:

header: ...
orientation:
x: -9.881865455454e-324
y: -9.881865455454e-324
z: 8.8755655245457e-17
w: 1.0
orientation_covariance ...

I understand the x,y,z koordinates, but what does that "w" mean?

Thanks for your help.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
2

answered 2018-09-03 09:43:49 -0500

NEngelhard gravatar image

updated 2018-09-03 09:46:43 -0500

It's the fourth component of a quaternion. (You don't have to fully understand the math behind it, it's roughly a rotation axis and a corresponding rotation angle around this axis). See also: tf2/quaternions

edit flag offensive delete link more

Comments

1

Just as a clarification: @vonunwerth: the entire orientation field is a Quaternion.

gvdhoorn gravatar image gvdhoorn  ( 2018-09-04 02:06:33 -0500 )edit
1

answered 2020-02-18 04:13:17 -0500

Wifi-cable gravatar image

Quaternion is a type of mathematical notation. It is not the same thing as a vector, but similar concepts can be expressed with it. You can imagine it like a Struct or a data type that has 4 variables, one of them has the name "w".

this YouTube video explains the concept of a quaternion in a visual way.

edit flag offensive delete link more
1

answered 2020-02-18 05:43:41 -0500

zihao gravatar image

Answers above may have explained it well. But as an addition: x, y, z over there are not coordinates of some point, they are stating the axis of rotation. A quaternion := (x, y, z, w), in which (x, y, z) is scaled with sin(theta/2), and w := cos(theta/2), in which theta is the angle of rotation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-09-03 09:01:42 -0500

Seen: 1,703 times

Last updated: Feb 18 '20