For desktop

cd ~/
mkdir hoverland
cd hoverland
git clone https://github.com/hovergroup/hover-kayak.git hover-kayak
hover-kayak/code/scripts/install-dependencies.sh
hover-kayak/code/scripts/install-moos.sh . -j4 -ap
hover-kayak/code/scripts/install-ivp.sh . -j4 -ap
hover-kayak/code/scripts/install-goby.sh . -j4 --ubuntu-dep
cd hover-kayak/code
./build_all.sh -j4 -ap

Matlab and mex-moos

Use your MIT account to download matlab from the mathworks website.  Run the installer as root and answer yes when prompted to create symbolic links.  To install mex-moos:

cd ~/hoverland/moos
git clone https://github.com/themoos/mex-moos.git mex-moos
cd mex-moos
cmake .
make -j2

This first make will download and build a private moos installing for mex-moos to use.  Run cmake and make again to build mex-moos itself:

cmake -D FORCE_RPATH_LINKING=OFF .
make -j2

The mex-moos executable will be built in the current directory as mexmoos.mexa64.  To add this directory to the path, first make the pathdef.m file modifiable by all users:

sudo chmod 666 /usr/local/MATLAB/R2014b/toolbox/local/pathdef.m

Now you should be able to launch matlab, add the mex-moos directory to the path, and save the new path.  

For vehicles

If not already set in your bashrc file, set the compiler to distcc and provide hosts. 

export CC=/usr/lib/distcc/arm-linux-gnueabi-gcc-4.7
export CXX=/usr/lib/distcc/arm-linux-gnueabi-g++-4.7
export DISTCC_HOSTS=192.168.1.100

Check out only the hovergroup svn directories we need:

cd ~/
mkdir hoverland
cd hoverland
svn checkout --depth=immediates https://hovergroup.googlecode.com/svn/trunk/ hovergroup

cd hovergroup
svn update --set-depth=exclude *
svn update --set-depth=infinity code missions third-party

Build everything

cd ~/hoverland
hovergroup/code/marine/scripts/install-dependencies.sh --vehicle
hovergroup/code/marine/scripts/install-moos.sh . -j4 -ap --vehicle
hovergroup/code/marine/scripts/install-ivp.sh . -j4 -ap --vehicle
hovergroup/code/marine/scripts/install-goby.sh . -j4 --debian-dep
cd hovergroup/code/marine
./build_all.sh -j4 -ap --vehicle
  • No labels