Skip to content

Commit 283c132

Browse files
committed
Add docs from pypose/pypose
1 parent 571e71a commit 283c132

File tree

18 files changed

+1340
-238
lines changed

18 files changed

+1340
-238
lines changed

docs/preview/pr/363/_modules/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ <h1>All modules for which code is available</h1>
254254
<li><a href="pypose/module/ekf/">pypose.module.ekf</a></li>
255255
<li><a href="pypose/module/icp/">pypose.module.icp</a></li>
256256
<li><a href="pypose/module/imu_preintegrator/">pypose.module.imu_preintegrator</a></li>
257+
<li><a href="pypose/module/loss/">pypose.module.loss</a></li>
257258
<li><a href="pypose/module/lqr/">pypose.module.lqr</a></li>
258259
<li><a href="pypose/module/mpc/">pypose.module.mpc</a></li>
259260
<li><a href="pypose/module/pf/">pypose.module.pf</a></li>

docs/preview/pr/363/_modules/pypose/lietensor/lietensor/index.html

Lines changed: 195 additions & 164 deletions
Large diffs are not rendered by default.

docs/preview/pr/363/_modules/pypose/metric/ape_rpe/index.html

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ <h1>Source code for pypose.metric.ape_rpe</h1><div class="highlight"><pre>
525525
<span class="k">if</span> <span class="n">otype</span> <span class="o">==</span> <span class="s1">&#39;STD&#39;</span> <span class="ow">or</span> <span class="s1">&#39;All&#39;</span><span class="p">:</span>
526526
<span class="n">results</span><span class="p">[</span><span class="s1">&#39;STD&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">std</span><span class="p">(</span><span class="n">error</span><span class="o">.</span><span class="n">abs</span><span class="p">())</span>
527527

528-
<span class="k">if</span> <span class="n">otype</span> <span class="ow">is</span> <span class="s1">&#39;All&#39;</span><span class="p">:</span>
528+
<span class="k">if</span> <span class="n">otype</span> <span class="o">==</span> <span class="s1">&#39;All&#39;</span><span class="p">:</span>
529529
<span class="k">return</span> <span class="n">results</span> <span class="c1"># return a dict</span>
530530
<span class="k">else</span><span class="p">:</span>
531531
<span class="k">return</span> <span class="n">results</span><span class="p">[</span><span class="n">otype</span><span class="p">]</span> <span class="c1"># return a tensor</span>
@@ -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>

0 commit comments

Comments
 (0)