SLIDE 1
ject2.html Implement two integration methods to simulate the - - PowerPoint PPT Presentation
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 2
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 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 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
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 10
nbviewer.ipython.org
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
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