@@ -1185,7 +1185,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
1185
1185
< dd > < p > Append a value to an instance (SMUserList superclass method)</ p >
1186
1186
< dl class ="field-list simple ">
1187
1187
< 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 >
1189
1189
</ dd >
1190
1190
< dt class ="field-even "> Raises</ dt >
1191
1191
< 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
1219
1219
bad type passed</ p >
1220
1220
< p > The value < code class ="docutils literal notranslate "> < span class ="pre "> arg</ span > </ code > can be any of:</ p >
1221
1221
< ol class ="arabic simple ">
1222
+ < li > < p > None, an identity value is created</ p > </ li >
1222
1223
< li > < p > a numpy.ndarray of the appropriate shape and value which is valid for the subclass</ p > </ li >
1223
1224
< li > < p > a list whose elements all meet the criteria above</ p > </ li >
1224
1225
< li > < p > an instance of the subclass</ p > </ li >
1225
1226
< li > < p > a list whose elements are all singelton instances of the subclass</ p > </ li >
1226
1227
</ 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.
1228
1229
Each NumPyarray is tested for validity (if < code class ="docutils literal notranslate "> < span class ="pre "> check</ span > </ code > is False a cursory
1229
1230
check of shape is made, if < code class ="docutils literal notranslate "> < span class ="pre "> check</ span > </ code > is True the numerical value is
1230
1231
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
1235
1236
< 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,
1236
1237
then < code class ="docutils literal notranslate "> < span class ="pre "> B.A()</ span > </ code > will be invoked to perform the type conversion.</ p >
1237
1238
< 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 >
1239
1241
< 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 >
1240
1242
< span class ="n "> SE3</ span > < span class ="p "> (</ span > < span class ="n "> SE3</ span > < span class ="p "> ())</ span >
1241
1243
< 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
1464
1466
< dd class ="field-even "> < p > interpolated pose</ p >
1465
1467
</ dd >
1466
1468
< 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 >
1468
1470
</ dd >
1469
1471
</ dl >
1470
1472
< ul class ="simple ">
@@ -1547,7 +1549,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
1547
1549
< dd > < p > Test if object belongs to SE(n) group (superclass property)</ p >
1548
1550
< dl class ="field-list simple ">
1549
1551
< 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 >
1551
1553
</ dd >
1552
1554
< dt class ="field-even "> Returns</ dt >
1553
1555
< 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
1564
1566
< dd > < p > Test if object belongs to SO(n) group (superclass property)</ p >
1565
1567
< dl class ="field-list simple ">
1566
1568
< 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 >
1568
1570
</ dd >
1569
1571
< dt class ="field-even "> Returns</ dt >
1570
1572
< 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
1743
1745
< dd class ="field-odd "> < p > pose</ p >
1744
1746
</ dd >
1745
1747
< 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 >
1747
1749
</ dd >
1748
1750
</ dl >
1749
1751
< ul class ="simple ">
@@ -1931,7 +1933,7 @@ <h1>SO(2) matrix<a class="headerlink" href="#so-2-matrix" title="Permalink to th
1931
1933
< p > Apply symbolic simplification to every element of every value in the
1932
1934
pose instane.</ p >
1933
1935
< p > Example:</ p >
1934
- < div class ="highlight-default notranslate "> < div class ="highlight "> < pre > < span > </ span > < span class ="gp "> >>> </ 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 "> 'theta'</ span > < span class ="p "> )</ span >
1936
+ < div class ="highlight-default notranslate "> < div class ="highlight "> < pre > < span > </ span > < span class ="gp "> >>> </ 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 "> 'theta'</ span > < span class ="p "> )) </ span >
1935
1937
< span class ="gp "> >>> </ span > < span class ="n "> b</ span > < span class ="o "> =</ span > < span class ="n "> a</ span > < span class ="o "> *</ span > < span class ="n "> a</ span >
1936
1938
< span class ="gp "> >>> </ span > < span class ="n "> b</ span >
1937
1939
< 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
2040
2042
2041
2043
© Copyright 2020, Peter Corke
2042
2044
< span class ="lastupdated ">
2043
- Last updated on 16 -Nov-2020.
2045
+ Last updated on 22 -Nov-2020.
2044
2046
</ span >
2045
2047
2046
2048
</ p >
0 commit comments