8000 doco · suddrey-qut/spatialmath-python@e7a27f1 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit e7a27f1

Browse files
committed
doco
1 parent 28513e1 commit e7a27f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spatialmath/base/transforms3d.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,19 +1072,19 @@ def trnorm(T):
10721072
:return: SO(3) or SE(3) matrix
10731073
:rtype: np.ndarray, shape=(3,3) or (4,4)
10741074
1075-
TRNORM(R) is guaranteed to be a proper orthogonal matrix rotation
1075+
- ``trnorm(R)`` is guaranteed to be a proper orthogonal matrix rotation
10761076
matrix (3x3) which is "close" to the input matrix R (3x3). If R
10771077
= [N,O,A] the O and A vectors are made unit length and the normal vector
10781078
is formed from N = O x A, and then we ensure that O and A are orthogonal
10791079
by O = A x N.
10801080
1081-
TRNORM(T) as above but the rotational submatrix of the homogeneous
1081+
- ``trnorm(T)`` as above but the rotational submatrix of the homogeneous
10821082
transformation T (4x4) is normalised while the translational part is
10831083
unchanged.
1084-
%
1084+
10851085
If R (3x3xK) or T (4x4xK) representing a sequence then the normalisation
10861086
is performed on each of the K planes.
1087-
%
1087+
10881088
Notes::
10891089
- Only the direction of A (the z-axis) is unchanged.
10901090
- Used to prevent finite word length arithmetic causing transforms to
@@ -1185,9 +1185,9 @@ def trinv(T):
11851185
:return: SE(3) matrix
11861186
:rtype: np.ndarray, shape=(4,4)
11871187
1188-
Computes an efficient inverse of an SE(3) matrix.
1188+
Computes an efficient inverse of an SE(3) matrix:
11891189
1190-
:math:`\begin{pmatrix} {\bf R^T} & -{\bf R^T} t \\ 0 0 0 & 1 \end{pmatrix}`
1190+
:math:`\begin{pmatrix} {\bf R} & t \\ 0\,0\,0 & 1 \end{pmatrix}^{-1} = \begin{pmatrix} {\bf R}^T & -{\bf R}^T t \\ 0\,0\, 0 & 1 \end{pmatrix}`
11911191
11921192
"""
11931193
assert ishom(T), 'expecting SE(3) matrix'
@@ -1511,7 +1511,7 @@ def trplot(T, axes=None, dims=None, color='blue', frame=None, textcolor=None, la
15111511
ax.text(y[0], y[1], y[2], "$%c_{%s}$" % (labels[1], frame), color=color, horizontalalignment='center', verticalalignment='center')
15121512
ax.text(z[0], z[1], z[2], "$%c_{%s}$" % (labels[2], frame), color=color, horizontalalignment='center', verticalalignment='center')
15131513

1514-
import spatialmath.base.animate
1514+
import spatialmath.base.animate as animate
15151515

15161516
def tranimate(T, **kwargs):
15171517
"""

0 commit comments

Comments
 (0)
0