Release Notes
The GzUav 0.2 release has not been finalised yet. Information in this page, including .deb/.zip files, may change without notice.
This release mainly rearranges installed files in order to comply with the FHS. It also features a debian/ subfolder with metadata needed to build the project as an Ubuntu package and experimental camera with gimbal support.
Please install Gazebo 9 along with GzUav. For the convenience of the reader, the following instructions also include the Gazebo installation command, which can be skipped if already installed:
# Step 1: Install Gazebo curl -sSL http://get.gazebosim.org | sh # Step 2: Download the GzUav package wget https://gzuav.dmi.unict.it/archive/gzuav-0.2-amd64.deb # Step 3: Install it sudo apt install ./gzuav-0.2-amd64.deb
It is assumed that Gazebo (and, in particular, its libgazebo9-dev package) is already installed. Please note that some commands may seem to freeze while they are actually downloading subprojects (such as ArduPilot and Ns-3).
# Step 1: Prerequisites other than Gazebo sudo apt install build-essential cmake git python-future libgsl-dev # Step 2: Download the GzUav source code wget https://gzuav.dmi.unict.it/archive/gzuav-0.2.zip # Step 3: Extract it unzip gzuav-0.2.zip cd gzuav-0.2 # Step 4: Build the GzUav core components mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=../install make make install # Step 5: Download and build Ns-3 from source (including the GzUav-provided external-sync module) sudo apt install mercurial cd ../ns-3 ./setup-environment.sh cd ns-3-allinone ./build.py --enable-examples -- --build-profile=release
Note: Unlike the .deb precompiled package method, the installation method described above requires adding install/bin and ns-3/ns-3-allinone/ns-3-dev/build/src/external-sync/examples to your PATH environment variable, as well as setting LD_LIBRARY_PATH to the ns-3/ns-3-allinone/ns-3-dev/build/lib directory. The following section describes this process in detail.
Assuming that you extracted gzuav-0.2.zip in the /home/john/gzuav-0.2 directory, you will have to run the following commands every time you open a terminal in which GzUav is to be used:
export PATH=/home/john/gzuav-0.2/install/bin:/home/john/gzuav-0.2/ns-3/ns-3-allinone/ns-3-dev/build/src/external-sync/examples:$PATH export LD_LIBRARY_PATH=/home/john/gzuav-0.2/ns-3/ns-3-allinone/ns-3-dev/build/lib
Tips:
A set of tutorials is available at the GzUav website.