Skip to content

Commit

Permalink
deploy: ceb44a7
Browse files Browse the repository at this point in the history
  • Loading branch information
xxEoD2242 committed Aug 31, 2024
1 parent 32ad431 commit 39e7256
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 11 deletions.
Binary file modified api_docs/doctrees/environment.pickle
Binary file not shown.
Binary file modified api_docs/doctrees/index.doctree
Binary file not shown.
23 changes: 17 additions & 6 deletions api_docs/html/_modules/airsim/types.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@ <h1>Source code for airsim.types</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="s2">&quot;&lt;&quot;</span> <span class="o">+</span> <span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span> <span class="o">+</span> <span class="s2">&quot;&gt; &quot;</span> <span class="o">+</span> <span class="n">pformat</span><span class="p">(</span><span class="nb">vars</span><span class="p">(</span><span class="bp">self</span><span class="p">),</span> <span class="n">indent</span><span class="o">=</span><span class="mi">4</span><span class="p">,</span> <span class="n">width</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>

<div class="viewcode-block" id="MsgpackMixin.to_msgpack"><a class="viewcode-back" href="../../index.html#airsim.types.MsgpackMixin.to_msgpack">[docs]</a> <span class="k">def</span> <span class="nf">to_msgpack</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="vm">__dict__</span></div>
<span class="n">encoded</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">attr_name</span><span class="p">,</span> <span class="n">attr_type</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">attribute_order</span><span class="p">:</span>
<span class="n">value</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">attr_name</span><span class="p">)</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="nb">list</span><span class="p">)</span> <span class="ow">and</span> <span class="n">value</span> <span class="ow">and</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">MsgpackMixin</span><span class="p">):</span>
<span class="n">encoded</span><span class="o">.</span><span class="n">append</span><span class="p">([</span><span class="n">v</span><span class="o">.</span><span class="n">to_msgpack</span><span class="p">()</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">value</span><span class="p">])</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="n">MsgpackMixin</span><span class="p">):</span>
<span class="n">encoded</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">value</span><span class="o">.</span><span class="n">to_msgpack</span><span class="p">())</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">encoded</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">value</span><span class="p">)</span>
<span class="k">return</span> <span class="n">encoded</span></div>

<div class="viewcode-block" id="MsgpackMixin.from_msgpack"><a class="viewcode-back" href="../../index.html#airsim.types.MsgpackMixin.from_msgpack">[docs]</a> <span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">from_msgpack</span><span class="p">(</span><span class="bp">cls</span><span class="p">,</span> <span class="n">encoded</span><span class="p">):</span>
Expand Down Expand Up @@ -509,8 +518,9 @@ <h1>Source code for airsim.types</h1><div class="highlight"><pre>


<div class="viewcode-block" id="ImageResponse"><a class="viewcode-back" href="../../index.html#airsim.types.ImageResponse">[docs]</a><span class="k">class</span> <span class="nc">ImageResponse</span><span class="p">(</span><span class="n">MsgpackMixin</span><span class="p">):</span>
<span class="n">image_data_uint8</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">uint8</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="n">image_data_float</span> <span class="o">=</span> <span class="mf">0.0</span>
<span class="n">image_data_uint8</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([],</span> <span class="n">dtype</span><span class="o">=</span><span class="n">np</span><span class="o">.</span><span class="n">uint8</span><span class="p">)</span>
<span class="n">image_data_float</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([],</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">)</span>
<span class="n">camera_name</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
<span class="n">camera_position</span> <span class="o">=</span> <span class="n">Vector3r</span><span class="p">()</span>
<span class="n">camera_orientation</span> <span class="o">=</span> <span class="n">Quaternionr</span><span class="p">()</span>
<span class="n">time_stamp</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">uint64</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
Expand All @@ -523,8 +533,9 @@ <h1>Source code for airsim.types</h1><div class="highlight"><pre>

<span class="n">attribute_order</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">(</span><span class="s1">&#39;image_data_uint8&#39;</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;image_data_float&#39;</span><span class="p">,</span> <span class="nb">float</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;image_data_float&#39;</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;camera_position&#39;</span><span class="p">,</span> <span class="n">Vector3r</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;camera_name&#39;</span><span class="p">,</span> <span class="nb">str</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;camera_orientation&#39;</span><span class="p">,</span> <span class="n">Quaternionr</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;time_stamp&#39;</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">uint64</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;message&#39;</span><span class="p">,</span> <span class="nb">str</span><span class="p">),</span>
Expand Down Expand Up @@ -688,14 +699,14 @@ <h1>Source code for airsim.types</h1><div class="highlight"><pre>


<div class="viewcode-block" id="LidarData"><a class="viewcode-back" href="../../index.html#airsim.types.LidarData">[docs]</a><span class="k">class</span> <span class="nc">LidarData</span><span class="p">(</span><span class="n">MsgpackMixin</span><span class="p">):</span>
<span class="n">point_cloud</span> <span class="o">=</span> <span class="mf">0.0</span>
<span class="n">time_stamp</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">uint64</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="n">point_cloud</span> <span class="o">=</span> <span class="mf">0.0</span>
<span class="n">pose</span> <span class="o">=</span> <span class="n">Pose</span><span class="p">()</span>
<span class="n">segmentation</span> <span class="o">=</span> <span class="mi">0</span>

<span class="n">attribute_order</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">(</span><span class="s1">&#39;point_cloud&#39;</span><span class="p">,</span> <span class="nb">float</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;time_stamp&#39;</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">uint64</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;point_cloud&#39;</span><span class="p">,</span> <span class="nb">float</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;pose&#39;</span><span class="p">,</span> <span class="n">Pose</span><span class="p">),</span>
<span class="p">(</span><span class="s1">&#39;segmentation&#39;</span><span class="p">,</span> <span class="nb">int</span><span class="p">)</span>
<span class="p">]</span></div>
Expand Down
4 changes: 4 additions & 0 deletions api_docs/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ <h2 id="C">C</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#airsim.types.ImageRequest.camera_name">camera_name (airsim.types.ImageRequest attribute)</a>

<ul>
<li><a href="index.html#airsim.types.ImageResponse.camera_name">(airsim.types.ImageResponse attribute)</a>
</li>
</ul></li>
<li><a href="index.html#airsim.types.ImageResponse.camera_orientation">camera_orientation (airsim.types.ImageResponse attribute)</a>
</li>
<li><a href="index.html#airsim.types.ImageResponse.camera_position">camera_position (airsim.types.ImageResponse attribute)</a>
Expand Down
14 changes: 10 additions & 4 deletions api_docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
</li>
<li><a class="reference internal" href="#airsim.types.ImageResponse"><code class="docutils literal notranslate"><span class="pre">ImageResponse</span></code></a><ul>
<li><a class="reference internal" href="#airsim.types.ImageResponse.attribute_order"><code class="docutils literal notranslate"><span class="pre">ImageResponse.attribute_order</span></code></a></li>
<li><a class="reference internal" href="#airsim.types.ImageResponse.camera_name"><code class="docutils literal notranslate"><span class="pre">ImageResponse.camera_name</span></code></a></li>
<li><a class="reference internal" href="#airsim.types.ImageResponse.camera_orientation"><code class="docutils literal notranslate"><span class="pre">ImageResponse.camera_orientation</span></code></a></li>
<li><a class="reference internal" href="#airsim.types.ImageResponse.camera_position"><code class="docutils literal notranslate"><span class="pre">ImageResponse.camera_position</span></code></a></li>
<li><a class="reference internal" href="#airsim.types.ImageResponse.compress"><code class="docutils literal notranslate"><span class="pre">ImageResponse.compress</span></code></a></li>
Expand Down Expand Up @@ -3370,7 +3371,12 @@ <h1>airsim<a class="headerlink" href="#airsim" title="Permalink to this heading"
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">airsim.types.</span></span><span class="sig-name descname"><span class="pre">ImageResponse</span></span><a class="reference internal" href="_modules/airsim/types.html#ImageResponse"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#airsim.types.ImageResponse" title="Permalink to this definition"></a></dt>
<dd><dl class="py attribute">
<dt class="sig sig-object py" id="airsim.types.ImageResponse.attribute_order">
<span class="sig-name descname"><span class="pre">attribute_order</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">[('image_data_uint8',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.ndarray'&gt;),</span> <span class="pre">('image_data_float',</span> <span class="pre">&lt;class</span> <span class="pre">'float'&gt;),</span> <span class="pre">('camera_position',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Vector3r'&gt;),</span> <span class="pre">('camera_orientation',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Quaternionr'&gt;),</span> <span class="pre">('time_stamp',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.uint64'&gt;),</span> <span class="pre">('message',</span> <span class="pre">&lt;class</span> <span class="pre">'str'&gt;),</span> <span class="pre">('pixels_as_float',</span> <span class="pre">&lt;class</span> <span class="pre">'bool'&gt;),</span> <span class="pre">('compress',</span> <span class="pre">&lt;class</span> <span class="pre">'bool'&gt;),</span> <span class="pre">('width',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;),</span> <span class="pre">('height',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;),</span> <span class="pre">('image_type',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;)]</span></em><a class="headerlink" href="#airsim.types.ImageResponse.attribute_order" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">attribute_order</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">[('image_data_uint8',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.ndarray'&gt;),</span> <span class="pre">('image_data_float',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.ndarray'&gt;),</span> <span class="pre">('camera_position',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Vector3r'&gt;),</span> <span class="pre">('camera_name',</span> <span class="pre">&lt;class</span> <span class="pre">'str'&gt;),</span> <span class="pre">('camera_orientation',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Quaternionr'&gt;),</span> <span class="pre">('time_stamp',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.uint64'&gt;),</span> <span class="pre">('message',</span> <span class="pre">&lt;class</span> <span class="pre">'str'&gt;),</span> <span class="pre">('pixels_as_float',</span> <span class="pre">&lt;class</span> <span class="pre">'bool'&gt;),</span> <span class="pre">('compress',</span> <span class="pre">&lt;class</span> <span class="pre">'bool'&gt;),</span> <span class="pre">('width',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;),</span> <span class="pre">('height',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;),</span> <span class="pre">('image_type',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;)]</span></em><a class="headerlink" href="#airsim.types.ImageResponse.attribute_order" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="airsim.types.ImageResponse.camera_name">
<span class="sig-name descname"><span class="pre">camera_name</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">''</span></em><a class="headerlink" href="#airsim.types.ImageResponse.camera_name" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
Expand All @@ -3395,12 +3401,12 @@ <h1>airsim<a class="headerlink" href="#airsim" title="Permalink to this heading"

<dl class="py attribute">
<dt class="sig sig-object py" id="airsim.types.ImageResponse.image_data_float">
<span class="sig-name descname"><span class="pre">image_data_float</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0.0</span></em><a class="headerlink" href="#airsim.types.ImageResponse.image_data_float" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">image_data_float</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">array([],</span> <span class="pre">dtype=float64)</span></em><a class="headerlink" href="#airsim.types.ImageResponse.image_data_float" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="airsim.types.ImageResponse.image_data_uint8">
<span class="sig-name descname"><span class="pre">image_data_uint8</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">0</span></em><a class="headerlink" href="#airsim.types.ImageResponse.image_data_uint8" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">image_data_uint8</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">array([],</span> <span class="pre">dtype=uint8)</span></em><a class="headerlink" href="#airsim.types.ImageResponse.image_data_uint8" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
Expand Down Expand Up @@ -3575,7 +3581,7 @@ <h1>airsim<a class="headerlink" href="#airsim" title="Permalink to this heading"
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">airsim.types.</span></span><span class="sig-name descname"><span class="pre">LidarData</span></span><a class="reference internal" href="_modules/airsim/types.html#LidarData"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#airsim.types.LidarData" title="Permalink to this definition"></a></dt>
<dd><dl class="py attribute">
<dt class="sig sig-object py" id="airsim.types.LidarData.attribute_order">
<span class="sig-name descname"><span class="pre">attribute_order</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">[('point_cloud',</span> <span class="pre">&lt;class</span> <span class="pre">'float'&gt;),</span> <span class="pre">('time_stamp',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.uint64'&gt;),</span> <span class="pre">('pose',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Pose'&gt;),</span> <span class="pre">('segmentation',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;)]</span></em><a class="headerlink" href="#airsim.types.LidarData.attribute_order" title="Permalink to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">attribute_order</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">[('time_stamp',</span> <span class="pre">&lt;class</span> <span class="pre">'numpy.uint64'&gt;),</span> <span class="pre">('point_cloud',</span> <span class="pre">&lt;class</span> <span class="pre">'float'&gt;),</span> <span class="pre">('pose',</span> <span class="pre">&lt;class</span> <span class="pre">'airsim.types.Pose'&gt;),</span> <span class="pre">('segmentation',</span> <span class="pre">&lt;class</span> <span class="pre">'int'&gt;)]</span></em><a class="headerlink" href="#airsim.types.LidarData.attribute_order" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
Expand Down
Binary file modified api_docs/html/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion api_docs/html/searchindex.js

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 39e7256

Please sign in to comment.