Sails is a simulator designed to test the AI of autonomous sailing robots. It emulates the basic physics of sailing a small single sail boat
Currently a large work in progress.
- Install the dependencies:
Fedora: sudo yum install cmake gtk3-devel librsvg2-devel
Debian/Ubuntu: sudo apt-get install cmake build-essential libgtk-3-dev librsvg2-dev
- Get source:
$ git clone https://github.com/kragniz/sails.git
- Compile:
$ cd sails
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..
- Run with:
$ ./build/sails
- Install Xcode (not command line utilities) and accept the license.
- Install JHBuild (a tool written for building large GNOME applications):
$ wget https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh
$ sh gtk-osx-build-setup.sh
$ alias jhbuild="~/.local/bin/jhbuild"
$ jhbuild bootstrap
$ jhbuild build meta-gtk-osx-bootstrap
$ jhbuild build meta-gtk-osx-gtk3
- Now, JHBuild should be all ready to compile GTK+3 applications. To get a sane build environment, enter the jhbuild shell:
$ jhbuild shell
- In this shell, start building stuff:
$ git clone https://github.com/kragniz/sails.git
$ cd sails
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..
- Now run with:
$ ./build/sails
Install MinGW and add the bin directory (defaults to
C:\MinGW\bin
) to PATH.
Install GTK+ from the all-in-one bundle.
Install git.
Get a copy of the source (using git bash):
$ git clone https://github.com/kragniz/sails.git
Compile using make:
$ cd sails
$ make
Run with:
$ ./sails.exe
Currently, the only way to interact with the boat is via the keyboard. This will change once the API is implemented. Current controls are:
e
andr
- turn the rudder left and rights
- toggle whether the sail is held or relaxedspace
- toggle camera mode from tracking and non-tracking
Copyright © 2014 Louis Taylor
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.