Skip to content

Commit aa0e482

Browse files
committed
Add docs from pypose/pypose
1 parent 0884007 commit aa0e482

File tree

3 files changed

+64
-64
lines changed

3 files changed

+64
-64
lines changed

docs/main/_modules/pypose/metric/ape_rpe/index.html

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -673,17 +673,17 @@ <h1>Source code for pypose.metric.ape_rpe</h1><div class="highlight"><pre>
673673
<span class="sd"> etype (``str``, optional):</span>
674674
<span class="sd"> The type of pose error. Supported options include:</span>
675675

676-
<span class="sd"> &#39;translation&#39;: :math:`|| t_{e} - t_{r} ||_2`</span>
676+
<span class="sd"> ``&#39;translation&#39;``: :math:`|| t_{e} - t_{r} ||_2`</span>
677677

678-
<span class="sd"> &#39;rotation&#39;: :math:`|| R_{e}^T * R_{r} - I_3 ||_2`</span>
678+
<span class="sd"> ``&#39;rotation&#39;``: :math:`|| R_{e}^T * R_{r} - I_3 ||_2`</span>
679679

680-
<span class="sd"> &#39;pose&#39;: :math:`|| T_{e}^{-1} * T_{r} - I_4 ||_2`</span>
680+
<span class="sd"> ``&#39;pose&#39;``: :math:`|| T_{e}^{-1} * T_{r} - I_4 ||_2`</span>
681681

682-
<span class="sd"> &#39;radian&#39;: :math:`|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2`</span>
682+
<span class="sd"> ``&#39;radian&#39;``: :math:`|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2`</span>
683683

684-
<span class="sd"> &#39;degree&#39;: :math:`\mathrm{Degree}(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2)`</span>
684+
<span class="sd"> ``&#39;degree&#39;``: :math:`\mathrm{Degree}(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2)`</span>
685685

686-
<span class="sd"> Default: &#39;translation&#39;</span>
686+
<span class="sd"> Default: ``&#39;translation&#39;``</span>
687687

688688
<span class="sd"> diff (``float``, optional):</span>
689689
<span class="sd"> The maximum allowed absolute time difference (in seconds)</span>
@@ -710,27 +710,27 @@ <h1>Source code for pypose.metric.ape_rpe</h1><div class="highlight"><pre>
710710
<span class="sd"> otype (``str``, optional):</span>
711711
<span class="sd"> The output type for the metric. Supported options include:</span>
712712

713-
<span class="sd"> &#39;All&#39;: All metrics will be computed and returned.</span>
713+
<span class="sd"> ``&#39;All&#39;``: All metrics will be computed and returned.</span>
714714

715-
<span class="sd"> &#39;Max&#39;: The Max error is computed and returned.</span>
715+
<span class="sd"> ``&#39;Max&#39;``: The Max error is computed and returned.</span>
716716

717-
<span class="sd"> &#39;Min&#39;: The Min error is computed and returned.</span>
717+
<span class="sd"> ``&#39;Min&#39;``: The Min error is computed and returned.</span>
718718

719-
<span class="sd"> &#39;Mean&#39;: The Mean error is computed and returned.</span>
719+
<span class="sd"> ``&#39;Mean&#39;``: The Mean error is computed and returned.</span>
720720

721-
<span class="sd"> &#39;Median&#39;: The Median error is computed and returned.</span>
721+
<span class="sd"> ``&#39;Median&#39;``: The Median error is computed and returned.</span>
722722

723-
<span class="sd"> &#39;RMSE&#39;: The root mean square error (RMSE) is computed and returned.</span>
723+
<span class="sd"> ``&#39;RMSE&#39;``: The root mean square error (RMSE) is computed and returned.</span>
724724

725-
<span class="sd"> &#39;SSE&#39;: The sum of square error (SSE) is computed and returned.</span>
725+
<span class="sd"> ``&#39;SSE&#39;``: The sum of square error (SSE) is computed and returned.</span>
726726

727-
<span class="sd"> &#39;STD&#39;: The standard deviation (STD) is computed and returned.</span>
727+
<span class="sd"> ``&#39;STD&#39;``: The standard deviation (STD) is computed and returned.</span>
728728

729-
<span class="sd"> Defaults to &#39;All&#39;.</span>
729+
<span class="sd"> Defaults to ``&#39;All&#39;``.</span>
730730

731731
<span class="sd"> Returns:</span>
732732
<span class="sd"> ``dict`` or ``Tensor``: The computed statistics of the APE (Absolute Pose Error).</span>
733-
<span class="sd"> The return is a ``dict`` if &quot;otype&quot; is not &#39;all&#39;, otherwise a ``Tensor``.</span>
733+
<span class="sd"> The return is a ``dict`` if ``otype`` is not ``&#39;all&#39;``, otherwise a ``Tensor``.</span>
734734

735735
<span class="sd"> Examples:</span>
736736
<span class="sd"> &gt;&gt;&gt; import torch</span>
@@ -806,17 +806,17 @@ <h1>Source code for pypose.metric.ape_rpe</h1><div class="highlight"><pre>
806806
<span class="sd"> etype (``str``, optional):</span>
807807
<span class="sd"> The type of pose error. Supported options include:</span>
808808

809-
<span class="sd"> &#39;translation&#39;: :math:`||{R_{r}^{rel}}^T * t_{r}^{rel} - {R_{e}^{rel}}^T * t_{e}^{rel}||_2`</span>
809+
<span class="sd"> ``&#39;translation&#39;``: :math:`||{R_{r}^{rel}}^T * t_{r}^{rel} - {R_{e}^{rel}}^T * t_{e}^{rel}||_2`</span>
810810

811-
<span class="sd"> &#39;rotation&#39;: :math:`|| {R_{r}^{rel}}^T * R_{e}^{rel} - I_3 ||_2`</span>
811+
<span class="sd"> ``&#39;rotation&#39;``: :math:`|| {R_{r}^{rel}}^T * R_{e}^{rel} - I_3 ||_2`</span>
812812

813-
<span class="sd"> &#39;pose&#39;: :math:`|| {T_{r}^{rel}}^{-1} * T_{e}^{rel} - I_4 ||_2`</span>
813+
<span class="sd"> ``&#39;pose&#39;``: :math:`|| {T_{r}^{rel}}^{-1} * T_{e}^{rel} - I_4 ||_2`</span>
814814

815-
<span class="sd"> &#39;radian&#39;: :math:`|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2`</span>
815+
<span class="sd"> ``&#39;radian&#39;``: :math:`|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2`</span>
816816

817-
<span class="sd"> &#39;degree&#39;: :math:`\mathrm{Degree}(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2))`</span>
817+
<span class="sd"> ``&#39;degree&#39;``: :math:`\mathrm{Degree}(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2))`</span>
818818

819-
<span class="sd"> Default: &#39;translation&#39;</span>
819+
<span class="sd"> Default: ``&#39;translation&#39;``</span>
820820

821821
<span class="sd"> diff (``float``, optional):</span>
822822
<span class="sd"> The maximum allowed absolute time difference (in seconds)</span>
@@ -858,27 +858,27 @@ <h1>Source code for pypose.metric.ape_rpe</h1><div class="highlight"><pre>
858858
<span class="sd"> otype (``str``, optional):</span>
859859
<span class="sd"> The output type for the metric. Supported options include:</span>
860860

861-
<span class="sd"> &#39;All&#39;: All metrics will be computed and returned.</span>
861+
<span class="sd"> ``&#39;All&#39;``: All metrics will be computed and returned.</span>
862862

863-
<span class="sd"> &#39;Max&#39;: The Max error is computed and returned.</span>
863+
<span class="sd"> ``&#39;Max&#39;``: The Max error is computed and returned.</span>
864864

865-
<span class="sd"> &#39;Min&#39;: The Min error is computed and returned.</span>
865+
<span class="sd"> ``&#39;Min&#39;``: The Min error is computed and returned.</span>
866866

867-
<span class="sd"> &#39;Mean&#39;: The Mean error is computed and returned.</span>
867+
<span class="sd"> ``&#39;Mean&#39;``: The Mean error is computed and returned.</span>
868868

869-
<span class="sd"> &#39;Median&#39;: The Median error is computed and returned.</span>
869+
<span class="sd"> ``&#39;Median&#39;``: The Median error is computed and returned.</span>
870870

871-
<span class="sd"> &#39;RMSE&#39;: The root mean square error (RMSE) is computed and returned.</span>
871+
<span class="sd"> ``&#39;RMSE&#39;``: The root mean square error (RMSE) is computed and returned.</span>
872872

873-
<span class="sd"> &#39;SSE&#39;: The sum of square error (SSE) is computed and returned.</span>
873+
<span class="sd"> ``&#39;SSE&#39;``: The sum of square error (SSE) is computed and returned.</span>
874874

875-
<span class="sd"> &#39;STD&#39;: The standard deviation (STD) is computed and returned.</span>
875+
<span class="sd"> ``&#39;STD&#39;``: The standard deviation (STD) is computed and returned.</span>
876876

877-
<span class="sd"> Defaults to &#39;All&#39;.</span>
877+
<span class="sd"> Defaults to ``&#39;All&#39;``.</span>
878878

879879
<span class="sd"> Returns:</span>
880880
<span class="sd"> ``dict`` or ``Tensor``: The computed statistics of the RPE (Relative Pose Error).</span>
881-
<span class="sd"> The return is a ``dict`` if &quot;otype&quot; is not &#39;all&#39;, otherwise a ``Tensor``.</span>
881+
<span class="sd"> The return is a ``dict`` if ``otype`` is not ``&#39;all&#39;``, otherwise a ``Tensor``.</span>
882882

883883
<span class="sd"> Examples:</span>
884884
<span class="sd"> &gt;&gt;&gt; import torch</span>

docs/main/generated/pypose.metric.ape/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ <h1>pypose.metric.ape<a class="headerlink" href="#pypose-metric-ape" title="Perm
269269
Must have the same length as <cite>estamp</cite>.
270270
For example, <cite>pypose.SE3(torch.rand(10, 7))</cite>.</p></li>
271271
<li><p><strong>etype</strong> (<code class="docutils literal notranslate"><span class="pre">str</span></code>, optional) – <p>The type of pose error. Supported options include:</p>
272-
<p>translation: <span class="math">\(|| t_{e} - t_{r} ||_2\)</span></p>
273-
<p>rotation: <span class="math">\(|| R_{e}^T * R_{r} - I_3 ||_2\)</span></p>
274-
<p>pose: <span class="math">\(|| T_{e}^{-1} * T_{r} - I_4 ||_2\)</span></p>
275-
<p>radian: <span class="math">\(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2\)</span></p>
276-
<p>degree: <span class="math">\(\mathrm{Degree}(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2)\)</span></p>
277-
<p>Default: translation</p>
272+
<p><code class="docutils literal notranslate"><span class="pre">'translation'</span></code>: <span class="math">\(|| t_{e} - t_{r} ||_2\)</span></p>
273+
<p><code class="docutils literal notranslate"><span class="pre">'rotation'</span></code>: <span class="math">\(|| R_{e}^T * R_{r} - I_3 ||_2\)</span></p>
274+
<p><code class="docutils literal notranslate"><span class="pre">'pose'</span></code>: <span class="math">\(|| T_{e}^{-1} * T_{r} - I_4 ||_2\)</span></p>
275+
<p><code class="docutils literal notranslate"><span class="pre">'radian'</span></code>: <span class="math">\(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2\)</span></p>
276+
<p><code class="docutils literal notranslate"><span class="pre">'degree'</span></code>: <span class="math">\(\mathrm{Degree}(|| \mathrm{Log}(R_{e}^T * R_{r}) ||_2)\)</span></p>
277+
<p>Default: <code class="docutils literal notranslate"><span class="pre">'translation'</span></code></p>
278278
</p></li>
279279
<li><p><strong>diff</strong> (<code class="docutils literal notranslate"><span class="pre">float</span></code>, optional) – The maximum allowed absolute time difference (in seconds)
280280
for associating poses. Defaults to 0.01.</p></li>
@@ -292,21 +292,21 @@ <h1>pypose.metric.ape<a class="headerlink" href="#pypose-metric-ape" title="Perm
292292
matching pairs is below this threshold, a warning is issued.
293293
Defaults to 0.3.</p></li>
294294
<li><p><strong>otype</strong> (<code class="docutils literal notranslate"><span class="pre">str</span></code>, optional) – <p>The output type for the metric. Supported options include:</p>
295-
<p>All: All metrics will be computed and returned.</p>
296-
<p>Max: The Max error is computed and returned.</p>
297-
<p>Min: The Min error is computed and returned.</p>
298-
<p>Mean: The Mean error is computed and returned.</p>
299-
<p>Median: The Median error is computed and returned.</p>
300-
<p>RMSE: The root mean square error (RMSE) is computed and returned.</p>
301-
<p>SSE: The sum of square error (SSE) is computed and returned.</p>
302-
<p>STD: The standard deviation (STD) is computed and returned.</p>
303-
<p>Defaults to All.</p>
295+
<p><code class="docutils literal notranslate"><span class="pre">'All'</span></code>: All metrics will be computed and returned.</p>
296+
<p><code class="docutils literal notranslate"><span class="pre">'Max'</span></code>: The Max error is computed and returned.</p>
297+
<p><code class="docutils literal notranslate"><span class="pre">'Min'</span></code>: The Min error is computed and returned.</p>
298+
<p><code class="docutils literal notranslate"><span class="pre">'Mean'</span></code>: The Mean error is computed and returned.</p>
299+
<p><code class="docutils literal notranslate"><span class="pre">'Median'</span></code>: The Median error is computed and returned.</p>
300+
<p><code class="docutils literal notranslate"><span class="pre">'RMSE'</span></code>: The root mean square error (RMSE) is computed and returned.</p>
301+
<p><code class="docutils literal notranslate"><span class="pre">'SSE'</span></code>: The sum of square error (SSE) is computed and returned.</p>
302+
<p><code class="docutils literal notranslate"><span class="pre">'STD'</span></code>: The standard deviation (STD) is computed and returned.</p>
303+
<p>Defaults to <code class="docutils literal notranslate"><span class="pre">'All'</span></code>.</p>
304304
</p></li>
305305
</ul>
306306
</dd>
307307
<dt class="field-even">Returns<span class="colon">:</span></dt>
308308
<dd class="field-even"><p>The computed statistics of the APE (Absolute Pose Error).
309-
The return is a <code class="docutils literal notranslate"><span class="pre">dict</span></code> if otype is not all, otherwise a <code class="docutils literal notranslate"><span class="pre">Tensor</span></code>.</p>
309+
The return is a <code class="docutils literal notranslate"><span class="pre">dict</span></code> if <code class="docutils literal notranslate"><span class="pre">otype</span></code> is not <code class="docutils literal notranslate"><span class="pre">'all'</span></code>, otherwise a <code class="docutils literal notranslate"><span class="pre">Tensor</span></code>.</p>
310310
</dd>
311311
<dt class="field-odd">Return type<span class="colon">:</span></dt>
312312
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">dict</span></code> or <code class="docutils literal notranslate"><span class="pre">Tensor</span></code></p>

docs/main/generated/pypose.metric.rpe/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ <h1>pypose.metric.rpe<a class="headerlink" href="#pypose-metric-rpe" title="Perm
269269
Must have the same length as <cite>estamp</cite>.
270270
For example, <cite>pypose.SE3(torch.rand(10, 7))</cite>.</p></li>
271271
<li><p><strong>etype</strong> (<code class="docutils literal notranslate"><span class="pre">str</span></code>, optional) – <p>The type of pose error. Supported options include:</p>
272-
<p>translation: <span class="math">\(||{R_{r}^{rel}}^T * t_{r}^{rel} - {R_{e}^{rel}}^T * t_{e}^{rel}||_2\)</span></p>
273-
<p>rotation: <span class="math">\(|| {R_{r}^{rel}}^T * R_{e}^{rel} - I_3 ||_2\)</span></p>
274-
<p>pose: <span class="math">\(|| {T_{r}^{rel}}^{-1} * T_{e}^{rel} - I_4 ||_2\)</span></p>
275-
<p>radian: <span class="math">\(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2\)</span></p>
276-
<p>degree: <span class="math">\(\mathrm{Degree}(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2))\)</span></p>
277-
<p>Default: translation</p>
272+
<p><code class="docutils literal notranslate"><span class="pre">'translation'</span></code>: <span class="math">\(||{R_{r}^{rel}}^T * t_{r}^{rel} - {R_{e}^{rel}}^T * t_{e}^{rel}||_2\)</span></p>
273+
<p><code class="docutils literal notranslate"><span class="pre">'rotation'</span></code>: <span class="math">\(|| {R_{r}^{rel}}^T * R_{e}^{rel} - I_3 ||_2\)</span></p>
274+
<p><code class="docutils literal notranslate"><span class="pre">'pose'</span></code>: <span class="math">\(|| {T_{r}^{rel}}^{-1} * T_{e}^{rel} - I_4 ||_2\)</span></p>
275+
<p><code class="docutils literal notranslate"><span class="pre">'radian'</span></code>: <span class="math">\(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2\)</span></p>
276+
<p><code class="docutils literal notranslate"><span class="pre">'degree'</span></code>: <span class="math">\(\mathrm{Degree}(|| \mathrm{Log}({R_{r}^{rel}}^T * R_{e}^{rel}) ||_2))\)</span></p>
277+
<p>Default: <code class="docutils literal notranslate"><span class="pre">'translation'</span></code></p>
278278
</p></li>
279279
<li><p><strong>diff</strong> (<code class="docutils literal notranslate"><span class="pre">float</span></code>, optional) – The maximum allowed absolute time difference (in seconds)
280280
for associating poses. Defaults to 0.01.</p></li>
@@ -302,21 +302,21 @@ <h1>pypose.metric.rpe<a class="headerlink" href="#pypose-metric-rpe" title="Perm
302302
Defaults to 0.3.</p></li>
303303
<li><p><strong>rpair</strong> (<code class="docutils literal notranslate"><span class="pre">bool</span></code>, optional) – Use reference trajectory to compute the pairing indices or not. Defaults to False.</p></li>
304304
<li><p><strong>otype</strong> (<code class="docutils literal notranslate"><span class="pre">str</span></code>, optional) – <p>The output type for the metric. Supported options include:</p>
305-
<p>All: All metrics will be computed and returned.</p>
306-
<p>Max: The Max error is computed and returned.</p>
307-
<p>Min: The Min error is computed and returned.</p>
308-
<p>Mean: The Mean error is computed and returned.</p>
309-
<p>Median: The Median error is computed and returned.</p>
310-
<p>RMSE: The root mean square error (RMSE) is computed and returned.</p>
311-
<p>SSE: The sum of square error (SSE) is computed and returned.</p>
312-
<p>STD: The standard deviation (STD) is computed and returned.</p>
313-
<p>Defaults to All.</p>
305+
<p><code class="docutils literal notranslate"><span class="pre">'All'</span></code>: All metrics will be computed and returned.</p>
306+
<p><code class="docutils literal notranslate"><span class="pre">'Max'</span></code>: The Max error is computed and returned.</p>
307+
<p><code class="docutils literal notranslate"><span class="pre">'Min'</span></code>: The Min error is computed and returned.</p>
308+
<p><code class="docutils literal notranslate"><span class="pre">'Mean'</span></code>: The Mean error is computed and returned.</p>
309+
<p><code class="docutils literal notranslate"><span class="pre">'Median'</span></code>: The Median error is computed and returned.</p>
310+
<p><code class="docutils literal notranslate"><span class="pre">'RMSE'</span></code>: The root mean square error (RMSE) is computed and returned.</p>
311+
<p><code class="docutils literal notranslate"><span class="pre">'SSE'</span></code>: The sum of square error (SSE) is computed and returned.</p>
312+
<p><code class="docutils literal notranslate"><span class="pre">'STD'</span></code>: The standard deviation (STD) is computed and returned.</p>
313+
<p>Defaults to <code class="docutils literal notranslate"><span class="pre">'All'</span></code>.</p>
314314
</p></li>
315315
</ul>
316316
</dd>
317317
<dt class="field-even">Returns<span class="colon">:</span></dt>
318318
<dd class="field-even"><p>The computed statistics of the RPE (Relative Pose Error).
319-
The return is a <code class="docutils literal notranslate"><span class="pre">dict</span></code> if otype is not all, otherwise a <code class="docutils literal notranslate"><span class="pre">Tensor</span></code>.</p>
319+
The return is a <code class="docutils literal notranslate"><span class="pre">dict</span></code> if <code class="docutils literal notranslate"><span class="pre">otype</span></code> is not <code class="docutils literal notranslate"><span class="pre">'all'</span></code>, otherwise a <code class="docutils literal notranslate"><span class="pre">Tensor</span></code>.</p>
320320
</dd>
321321
<dt class="field-odd">Return type<span class="colon">:</span></dt>
322322
<dd class="field-odd"><p><code class="docutils literal notranslate"><span class="pre">dict</span></code> or <code class="docutils literal notranslate"><span class="pre">Tensor</span></code></p>

0 commit comments

Comments
 (0)