Caesar.jl is one of the packages within the JuliaRobotics community, and adheres to the code-of-conduct.
The following system packages are used by Caesar.jl:
# required packages sudo apt-get install hdf5-tools # optional packages sudo apt-get install graphviz imagemagick
Local Installation of Julia
Although Julia (or JuliaPro) can be installed on a Linux computer using the
apt package manager, we are striving for a fully local installation environment which is highly reproducible on a variety of platforms.
The easiest method is–-via the terminal–-to download the desired version of Julia as a binary, extract, setup a symbolic link, and run:
cd ~ mkdir -p julia-software cd julia-software wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.1-linux-x86_64.tar.gz tar -xvf julia-1.0.1-linux-x86_64.tar.gz cd /usr/bin sudo ln -s ~/julia-software/julia-1.0.1/bin/julia julia
Note Feel free to modify this setup as you see fit.
This should allow any terminal or process on the computer to run the Julia REPL by type
julia and testing with:
println("hello world") # Should print "hello world"
Maybe a script, or command:
user@...$ echo "println(\"hello again\")" > myscript.jl user@...$ julia myscript.jl hello again user@...$ rm myscript.jl user@...$ julia -e "println(\"one more time.\")" one more time. user@...$ julia -e "println(\"...testing...\")" ...testing...
Note: When searching for Julia related help online, use the phrase 'julialang' instead of just 'julia'.
For example, search for 'julialang workflow tips' or 'julialang performance tips'.
Just-In-Time Compiling (i.e. why are first runs slow?)
Julia uses just-in-time compilation (unless pre-compiled) which is slow the first time a function is called but fast from the second call onwards, since the static function is now cached and ready for use.
Setup Juno IDE Environment
Juno IDE allows for interactive development of Julia code by extending the Atom text editor with a few packages. Download and install Atom as instructed on the website, or via command line:
cd ~/Downloads wget https://atom.io/download/deb dpkg -i atom-amd64.deb
After installing and running Atom, you can choose to either install
uber-juno package in one go or install the three associated packages individually. In Atom, open the command pallette by pressing
Ctrl + Shft + p and typing
settings. Go to the
install tab, search for and install either
or the individual packages directly:
ink julia-client julia-language latex-completions
Note Some situations have required the user separately installing the
Atom.jlJulia package via command line (if Juno does not automatically install Atom.jl for you). Atom.jl can then be installed with Julia's package manager and
] # activate Pkg manager (v1.0) pkg> add Atom
There are a variety of useful packages in Atom, such as
To install the Julia packages related to Caesar.jl–-which are independent of the Atom packages installed above–-please follow instructions below.
The philosophy around Julia packages are discussed at length in the Julia core documentation, where each Julia package relates to a git repository likely found on Github.com. To install a Julia package, simply open a
julia REPL (equally the julia REPL in Atom/Juno) and type:
] # activate Pkg manager (v1.0) pkg> add Caesar
These are registered packages maintained by JuliaLang/METADATA.jl. Unregistered latest packages can also be installed with using only the
# Just using Caesar URL as an example -- Caesar is already registered with METADATA using Pkg Pkg.develop(PackageSpec(url="https://github.com/JuliaRobotics/Caesar.jl.git"))
Unless you change the default environment variable
JULIA_PKG_DIR, all packages (git repos) are cloned/installed to
~/.julia. You can work with the packages as regular git repositories there.
Install Visualization Utils (e.g. Arena.jl)
Visualizations were removed from Caesar and moved to a new package Arena.jl instead. Please follow instructions on the Visualizations page for a variety of 3D utilities.
Arena.jl can be installed with the following steps:
] add Arena
of the latest development version:
(v1.0) pkg> add Arena#master
RoMEPlotting.jl for 2D plots
Previous versions of libraries required the following Linux system packages be installed:
sudo apt-get install libfontconfig1 sudo apt-get install gettext sudo apt-get install libcairo2 sudo apt-get install libpango1.0-0 # or libpango1.0-1
The RoMEPlotting.jl package must be installed up to latest master branch (development branch) owing to an upstream issue with Pango fonts on Julia 1.0 with Gadfly.jl plotting. Once this issue is resolved, the next RoMEPlotting stable version can be tagged and be available as a standard stable release.
Please install the latest RoMEPlotting using Package manager as follows:
$ julia # latest v1.0.x julia> ] # to get package manager (v1.0) pkg> add RoMEPlotting#master
dev command –- i.e.
(v1.0) pkg> dev RoMEPlotting –- will clone the RoMEPlotting.jl git repository to your local
Last updated February 2019
Contributing, Issues, or Comments
Please feel free to open issues with Caesar.jl or even Fork and Pull Request as required. General conversations or comments can be made in the Caesar Gist.