SlideShare a Scribd company logo
1 of 3
Download to read offline
Develop a VPython program creating an animation of your group’s object (a person walking up a
flight up stairs) and cause it to move so that the animation simulates the motion of the object
assigned. A .py file
Solution
from visual import *
import xlrd
scene2 = display(title='upstairs ', x=0, y=0, width=600, height=600, center=(30,-20,0),
background=(0,1,1))
file_loc = "D:acadcct.xlsx"
workbook = xlrd.open_workbook(file_loc)
sheet = workbook.sheet_by_index(0)
r = 1.0
rb = 0.5
floor_bottom = box(pos=(30, -39, -15), length=60, height=2, width=30)
Rank = sphere(pos=(27,-36,0), radius=r)
Rknee = sphere(pos=(28.3,-29.1,0), radius=r)
Rhip = sphere(pos=(28.6,-22.6,0), radius=r)
Rshoulder = sphere(pos=(28.15,-16.65,0.75), radius=r)
Relbo = sphere(pos=(28.5,-22,0.75), radius=r)
Rwrist = sphere(pos=(29.7,-26.11,0.75), radius=r)
Lank = sphere(pos=(34,-36,-0.5), radius=r)
Lknee = sphere(pos=(33.5,-28.8,-0.5), radius=r)
Lhip = sphere(pos=(32.17,-21.94,-0.5), radius=r)
Lshoulder = sphere(pos=(33.4,-15.9,-0.75), radius=r)
Lelbo = sphere(pos=(33.6,-20.74,0), radius=r)
Lwrist = sphere(pos=(32.03,-24.2,0.6), radius=r)
bone_Rank_Rknee = cylinder(pos= Rank.pos, axis=Rknee.pos-Rank.pos, radius=rb, color =
color.black)
bone_Rhip_Rknee = cylinder(pos= Rknee.pos, axis=Rhip.pos-Rknee.pos, radius=rb, color =
color.black)
bone_Rhip_Lhip = cylinder(pos= Rhip.pos, axis=Lhip.pos-Rhip.pos, radius=rb)
bone_Lhip_Lknee = cylinder(pos= Lhip.pos, axis=Lknee.pos-Lhip.pos, radius=rb, color =
color.black)
bone_Lank_Lknee = cylinder(pos= Lank.pos, axis=Lknee.pos-Lank.pos, radius=rb, color =
color.black)
bone_Lhip_Lshoulder = cylinder(pos= Lhip.pos, axis=Lshoulder.pos-Lhip.pos, radius=rb)
bone_Rhip_Rshoulder = cylinder(pos= Rhip.pos, axis=Rshoulder.pos-Rhip.pos, radius=rb)
bone_Rshoulder_Lshoulder = cylinder(pos= Lshoulder.pos, axis=Rshoulder.pos-Lshoulder.pos,
radius=rb)
bone_Lelbo_Lshoulder = cylinder(pos= Lelbo.pos, axis=Lshoulder.pos-Lelbo.pos, radius=rb)
bone_Lelbo_Lwrist = cylinder(pos= Lelbo.pos, axis=Lwrist.pos-Lelbo.pos, radius=rb)
bone_Relbo_Rshoulder = cylinder(pos= Relbo.pos, axis=Rshoulder.pos-Relbo.pos, radius=rb)
bone_Relbo_Rwrist = cylinder(pos= Relbo.pos, axis=Rwrist.pos-Relbo.pos, radius=rb)
Bat = cylinder(pos= Lwrist.pos, axis=Bat_bottom.pos-Lwrist.pos, radius=0.8, color =
color.yellow)
LLeg = cylinder(pos= Lank.pos, axis=(1,-1,2), radius=0.8, color = color.red)
RLeg = cylinder(pos= Rank.pos, axis=(1,-1,2), radius=0.8, color = color.red)
while True :
for i in range( 3, 17,1):
rate(20)
if i > 6:
boll.pos = (sheet.cell_value(i,40), -1*sheet.cell_value(i,41), sheet.cell_value(i,42))
boll.color = color.green
Rank.pos = ( sheet.cell_value(i,1), -1*sheet.cell_value(i,2), sheet.cell_value(i,3))
Rknee.pos = ( sheet.cell_value(i,4), -1*sheet.cell_value(i,5), sheet.cell_value(i,6))
Rhip.pos = ( sheet.cell_value(i,7), -1*sheet.cell_value(i,8), sheet.cell_value(i,9))
Rshoulder.pos = ( sheet.cell_value(i,10), -1*sheet.cell_value(i,11), sheet.cell_value(i,12))
Relbo.pos = ( sheet.cell_value(i,13), -1*sheet.cell_value(i,14), sheet.cell_value(i,15))
Rwrist.pos = ( sheet.cell_value(i,16), -1*sheet.cell_value(i,17), sheet.cell_value(i,18))
Lank.pos = ( sheet.cell_value(i,19), -1*sheet.cell_value(i,20), sheet.cell_value(i,21))
Lknee.pos = ( sheet.cell_value(i,22), -1*sheet.cell_value(i,23), sheet.cell_value(i,24))
Lhip.pos = ( sheet.cell_value(i,25), -1*sheet.cell_value(i,26), sheet.cell_value(i,27))
Lshoulder.pos = ( sheet.cell_value(i,28), -1*sheet.cell_value(i,29), sheet.cell_value(i,30))
Lelbo.pos = ( sheet.cell_value(i,31), -1*sheet.cell_value(i,32), sheet.cell_value(i,33))
Lwrist.pos = ( sheet.cell_value(i,34), -1*sheet.cell_value(i,35), sheet.cell_value(i,36))
bone_Rank_Rknee.pos = Rank.pos
bone_Rank_Rknee.axis = Rknee.pos-Rank.pos
bone_Rhip_Rknee.pos = Rhip.pos
bone_Rhip_Rknee.axis = Rknee.pos-Rhip.pos
bone_Rhip_Lhip.pos = Rhip.pos
bone_Rhip_Lhip.axis = Lhip.pos-Rhip.pos
bone_Lhip_Lknee.pos = Lhip.pos
bone_Lhip_Lknee.axis = Lknee.pos-Lhip.pos
bone_Lank_Lknee.pos = Lank.pos
bone_Lank_Lknee.axis = Lknee.pos-Lank.pos
bone_Lhip_Lshoulder.pos = Lhip.pos
bone_Lhip_Lshoulder.axis = Lshoulder.pos-Lhip.pos
bone_Rhip_Rshoulder.pos = Rhip.pos
bone_Rhip_Rshoulder.axis = Rshoulder.pos-Rhip.pos
bone_Rshoulder_Lshoulder.pos = Lshoulder.pos
bone_Rshoulder_Lshoulder.axis = Rshoulder.pos-Lshoulder.pos
bone_Lelbo_Lshoulder.pos = Lelbo.pos
bone_Lelbo_Lshoulder.axis = Lshoulder.pos- Lelbo.pos
bone_Lelbo_Lwrist.pos = Lelbo.pos
bone_Lelbo_Lwrist.axis = Lwrist.pos- Lelbo.pos
bone_Relbo_Rshoulder.pos = Relbo.pos
bone_Relbo_Rshoulder.axis = Rshoulder.pos- Relbo.pos
bone_Relbo_Rwrist.pos = Relbo.pos
bone_Relbo_Rwrist.axis = Rwrist.pos- Relbo.pos
LLeg.pos = Lank.pos RLeg.pos = Rank.pos

More Related Content

Similar to Develop a VPython program creating an animation of your group’s obje.pdf

ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2zukun
 
05 Geographic scripting in uDig - halfway between user and developer
05 Geographic scripting in uDig - halfway between user and developer05 Geographic scripting in uDig - halfway between user and developer
05 Geographic scripting in uDig - halfway between user and developerAndrea Antonello
 
Functional Core and Imperative Shell - Game of Life Example - Haskell and Scala
Functional Core and Imperative Shell - Game of Life Example - Haskell and ScalaFunctional Core and Imperative Shell - Game of Life Example - Haskell and Scala
Functional Core and Imperative Shell - Game of Life Example - Haskell and ScalaPhilip Schwarz
 
Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchAhmed BESBES
 
미려한 UI/UX를 위한 여정
미려한 UI/UX를 위한 여정미려한 UI/UX를 위한 여정
미려한 UI/UX를 위한 여정SeungChul Kang
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Shajun Nisha
 
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxFINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxvoversbyobersby
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIDr. Volkan OBAN
 
Python 101 language features and functional programming
Python 101 language features and functional programmingPython 101 language features and functional programming
Python 101 language features and functional programmingLukasz Dynowski
 
Implementing virtual machines in go & c 2018 redux
Implementing virtual machines in go & c 2018 reduxImplementing virtual machines in go & c 2018 redux
Implementing virtual machines in go & c 2018 reduxEleanor McHugh
 
Programming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYProgramming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYvikram mahendra
 
Data structures KTU chapter2.PPT
Data structures KTU chapter2.PPTData structures KTU chapter2.PPT
Data structures KTU chapter2.PPTAlbin562191
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programmingAlberto Labarga
 
Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testingabukky52
 

Similar to Develop a VPython program creating an animation of your group’s obje.pdf (20)

lect.no.3.pptx
lect.no.3.pptxlect.no.3.pptx
lect.no.3.pptx
 
ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2ECCV2010: feature learning for image classification, part 2
ECCV2010: feature learning for image classification, part 2
 
05 Geographic scripting in uDig - halfway between user and developer
05 Geographic scripting in uDig - halfway between user and developer05 Geographic scripting in uDig - halfway between user and developer
05 Geographic scripting in uDig - halfway between user and developer
 
Functional Core and Imperative Shell - Game of Life Example - Haskell and Scala
Functional Core and Imperative Shell - Game of Life Example - Haskell and ScalaFunctional Core and Imperative Shell - Game of Life Example - Haskell and Scala
Functional Core and Imperative Shell - Game of Life Example - Haskell and Scala
 
Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from Scratch
 
미려한 UI/UX를 위한 여정
미려한 UI/UX를 위한 여정미려한 UI/UX를 위한 여정
미려한 UI/UX를 위한 여정
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docxFINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
FINAL PROJECT, MATH 251, FALL 2015[The project is Due Mond.docx
 
Python for R users
Python for R usersPython for R users
Python for R users
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part II
 
Digtial Image Processing Q@A
Digtial Image Processing Q@ADigtial Image Processing Q@A
Digtial Image Processing Q@A
 
Python 101 language features and functional programming
Python 101 language features and functional programmingPython 101 language features and functional programming
Python 101 language features and functional programming
 
Implementing virtual machines in go & c 2018 redux
Implementing virtual machines in go & c 2018 reduxImplementing virtual machines in go & c 2018 redux
Implementing virtual machines in go & c 2018 redux
 
arrays.pptx
arrays.pptxarrays.pptx
arrays.pptx
 
Python at 10.1
Python at 10.1Python at 10.1
Python at 10.1
 
Programming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAYProgramming in lua STRING AND ARRAY
Programming in lua STRING AND ARRAY
 
Py lecture5 python plots
Py lecture5 python plotsPy lecture5 python plots
Py lecture5 python plots
 
Data structures KTU chapter2.PPT
Data structures KTU chapter2.PPTData structures KTU chapter2.PPT
Data structures KTU chapter2.PPT
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
Program implementation and testing
Program implementation and testingProgram implementation and testing
Program implementation and testing
 

More from feelinggift

A) Which of the following element is seen in all organic molecules Si.pdf
A) Which of the following element is seen in all organic molecules Si.pdfA) Which of the following element is seen in all organic molecules Si.pdf
A) Which of the following element is seen in all organic molecules Si.pdffeelinggift
 
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdfGiven an ArrayList, write a Java method that returns a new ArrayList.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdffeelinggift
 
Write an MSP430g2553 C program to drive a continually scrolling mess.pdf
Write an MSP430g2553 C program to drive a continually scrolling mess.pdfWrite an MSP430g2553 C program to drive a continually scrolling mess.pdf
Write an MSP430g2553 C program to drive a continually scrolling mess.pdffeelinggift
 
Which of the following is NOT a financial measurement needed to see .pdf
Which of the following is NOT a financial measurement needed to see .pdfWhich of the following is NOT a financial measurement needed to see .pdf
Which of the following is NOT a financial measurement needed to see .pdffeelinggift
 
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
Which process uses chemiosmosis  A. Pyruvate oxidation  B. Electron .pdfWhich process uses chemiosmosis  A. Pyruvate oxidation  B. Electron .pdf
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdffeelinggift
 
What motives do corporate executives have that force them to embrace.pdf
What motives do corporate executives have that force them to embrace.pdfWhat motives do corporate executives have that force them to embrace.pdf
What motives do corporate executives have that force them to embrace.pdffeelinggift
 
when are business cases or project charters overkillSolutionP.pdf
when are business cases or project charters overkillSolutionP.pdfwhen are business cases or project charters overkillSolutionP.pdf
when are business cases or project charters overkillSolutionP.pdffeelinggift
 
True or False The Congressional Budget Office projects that approxi.pdf
True or False The Congressional Budget Office projects that approxi.pdfTrue or False The Congressional Budget Office projects that approxi.pdf
True or False The Congressional Budget Office projects that approxi.pdffeelinggift
 
Using the space provided compose an ESSAY concerning the following qu.pdf
Using the space provided compose an ESSAY concerning the following qu.pdfUsing the space provided compose an ESSAY concerning the following qu.pdf
Using the space provided compose an ESSAY concerning the following qu.pdffeelinggift
 
We continually hear about interest groups in the news. Understanding.pdf
We continually hear about interest groups in the news. Understanding.pdfWe continually hear about interest groups in the news. Understanding.pdf
We continually hear about interest groups in the news. Understanding.pdffeelinggift
 
View transaction list Journal entry worksheet 6 9 The company receive.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdfView transaction list Journal entry worksheet 6 9 The company receive.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdffeelinggift
 
Physical security is a fundamental component of any secure infrastru.pdf
Physical security is a fundamental component of any secure infrastru.pdfPhysical security is a fundamental component of any secure infrastru.pdf
Physical security is a fundamental component of any secure infrastru.pdffeelinggift
 
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdfTrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdffeelinggift
 
This is a homework assignment that I have for my Java coding class. .pdf
This is a homework assignment that I have for my Java coding class. .pdfThis is a homework assignment that I have for my Java coding class. .pdf
This is a homework assignment that I have for my Java coding class. .pdffeelinggift
 
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdfThe Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdffeelinggift
 
The first thermodynamic law for a system of charged molecules in elec.pdf
The first thermodynamic law for a system of charged molecules in elec.pdfThe first thermodynamic law for a system of charged molecules in elec.pdf
The first thermodynamic law for a system of charged molecules in elec.pdffeelinggift
 
show all of your work to arrive a final result Simple Interest Simpl.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdfshow all of your work to arrive a final result Simple Interest Simpl.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdffeelinggift
 
Terms from which students can chooseMacrophages; •Only one.pdf
Terms from which students can chooseMacrophages; •Only one.pdfTerms from which students can chooseMacrophages; •Only one.pdf
Terms from which students can chooseMacrophages; •Only one.pdffeelinggift
 
Simulate the Stakeholder deliverable for the development of an onlin.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdfSimulate the Stakeholder deliverable for the development of an onlin.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdffeelinggift
 
I want to write this program in java.Write a simple airline ticket.pdf
I want to write this program in java.Write a simple airline ticket.pdfI want to write this program in java.Write a simple airline ticket.pdf
I want to write this program in java.Write a simple airline ticket.pdffeelinggift
 

More from feelinggift (20)

A) Which of the following element is seen in all organic molecules Si.pdf
A) Which of the following element is seen in all organic molecules Si.pdfA) Which of the following element is seen in all organic molecules Si.pdf
A) Which of the following element is seen in all organic molecules Si.pdf
 
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdfGiven an ArrayList, write a Java method that returns a new ArrayList.pdf
Given an ArrayList, write a Java method that returns a new ArrayList.pdf
 
Write an MSP430g2553 C program to drive a continually scrolling mess.pdf
Write an MSP430g2553 C program to drive a continually scrolling mess.pdfWrite an MSP430g2553 C program to drive a continually scrolling mess.pdf
Write an MSP430g2553 C program to drive a continually scrolling mess.pdf
 
Which of the following is NOT a financial measurement needed to see .pdf
Which of the following is NOT a financial measurement needed to see .pdfWhich of the following is NOT a financial measurement needed to see .pdf
Which of the following is NOT a financial measurement needed to see .pdf
 
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
Which process uses chemiosmosis  A. Pyruvate oxidation  B. Electron .pdfWhich process uses chemiosmosis  A. Pyruvate oxidation  B. Electron .pdf
Which process uses chemiosmosis A. Pyruvate oxidation B. Electron .pdf
 
What motives do corporate executives have that force them to embrace.pdf
What motives do corporate executives have that force them to embrace.pdfWhat motives do corporate executives have that force them to embrace.pdf
What motives do corporate executives have that force them to embrace.pdf
 
when are business cases or project charters overkillSolutionP.pdf
when are business cases or project charters overkillSolutionP.pdfwhen are business cases or project charters overkillSolutionP.pdf
when are business cases or project charters overkillSolutionP.pdf
 
True or False The Congressional Budget Office projects that approxi.pdf
True or False The Congressional Budget Office projects that approxi.pdfTrue or False The Congressional Budget Office projects that approxi.pdf
True or False The Congressional Budget Office projects that approxi.pdf
 
Using the space provided compose an ESSAY concerning the following qu.pdf
Using the space provided compose an ESSAY concerning the following qu.pdfUsing the space provided compose an ESSAY concerning the following qu.pdf
Using the space provided compose an ESSAY concerning the following qu.pdf
 
We continually hear about interest groups in the news. Understanding.pdf
We continually hear about interest groups in the news. Understanding.pdfWe continually hear about interest groups in the news. Understanding.pdf
We continually hear about interest groups in the news. Understanding.pdf
 
View transaction list Journal entry worksheet 6 9 The company receive.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdfView transaction list Journal entry worksheet 6 9 The company receive.pdf
View transaction list Journal entry worksheet 6 9 The company receive.pdf
 
Physical security is a fundamental component of any secure infrastru.pdf
Physical security is a fundamental component of any secure infrastru.pdfPhysical security is a fundamental component of any secure infrastru.pdf
Physical security is a fundamental component of any secure infrastru.pdf
 
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdfTrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
TrueFalse Verilog is case-insensitive TF Verilog has constructs.pdf
 
This is a homework assignment that I have for my Java coding class. .pdf
This is a homework assignment that I have for my Java coding class. .pdfThis is a homework assignment that I have for my Java coding class. .pdf
This is a homework assignment that I have for my Java coding class. .pdf
 
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdfThe Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
The Jannuschs operated Festival Foods, a busi- ness that served conc.pdf
 
The first thermodynamic law for a system of charged molecules in elec.pdf
The first thermodynamic law for a system of charged molecules in elec.pdfThe first thermodynamic law for a system of charged molecules in elec.pdf
The first thermodynamic law for a system of charged molecules in elec.pdf
 
show all of your work to arrive a final result Simple Interest Simpl.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdfshow all of your work to arrive a final result Simple Interest Simpl.pdf
show all of your work to arrive a final result Simple Interest Simpl.pdf
 
Terms from which students can chooseMacrophages; •Only one.pdf
Terms from which students can chooseMacrophages; •Only one.pdfTerms from which students can chooseMacrophages; •Only one.pdf
Terms from which students can chooseMacrophages; •Only one.pdf
 
Simulate the Stakeholder deliverable for the development of an onlin.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdfSimulate the Stakeholder deliverable for the development of an onlin.pdf
Simulate the Stakeholder deliverable for the development of an onlin.pdf
 
I want to write this program in java.Write a simple airline ticket.pdf
I want to write this program in java.Write a simple airline ticket.pdfI want to write this program in java.Write a simple airline ticket.pdf
I want to write this program in java.Write a simple airline ticket.pdf
 

Recently uploaded

MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MysoreMuleSoftMeetup
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptxVishal Singh
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 

Recently uploaded (20)

MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 

Develop a VPython program creating an animation of your group’s obje.pdf

  • 1. Develop a VPython program creating an animation of your group’s object (a person walking up a flight up stairs) and cause it to move so that the animation simulates the motion of the object assigned. A .py file Solution from visual import * import xlrd scene2 = display(title='upstairs ', x=0, y=0, width=600, height=600, center=(30,-20,0), background=(0,1,1)) file_loc = "D:acadcct.xlsx" workbook = xlrd.open_workbook(file_loc) sheet = workbook.sheet_by_index(0) r = 1.0 rb = 0.5 floor_bottom = box(pos=(30, -39, -15), length=60, height=2, width=30) Rank = sphere(pos=(27,-36,0), radius=r) Rknee = sphere(pos=(28.3,-29.1,0), radius=r) Rhip = sphere(pos=(28.6,-22.6,0), radius=r) Rshoulder = sphere(pos=(28.15,-16.65,0.75), radius=r) Relbo = sphere(pos=(28.5,-22,0.75), radius=r) Rwrist = sphere(pos=(29.7,-26.11,0.75), radius=r) Lank = sphere(pos=(34,-36,-0.5), radius=r) Lknee = sphere(pos=(33.5,-28.8,-0.5), radius=r) Lhip = sphere(pos=(32.17,-21.94,-0.5), radius=r) Lshoulder = sphere(pos=(33.4,-15.9,-0.75), radius=r) Lelbo = sphere(pos=(33.6,-20.74,0), radius=r) Lwrist = sphere(pos=(32.03,-24.2,0.6), radius=r) bone_Rank_Rknee = cylinder(pos= Rank.pos, axis=Rknee.pos-Rank.pos, radius=rb, color = color.black) bone_Rhip_Rknee = cylinder(pos= Rknee.pos, axis=Rhip.pos-Rknee.pos, radius=rb, color = color.black)
  • 2. bone_Rhip_Lhip = cylinder(pos= Rhip.pos, axis=Lhip.pos-Rhip.pos, radius=rb) bone_Lhip_Lknee = cylinder(pos= Lhip.pos, axis=Lknee.pos-Lhip.pos, radius=rb, color = color.black) bone_Lank_Lknee = cylinder(pos= Lank.pos, axis=Lknee.pos-Lank.pos, radius=rb, color = color.black) bone_Lhip_Lshoulder = cylinder(pos= Lhip.pos, axis=Lshoulder.pos-Lhip.pos, radius=rb) bone_Rhip_Rshoulder = cylinder(pos= Rhip.pos, axis=Rshoulder.pos-Rhip.pos, radius=rb) bone_Rshoulder_Lshoulder = cylinder(pos= Lshoulder.pos, axis=Rshoulder.pos-Lshoulder.pos, radius=rb) bone_Lelbo_Lshoulder = cylinder(pos= Lelbo.pos, axis=Lshoulder.pos-Lelbo.pos, radius=rb) bone_Lelbo_Lwrist = cylinder(pos= Lelbo.pos, axis=Lwrist.pos-Lelbo.pos, radius=rb) bone_Relbo_Rshoulder = cylinder(pos= Relbo.pos, axis=Rshoulder.pos-Relbo.pos, radius=rb) bone_Relbo_Rwrist = cylinder(pos= Relbo.pos, axis=Rwrist.pos-Relbo.pos, radius=rb) Bat = cylinder(pos= Lwrist.pos, axis=Bat_bottom.pos-Lwrist.pos, radius=0.8, color = color.yellow) LLeg = cylinder(pos= Lank.pos, axis=(1,-1,2), radius=0.8, color = color.red) RLeg = cylinder(pos= Rank.pos, axis=(1,-1,2), radius=0.8, color = color.red) while True : for i in range( 3, 17,1): rate(20) if i > 6: boll.pos = (sheet.cell_value(i,40), -1*sheet.cell_value(i,41), sheet.cell_value(i,42)) boll.color = color.green Rank.pos = ( sheet.cell_value(i,1), -1*sheet.cell_value(i,2), sheet.cell_value(i,3)) Rknee.pos = ( sheet.cell_value(i,4), -1*sheet.cell_value(i,5), sheet.cell_value(i,6)) Rhip.pos = ( sheet.cell_value(i,7), -1*sheet.cell_value(i,8), sheet.cell_value(i,9)) Rshoulder.pos = ( sheet.cell_value(i,10), -1*sheet.cell_value(i,11), sheet.cell_value(i,12)) Relbo.pos = ( sheet.cell_value(i,13), -1*sheet.cell_value(i,14), sheet.cell_value(i,15)) Rwrist.pos = ( sheet.cell_value(i,16), -1*sheet.cell_value(i,17), sheet.cell_value(i,18)) Lank.pos = ( sheet.cell_value(i,19), -1*sheet.cell_value(i,20), sheet.cell_value(i,21)) Lknee.pos = ( sheet.cell_value(i,22), -1*sheet.cell_value(i,23), sheet.cell_value(i,24)) Lhip.pos = ( sheet.cell_value(i,25), -1*sheet.cell_value(i,26), sheet.cell_value(i,27)) Lshoulder.pos = ( sheet.cell_value(i,28), -1*sheet.cell_value(i,29), sheet.cell_value(i,30)) Lelbo.pos = ( sheet.cell_value(i,31), -1*sheet.cell_value(i,32), sheet.cell_value(i,33)) Lwrist.pos = ( sheet.cell_value(i,34), -1*sheet.cell_value(i,35), sheet.cell_value(i,36))
  • 3. bone_Rank_Rknee.pos = Rank.pos bone_Rank_Rknee.axis = Rknee.pos-Rank.pos bone_Rhip_Rknee.pos = Rhip.pos bone_Rhip_Rknee.axis = Rknee.pos-Rhip.pos bone_Rhip_Lhip.pos = Rhip.pos bone_Rhip_Lhip.axis = Lhip.pos-Rhip.pos bone_Lhip_Lknee.pos = Lhip.pos bone_Lhip_Lknee.axis = Lknee.pos-Lhip.pos bone_Lank_Lknee.pos = Lank.pos bone_Lank_Lknee.axis = Lknee.pos-Lank.pos bone_Lhip_Lshoulder.pos = Lhip.pos bone_Lhip_Lshoulder.axis = Lshoulder.pos-Lhip.pos bone_Rhip_Rshoulder.pos = Rhip.pos bone_Rhip_Rshoulder.axis = Rshoulder.pos-Rhip.pos bone_Rshoulder_Lshoulder.pos = Lshoulder.pos bone_Rshoulder_Lshoulder.axis = Rshoulder.pos-Lshoulder.pos bone_Lelbo_Lshoulder.pos = Lelbo.pos bone_Lelbo_Lshoulder.axis = Lshoulder.pos- Lelbo.pos bone_Lelbo_Lwrist.pos = Lelbo.pos bone_Lelbo_Lwrist.axis = Lwrist.pos- Lelbo.pos bone_Relbo_Rshoulder.pos = Relbo.pos bone_Relbo_Rshoulder.axis = Rshoulder.pos- Relbo.pos bone_Relbo_Rwrist.pos = Relbo.pos bone_Relbo_Rwrist.axis = Rwrist.pos- Relbo.pos LLeg.pos = Lank.pos RLeg.pos = Rank.pos