To follow along with the presentation, take a look at the Jupyter notebooks in the notebooks
folder.
For help with this tutorial, you can open a new issue here: https://github.com/rdeits/DynamicWalking2018.jl/issues. For general help with Julia usage, try the Julia forum or the Julia Slack chat group
If you just want to try out Julia itself, all you need to do is download a Julia binary from https://julialang.org/downloads/ and follow the installation instructions.
Important: we've tested everything with the basic command line version of Julia. Please do not use the JuliaPro distribution for this tutorial.
Now you're ready to write Julia code and install other packages.
Jupyter notebooks are a great way to write interactive, descriptive code and to integrate code with data, graphs, and other results. Julia works great with Jupyter, and we'll run this tutorial inside a collection of notebooks.
To use Julia with Jupyter, you just need to install the IJulia
package. To do that, just start Julia and run:
Pkg.add("IJulia")
To start up Jupyter, you can run (in Julia):
using IJulia
notebook(dir=pwd())
or if you're already a Jupyter user, you can simply run jupyter notebook
as usual.
If you want all of the packages necessary to run this entire tutorial, then you just need to install this tutorial as another Julia package.
In Julia, do:
Pkg.clone("https://github.com/rdeits/DynamicWalking2018.jl")
Note that this will take a few minutes. We're demonstrating a lot of different Julia packages here, so this tutorial has a lot of dependencies, which may take a bit of time to download.
For example, you'll be getting:
- RigidBodyDynamics.jl: a library for efficient and flexibile rigid body mechanism kinematics and dynamics
- Plots.jl: a high-level plotting framework with support for various backends
- GR.jl: a high-performance plotting backend based on the GR framework
- JuMP.jl: a modeling language for optimization
- Ipopt.jl: JuMP-compatible bindings to the Ipopt optimization solver
- MeshCat.jl: a 3D visualizer that runs in the browser or a Jupyter notebook
and many more useful tools.
To launch Jupyter and access the notebooks found in this tutorial, you can do (in Julia):
using IJulia
notebook(dir=Pkg.dir("DynamicWalking2018", "notebooks"))
or simply run jupyter notebook
from the command line, if you already have it installed.
The first time you run a given function, Julia compiles native code for that particular function and its input types. Try running functions a few times to get a sense for how long they actually take once they've been compiled.