@@ -537,7 +537,7 @@ def OA(cls, o, a):
537
537
return cls (base .oa2r (o , a ), check = False )
538
538
539
539
@classmethod
540
- def AngVec (cls , theta , v , * , unit = 'rad' ):
540
+ def AngleAxis (cls , theta , v , * , unit = 'rad' ):
541
541
r"""
542
542
Construct a new SO(3) rotation matrix from rotation angle and axis
543
543
@@ -550,7 +550,7 @@ def AngVec(cls, theta, v, *, unit='rad'):
550
550
:return: SO(3) rotation
551
551
:rtype: SO3 instance
552
552
553
- ``SO3.AngVec (theta, V)`` is an SO(3) rotation defined by
553
+ ``SO3.AngleAxis (theta, V)`` is an SO(3) rotation defined by
554
554
a rotation of ``THETA`` about the vector ``V``.
555
555
556
556
.. note:: :math:`\theta \eq 0` the result in an identity matrix, otherwise
@@ -559,6 +559,30 @@ def AngVec(cls, theta, v, *, unit='rad'):
559
559
:seealso: :func:`~spatialmath.pose3d.SE3.angvec`, :func:`spatialmath.base.transforms3d.angvec2r`
560
560
"""
561
561
return cls (base .angvec2r (theta , v , unit = unit ), check = False )
562
+
563
+ @classmethod
564
+ def AngVec (cls , theta , v , * , unit = 'rad' ):
565
+ r"""
566
+ Construct a new SO(3) rotation matrix from rotation angle and axis
567
+
568
+ :param theta: rotation
569
+ :type theta: float
570
+ :param unit: angular units: 'rad' [default], or 'deg'
571
+ :type unit: str
572
+ :param v: rotation axis, 3-vector
10000
573
+ :type v: array_like
574
+ :return: SO(3) rotation
575
+ :rtype: SO3 instance
576
+
577
+ ``SO3.AngVec(theta, V)`` is an SO(3) rotation defined by
578
+ a rotation of ``THETA`` about the vector ``V``.
579
+
580
+ .. deprecated:: 0.9.8
581
+ Use :meth:`AngleAxis` instead.
582
+
583
+ :seealso: :func:`~spatialmath.pose3d.SE3.angvec`, :func:`spatialmath.base.transforms3d.angvec2r`
584
+ """
585
+ return cls (base .angvec2r (theta , v , unit = unit ), check = False )
562
586
563
587
@classmethod
564
588
def EulerVec (cls , w ):
@@ -1250,7 +1274,7 @@ def OA(cls, o, a):
1250
1274
return cls (base .oa2tr (o , a ), check = False )
1251
1275
1252
1276
@classmethod
1253
- def AngVec (cls , theta , v , * , unit = 'rad' ):
1277
+ def AngleAxis (cls , theta , v , * , unit = 'rad' ):
1254
1278
r"""
1255
1279
Create an SE(3) pure rotation matrix from rotation angle and axis
1256
1280
@@ -1263,7 +1287,7 @@ def AngVec(cls, theta, v, *, unit='rad'):
1263
1287
:return: SE(3) matrix
1264
1288
:rtype: SE3 instance
1265
1289
1266
- ``SE3.AngVec (θ, v)`` is an SE(3) rotation defined by
1290
+ ``SE3.AngleAxis (θ, v)`` is an SE(3) rotation defined by
1267
1291
a rotation of ``θ`` about the vector ``v``.
1268
1292
1269
1293
.. math::
@@ -1278,6 +1302,30 @@ def AngVec(cls, theta, v, *, unit='rad'):
1278
1302
"""
1279
1303
return cls (base .angvec2tr (theta , v , unit = unit ), check = False )
1280
1304
1305
+ @classmethod
1306
+ def AngVec (cls , theta , v , * , unit = 'rad' ):
1307
+ r"""
1308
+ Create an SE(3) pure rotation matrix from rotation angle and axis
1309
+
1310
+ :param θ: rotation
1311
+ :type θ: float
1312
+ :param unit: angular units: 'rad' [default], or 'deg'
1313
+ :type unit: str
1314
+ :param v: rotation axis, 3-vector
1315
+ :type v: array_like
1316
+ :return: SE(3) matrix
1317
+ :rtype: SE3 instance
1318
+
1319
+ ``SE3.AngVec(θ, v)`` is an SE(3) rotation defined by
1320
+ a rotation of ``θ`` about the vector ``v``.
1321
+
1322
+ .. deprecated:: 0.9.8
1323
+ Use :meth:`AngleAxis` instead.
1324
+
1325
+ :seealso: :func:`~spatialmath.pose3d.SE3.angvec`, :func:`~spatialmath.pose3d.SE3.EulerVec`, :func:`~spatialmath.base.transforms3d.angvec2r`
1326
+ """
1327
+ return cls (base .angvec2tr (theta , v , unit = unit ), check = False )
1328
+
1281
1329
@classmethod
1282
1330
def EulerVec (cls , w ):
1283
1331
r"""
@@ -1396,7 +1444,7 @@ def Ty(cls, y):
1396
1444
.. runblock:: pycon
1397
1445
1398
1446
>>> SE3.Ty(2)
1399
- >>> SE3.Tz ([2,3])
1447
+ >>> SE3.Ty ([2,3])
1400
1448
1401
1449
1402
1450
:seealso: :func:`~spatialmath.base.transforms3d.transl`
0 commit comments