Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0f0621e

Browse filesBrowse files
committed
Update documentation
1 parent 826d7f5 commit 0f0621e
Copy full SHA for 0f0621e

File tree

Expand file treeCollapse file tree

77 files changed

+5423
-16503
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

77 files changed

+5423
-16503
lines changed

‎2d_orient_SO2.html

Copy file name to clipboardExpand all lines: 2d_orient_SO2.html
+11-9Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
11851185
<dd><p>Append a value to an instance (SMUserList superclass method)</p>
11861186
<dl class="field-list simple">
11871187
<dt class="field-odd">Parameters</dt>
1188-
<dd class="field-odd"><p><strong>x</strong> (<a class="reference internal" href="classes-3d.html#spatialmath.quaternion.Quaternion" title="spatialmath.quaternion.Quaternion"><em>Quaternion</em></a><em> or </em><em>UnitQuaternion instance</em>) – the value to append</p>
1188+
<dd class="field-odd"><p><strong>x</strong> (<a class="reference internal" href="3d_quaternion.html#spatialmath.quaternion.Quaternion" title="spatialmath.quaternion.Quaternion"><em>Quaternion</em></a><em> or </em><em>UnitQuaternion instance</em>) – the value to append</p>
11891189
</dd>
11901190
<dt class="field-even">Raises</dt>
11911191
<dd class="field-even"><p><strong>ValueError</strong> – incorrect type of appended object</p>
@@ -1219,12 +1219,13 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
12191219
bad type passed</p>
12201220
<p>The value <code class="docutils literal notranslate"><span class="pre">arg</span></code> can be any of:</p>
12211221
<ol class="arabic simple">
1222+
<li><p>None, an identity value is created</p></li>
12221223
<li><p>a numpy.ndarray of the appropriate shape and value which is valid for the subclass</p></li>
12231224
<li><p>a list whose elements all meet the criteria above</p></li>
12241225
<li><p>an instance of the subclass</p></li>
12251226
<li><p>a list whose elements are all singelton instances of the subclass</p></li>
12261227
</ol>
1227-
<p>For cases 1 and 2, a NumPy array or a list of NumPy array is passed.
1228+
<p>For cases 2 and 3, a NumPy array or a list of NumPy array is passed.
12281229
Each NumPyarray is tested for validity (if <code class="docutils literal notranslate"><span class="pre">check</span></code> is False a cursory
12291230
check of shape is made, if <code class="docutils literal notranslate"><span class="pre">check</span></code> is True the numerical value is
12301231
inspected) and converted to the required internal format by the
@@ -1235,7 +1236,8 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
12351236
<code class="docutils literal notranslate"><span class="pre">B</span></code> is passed and <code class="docutils literal notranslate"><span class="pre">B</span></code> is an element of the <code class="docutils literal notranslate"><span class="pre">convertfrom</span></code> argument,
12361237
then <code class="docutils literal notranslate"><span class="pre">B.A()</span></code> will be invoked to perform the type conversion.</p>
12371238
<p>Examples:</p>
1238-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">SE3</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">identity</span><span class="p">(</span><span class="mi">4</span><span class="p">))</span>
1239+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">SE3</span><span class="p">()</span>
1240+
<span class="n">SE3</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">identity</span><span class="p">(</span><span class="mi">4</span><span class="p">))</span>
12391241
<span class="n">SE3</span><span class="p">([</span><span class="n">np</span><span class="o">.</span><span class="n">identity</span><span class="p">(</span><span class="mi">4</span><span class="p">),</span> <span class="n">np</span><span class="o">.</span><span class="n">identity</span><span class="p">(</span><span class="mi">4</span><span class="p">)])</span>
12401242
<span class="n">SE3</span><span class="p">(</span><span class="n">SE3</span><span class="p">())</span>
12411243
<span class="n">SE3</span><span class="p">([</span><span class="n">SE3</span><span class="p">(),</span> <span class="n">SE3</span><span class="p">()])</span>
@@ -1464,7 +1466,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
14641466
<dd class="field-even"><p>interpolated pose</p>
14651467
</dd>
14661468
<dt class="field-odd">Return type</dt>
1467-
<dd class="field-odd"><p><a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2">SO2</a>, <a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2">SE2</a>, <a class="reference internal" href="classes-3d.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3">SO3</a>, SE3 instance</p>
1469+
<dd class="field-odd"><p><a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2">SO2</a>, <a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2">SE2</a>, <a class="reference internal" href="3d_orient_SO3.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3">SO3</a>, SE3 instance</p>
14681470
</dd>
14691471
</dl>
14701472
<ul class="simple">
@@ -1547,7 +1549,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
15471549
<dd><p>Test if object belongs to SE(n) group (superclass property)</p>
15481550
<dl class="field-list simple">
15491551
<dt class="field-odd">Parameters</dt>
1550-
<dd class="field-odd"><p><strong>self</strong> (<a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2"><em>SO2</em></a><em>, </em><a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2"><em>SE2</em></a><em>, </em><a class="reference internal" href="classes-3d.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3"><em>SO3</em></a><em>, </em><em>SE3 instance</em>) – object to test</p>
1552+
<dd class="field-odd"><p><strong>self</strong> (<a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2"><em>SO2</em></a><em>, </em><a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2"><em>SE2</em></a><em>, </em><a class="reference internal" href="3d_orient_SO3.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3"><em>SO3</em></a><em>, </em><em>SE3 instance</em>) – object to test</p>
15511553
</dd>
15521554
<dt class="field-even">Returns</dt>
15531555
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">True</span></code> if object is instance of SE2 or SE3</p>
@@ -1564,7 +1566,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
15641566
<dd><p>Test if object belongs to SO(n) group (superclass property)</p>
15651567
<dl class="field-list simple">
15661568
<dt class="field-odd">Parameters</dt>
1567-
<dd class="field-odd"><p><strong>self</strong> (<a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2"><em>SO2</em></a><em>, </em><a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2"><em>SE2</em></a><em>, </em><a class="reference internal" href="classes-3d.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3"><em>SO3</em></a><em>, </em><em>SE3 instance</em>) – object to test</p>
1569+
<dd class="field-odd"><p><strong>self</strong> (<a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2"><em>SO2</em></a><em>, </em><a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2"><em>SE2</em></a><em>, </em><a class="reference internal" href="3d_orient_SO3.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3"><em>SO3</em></a><em>, </em><em>SE3 instance</em>) – object to test</p>
15681570
</dd>
15691571
<dt class="field-even">Returns</dt>
15701572
<dd class="field-even"><p><code class="docutils literal notranslate"><span class="pre">True</span></code> if object is instance of SO2 or SO3</p>
@@ -1743,7 +1745,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
17431745
<dd class="field-odd"><p>pose</p>
17441746
</dd>
17451747
<dt class="field-even">Return type</dt>
1746-
<dd class="field-even"><p><a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2">SO2</a>, <a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2">SE2</a>, <a class="reference internal" href="classes-3d.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3">SO3</a>, SE3 instance</p>
1748+
<dd class="field-even"><p><a class="reference internal" href="#spatialmath.pose2d.SO2" title="spatialmath.pose2d.SO2">SO2</a>, <a class="reference internal" href="2d_pose_SE2.html#spatialmath.pose2d.SE2" title="spatialmath.pose2d.SE2">SE2</a>, <a class="reference internal" href="3d_orient_SO3.html#spatialmath.pose3d.SO3" title="spatialmath.pose3d.SO3">SO3</a>, SE3 instance</p>
17471749
</dd>
17481750
</dl>
17491751
<ul class="simple">
@@ -1931,7 +1933,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
19311933
<p>Apply symbolic simplification to every element of every value in the
19321934
pose instane.</p>
19331935
<p>Example:</p>
1934-
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">SE3</span><span class="o">.</span><span class="n">Rx</span><span class="p">(</span><span class="n">sympy</span><span class="o">.</span><span class="n">symbols</span><span class="p">(</span><span class="s1">&#39;theta&#39;</span><span class="p">)</span>
1936+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">a</span> <span class="o">=</span> <span class="n">SE3</span><span class="o">.</span><span class="n">Rx</span><span class="p">(</span><span class="n">sympy</span><span class="o">.</span><span class="n">symbols</span><span class="p">(</span><span class="s1">&#39;theta&#39;</span><span class="p">))</span>
19351937
<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span> <span class="o">=</span> <span class="n">a</span> <span class="o">*</span> <span class="n">a</span>
19361938
<span class="gp">&gt;&gt;&gt; </span><span class="n">b</span>
19371939
<span class="go">SE3(array([[1, 0, 0, 0.0],</span>
@@ -2040,7 +2042,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
20402042

20412043
&copy; Copyright 2020, Peter Corke
20422044
<span class="lastupdated">
2043-
Last updated on 16-Nov-2020.
2045+
Last updated on 22-Nov-2020.
20442046
</span>
20452047

20462048
</p>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.