@@ -62,8 +62,8 @@ class SMPose(SMUserList):
62
62
Arithmetic operators are overloaded but the operation they perform depend
63
63
on the types of the operands. For example:
64
64
65
- - ``*`` will compose two instances of the same subclass, and the result will be
66
- an instance of the same subclass, since this is a group operator.
65
+ - ``*`` will compose two instances of the same subclass, and the result will
66
+ be an instance of the same subclass, since this is a group operator.
67
67
- ``+`` will add two instances of the same subclass, and the result will be
68
68
a matrix, not an instance of the same subclass, since addition is not a group operator.
69
69
@@ -270,9 +270,7 @@ def log(self, twist=False):
270
270
"""
271
271
Logarithm of pose (superclass method)
272
272
273
- :return: logarithm
274
- :rtype: numpy.ndarray
275
- :raises: ValueError
273
+ :return: logarithm :rtype: numpy.ndarray :raises: ValueError
276
274
277
275
An efficient closed-form solution of the matrix logarithm.
278
276
@@ -281,10 +279,8 @@ def log(self, twist=False):
281
279
----- ---------------------------------------
282
280
Pose Shape Structure
283
281
===== ====== ===============================
284
- SO2 (2,2) skew-symmetric
285
- SE2 (3,3) augmented skew-symmetric
286
- SO3 (3,3) skew-symmetric
287
- SE3 (4,4) augmented skew-symmetric
282
+ SO2 (2,2) skew-symmetric SE2 (3,3) augmented skew-symmetric
283
+ SO3 (3,3) skew-symmetric SE3 (4,4) augmented skew-symmetric
288
284
===== ====== ===============================
289
285
290
286
Example::
@@ -298,9 +294,9 @@ def log(self, twist=False):
298
294
[ 0. , 0. , 0. , 0. ]])
299
295
300
296
301
- :seealso: :func:`~spatialmath.base.transforms2d.trlog2`, :func:`~spatialmath.base.transforms3d.trlog`
297
+ :seealso: :func:`~spatialmath.base.transforms2d.trlog2`,
298
+ :func:`~spatialmath.base.transforms3d.trlog`
302
299
"""
303
- print ('in log' )
304
300
if self .N == 2 :
305
301
log = [tr .trlog2 (x , twist = twist ) for x in self .data ]
306
302
else :
0 commit comments