Skip to content

Commit

Permalink
Fix SE(2) inverse (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Oct 18, 2023
1 parent ef1f2bf commit 8ab335f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphslam/pose/se2.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def inverse(self):
The pose's inverse
"""
return PoseSE2([-self[0] * np.cos(self[2]) - self[1] * np.sin(self[2]), self[0] * np.sin(self[2]) - self[1] * np.cos([self[2]])], -self[2])
return PoseSE2([-self[0] * np.cos(self[2]) - self[1] * np.sin(self[2]), self[0] * np.sin(self[2]) - self[1] * np.cos(self[2])], -self[2])

# ======================================================================= #
# #
Expand Down

0 comments on commit 8ab335f

Please sign in to comment.