Skip to content

Commit

Permalink
fix point3d.transform_with (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug authored Sep 6, 2024
1 parent e3ef8cf commit 5e8d34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosys/geometry/point3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ def __sub__(self, other: Point3d) -> Point3d:

def transform_with(self, pose: Pose3d) -> Point3d:
"""Transform this pose with another pose."""
return Point3d.from_tuple(np.dot(pose.rotation.R, self.array) + pose.translation_vector)
return Point3d.from_tuple((np.dot(pose.rotation.R, self.array) + pose.translation_vector).flatten())

0 comments on commit 5e8d34b

Please sign in to comment.