Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 184a95f

Browse filesBrowse files
committed
RPY, Eul takes 3 angles
1 parent ec00d13 commit 184a95f
Copy full SHA for 184a95f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎spatialmath/quaternion.py

Copy file name to clipboardExpand all lines: spatialmath/quaternion.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.