Transformations Between Coordinate Systems

Click For Summary

Homework Help Overview

The problem involves transforming the velocity of a ball from an x-y coordinate system to a p-q coordinate system, where the p-q system has a different unit of measurement and orientation. The original poster presents a velocity vector in the x-y system and seeks to find its equivalent in the p-q system, considering the transformation rules and the origin shift between the two systems.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • The original poster attempts to apply a rotation matrix for the transformation and questions the correct application of the origin shift. Some participants discuss the implications of the origin's position on the velocity vector and the necessary adjustments when converting between coordinate systems.

Discussion Status

Participants are actively engaging with the problem, exploring different interpretations of the transformation process. There is a recognition of the need to clarify the role of the origin shift in the conversion between coordinate systems. Some guidance has been offered regarding the correct application of the transformation equations, but confusion remains about the direction of the shift.

Contextual Notes

Participants note the potential for misunderstanding the relationship between the coordinate systems, particularly regarding how the origin affects the transformation of vectors. The discussion reflects a mix of attempts to apply mathematical concepts and the need for deeper conceptual understanding of coordinate transformations.

Shpoon
Messages
3
Reaction score
0

Homework Statement


The velocity of a ball in an x-y coordinate system is (10, -5) where distance is measured in metres. A second coordinate system, p-q, uses units of feet (1 ft = 0.3048 m). The p-axis is oriented at alpha = 15 degrees relative to the x-axis. The origin of the p-q system is located at (10m, 2m) in the x-y system. What is the velocity vector of the ball in the p-q coordinate system?

Homework Equations


Basic math, rotation matrix. I'm still not 100% on why, but the way we are taught, the rotation matrix is [cos sin; -sin, cos] for a CCW rotation.


The Attempt at a Solution



[p;q]=3.28ft/m*([cos15 sin15; -sin15 cos15] [10; -5]+[10;2])

I *think* I'm correct on the +[10;2] rather than a negative since from the x-y frame, it moves in the positive direction.

However, I can't seem to get the answer of "(27.5, -24.3) ft/s" even when I mess around with varying negatives and stuff.

There's a followup question which involves going back the other way, which I would have done as:

[x;y]=0.3048([cos(-15) sin(-15); -sin(-15) cos(-15)][p;q]-[10;2])

But seeing as the first one isn't giving the correct answer I doubt that this will work either...
 
Physics news on Phys.org
Welcome to PF!

Hi Shpoon! Welcome to PF! :wink:
Shpoon said:
… The origin of the p-q system is located at (10m, 2m) in the x-y system. What is the velocity vector of the ball in the p-q coordinate system?

[p;q]=3.28ft/m*([cos15 sin15; -sin15 cos15] [10; -5]+[10;2])

I *think* I'm correct on the +[10;2] rather than a negative since from the x-y frame, it moves in the positive direction.

There's a followup question which involves going back the other way, which I would have done as:

[x;y]=0.3048([cos(-15) sin(-15); -sin(-15) cos(-15)][p;q]-[10;2])

erm :redface:

how can the position of the origin affect a velocity vector? :smile:
 
*facepalm*

Story of my life here misreading a question and spending a LONG, FRUSTRATED time on it.

Thanks, remove the position shift and there we go.

I wish there was a delete button right now ;)

Edit: Actually, I'll make use of this then:

For the next question it's a conversion from a p/q position to x/y position (no velocities). Given p,q = 1,3

Turns out my equation "[x;y]=0.3048([cos(-15) sin(-15); -sin(-15) cos(-15)][p;q]-[10;2])" is wrong as it should be +[10;2] at the end there. Why exactly is this? I can't seem to wrap my head around it...

From the original, I see it as (0,0) in the p,q frame is at (10,2) in the x,y so any coord given in p,q should have 10,2 subtracted to get x,y and vice versa, but apparently it's the opposite? Why?
 
Last edited:
Shpoon said:
Turns out my equation "[x;y]=0.3048([cos(-15) sin(-15); -sin(-15) cos(-15)][p;q]-[10;2])" is wrong as it should be +[10;2] at the end there. Why exactly is this? I can't seem to wrap my head around it...

From the original, I see it as (0,0) in the p,q frame is at (10,2) in the x,y so any coord given in p,q should have 10,2 subtracted to get x,y and vice versa, but apparently it's the opposite? Why?

hmm :redface:

without adding anything, (0,0) in the p,q frame would go to (0,0) in the x,y frame.

But you want it to go to (10,2) in the x,y frame …

so you have to add (10,2) :smile:

are you getting enough sleep? :zzz:
 
tiny-tim said:
hmm :redface:

without adding anything, (0,0) in the p,q frame would go to (0,0) in the x,y frame.

But you want it to go to (10,2) in the x,y frame …

so you have to add (10,2) :smile:

are you getting enough sleep? :zzz:

Not at all, I'm busy cramming ;)

Bear with me please, I'm still not getting this.

Without adding anything, (0,0) in the pq frame would be (10,2) in the x,y, NOT (0,0), no? The p,q frame is already shifted +10,+2. (correct me here if I'm wrong, this is in disagreement with what you wrote above)..

So if you want to change back to the x,y frame, one would subtract 10,2.

At least that's what my logic is seeing. This is just one of these things that is really bothering me, sorry.

Attached is a crude drawing of the shift (w/o rotations and such). Assuming there's a point p on the x,y at (0,0), and p' on the p,q at p,q's (0,0), I would think that since p' is situated at (10,2) on the x,y, to change a point between p,q to x,y, after doing the scaling and rotations (and thus, your units are back to x,y units), one would subtract 10,2 to return.

I'm really failing to see why you would add another 10,2 to return to 0,0 in the xy

http://img28.imageshack.us/img28/9523/shift.jpg

Edit: Ahh, after talking it over with some friends I realize that I have just been conceptually thinking about it wrong...Thinking about it soley within one coord system helped. Something clicked, thanks for being patient ;)
 
Last edited by a moderator:

Similar threads

Replies
20
Views
4K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 31 ·
2
Replies
31
Views
3K
Replies
20
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K