Skip to content

Commit 184a95f

Browse files
committed
RPY, Eul takes 3 angles
1 parent ec00d13 commit 184a95f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spatialmath/quaternion.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ def Rand(cls, N=1):
12111211
return cls([base.rand() for i in range(0, N)], check=False)
12121212

12131213
@classmethod
1214-
def Eul(cls, angles, *, unit='rad'):
1214+
def Eul(cls, *angles, unit='rad'):
12151215
r"""
12161216
Construct a new unit quaternion from Euler angles
12171217
@@ -1245,7 +1245,7 @@ def Eul(cls, angles, *, unit='rad'):
12451245
return cls(base.r2q(base.eul2r(angles, unit=unit)), check=False)
12461246

12471247
@classmethod
1248-
def RPY(cls, angles, *, order='zyx', unit='rad'):
1248+
def RPY(cls, *angles, order='zyx', unit='rad'):
12491249
"""
12501250
Construct a new unit quaternion from roll-pitch-yaw angles
12511251

0 commit comments

Comments
 (0)