Skip to main content
deleted 8 characters in body; edited title
Source Link
user1430
user1430

Relative rotation using How can obtain the relative orientation between two quaternions?

Put simply, howHow do iI obtain the relative orientation given two orientations (represented by quaternions q0q0 and q1q1)?

Relative rotation using quaternions

Put simply, how do i obtain the relative orientation given two orientations (represented by quaternions q0 and q1)?

How can obtain the relative orientation between two quaternions?

How do I obtain the relative orientation given two orientations (represented by quaternions q0 and q1)?

Post Reopened by CommunityBot
Post Closed as "Needs details or clarity" by CommunityBot
Tweeted twitter.com/#!/StackGameDev/status/418591555545731073
deleted 672 characters in body
Source Link
ilp
  • 61
  • 1
  • 1
  • 3

I have a sensor that gives me its orientation in space using quaternions. I would like to track its motion - say i rotate the sensor about [1,0,0], then I would like to get this information. The only variable is the initial orientation. This could be anything.

For example, let say the sensor is at some arbitrary orientation given by quaternion q0. I then rotate the sensor about [1,0,0] to orientation q1. When I compute the relative rotation between the two as

r = q1 q0^{-1}

Then I notice that the relative rotation has components along the xPut simply,y and z axes. Why is this? And how do I recover the axis of motion, i.e., [1,0,0] ? In the more general case, I would like to get obtain the direction of motionrelative orientation given two orientations (no matter what axis it is aboutrepresented by quaternions q0 and q1), irrespective of the initial orientation?

I have a sensor that gives me its orientation in space using quaternions. I would like to track its motion - say i rotate the sensor about [1,0,0], then I would like to get this information. The only variable is the initial orientation. This could be anything.

For example, let say the sensor is at some arbitrary orientation given by quaternion q0. I then rotate the sensor about [1,0,0] to orientation q1. When I compute the relative rotation between the two as

r = q1 q0^{-1}

Then I notice that the relative rotation has components along the x,y and z axes. Why is this? And how do I recover the axis of motion, i.e., [1,0,0] ? In the more general case, I would like to get the direction of motion (no matter what axis it is about), irrespective of the initial orientation?

Put simply, how do i obtain the relative orientation given two orientations (represented by quaternions q0 and q1)?

added 442 characters in body
Source Link
ilp
  • 61
  • 1
  • 1
  • 3

I have a sensor at some arbitrarythat gives me its orientation in space using quaternions. I would like to track its motion (non-zero roll say i rotate the sensor about [1, yaw0, pitch)0], then I would like to get this information. The only variable is the initial orientation. This could be anything.

For example, let say the sensor is at some arbitrary orientation given by quaternion q0. I then pitchrotate the sensor about [1,0,0] to orientation q1. When I compute the relative relative rotation between the two as

r = q1 q0^{-1}

Then I notice that the relative rotation has rollcomponents along the x, pitchy and yaw componentsz axes. Why is this and? And how do I recover the axis of motion, i.e., [1,0,0] ? In the more general case, I would like to get a pure pitch from rthe direction of motion (no matter what axis it is about), irrespective of the initial orientation?

I have a sensor at some arbitrary orientation (non-zero roll, yaw, pitch) given by quaternion q0. I then pitch the sensor to orientation q1. When I compute the relative rotation between the two as

r = q1 q0^{-1}

Then I notice that the relative rotation has roll, pitch and yaw components. Why is this and how do I get a pure pitch from r?

I have a sensor that gives me its orientation in space using quaternions. I would like to track its motion - say i rotate the sensor about [1,0,0], then I would like to get this information. The only variable is the initial orientation. This could be anything.

For example, let say the sensor is at some arbitrary orientation given by quaternion q0. I then rotate the sensor about [1,0,0] to orientation q1. When I compute the relative rotation between the two as

r = q1 q0^{-1}

Then I notice that the relative rotation has components along the x,y and z axes. Why is this? And how do I recover the axis of motion, i.e., [1,0,0] ? In the more general case, I would like to get the direction of motion (no matter what axis it is about), irrespective of the initial orientation?

Source Link
ilp
  • 61
  • 1
  • 1
  • 3
Loading