ject2.html Implement two integration methods to simulate the - - PowerPoint PPT Presentation

ject2 html
SMART_READER_LITE
LIVE PREVIEW

ject2.html Implement two integration methods to simulate the - - PowerPoint PPT Presentation

http://www.cc.gatech.edu/classes/AY2014/cs4496_spring/Pro ject2.html Implement two integration methods to simulate the motion of a ball falling under gravity. One of these is to match the analytic equation of motion and the other has


slide-1
SLIDE 1

http://www.cc.gatech.edu/classes/AY2014/cs4496_spring/Pro ject2.html

slide-2
SLIDE 2

 Implement two

integration methods to simulate the motion of a ball falling under gravity.

 One of these is to match

the analytic equation of motion and the other has to differ from the analytic equation of motion.

slide-3
SLIDE 3

 Code in apps/Galileo  Main.cpp – sets up the

window

 MyWindow.cpp –

handles keyboard events, calls MyWorld->simulate each step of the simulation.

 MyWorld.cpp – stores

the three particles, updates the particles state in simulate

 Particle.cpp – code for

drawing particles. Stores the state (position, velocity, acceleration of each particle)

slide-4
SLIDE 4
slide-5
SLIDE 5

 Replace the code in MyWorld::simulate() to update the

velocity and position of each particle appropriately –

  • ne will be guided by the equation of motion, the
  • thers by the result of your two integrators.
slide-6
SLIDE 6
slide-7
SLIDE 7

 The C++ code is written using functionalities provided

by DART <Dynamic Animation & Robotics Toolkit>

 Step I – fetch and install DART  Step II - Compile and build DART  Step III – Makes changes to the Galileo app.

slide-8
SLIDE 8

 Git – Distributed version control system  Workspace – the folder where you are working.  Staging – the contents you’d like GIT to start keeping a

track of are moved to staging.

 Local Repo – a distributed version control system gives

each local client a complete copy of the code.

 Remote Repo – the repository that is present at a

remote location

slide-9
SLIDE 9
slide-10
SLIDE 10

nbviewer.ipython.org

slide-11
SLIDE 11

 git clone -b

CS4496 https://github.com/dartsim/dart.git – to clone branch CS4496 to the dart folder on your machine (Remember to use the –b option and specify the branch).

 Steps mentioned in Project description.

slide-12
SLIDE 12

 At least have the DART code compiling and running by

the end of tomorrow.

 Ask questions in forums / mail the TA in case you have

any issues setting up DART and getting to the stage where you can see the three particles falling.

slide-13
SLIDE 13

 Git tutorial:

http://rypress.com/tutorials/git/index.html?utm_med ium=App.net&utm_source=PourOver