Update documentation
This commit is contained in:
parent
cab339c556
commit
a4839b8121
10 changed files with 285 additions and 8 deletions
13
_sources/lib/classes/DoubleElimination.rst.txt
Normal file
13
_sources/lib/classes/DoubleElimination.rst.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
.. _lib_doubleElim:
|
||||
|
||||
Double Elimination
|
||||
*******
|
||||
|
||||
Dokumentation der Klasse
|
||||
========================
|
||||
|
||||
.. autoclass:: compLib.DoubleElimination.Position
|
||||
:members:
|
||||
|
||||
.. autoclass:: compLib.DoubleElimination.DoubleElim
|
||||
:members:
|
|
@ -88,6 +88,10 @@
|
|||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/IRSensor.html#compLib.IRSensor.IRSensor.disable">disable() (statische Methode von compLib.IRSensor.IRSensor)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim">DoubleElim (Klasse in compLib.DoubleElimination)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
@ -108,6 +112,24 @@
|
|||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/Seeding.html#compLib.Seeding.Gamestate">Gamestate (Klasse in compLib.Seeding)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_goal">get_goal() (statische Methode von compLib.DoubleElimination.DoubleElim)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/Seeding.html#compLib.Seeding.Gamestate.get_heuballen">get_heuballen() (Methode von compLib.Seeding.Gamestate)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_items">get_items() (statische Methode von compLib.DoubleElimination.DoubleElim)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/Seeding.html#compLib.Seeding.Gamestate.get_logistic_plan">get_logistic_plan() (Methode von compLib.Seeding.Gamestate)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/Seeding.html#compLib.Seeding.Gamestate.get_material_deliveries">get_material_deliveries() (Methode von compLib.Seeding.Gamestate)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_opponent">get_opponent() (statische Methode von compLib.DoubleElimination.DoubleElim)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_pos">get_pos() (statische Methode von compLib.DoubleElimination.DoubleElim)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_scores">get_scores() (statische Methode von compLib.DoubleElimination.DoubleElim)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
@ -139,10 +161,12 @@
|
|||
<h2 id="P">P</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/Motor.html#compLib.Motor.Motor.power">power() (statische Methode von compLib.Motor.Motor)</a>
|
||||
<li><a href="lib/classes/DoubleElimination.html#compLib.DoubleElimination.Position">Position (Klasse in compLib.DoubleElimination)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="lib/classes/Motor.html#compLib.Motor.Motor.power">power() (statische Methode von compLib.Motor.Motor)</a>
|
||||
</li>
|
||||
<li><a href="lib/classes/Motor.html#compLib.Motor.Motor.pulse_width">pulse_width() (statische Methode von compLib.Motor.Motor)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
|
|
182
lib/classes/DoubleElimination.html
Normal file
182
lib/classes/DoubleElimination.html
Normal file
|
@ -0,0 +1,182 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="writer-html5" lang="de" >
|
||||
<head>
|
||||
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Double Elimination — CompLib 0.2.3 Dokumentation</title>
|
||||
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="../../_static/js/html5shiv.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
|
||||
<script src="../../_static/jquery.js"></script>
|
||||
<script src="../../_static/underscore.js"></script>
|
||||
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
|
||||
<script src="../../_static/doctools.js"></script>
|
||||
<script src="../../_static/sphinx_highlight.js"></script>
|
||||
<script src="../../_static/translations.js"></script>
|
||||
<script src="../../_static/js/theme.js"></script>
|
||||
<link rel="index" title="Stichwortverzeichnis" href="../../genindex.html" />
|
||||
<link rel="search" title="Suche" href="../../search.html" />
|
||||
<link rel="next" title="Encoder" href="Encoder.html" />
|
||||
<link rel="prev" title="compLib" href="../index.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
<div class="wy-grid-for-nav">
|
||||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||||
<div class="wy-side-scroll">
|
||||
<div class="wy-side-nav-search" >
|
||||
<a href="../../index.html">
|
||||
<img src="../../_static/compair-logo-white.svg" class="logo" alt="Logo"/>
|
||||
</a>
|
||||
<div role="search">
|
||||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
|
||||
<input type="text" name="q" placeholder="Dokumentation durchsuchen" />
|
||||
<input type="hidden" name="check_keywords" value="yes" />
|
||||
<input type="hidden" name="area" value="default" />
|
||||
</form>
|
||||
</div>
|
||||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
||||
<ul class="current">
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../gettingStarted/index.html">Erste Schritte</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../software/installation.html">Installationsanweisungen</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">compLib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Double Elimination</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#compLib.DoubleElimination.Position"><code class="docutils literal notranslate"><span class="pre">Position</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#compLib.DoubleElimination.DoubleElim"><code class="docutils literal notranslate"><span class="pre">DoubleElim</span></code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Encoder.html">Encoder</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="IRSensor.html">Infrarot Sensoren</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Motor.html">Motoren</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Seeding.html">Seeding</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/hardware.html">Hardware</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
|
||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||
<a href="../../index.html">CompLib</a>
|
||||
</nav>
|
||||
|
||||
<div class="wy-nav-content">
|
||||
<div class="rst-content">
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="../../index.html" class="icon icon-home"></a></li>
|
||||
<li class="breadcrumb-item"><a href="../index.html">compLib</a></li>
|
||||
<li class="breadcrumb-item active">Double Elimination</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="../../_sources/lib/classes/DoubleElimination.rst.txt" rel="nofollow"> Quelltext anzeigen</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<section id="double-elimination">
|
||||
<span id="lib-doubleelim"></span><h1>Double Elimination<a class="headerlink" href="#double-elimination" title="Permalink to this heading"></a></h1>
|
||||
<section id="dokumentation-der-klasse">
|
||||
<h2>Dokumentation der Klasse<a class="headerlink" href="#dokumentation-der-klasse" title="Permalink to this heading"></a></h2>
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.Position">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">compLib.DoubleElimination.</span></span><span class="sig-name descname"><span class="pre">Position</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">y</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">degrees</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#compLib.DoubleElimination.Position" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Datenstruktur, welche eine Position representiert.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">compLib.DoubleElimination.</span></span><span class="sig-name descname"><span class="pre">DoubleElim</span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Klasse für die Kommunikation mit Double Elimination Api</p>
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim.get_goal">
|
||||
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_goal</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="#compLib.DoubleElimination.Position" title="compLib.DoubleElimination.Position"><span class="pre">Position</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim.get_goal" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Makes the /api/getGoal call to the api.
|
||||
:return: A Position object with x and y coordinates of the goal, rotation is always -1
|
||||
:rtype: Tuple[Position, int]</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim.get_items">
|
||||
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_items</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">Dict</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim.get_items" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Makes the /api/getItems call to the api.
|
||||
:return: A list will all items currently on the game field. Items are dictionaries that look like: {„id“: 0, „x“: 0, „y“: 0}
|
||||
:rtype: Tuple[List[Dict], int]</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim.get_opponent">
|
||||
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_opponent</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="#compLib.DoubleElimination.Position" title="compLib.DoubleElimination.Position"><span class="pre">Position</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim.get_opponent" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Makes the /api/getOp call to the api.
|
||||
:return: A Position object with opponents robot position
|
||||
:rtype: Tuple[Position, int]</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim.get_pos">
|
||||
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_pos</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="#compLib.DoubleElimination.Position" title="compLib.DoubleElimination.Position"><span class="pre">Position</span></a><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim.get_pos" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Führt den /api/getPos Aufruf an die API aus.
|
||||
:return: Ein Objekt der Klasse <a class="reference internal" href="#compLib.DoubleElimination.Position" title="compLib.DoubleElimination.Position"><code class="xref py py-class docutils literal notranslate"><span class="pre">Position</span></code></a> mit der Position des Roboters und der Status Code
|
||||
:rtype: Tuple[Position, int]</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.DoubleElimination.DoubleElim.get_scores">
|
||||
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">get_scores</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">Dict</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.DoubleElimination.DoubleElim.get_scores" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Makes the /api/getScores call to the api.
|
||||
:return: A dictionary with all scores included like: {„self“:2,“opponent“:0}
|
||||
:rtype: Tuple[Dict, int]</p>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../index.html" class="btn btn-neutral float-left" title="compLib" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Zurück</a>
|
||||
<a href="Encoder.html" class="btn btn-neutral float-right" title="Encoder" accesskey="n" rel="next">Weiter <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div role="contentinfo">
|
||||
<p>© Copyright 2022, Verein zur Förderung von Wissenschaft und Technik an Schulen (F-WuTS).</p>
|
||||
</div>
|
||||
|
||||
Erstellt mit <a href="https://www.sphinx-doc.org/">Sphinx</a> mit einem
|
||||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
|
||||
bereitgestellt von <a href="https://readthedocs.org">Read the Docs</a>.
|
||||
|
||||
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
jQuery(function () {
|
||||
SphinxRtdTheme.Navigation.enable(true);
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -22,7 +22,7 @@
|
|||
<link rel="index" title="Stichwortverzeichnis" href="../../genindex.html" />
|
||||
<link rel="search" title="Suche" href="../../search.html" />
|
||||
<link rel="next" title="Infrarot Sensoren" href="IRSensor.html" />
|
||||
<link rel="prev" title="compLib" href="../index.html" />
|
||||
<link rel="prev" title="Double Elimination" href="DoubleElimination.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
|
@ -47,6 +47,7 @@
|
|||
<li class="toctree-l1"><a class="reference internal" href="../../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">compLib</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="DoubleElimination.html">Double Elimination</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Encoder</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="#compLib.Encoder.Encoder"><code class="docutils literal notranslate"><span class="pre">Encoder</span></code></a></li>
|
||||
|
@ -126,7 +127,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../index.html" class="btn btn-neutral float-left" title="compLib" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Zurück</a>
|
||||
<a href="DoubleElimination.html" class="btn btn-neutral float-left" title="Double Elimination" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Zurück</a>
|
||||
<a href="IRSensor.html" class="btn btn-neutral float-right" title="Infrarot Sensoren" accesskey="n" rel="next">Weiter <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<li class="toctree-l1"><a class="reference internal" href="../../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">compLib</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="DoubleElimination.html">Double Elimination</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Encoder.html">Encoder</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Infrarot Sensoren</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<li class="toctree-l1"><a class="reference internal" href="../../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">compLib</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="DoubleElimination.html">Double Elimination</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Encoder.html">Encoder</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="IRSensor.html">Infrarot Sensoren</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">Motoren</a><ul>
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<li class="toctree-l1"><a class="reference internal" href="../../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">compLib</a><ul class="current">
|
||||
<li class="toctree-l2"><a class="reference internal" href="DoubleElimination.html">Double Elimination</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Encoder.html">Encoder</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="IRSensor.html">Infrarot Sensoren</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="Motor.html">Motoren</a></li>
|
||||
|
@ -94,7 +95,40 @@
|
|||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="compLib.Seeding.Gamestate">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">compLib.Seeding.</span></span><span class="sig-name descname"><span class="pre">Gamestate</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">seed</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#compLib.Seeding.Gamestate" title="Link zu dieser Definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
<dd><dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.Seeding.Gamestate.get_heuballen">
|
||||
<span class="sig-name descname"><span class="pre">get_heuballen</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="headerlink" href="#compLib.Seeding.Gamestate.get_heuballen" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Die Funktion gibt entweder die Zahl „1“ oder „2“ zurück. Wenn die Funktion „1“ zurückgibt, dann liegen die Heuballen auf den gelben Linien. Wenn die Funktion „2“ zurückgibt, dann liegen sie auf den blauen Flächen.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Rückgabe</dt>
|
||||
<dd class="field-odd"><p>Gibt entweder die Zahl 1 oder 2 zurück.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.Seeding.Gamestate.get_logistic_plan">
|
||||
<span class="sig-name descname"><span class="pre">get_logistic_plan</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="p"><span class="pre">[</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.Seeding.Gamestate.get_logistic_plan" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Die Funktion gibt den „Logistik Plan“ zurück. Also die Reihenfolge, in welcher der Roboter die Logistik Zonen Abfahren muss, um die Pakete welche dort liegen zu sortieren.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Rückgabe</dt>
|
||||
<dd class="field-odd"><p>Eine Liste an Zahlen zwischen 10 und 13.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="py method">
|
||||
<dt class="sig sig-object py" id="compLib.Seeding.Gamestate.get_material_deliveries">
|
||||
<span class="sig-name descname"><span class="pre">get_material_deliveries</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="p"><span class="pre">[</span></span><span class="p"><span class="pre">[</span></span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="headerlink" href="#compLib.Seeding.Gamestate.get_material_deliveries" title="Link zu dieser Definition"></a></dt>
|
||||
<dd><p>Die Funktion gibt die einzelnen „Material Lieferungen“ zurück. Da der Roboter immer zwei Paare an Materialien anliefern muss, gibt die Funktion eine Liste an Material Paaren zurück. Die Materialien werden dabei durch ihre Zonen-ID representiert. Also Holz ist z.B. „0“ und die Ziegelsteine sind „3“.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Rückgabe</dt>
|
||||
<dd class="field-odd"><p>Eine Liste and Material Paaren.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<script src="../_static/js/theme.js"></script>
|
||||
<link rel="index" title="Stichwortverzeichnis" href="../genindex.html" />
|
||||
<link rel="search" title="Suche" href="../search.html" />
|
||||
<link rel="next" title="Encoder" href="classes/Encoder.html" />
|
||||
<link rel="next" title="Double Elimination" href="classes/DoubleElimination.html" />
|
||||
<link rel="prev" title="Beispiele" href="../other/usage.html" />
|
||||
</head>
|
||||
|
||||
|
@ -47,6 +47,7 @@
|
|||
<li class="toctree-l1"><a class="reference internal" href="../faq.html">FAQ</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="../other/usage.html">Beispiele</a></li>
|
||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">compLib</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/DoubleElimination.html">Double Elimination</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/Encoder.html">Encoder</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/IRSensor.html">Infrarot Sensoren</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/Motor.html">Motoren</a></li>
|
||||
|
@ -84,6 +85,21 @@
|
|||
<h1>compLib<a class="headerlink" href="#complib" title="Permalink to this heading"></a></h1>
|
||||
<div class="toctree-wrapper compound">
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="classes/DoubleElimination.html">Double Elimination</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/DoubleElimination.html#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.Position"><code class="docutils literal notranslate"><span class="pre">Position</span></code></a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim"><code class="docutils literal notranslate"><span class="pre">DoubleElim</span></code></a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_goal"><code class="docutils literal notranslate"><span class="pre">DoubleElim.get_goal()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_items"><code class="docutils literal notranslate"><span class="pre">DoubleElim.get_items()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_opponent"><code class="docutils literal notranslate"><span class="pre">DoubleElim.get_opponent()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_pos"><code class="docutils literal notranslate"><span class="pre">DoubleElim.get_pos()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/DoubleElimination.html#compLib.DoubleElimination.DoubleElim.get_scores"><code class="docutils literal notranslate"><span class="pre">DoubleElim.get_scores()</span></code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="classes/Encoder.html">Encoder</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/Encoder.html#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="classes/Encoder.html#compLib.Encoder.Encoder"><code class="docutils literal notranslate"><span class="pre">Encoder</span></code></a><ul>
|
||||
|
@ -133,7 +149,12 @@
|
|||
</li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="classes/Seeding.html">Seeding</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="classes/Seeding.html#dokumentation-der-klasse">Dokumentation der Klasse</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="classes/Seeding.html#compLib.Seeding.Gamestate"><code class="docutils literal notranslate"><span class="pre">Gamestate</span></code></a></li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="classes/Seeding.html#compLib.Seeding.Gamestate"><code class="docutils literal notranslate"><span class="pre">Gamestate</span></code></a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/Seeding.html#compLib.Seeding.Gamestate.get_heuballen"><code class="docutils literal notranslate"><span class="pre">Gamestate.get_heuballen()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/Seeding.html#compLib.Seeding.Gamestate.get_logistic_plan"><code class="docutils literal notranslate"><span class="pre">Gamestate.get_logistic_plan()</span></code></a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="classes/Seeding.html#compLib.Seeding.Gamestate.get_material_deliveries"><code class="docutils literal notranslate"><span class="pre">Gamestate.get_material_deliveries()</span></code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -147,7 +168,7 @@
|
|||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../other/usage.html" class="btn btn-neutral float-left" title="Beispiele" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Zurück</a>
|
||||
<a href="classes/Encoder.html" class="btn btn-neutral float-right" title="Encoder" accesskey="n" rel="next">Weiter <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
<a href="classes/DoubleElimination.html" class="btn btn-neutral float-right" title="Double Elimination" accesskey="n" rel="next">Weiter <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
|
BIN
objects.inv
BIN
objects.inv
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in a new issue