Skip to content

Commit

Permalink
fix additional inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
powertj committed Nov 2, 2023
1 parent 652642f commit 5e0f624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytorch_kinematics/transforms/transform3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def transform_normals(self, normals):
msg = "Expected normals to have dim = 2 or dim = 3: got shape %r"
raise ValueError(msg % (normals.shape,))
mat = self._get_matrix_inverse()[:, :3, :3]
normals_out = _broadcast_bmm(normals, mat.inverse())
normals_out = _broadcast_bmm(normals, mat)

# This doesn't pass unit tests. TODO investigate further
# if self._lu is None:
Expand Down

0 comments on commit 5e0f624

Please sign in to comment.