Skip to content

Commit

Permalink
Merge pull request #98 from chrisdembia/iceskater
Browse files Browse the repository at this point in the history
Iceskater
  • Loading branch information
moorepants committed Aug 24, 2014
2 parents c97ef36 + 8767005 commit 81246fd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ pip-log.txt
*.maf
*.mtc
*.mtc0

# sphinx
doc/_build
19 changes: 19 additions & 0 deletions examples/ice_skating.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from numpy import deg2rad
import yeadon
h = yeadon.Human('../misc/samplemeasurements/male1.txt')
h.set_CFG('CA1extension', deg2rad(-29))
h.set_CFG('CA1adduction', deg2rad(9))
h.set_CFG('CA1rotation', deg2rad(-60))
h.set_CFG('CB1extension', deg2rad(-29))
h.set_CFG('CB1rotation', deg2rad(58))
h.set_CFG('A1A2extension', deg2rad(-120))
h.set_CFG('B1B2extension', deg2rad(-124))
print('Moment of inertia about vertical axis')
print('-------------------------------------')
print('arms tucked in: {0} kg-m^2'.format(h.inertia[2, 2]))
h.draw()
h = yeadon.Human('../misc/samplemeasurements/male1.txt')
h.set_CFG('CA1adduction', deg2rad(-90))
h.set_CFG('CB1abduction', deg2rad(90))
print('arms out: {0} kg-m^2'.format(h.inertia[2, 2]))
h.draw()

0 comments on commit 81246fd

Please sign in to comment.