@@ -948,7 +948,7 @@ def theta(self):
948
948
"""
949
949
return base .norm (self .w )
950
950
951
- def exp (self , theta = None , units = 'rad' ):
951
+ def exp (self , theta = None , unit = 'rad' ):
952
952
"""
953
953
Exponentiate a 3D twist
954
954
@@ -981,13 +981,13 @@ def exp(self, theta=None, units='rad'):
981
981
982
982
:seealso: :func:`spatialmath.base.trexp`
983
983
"""
984
- if units != 'rad' and self .isprismatic :
984
+ if unit != 'rad' and self .isprismatic :
985
985
print ('Twist3.exp: using degree mode for a prismatic twist' )
986
986
987
987
if theta is None :
988
988
theta = 1
989
989
else :
990
- theta = base .getunit (theta , units )
990
+ theta = base .getunit (theta , unit )
991
991
992
992
if base .isscalar (theta ):
993
993
# theta is a scalar
@@ -1421,14 +1421,14 @@ def se2(self):
1421
1421
else :
1422
1422
return [base .skewa (x .S ) for x in self ]
1423
1423
1424
- def exp (self , theta = None , units = 'rad' ):
1424
+ def exp (self , theta = None , unit = 'rad' ):
1425
1425
r"""
1426
1426
Exponentiate a 2D twist
1427
1427
1428
1428
:param theta: rotation magnitude, defaults to None
1429
1429
:type theta: float, optional
1430
- :param units : rotational units, defaults to 'rad'
1431
- :type units : str, optional
1430
+ :param unit : rotational units, defaults to 'rad'
1431
+ :type unit : str, optional
1432
1432
:return: SE(2) matrix
1433
1433
:rtype: SE2 instance
1434
1434
@@ -1455,13 +1455,13 @@ def exp(self, theta=None, units='rad'):
1455
1455
:seealso: :func:`spatialmath.base.trexp2`
1456
1456
"""
1457
1457
1458
- if units != 'rad' and self .isprismatic :
1458
+ if unit != 'rad' and self .isprismatic :
1459
1459
print ('Twist3.exp: using degree mode for a prismatic twist' )
1460
1460
1461
1461
if theta is None :
1462
1462
theta = 1
1463
1463
else :
1464
- theta = base .getunit (theta , units )
1464
+ theta = base .getunit (theta , unit )
1465
1465
1466
1466
if base .isscalar (theta ):
1467
1467
return SE2 (base .trexp2 (self .S * theta ))
0 commit comments