Update modern_robotics.py

Typo...
This commit is contained in:
Olivier Martin 2018-04-28 19:35:21 -04:00 committed by GitHub
parent f0029c47f5
commit e7ed6a8932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ Output:
[-1.20919958, 1.20919958, 0]]
'''
if NearZero(np.linalg.norm(R - np.eye(3))):
return np.zeros(3,3)
return np.zeros((3,3))
elif NearZero(np.trace(R) + 1):
if not NearZero(1 + R[2][2]):
omg = (1.0 / sqrt(2 * (1 + R[2][2]))) \