Background: Coordinate System Transformations. i j Derivation of the 2D Rotation Matrix (basis vectors) θ.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

Wednesday March 1st Dr. Moran
1 3D Vector & Matrix Chapter 2. 2 Vector Definition: Vector is a line segment that has the direction. The length of the line segment is called the magnitude.
Time 1  shank  thigh  Knee Segment Angles are ABSOLUTE ANGLES, measured with respect to a (stationary) global vertical or horizontal reference axis.
Pelvis & Hip & Thigh Surface anatomy & Marker set ANATOMY WORKSHOP Seoul National University Bundang Hospital Lee, Kyougn Min, MD.
Arbitrary Rotations in 3D Lecture 18 Wed, Oct 8, 2003.
1 ME 302 DYNAMICS OF MACHINERY Dynamic Force Analysis IV Dr. Sadettin KAPUCU © 2007 Sadettin Kapucu.
Inverses of n x n Matrices. The Inverse Matrix If A is an n x n matrix, the inverse of A (call it A -1 ) is the matrix such that A * A -1 is equal to.
1 Geometrical Transformation 2 Outline General Transform 3D Objects Quaternion & 3D Track Ball.
2D Geometric Transformations
3-D Geometry.
Introduction to ROBOTICS
CV: 3D sensing and calibration
MSU CSE 803 Fall 2008 Stockman1 CV: 3D sensing and calibration Coordinate system changes; perspective transformation; Stereo and structured light.
Geometry: Dilations. We have already discussed translations, reflections and rotations. Each of these transformations is an isometry, which means.
Introduction to ROBOTICS
Camera Parameters and Calibration. Camera parameters From last time….
Computer Graphics (Fall 2005) COMS 4160, Lecture 2: Review of Basic Math
3D Graphics Goal: To produce 2D images of a mathematically described 3D environment Issues: –Describing the environment: Modeling (mostly later) –Computing.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
CS 450: Computer Graphics 2D TRANSFORMATIONS
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices n New stuff Homogenous co-ordinates 3D transformations as matrices.
MEGN 536 – Computational Biomechanics Euler Angles
Kinematics of Robot Manipulator
Segmental Angles Joint Angles: Euler Joint Angles: Helical Exporting Data from GaitProject to Visual3d Tonight’s Lecture.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
CSE 681 Review: Transformations. CSE 681 Transformations Modeling transformations build complex models by positioning (transforming) simple components.
Spatial Descriptions and Transformations Sebastian van Delden USC Upstate
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Jinxiang Chai Composite Transformations and Forward Kinematics 0.
The Appendicular Skeleton The Lower Limbs Human Bio 11.
Robot Kinematics: Position Analysis 2.1 INTRODUCTION  Forward Kinematics: to determine where the robot ’ s hand is? (If all joint variables are known)
Geometrical Transformations 2 Adapted from Fundamentals of Interactive Computer Graphics, Foley and van Dam, pp , by Geb Thomas.
CS559: Computer Graphics Lecture 8: 3D Transforms Li Zhang Spring 2008 Most Slides from Stephen Chenney.
Computer Graphics 3D Transformations. Translation.
1 Chapter 2: Geometric Camera Models Objective: Formulate the geometrical relationships between image and scene measurements Scene: a 3-D function, g(x,y,z)
1 Graphics CSCI 343, Fall 2015 Lecture 10 Coordinate Transformations.
Effects on Dual Task Walking John Nguyen, Hannah Smith-Williams, & Heather Phipps KINS
Composite 3D Transformations. Example of Composite 3D Transformations Try to transform the line segments P 1 P 2 and P 1 P 3 from their start position.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Lecture 5: Introduction to 3D
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
Composite 3D Transformations. Example of Composite 3D Transformations Try to transform the line segments P 1 P 2 and P 1 P 3 from their start position.
Cornell CS465 Fall 2004 Lecture 9© 2004 Steve Marschner 1 3D Transformations CS 465 Lecture 9.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
Camera Calibration Course web page: vision.cis.udel.edu/cv March 24, 2003  Lecture 17.
Copyright  1999 by James H. Money. All rights reserved. Except as permitted under United States Copyright Act of 1976, no part of this publication may.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Robotic Arms and Matrices By Chris Wong and Chris Marino.
CS682, Jana Kosecka Rigid Body Motion and Image Formation Jana Kosecka
Date of download: 9/29/2017 Copyright © ASME. All rights reserved.
CSE 167 [Win 17], Lecture 2: Review of Basic Math Ravi Ramamoorthi
Date of download: 1/2/2018 Copyright © ASME. All rights reserved.
Computer Graphics Transformations
Mobile Robot Kinematics
COMP 175: Computer Graphics February 9, 2016
Introduction to Vectors and Frames
GEOMETRIC CAMERA MODELS
Geometric Camera Models
Chapter IV Spaces and Transforms
Transformation Operators
CSCE441: Computer Graphics 2D/3D Transformations
Derivation of the 2D Rotation Matrix
Lecture 8: 3D Transforms Li Zhang Spring 2008
Transformations.
Unit 1 Transformations in the Coordinate Plane
Human Gait Analysis using IMU Sensors
Translation in Homogeneous Coordinates
Presentation transcript:

Background: Coordinate System Transformations

i j Derivation of the 2D Rotation Matrix (basis vectors) θ

i j Coordinate Transformations (2D) θ Find in global space:

i j Coordinate Transformations (2D) θ Find in global space:

Coordinate Transformations Note: The rows of the 2x2 rotation matrix from global to local space are composed of the unit vectors of the local coordinate system axis (in global space).

i j Derivation of the 3D Rotation Matrix (basis vectors) θ k K’

Z Rotation from Global to Local Note: The rows of the 3x3 rotation matrix from global to local space are composed of the unit vectors of the local coordinate system axis (in global space).

Translations of Bodies in 3D Y X Z

Y X Z X’ z’ y’ P P’ Coordinate System Transformations (Global to Local example)

Translations and Rotation (Example: Global to Local) Y X Z X Y Z For: and Ox=8, Oy=8, Oz=0 Find P in Local Space (P ’ )? O P P’P’

Coordinate System Transformations (Example: Global to Local) Y X Z X Y Z Transform global to local: P’P’

Rotation Matrices are orthonormal The rotation from Global to Local Space is the inverse of the rotation from Local to Global Space Rotation Matrices are orthonormal and thus the inverse is equal to the transpose

Coordinate System Transformations (Local to Global) Y X Z X’ z’ y’ P P’ R ’ is the rotational transformation from local to global space

Y X Z X Y Z For: and Ox=8, Oy=8, Oz=0 Find P in Global Space O P P’P’ Coordinate System Transformations (Example: Local to Global)

Y X Z X Y Z Transform local to global: Coordinate System Transformations (Example: Local to Global)

Coordinate System Transformations Global to Local: Local to Global: Where the rows of the rotation matrix from global to local space (R) are composed of the unit vectors of the local coordinate system axis (in global space).

Non-Optimal Pose Estimation

Pelvis

Anatomical Coordinate Systems (pelvis) How to calculate the anatomical coordinate systems 3) Create M/L Unit Vector i from step 2 unit vector = (i x, i y, i z ) 4) Find the vector from the Sacrum to Origin 1) Find midpt between LASIS & RASIS = Origin 5) Create Unit Vector v from step 4 unit vector = (v x, v, v z ) 6) Use i X v to get Inferior/Superior Unit Vector unit vector = (k x, k y, k z ) 7)Use k X i to get Anterior/Posterior Unit Vector unit vector = (j x, j y, j z ) X Z Y 2) Find the vector from Origin to right ASIS

Finding the Hip Center (in Pelvic Coordinate System) X Z Y Right Hip (Bell, Brand and Pederson): X = 0.36 * ASIS Distance Y = * ASIS Distance Z = * ASIS Distance

Pelvis Non-Optimal Calibration: Finding the local coordinates of the hip center (which are needed to calibrate the other segments) Anthropometrics, Graphics Scaling and Graphing the Calibration Trial

Pelvis: code is already part of GaitProject

Thigh

Anatomical Coordinate Systems (thigh) How to calculate the anatomical coordinate systems 2) Find the Knee center (Midpt of knee targets) 3) Find the vector from Knee to Hip 7) Find the the A/P axis, j, from k X v unit vector = (j x, j y, j z ) 8) Find the M/L axis, i, via j X k unit vector = (i x, i y, i z ) 1) Find the Hip center in Lab from Pelvis (tricky) 4) Find the Inferior/Superior Axis, k, from Unit vector of step 3 unit vector = (k x, k y, k z ) 5) Find the vector from medial to lateral Knee 6) Find the vector v which is unit vector of step 5 unit vector = (v x, v y, v z ) v Z X Y

Problem: Calculating the anatomical coordinate system requires a target (medial knee) not used during the walking trial

Solution: Create a virtual medial knee target which can be located during the motion trials

Step 1: Creating the temporary local coordinate system 1)Select one Point (Lateral Knee) as Origin 2) Find the unit vector from origin to the Hip unit vector = (k t x, k t y, k t z ) 3) Use the lateral knee and 3rd target to find a second vector v 6) Find the third axis via j X k unit vector = (i t x, i t y, i t z ) 5) Use the results of step 4 to find “A/P” unit vector j unit vector = (j t x, j t y, j t z ) 4) Find the the “A/P” axis from k X v

Step 2: Storing the virtual lateral knee target 1)Start with the tracking based local coordinate system (R temp ) P 2) Transform P into the tracking coordinate system (P’) using ‘ Where P are the global coordinates of lat knee and O are the global coordinates of the medial knee

Thigh Non-Optimal Calibration: Finding the local coordinates of the medial knee target in the calibration trial Anthropometrics, Graphics Scaling and Graphing the Calibration Trial

1)Create the tracking based local coordinate system (R temp ) 2) Recall the stored vector (P’) from origin to the calibration target (in tracking coordinate system) P 3) Transform P’ into the global coordinate system (P) using: ‘ 4) Use the tracking targets (including virtual) to find anatomically based coordinate system Step 3: Find the anatomical system during movement

Thigh: code is already part of GaitProject

Shank

Anatomical Coordinate Systems (shank) How to calculate the anatomical coordinate systems 2) Find the Ankle center 3) Find the vector from Ankle to Knee 6) Find the the “A/P axis from k X v 8) Find the M/L axis via j X k unit vector = (i x, i y, i z ) 1) Find the Knee center in Lab from Thigh (tricky) 4) Find the Inferior/Superior Axis from Unit vector of step 3 unit vector = (k x, k y, k z ) 5) Find the vector v from medial to lateral Ankle 7) Find the Unit A/P vector j unit vector = (j x, j y, j z ) v

Problem: Calculating the anatomical coordinate system requires a target (medial ankle) not used during the walking trial

Solution: Create a virtual medial ankle target which can be located during the motion trials

Step 1: Creating the temporary local coordinate system 1)Select one Point (Lateral Ankle) as Origin 2) Find the unit vector from origin to the Knee unit vector = (k t x, k t y, k t z ) 3) Use the lateral ankle and 3rd target to find a second vector v 6) Find the third axis, i, via j X k unit vector = (i t x, i t y, i t z ) 4) Use the results of step 3 to find a second unit vector unit vector = (v x, v y, v z ) 5) Find the the “A/P” axis from k X v unit vector = (j t x, j t y, j t z )

Step 2: Storing the virtual lateral ankle target 1)Start with the tracking based local coordinate system (R temp ) P 2) Transform P into the tracking coordinate system (P’) using ‘ Where P are the global coordinates of lat ankle and O are the global coordinates of the medial ankle

Shank Non-Optimal Calibration: Finding the local coordinates of the medial ankle target in the calibration trial Anthropometrics, Graphics Scaling and Graphing the Calibration Trial

1)Create the tracking based local coordinate system (R temp ) 2) Recall the stored vector (P’) from origin to the calibration target (in tracking coordinate system) P 3) Transform P’ into the global coordinate system (P) using: ‘ 4) Use the tracking targets (including virtual) to find anatomically based coordinate system Step 3: Find the anatomical system during movement

Foot

Anatomical Coordinate Systems (foot) How to calculate the anatomical coordinate systems 3) Find Z Axis from Unit vector of step 1 unit vector = (k x, k y, k z ) 4) Find the vector from Origin to Heel v 7) Find the the Y axis, j, from k X i unit vector = (k x, k y, k z ) 6) Find the unit vector from step 2 unit vector = (i x, i y, i z ) 2) Find the Vector from Toe to Origin 5) Find the M/L axis via k X v Y Z X 1)Find midpoint of ankle targets = Origin (from Shank - tricky)

Foot Non-Optimal Calibration: Anthropometrics, Graphics Scaling and Graphing the Calibration Trial

Assignment #5 – Build Non Optimal Model in Gait Project for the right thigh, right shank and right foot Let’s Look at the Pelvis and Thigh Code right now