This repository contains an example of reactive inference with RxInfer.jl library for simple pendulum dynamics.
The example implements an interactive environment where a user can change different parameters of the pendulum
dynamics on the fly and see the result of the actions made by RxInfer
agent implemention.
preview720.mov
To (locally) reproduce this project, do the following:
- Go to the RxInfer.jl and click the
Star
button, otherwise the demo will not work. - You need the Julia programming language preinstalled. The
RxInfer.jl
works with Julia 1.6-1.9, but the demo has been tested with the latest 1.8.5 release. We recommend using thejuliaup
Julia version manager to easliy install multiple versions of Julia. - Start
julia
and run] add IJulia
. Note the]
symbol, its important, it changes the julia mode from execution to package manager mode. After that you may need to runbuild
in the package manager mode. Alternatively it is possible to do the same in the execution mode by runningusing Pkg; Pkg.add("IJulia"); Pkg.build()
. These commands install Julia jupyter kernel. After you can use either standardjupyter notebook
command or simply runusing IJulia; notebook(dir = pwd())
in the project's directory. - The repository comes with the preconfigured environment written in the
Project.toml
andManifest.toml
. The notebook instantiates and installs all required packages automatically. Note, however, that initial installation and precompilation may take a significant amount of time. - Simply click
Cells
->Run all
and wait for the instantion of the example. Julia may take several minutes to precompile the code.