Skip to content

Commit b8a135b

Browse files
committed
Initial commit
0 parents  commit b8a135b

File tree

7 files changed

+350
-0
lines changed

7 files changed

+350
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build/

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = python3 -msphinx
7+
SPHINXPROJ = RoboticSailingguide
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

boat.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
The boat
2+
========
3+
4+
A standard sailing boat has four main parts:
5+
6+
- **Hull**: Base platform, floats in the water.
7+
Probably also holds most of your electronics.
8+
- **Sails**: Transfers energy from the wind to the boat.
9+
Sails are most effective when acting as an airfoil,
10+
not just a bag catching the wind.
11+
- **Keel**: Heavy weight underwater, stops the boat falling over.
12+
- **Rudder**: Sticks into the water, turns to steer the boat.
13+
14+
If you don't want to build your own boat, a good shortcut is to look for remote
15+
controlled model sailing boats. Complete boats with servos for the sails and the
16+
rudder are available for a few hundred euros/dollars/pounds. The *RC laser*
17+
is one popular model, while the *International One Metre* class is a
18+
specification that many different models are made to.
19+
20+
Other things to try
21+
-------------------
22+
23+
- *Wing sails* are rigid airfoils rather than a flexible sheet.
24+
They can be balanced so that changing and holding their position needs little
25+
force.
26+
- An *air rudder* steers by deflecting air instead of water. Åland sailing
27+
robots use this in combination with a free rotating wing sail. (Ref paper)
28+
- *Multi-hull* designs, like catamarans and trimarans, have two or more hulls
29+
side-by-side, with a gap between them. This can help make the boat more
30+
stable.

conf.py

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Robotic Sailing guide documentation build configuration file, created by
5+
# sphinx-quickstart on Fri Aug 31 22:37:14 2018.
6+
#
7+
# This file is execfile()d with the current directory set to its
8+
# containing dir.
9+
#
10+
# Note that not all possible configuration values are present in this
11+
# autogenerated file.
12+
#
13+
# All configuration values have a default; values that are commented out
14+
# serve to show the default.
15+
16+
# If extensions (or modules to document with autodoc) are in another directory,
17+
# add these directories to sys.path here. If the directory is relative to the
18+
# documentation root, use os.path.abspath to make it absolute, like shown here.
19+
#
20+
# import os
21+
# import sys
22+
# sys.path.insert(0, os.path.abspath('.'))
23+
24+
25+
# -- General configuration ------------------------------------------------
26+
27+
# If your documentation needs a minimal Sphinx version, state it here.
28+
#
29+
# needs_sphinx = '1.0'
30+
31+
# Add any Sphinx extension module names here, as strings. They can be
32+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33+
# ones.
34+
extensions = []
35+
36+
# Add any paths that contain templates here, relative to this directory.
37+
templates_path = ['_templates']
38+
39+
# The suffix(es) of source filenames.
40+
# You can specify multiple suffix as a list of string:
41+
#
42+
# source_suffix = ['.rst', '.md']
43+
source_suffix = '.rst'
44+
45+
# The master toctree document.
46+
master_doc = 'index'
47+
48+
# General information about the project.
49+
project = 'Robotic Sailing guide'
50+
copyright = '2018, Thomas Kluyver'
51+
author = 'Thomas Kluyver'
52+
53+
# The version info for the project you're documenting, acts as replacement for
54+
# |version| and |release|, also used in various other places throughout the
55+
# built documents.
56+
#
57+
# The short X.Y version.
58+
version = ''
59+
# The full version, including alpha/beta/rc tags.
60+
release = ''
61+
62+
# The language for content autogenerated by Sphinx. Refer to documentation
63+
# for a list of supported languages.
64+
#
65+
# This is also used if you do content translation via gettext catalogs.
66+
# Usually you set "language" from the command line for these cases.
67+
language = None
68+
69+
# List of patterns, relative to source directory, that match files and
70+
# directories to ignore when looking for source files.
71+
# This patterns also effect to html_static_path and html_extra_path
72+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
73+
74+
# The name of the Pygments (syntax highlighting) style to use.
75+
pygments_style = 'sphinx'
76+
77+
# If true, `todo` and `todoList` produce output, else they produce nothing.
78+
todo_include_todos = False
79+
80+
81+
# -- Options for HTML output ----------------------------------------------
82+
83+
# The theme to use for HTML and HTML Help pages. See the documentation for
84+
# a list of builtin themes.
85+
#
86+
html_theme = 'alabaster'
87+
88+
# Theme options are theme-specific and customize the look and feel of a theme
89+
# further. For a list of options available for each theme, see the
90+
# documentation.
91+
#
92+
# html_theme_options = {}
93+
94+
# Add any paths that contain custom static files (such as style sheets) here,
95+
# relative to this directory. They are copied after the builtin static files,
96+
# so a file named "default.css" will overwrite the builtin "default.css".
97+
html_static_path = ['_static']
98+
99+
100+
# -- Options for HTMLHelp output ------------------------------------------
101+
102+
# Output file base name for HTML help builder.
103+
htmlhelp_basename = 'RoboticSailingguidedoc'
104+
105+
106+
# -- Options for LaTeX output ---------------------------------------------
107+
108+
latex_elements = {
109+
# The paper size ('letterpaper' or 'a4paper').
110+
#
111+
# 'papersize': 'letterpaper',
112+
113+
# The font size ('10pt', '11pt' or '12pt').
114+
#
115+
# 'pointsize': '10pt',
116+
117+
# Additional stuff for the LaTeX preamble.
118+
#
119+
# 'preamble': '',
120+
121+
# Latex figure (float) alignment
122+
#
123+
# 'figure_align': 'htbp',
124+
}
125+
126+
# Grouping the document tree into LaTeX files. List of tuples
127+
# (source start file, target name, title,
128+
# author, documentclass [howto, manual, or own class]).
129+
latex_documents = [
130+
(master_doc, 'RoboticSailingguide.tex', 'Robotic Sailing guide Documentation',
131+
'Thomas Kluyver', 'manual'),
132+
]
133+
134+
135+
# -- Options for manual page output ---------------------------------------
136+
137+
# One entry per manual page. List of tuples
138+
# (source start file, name, description, authors, manual section).
139+
man_pages = [
140+
(master_doc, 'roboticsailingguide', 'Robotic Sailing guide Documentation',
141+
[author], 1)
142+
]
143+
144+
145+
# -- Options for Texinfo output -------------------------------------------
146+
147+
# Grouping the document tree into Texinfo files. List of tuples
148+
# (source start file, target name, title, author,
149+
# dir menu entry, description, category)
150+
texinfo_documents = [
151+
(master_doc, 'RoboticSailingguide', 'Robotic Sailing guide Documentation',
152+
author, 'RoboticSailingguide', 'One line description of project.',
153+
'Miscellaneous'),
154+
]
155+
156+
157+

electronics.rst

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
Electronics
2+
===========
3+
4+
You'll need a computer, at least two motors, and a handful of sensors.
5+
6+
Computer
7+
--------
8+
9+
Several teams have successfully used a Raspberry Pi as the brains of their
10+
boats. Microcontrollers such as Arduinos are another option: these make it
11+
easier to work with low-level hardware interfaces like PWM control for servos,
12+
but are less flexible for writing high-level control code.
13+
What sensors you choose may also affect the kind of computer you need.
14+
15+
Motors
16+
------
17+
18+
You'll need to move the sails and the rudder to control the boat.
19+
For the micro-sailboat class, a typical hobby-grade servomotor can move the
20+
rudder, but more force is needed for the sails: sail winch servos are available
21+
for remote-controlled sailing.
22+
23+
If you have multiple sails or multiple rudders, you may want extra motors
24+
to control them independently.
25+
26+
Positioning
27+
-----------
28+
29+
GPS - and its cousins generically known as GNSS - are amazing.
30+
With an inexpensive receiver you can tap into a network of satellites
31+
and get an accurate position.
32+
33+
Making sense of the data can take a bit of effort.
34+
You'll probably get a latitude and longitude in a coordinate system called
35+
WGS-84 - at this level of accuracy, getting the right reference system
36+
matters.
37+
For the small distances involved in WRSC, it's convenient to convert positions
38+
to coordinates in metres and assume a flat plane. This is what the UTM
39+
coordinate system does; you'll need to find which of the 60 UTM zones you're
40+
sailing in to get the calculations right.
41+
42+
Wind sensors
43+
------------
44+
45+
You need to measure the wind direction, and you may also want to know the speed.
46+
The simple approach is a physical wind vane and some way of measuring its
47+
position, such as a rotary encoder or a magnetic field sensor.
48+
Ultrasonic wind sensors measure the direction and speed of the wind with
49+
no moving parts, by comparing how sound waves move in different directions.
50+
51+
Wind sensors are typically placed at the top of the mast or near the front of
52+
the boat, to minimise interference from the sails.
53+
54+
Orientation sensors
55+
-------------------
56+
57+
Sensing which way the boat is pointing is surprisingly tricky.
58+
The obvious approach is to measure the earth's magnetic field,
59+
like a handheld compass. But the earth's field is weak, and your electronics
60+
can interfere with it. If your boat can heel over in the wind, you also need
61+
to account for the third dimension.
62+
63+
Combining gyroscopes and magnetic field readings can give more accurate
64+
estimates of direction. Inexpensive 'IMUs' combining gyroscopes, magnetic field
65+
sensors and accelerometers are readily available. But combining multiple sources
66+
of data can also make it harder to understand when things go wrong.
67+
68+
Other ideas, of varying practicality:
69+
70+
- Use only a gyroscope, along with knowledge of which way the boat was pointing
71+
when it was started. Relies on having a gyroscope with low enough drift.
72+
- Infer the boat's orientation based on its movements tracked by GPS.
73+
- Have two GPS antennae, one at each end of the boat, and find the difference
74+
between their positions.
75+
- Use the position of the sun, along with the local time.
76+
It may be possible to use polarised light to estimate the sun's position
77+
through clouds; there are suggestions that 'sunstones' were used to navigate
78+
this way in mediaeval times.
79+
- Use computer vision to recognise landmarks, in combination with position
80+
from GPS.

index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Getting started with robotic sailing
2+
====================================
3+
4+
This is an overview of the steps you need to think about to build a small
5+
autonomous sailing boat, such as you might need to compete in WRSC.
6+
We've tried to provide pointers both for how to get something basic to work,
7+
and other approaches you might consider. Depending on the time, knowledge and
8+
resources you have available, you can pick which areas to innovate in, and where
9+
to get something basic working.
10+
11+
There are three main domains you'll need to think about:
12+
the boat, the electronics, and the control software.
13+
14+
.. toctree::
15+
:maxdepth: 2
16+
:caption: Contents:
17+
18+
boat
19+
electronics
20+
21+
22+
Indices and tables
23+
==================
24+
25+
* :ref:`genindex`
26+
* :ref:`search`

make.bat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=python -msphinx
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
set SPHINXPROJ=RoboticSailingguide
13+
14+
if "%1" == "" goto help
15+
16+
%SPHINXBUILD% >NUL 2>NUL
17+
if errorlevel 9009 (
18+
echo.
19+
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
20+
echo.then set the SPHINXBUILD environment variable to point to the full
21+
echo.path of the 'sphinx-build' executable. Alternatively you may add the
22+
echo.Sphinx directory to PATH.
23+
echo.
24+
echo.If you don't have Sphinx installed, grab it from
25+
echo.http://sphinx-doc.org/
26+
exit /b 1
27+
)
28+
29+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30+
goto end
31+
32+
:help
33+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34+
35+
:end
36+
popd

0 commit comments

Comments
 (0)